mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-03 13:33:32 +01:00
322 lines
7.6 KiB
SCSS
322 lines
7.6 KiB
SCSS
@import "variables.scss";
|
|
|
|
#vault {
|
|
height: 100%;
|
|
display: flex;
|
|
|
|
> #groupings, > #items, > #details, > #logo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.inner-content {
|
|
padding: 10px 15px;
|
|
}
|
|
}
|
|
|
|
> #groupings {
|
|
width: 22%;
|
|
min-width: 175px;
|
|
max-width: 250px;
|
|
border-right: 1px solid #000000;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('backgroundColorAlt');
|
|
border-right-color: themed('borderColorDark');
|
|
}
|
|
|
|
.inner-content {
|
|
padding-bottom: 0;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
h2 {
|
|
text-transform: uppercase;
|
|
font-size: $font-size-base;
|
|
font-weight: normal;
|
|
margin-bottom: 5px;
|
|
display: flex;
|
|
|
|
@include themify($themes) {
|
|
color: themed('headingColor');
|
|
}
|
|
|
|
button {
|
|
margin-left: auto;
|
|
background: none;
|
|
border: none;
|
|
@include themify($themes) {
|
|
color: themed('headingButtonColor');
|
|
}
|
|
|
|
&:hover, &:focus {
|
|
cursor: pointer;
|
|
|
|
@include themify($themes) {
|
|
color: themed('headingButtonHoverColor');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
ul:not(.fa-ul) {
|
|
li {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
}
|
|
|
|
ul.fa-ul {
|
|
li {
|
|
.fa-li {
|
|
left: -11px;
|
|
top: 8px;
|
|
}
|
|
|
|
a {
|
|
padding-left: 12px;
|
|
}
|
|
|
|
&.active .fa-li {
|
|
left: 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
ul {
|
|
padding: 0;
|
|
margin: 0 0 15px 0;
|
|
|
|
li {
|
|
a {
|
|
padding: 5px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
@include themify($themes) {
|
|
color: themed('textColor');
|
|
}
|
|
|
|
span {
|
|
visibility: hidden;
|
|
margin-left: auto;
|
|
|
|
@include themify($themes) {
|
|
color: themed('headingButtonColor');
|
|
}
|
|
|
|
&:hover, &:focus {
|
|
@include themify($themes) {
|
|
color: themed('headingButtonHoverColor');
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover, &:focus {
|
|
span {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
margin-left: -15px;
|
|
margin-right: -5px;
|
|
padding-left: 15px;
|
|
padding-right: 5px;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('groupingsActiveColor');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> #items {
|
|
width: 28%;
|
|
min-width: 200px;
|
|
max-width: 350px;
|
|
border-right: 1px solid #000000;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('backgroundColor');
|
|
border-right-color: themed('borderColorDark');
|
|
}
|
|
|
|
.no-items {
|
|
display: flex;
|
|
height: 100%;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 0 10px;
|
|
|
|
.fa {
|
|
margin-bottom: 10px;
|
|
|
|
@include themify($themes) {
|
|
color: themed('disabledIconColor');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> #details {
|
|
flex: 1;
|
|
min-width: 0;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('backgroundColorAlt2');
|
|
}
|
|
|
|
.inner-content {
|
|
min-width: 400px;
|
|
}
|
|
|
|
.box {
|
|
max-width: 550px;
|
|
margin: 30px auto 0 auto;
|
|
|
|
&:first-child {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
&:last-child {
|
|
margin-bottom: 30px;
|
|
}
|
|
}
|
|
|
|
> form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
> #logo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
|
|
.content {
|
|
overflow-y: hidden;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.inner-content {
|
|
min-width: 320px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
img {
|
|
width: 282px;
|
|
opacity: 0.3;
|
|
transition: all 1s ease-in-out;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.header {
|
|
min-height: 44px;
|
|
max-height: 44px;
|
|
flex: 0 0 auto;
|
|
border-bottom: 1px solid #000000;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('headerBackgroundColor');
|
|
border-bottom-color: themed('headerBorderColor');
|
|
}
|
|
|
|
&.header-search {
|
|
.search {
|
|
padding: 0 7px;
|
|
width: 100%;
|
|
text-align: left;
|
|
position: relative;
|
|
|
|
.fa {
|
|
position: absolute;
|
|
top: 7px;
|
|
left: 15px;
|
|
|
|
@include themify($themes) {
|
|
color: themed('headerInputPlaceholderColor');
|
|
}
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
margin: 0;
|
|
border: none;
|
|
padding: 5px 10px 5px 30px;
|
|
border-radius: $border-radius;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('headerInputBackgroundColor');
|
|
color: themed('headerInputColor');
|
|
}
|
|
|
|
&:focus {
|
|
border-radius: $border-radius;
|
|
outline: none;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('headerInputBackgroundFocusColor');
|
|
}
|
|
}
|
|
|
|
&::-webkit-input-placeholder {
|
|
@include themify($themes) {
|
|
color: themed('headerInputPlaceholderColor');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
flex: 1 1 auto;
|
|
position: relative;
|
|
overflow: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.footer {
|
|
height: 50px;
|
|
flex: 0 0 auto;
|
|
border-top: 1px solid #000000;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 15px;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed('backgroundColorAlt');
|
|
border-top-color: themed('borderColorDark');
|
|
}
|
|
|
|
button {
|
|
margin-right: 10px;
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
margin-left: auto;
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|