mirror of
https://github.com/bitwarden/browser
synced 2026-01-01 16:13:27 +00:00
434 lines
7.4 KiB
SCSS
434 lines
7.4 KiB
SCSS
$primary: #3c8dbc;
|
|
$primary-accent: #286090;
|
|
$secondary: #ced4da;
|
|
$success: #00a65a;
|
|
$info: #555555;
|
|
$warning: #bf7e16;
|
|
$danger: #dd4b39;
|
|
|
|
$theme-colors: (
|
|
"primary-accent": $primary-accent
|
|
);
|
|
|
|
$body-bg: #ffffff;
|
|
$body-color: #333333;
|
|
|
|
$font-family-sans-serif: 'Open Sans','Helvetica Neue',Helvetica,
|
|
Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';
|
|
|
|
$h1-font-size: 1.7rem;
|
|
$h2-font-size: 1.3rem;
|
|
$h3-font-size: 1rem;
|
|
$h4-font-size: 1rem;
|
|
$h5-font-size: 1rem;
|
|
$h6-font-size: 1rem;
|
|
|
|
$navbar-padding-y: .75rem;
|
|
$grid-gutter-width: 20px;
|
|
$card-spacer-y: .6rem;
|
|
|
|
$list-group-item-padding-y: .6rem;
|
|
$list-group-active-color: $body-color;
|
|
$list-group-active-bg: #ffffff;
|
|
$list-group-active-border-color: rgba(#000000, .125);
|
|
|
|
$dropdown-link-color: $body-color;
|
|
$dropdown-link-hover-bg: rgba(#000000, .06);
|
|
$dropdown-link-active-color: $dropdown-link-color;
|
|
$dropdown-link-active-bg: rgba(#000000, .1);
|
|
$dropdown-item-padding-x: 1rem;
|
|
|
|
$navbar-brand-font-size: 35px;
|
|
$navbar-brand-height: 35px;
|
|
$navbar-brand-padding-y: 0;
|
|
$navbar-dark-color: rgba(#ffffff, .7);
|
|
$navbar-dark-hover-color: rgba(#ffffff, .9);
|
|
|
|
$input-bg: #fafafa;
|
|
$input-focus-bg: #ffffff;
|
|
$input-disabled-bg: #e0e0e0;
|
|
|
|
$table-accent-bg: rgba(#000000, .02);
|
|
$table-hover-bg: rgba(#000000, .03);
|
|
|
|
$modal-backdrop-opacity: 0.3;
|
|
|
|
@import "~bootstrap/scss/bootstrap";
|
|
@import "./plugins";
|
|
|
|
html {
|
|
font-size: 14px;
|
|
}
|
|
|
|
body {
|
|
min-width: 1010px;
|
|
|
|
&.layout_frontend {
|
|
background-color: #ecf0f5;
|
|
}
|
|
}
|
|
|
|
.page-header, .secondary-header {
|
|
border-bottom: 1px solid $border-color;
|
|
padding-bottom: 0.6rem;
|
|
margin-bottom: 0.5rem;
|
|
|
|
h1, h2, h3, h4 {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.secondary-header {
|
|
margin-top: 4rem;
|
|
}
|
|
|
|
.navbar {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.navbar-brand {
|
|
margin-top: -20px;
|
|
margin-bottom: -20px;
|
|
}
|
|
|
|
.container {
|
|
width: 980px;
|
|
max-width: none !important;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.page-content {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 40px;
|
|
padding: 40px 0 20px 0;
|
|
border-top: 1px solid $border-color;
|
|
}
|
|
|
|
.list-group-item.active {
|
|
border-left: 3px solid theme-color("primary");
|
|
font-weight: bold;
|
|
padding-left: calc(#{$list-group-item-padding-x} - 3px);
|
|
}
|
|
|
|
.card-header, .modal-header {
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
|
|
small {
|
|
font-weight: normal;
|
|
text-transform: none;
|
|
}
|
|
}
|
|
|
|
.card ul.fa-ul.card-ul {
|
|
margin-left: 1.9em;
|
|
|
|
.fa-li {
|
|
top: 4px;
|
|
}
|
|
|
|
&.carets {
|
|
margin-left: 1.1em;
|
|
|
|
.fa-li {
|
|
left: -24px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.modal-body {
|
|
h3 {
|
|
font-weight: normal;
|
|
text-transform: uppercase;
|
|
color: $text-muted;
|
|
}
|
|
}
|
|
.modal .list-group-flush {
|
|
:first-child {
|
|
border-top: none;
|
|
}
|
|
:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
.modal-footer {
|
|
justify-content: flex-start;
|
|
background-color: $input-bg;
|
|
@include border-radius($modal-content-border-radius);
|
|
}
|
|
|
|
label:not(.form-check-label) {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.btn[class*="btn-outline-"] {
|
|
&:not(:hover) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.btn-outline-secondary {
|
|
color: $text-muted;
|
|
|
|
&:hover:not(:disabled) {
|
|
color: $body-color;
|
|
}
|
|
}
|
|
|
|
.btn-submit {
|
|
position: relative;
|
|
|
|
.fa-spinner {
|
|
position: absolute;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
bottom: 0;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
&:disabled {
|
|
.fa-spinner {
|
|
display: flex;
|
|
}
|
|
|
|
span {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.table.table-list {
|
|
tr:first-child {
|
|
td {
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
tr:hover {
|
|
td.table-list-options > .dropdown button, td.table-list-options > button {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
td {
|
|
vertical-align: middle;
|
|
line-height: 1;
|
|
|
|
small, > .fa, .icon {
|
|
color: $text-muted;
|
|
}
|
|
}
|
|
|
|
td.table-list-options {
|
|
width: 76px;
|
|
max-width: 76px;
|
|
text-align: right;
|
|
|
|
.btn {
|
|
line-height: 1;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
line-height: $line-height-base;
|
|
}
|
|
|
|
> .dropdown:not(.show) button {
|
|
visibility: hidden;
|
|
}
|
|
|
|
> button {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
td.table-list-icon {
|
|
width: 45px;
|
|
max-width: 45px;
|
|
text-align: center;
|
|
|
|
img {
|
|
@extend .rounded;
|
|
@extend .img-fluid;
|
|
}
|
|
}
|
|
|
|
td.table-list-checkbox {
|
|
width: 35px;
|
|
max-width: 35px;
|
|
}
|
|
}
|
|
|
|
app-vault-groupings {
|
|
.card {
|
|
#search {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
h3 {
|
|
font-weight: normal;
|
|
text-transform: uppercase;
|
|
color: $text-muted;
|
|
}
|
|
|
|
ul:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
a {
|
|
color: $body-color;
|
|
|
|
&:hover {
|
|
&.text-muted {
|
|
color: $body-color !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.show-active {
|
|
display: none;
|
|
}
|
|
|
|
li.active {
|
|
.show-active {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
li.active {
|
|
a:first-child {
|
|
font-weight: bold;
|
|
color: theme-color("primary");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
app-login {
|
|
img {
|
|
width: 284px;
|
|
height: 43px;
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
app-password-generator {
|
|
#lengthRange {
|
|
width: 100%;
|
|
}
|
|
|
|
.card-password {
|
|
.card-body {
|
|
word-break: break-all;
|
|
text-align: center;
|
|
font-size: $font-size-lg;
|
|
font-family: $font-family-monospace;
|
|
}
|
|
}
|
|
}
|
|
|
|
app-password-generator-history {
|
|
.list-group-item {
|
|
line-height: 1;
|
|
|
|
.password {
|
|
word-break: break-all;
|
|
font-family: $font-family-monospace;
|
|
}
|
|
}
|
|
}
|
|
|
|
app-import {
|
|
textarea {
|
|
height: 150px;
|
|
}
|
|
}
|
|
|
|
app-avatar {
|
|
img {
|
|
@extend .rounded;
|
|
}
|
|
}
|
|
|
|
#duo-frame {
|
|
background: url('../images/loading.svg') 0 0 no-repeat;
|
|
height: 330px;
|
|
|
|
iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
.totp {
|
|
.totp-code {
|
|
@extend .text-monospace;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.totp-countdown {
|
|
margin: 3px 3px 0 0;
|
|
display: block;
|
|
user-select: none;
|
|
|
|
.totp-sec {
|
|
font-size: 0.85em;
|
|
position: absolute;
|
|
line-height: 32px;
|
|
width: 32px;
|
|
text-align: center;
|
|
}
|
|
|
|
svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.totp-circle {
|
|
fill: none;
|
|
stroke: $primary;
|
|
|
|
&.inner {
|
|
stroke-width: 3;
|
|
stroke-dasharray: 78.6;
|
|
stroke-dashoffset: 0;
|
|
}
|
|
|
|
&.outer {
|
|
stroke-width: 2;
|
|
stroke-dasharray: 88;
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .align-items-center {
|
|
margin-bottom: -5px;
|
|
}
|
|
|
|
&.low {
|
|
.totp-sec, .totp-code {
|
|
color: $danger;
|
|
}
|
|
|
|
.totp-circle {
|
|
stroke: $danger;
|
|
}
|
|
}
|
|
}
|