bitwarden-desktop/src/scss/vault.scss

322 lines
7.6 KiB
SCSS
Raw Normal View History

2018-01-27 19:12:06 +01:00
@import "variables.scss";
#vault {
2018-01-31 22:51:59 +01:00
height: 100%;
2018-01-27 19:12:06 +01:00
display: flex;
2018-02-01 04:35:44 +01:00
> #groupings, > #items, > #details, > #logo {
2018-02-01 03:04:04 +01:00
display: flex;
flex-direction: column;
.inner-content {
padding: 10px 15px;
}
}
2018-02-01 04:35:44 +01:00
> #groupings {
width: 22%;
2018-01-27 19:12:06 +01:00
min-width: 175px;
max-width: 250px;
2018-05-30 21:21:41 +02:00
border-right: 1px solid #000000;
2018-01-27 19:12:06 +01:00
2018-05-30 15:28:19 +02:00
@include themify($themes) {
background-color: themed('backgroundColorAlt');
border-right-color: themed('borderColorDark');
}
2018-01-31 23:58:06 +01:00
.inner-content {
2018-02-01 03:04:04 +01:00
padding-bottom: 0;
padding-right: 5px;
2018-01-31 23:58:06 +01:00
}
2018-01-27 19:12:06 +01:00
h2 {
2018-01-27 20:43:29 +01:00
text-transform: uppercase;
2018-01-27 19:12:06 +01:00
font-size: $font-size-base;
2018-01-27 20:43:29 +01:00
font-weight: normal;
2018-01-27 19:12:06 +01:00
margin-bottom: 5px;
2018-01-27 20:43:29 +01:00
display: flex;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headingColor');
}
2018-01-27 20:43:29 +01:00
button {
margin-left: auto;
background: none;
border: none;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headingButtonColor');
}
2018-01-27 20:43:29 +01:00
&:hover, &:focus {
cursor: pointer;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headingButtonHoverColor');
}
2018-01-27 20:43:29 +01:00
}
}
2018-01-27 19:12:06 +01:00
}
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;
2018-01-27 20:43:29 +01:00
display: flex;
align-items: center;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('textColor');
}
2018-01-27 20:43:29 +01:00
span {
visibility: hidden;
margin-left: auto;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headingButtonColor');
}
&:hover, &:focus {
@include themify($themes) {
color: themed('headingButtonHoverColor');
}
2018-01-27 20:43:29 +01:00
}
}
&:hover, &:focus {
span {
visibility: visible;
}
}
2018-01-27 19:12:06 +01:00
}
&.active {
margin-left: -15px;
2018-02-01 03:04:04 +01:00
margin-right: -5px;
2018-01-27 19:12:06 +01:00
padding-left: 15px;
2018-02-01 03:04:04 +01:00
padding-right: 5px;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
background-color: themed('groupingsActiveColor');
}
2018-01-27 19:12:06 +01:00
}
}
}
}
2018-02-01 04:35:44 +01:00
> #items {
width: 28%;
2018-01-27 19:12:06 +01:00
min-width: 200px;
max-width: 350px;
2018-05-30 21:21:41 +02:00
border-right: 1px solid #000000;
2018-05-30 15:28:19 +02:00
@include themify($themes) {
background-color: themed('backgroundColor');
border-right-color: themed('borderColorDark');
}
2018-01-31 23:58:06 +01:00
.no-items {
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 0 10px;
2018-02-01 02:42:56 +01:00
.fa {
margin-bottom: 10px;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('disabledIconColor');
}
2018-02-01 02:42:56 +01:00
}
2018-01-31 23:58:06 +01:00
}
2018-01-27 19:12:06 +01:00
}
2018-02-01 04:35:44 +01:00
> #details {
2018-01-27 19:12:06 +01:00
flex: 1;
min-width: 0;
2018-05-30 21:21:41 +02:00
2018-05-30 15:28:19 +02:00
@include themify($themes) {
background-color: themed('backgroundColorAlt2');
}
.inner-content {
min-width: 400px;
}
2018-01-29 22:13:37 +01:00
.box {
max-width: 550px;
margin: 30px auto 0 auto;
&:first-child {
margin-top: 10px;
}
&:last-child {
margin-bottom: 30px;
}
}
2018-01-31 18:52:12 +01:00
> form {
display: flex;
flex-direction: column;
2018-02-10 21:38:08 +01:00
height: 100%;
2018-01-31 18:52:12 +01:00
}
2018-01-27 19:12:06 +01:00
}
2018-02-01 04:35:44 +01:00
> #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 {
2018-05-31 04:28:04 +02:00
width: 284px;
opacity: 0.3;
transition: all 1s ease-in-out;
&:hover {
opacity: 1;
}
}
}
2018-01-27 19:12:06 +01:00
.header {
min-height: 44px;
max-height: 44px;
flex: 0 0 auto;
2018-05-30 21:21:41 +02:00
border-bottom: 1px solid #000000;
display: flex;
align-items: center;
2018-01-27 19:12:06 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
background-color: themed('headerBackgroundColor');
2018-05-30 21:44:16 +02:00
border-bottom-color: themed('headerBorderColor');
2018-05-30 21:21:41 +02:00
}
2018-01-27 19:12:06 +01:00
&.header-search {
.search {
padding: 0 7px;
width: 100%;
text-align: left;
position: relative;
.fa {
2018-01-27 19:12:06 +01:00
position: absolute;
top: 7px;
2018-01-27 19:12:06 +01:00
left: 15px;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headerInputPlaceholderColor');
}
2018-01-27 19:12:06 +01:00
}
input {
width: 100%;
margin: 0;
border: none;
padding: 5px 10px 5px 30px;
border-radius: $border-radius;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
background-color: themed('headerInputBackgroundColor');
color: themed('headerInputColor');
}
2018-01-27 19:12:06 +01:00
&:focus {
border-radius: $border-radius;
outline: none;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
background-color: themed('headerInputBackgroundFocusColor');
}
2018-01-27 19:12:06 +01:00
}
&::-webkit-input-placeholder {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headerInputPlaceholderColor');
}
2018-01-27 19:12:06 +01:00
}
}
}
}
}
.content {
flex: 1 1 auto;
position: relative;
overflow: auto;
2018-01-31 23:58:06 +01:00
height: 100%;
2018-01-27 19:12:06 +01:00
}
.footer {
height: 50px;
flex: 0 0 auto;
2018-05-30 21:21:41 +02:00
border-top: 1px solid #000000;
2018-01-27 19:12:06 +01:00
display: flex;
align-items: center;
padding: 0 15px;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
background-color: themed('backgroundColorAlt');
border-top-color: themed('borderColorDark');
}
2018-01-27 19:12:06 +01:00
button {
margin-right: 10px;
&:last-child {
margin-right: 0;
}
}
2018-01-29 22:13:37 +01:00
.right {
margin-left: auto;
display: flex;
}
2018-01-27 19:12:06 +01:00
}
}