mirror of
https://github.com/bitwarden/desktop.git
synced 2024-09-28 03:57:47 +02:00
557 lines
12 KiB
SCSS
557 lines
12 KiB
SCSS
$fa-font-path: "~font-awesome/fonts";
|
|
@import "~font-awesome/scss/font-awesome.scss";
|
|
|
|
$font-family-sans-serif: 'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
|
|
$font-size-base: 14px;
|
|
$font-size-large: 18px;
|
|
$font-size-small: 12px;
|
|
$text-color: #000000;
|
|
$background-color: #efeff4;
|
|
$border-color: #f0f0f0;
|
|
$border-color-dark: #ddd;
|
|
$list-item-hover: #fbfbfb;
|
|
$list-icon-color: #c7c7cd;
|
|
|
|
$gray: #555;
|
|
$gray-light: #777;
|
|
$text-muted: $gray-light;
|
|
|
|
$brand-primary: #3c8dbc;
|
|
$brand-danger: #dd4b39;
|
|
$brand-success: #00a65a;
|
|
$brand-info: #555555;
|
|
$brand-warning: #f39c12;
|
|
$brand-primary-accent: #286090;
|
|
|
|
$background-color: white;
|
|
$background-color-alt: #f9fafc;
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
div::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
background-color: #aaa;
|
|
}
|
|
|
|
div::-webkit-scrollbar-thumb {
|
|
background: #888;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
background-color: $background-color;
|
|
overflow: hidden;
|
|
font-family: $font-family-sans-serif;
|
|
font-size: $font-size-base;
|
|
color: $text-color;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: $font-family-sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
a {
|
|
color: $brand-primary;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#vault {
|
|
height: 100vh;
|
|
display: flex;
|
|
|
|
#nav {
|
|
background-color: #1a2226;
|
|
min-width: 50px;
|
|
color: white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
ul {
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
li {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
|
|
a {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
text-decoration: none;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
&.top {
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
#categories {
|
|
background-color: $background-color-alt;
|
|
width: 15%;
|
|
min-width: 175px;
|
|
max-width: 250px;
|
|
border-right: 1px solid $border-color-dark;
|
|
padding: 10px 15px;
|
|
|
|
h2 {
|
|
font-size: $font-size-base;
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
ul {
|
|
margin: 0 0 20px 0;
|
|
padding: 0;
|
|
|
|
li {
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
a {
|
|
display: block;
|
|
padding: 5px 0;
|
|
color: $text-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#items {
|
|
background-color: $background-color;
|
|
width: 25%;
|
|
min-width: 200px;
|
|
max-width: 350px;
|
|
border-right: 1px solid $border-color-dark;
|
|
}
|
|
|
|
#details {
|
|
background-color: $background-color;
|
|
flex: 1;
|
|
min-width: 400px;
|
|
}
|
|
|
|
#categories, #items, #details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.header {
|
|
min-height: 44px;
|
|
max-height: 44px;
|
|
background-color: $brand-primary;
|
|
color: white;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
flex: 0 0 auto;
|
|
|
|
a, button {
|
|
color: white !important;
|
|
text-decoration: none;
|
|
background: none;
|
|
|
|
&:hover, &:focus {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:focus {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
font-weight: bold;
|
|
display: block;
|
|
padding: 12px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.left {
|
|
display: block;
|
|
position: absolute;
|
|
left: 0;
|
|
text-align: left;
|
|
|
|
a, button {
|
|
padding: 12px 10px;
|
|
display: block;
|
|
float: left;
|
|
}
|
|
|
|
.fa-spinner {
|
|
padding: 15px;
|
|
display: block;
|
|
float: left;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
display: block;
|
|
right: 0;
|
|
position: absolute;
|
|
z-index: 99999;
|
|
|
|
a, button {
|
|
padding: 12px 10px;
|
|
display: block;
|
|
float: right;
|
|
}
|
|
|
|
.fa-spinner {
|
|
padding: 15px;
|
|
display: block;
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
&.header-search {
|
|
.left, .right, .search {
|
|
display: table-cell;
|
|
position: relative;
|
|
}
|
|
|
|
.search {
|
|
padding: 0 7px;
|
|
width: 100%;
|
|
text-align: left;
|
|
position: relative;
|
|
|
|
.fa-search {
|
|
position: absolute;
|
|
top: 15px;
|
|
left: 15px;
|
|
color: lighten($brand-primary, 30%);
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
margin: 0;
|
|
float: none;
|
|
background: darken($brand-primary, 8%);
|
|
border: none;
|
|
color: white;
|
|
padding: 5px 10px 5px 30px;
|
|
border-radius: 5px;
|
|
|
|
&:focus {
|
|
border-radius: 5px;
|
|
outline: none;
|
|
background: darken($brand-primary, 10%);
|
|
}
|
|
|
|
&::-webkit-input-placeholder {
|
|
color: lighten($brand-primary, 35%);
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
white-space: nowrap;
|
|
float: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
flex: 1 1 auto;
|
|
position: relative;
|
|
overflow: auto;
|
|
}
|
|
|
|
.footer {
|
|
height: 50px;
|
|
background-color: $background-color-alt;
|
|
flex: 0 0 auto;
|
|
border-top: 1px solid $border-color-dark;
|
|
}
|
|
}
|
|
|
|
|
|
.list {
|
|
.list-grouped {
|
|
.list-grouped-header {
|
|
background-color: transparent;
|
|
padding: 10px 10px;
|
|
color: $gray-light;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
small {
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
.list-section {
|
|
padding-bottom: 10px;
|
|
|
|
&:first-child {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.list-section-header {
|
|
background-color: transparent;
|
|
padding: 5px 10px;
|
|
color: $gray-light;
|
|
text-transform: uppercase;
|
|
font-size: ($font-size-base - 1);
|
|
|
|
label {
|
|
font-weight: normal;
|
|
}
|
|
|
|
span {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.list-section-items {
|
|
border-top: 1px solid $border-color-dark;
|
|
border-bottom: 1px solid $border-color-dark;
|
|
}
|
|
|
|
.list-section-footer {
|
|
padding: 5px 10px;
|
|
font-size: $font-size-small;
|
|
color: $gray-light;
|
|
}
|
|
}
|
|
|
|
.list-grouped-item, .list-section-item {
|
|
display: block;
|
|
padding: 10px 10px;
|
|
background-color: white;
|
|
text-decoration: none;
|
|
color: $text-color;
|
|
position: relative;
|
|
z-index: 1;
|
|
|
|
&:not(.pre) {
|
|
&:after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
&.pre {
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
&.text-primary {
|
|
color: $brand-primary !important;
|
|
}
|
|
|
|
&.text-danger {
|
|
color: $brand-danger !important;
|
|
}
|
|
|
|
&:not(.wrap) {
|
|
.text, .detail {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
&:before {
|
|
content: "";
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 1px;
|
|
width: calc(100% - 10px);
|
|
border-bottom: 1px solid $border-color;
|
|
}
|
|
|
|
&:last-child {
|
|
&:before {
|
|
border: none;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
&:hover, &:focus, &.active {
|
|
background-color: $list-item-hover;
|
|
}
|
|
|
|
&:not(:hover):focus {
|
|
border-left: 5px solid $brand-primary;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.leading-icon {
|
|
font-size: 35px;
|
|
float: left;
|
|
display: inline-block;
|
|
margin: 0 8px 5px 0;
|
|
}
|
|
|
|
.text {
|
|
display: block;
|
|
color: $text-color;
|
|
}
|
|
|
|
.detail {
|
|
font-size: $font-size-small;
|
|
color: $gray-light;
|
|
display: block;
|
|
}
|
|
|
|
.item-label {
|
|
font-size: $font-size-small;
|
|
color: $gray-light;
|
|
display: block;
|
|
width: 100%;
|
|
font-weight: normal;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
&.list-section-item-table {
|
|
display: table;
|
|
width: 100%;
|
|
}
|
|
|
|
.action-button {
|
|
padding: 8px 10px 8px 5px;
|
|
display: table-cell;
|
|
width: 20px;
|
|
vertical-align: middle;
|
|
|
|
&.text-danger {
|
|
color: $brand-danger !important;
|
|
}
|
|
}
|
|
|
|
.action-button-content {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.field-type {
|
|
margin: 5px 0 0 27px;
|
|
width: calc(100% - 27px);
|
|
}
|
|
|
|
.icon {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
float: left;
|
|
height: 36px;
|
|
width: 34px;
|
|
margin-left: -5px;
|
|
color: $text-muted;
|
|
|
|
img {
|
|
border-radius: 3px;
|
|
max-height: 20px;
|
|
max-width: 20px;
|
|
}
|
|
|
|
&.single-line {
|
|
height: initial;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.action-buttons {
|
|
float: right;
|
|
|
|
.btn-list {
|
|
float: left;
|
|
cursor: pointer;
|
|
padding: 10px 8px;
|
|
background: none;
|
|
border: none;
|
|
color: $brand-primary;
|
|
|
|
&:hover, &:focus {
|
|
color: darken($brand-primary, 10%);
|
|
}
|
|
|
|
&.disabled {
|
|
color: $list-icon-color;
|
|
|
|
&:hover {
|
|
color: $list-icon-color;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
padding-right: 2px !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.fa-chevron-right, .right-icon {
|
|
float: right;
|
|
margin-top: 4px;
|
|
color: $list-icon-color;
|
|
}
|
|
|
|
.item-sub-label {
|
|
float: right;
|
|
display: block;
|
|
margin-right: 15px;
|
|
color: $gray-light;
|
|
}
|
|
|
|
small.item-sub-label {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
&.condensed {
|
|
padding: 3px 10px;
|
|
|
|
.action-buttons {
|
|
.btn-list {
|
|
padding: 8px 5px;
|
|
}
|
|
}
|
|
|
|
&:not(:hover):focus {
|
|
padding-left: 5px;
|
|
}
|
|
}
|
|
|
|
&.wrap {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
&.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-grow {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.list-no-selection {
|
|
.list-grouped-item:not(.list-allow-selection), .list-section-item:not(.list-allow-selection) {
|
|
&:hover {
|
|
background-color: white;
|
|
}
|
|
}
|
|
}
|