1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00
Files
browser/src/less/vault.less
2017-04-18 12:03:06 -04:00

467 lines
7.6 KiB
Plaintext

@import "theme.less";
/* Theme Adjustments */
@boxed-layout-bg-image-path: "../images/boxed-bg.png";
@yellow: #e48c00;
body {
background-color: @gray;
.img-retina(@boxed-layout-bg-image-path, "../images/boxed-bg-2x.png", auto, auto);
}
body,
.main-header .logo,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.box-body > .table-responsive {
> .table {
margin-bottom: 0;
}
@media screen and (max-width: @screen-xs-max) {
border: none;
margin-bottom: 0;
}
}
.sidebar-menu li.header {
padding-right: 15px;
}
.sidebar-menu li a {
padding-left: 12px;
}
.sidebar-form .form-group {
margin-bottom: 0;
input[type="text"], .form-control-feedback {
color: #999;
}
}
.sidebar {
color: #bbbbbb;
a.btn {
color: @btn-default-color;
}
.subsection {
padding: 10px;
text-align: center;
ul {
text-align: left;
}
}
}
.sidebar-collapse {
.sidebar .list-inline li {
padding-right: 0;
}
.hidden-collapsed {
display: none;
}
}
form div.validation-errors ul {
margin-bottom: 0;
padding-left: 20px;
li {
margin-left: 0;
}
}
.login-page,
.register-page {
background-color: @gray;
background-repeat: repeat;
background-attachment: fixed;
.img-retina(@boxed-layout-bg-image-path, "../images/boxed-bg-2x.png", auto, auto);
}
.login-box-body,
.register-box-body {
.boxShadow(0 0 8px rgba(0, 0, 0, 0.5));
}
.login-box, .register-box {
.checkbox {
margin-top: 0;
}
ul {
margin-bottom: 0;
padding-left: 20px;
}
}
.password-options {
float: right;
i {
margin: 0 5px;
cursor: pointer;
}
}
@media screen and (min-width: @screen-sm-min) {
.settings-photo {
text-align: center;
img {
margin: 0 auto;
}
}
}
/* Buttons */
.btn-table {
padding: 1px 5px;
line-height: 1;
}
.box-tools {
.btn-group.open .dropdown-toggle {
.boxShadow(none);
}
.btn-box-tool {
font-size: 14px;
}
}
form .btn .loading-icon {
margin-right: 8px;
}
.dropdown-menu {
border-color: @table-border-color;
> li > a {
color: @text-color;
> .fa {
margin-right: 0;
margin-left: -5px;
}
}
}
/* Forms */
.form-control {
border-radius: 0 !important;
}
.has-feedback {
&.form-group-sm {
input {
padding-right: (@input-height-small * 1.25);
}
}
}
.has-feedback.has-feedback-left {
input {
padding-left: (@input-height-base * 1.25);
padding-right: 0;
}
&.form-group-sm {
input {
padding-left: (@input-height-small * 1.25);
padding-right: 0;
}
}
.form-control-feedback {
right: initial;
left: 0;
}
}
.radio.radio-block {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
label {
border-bottom: 0;
}
}
label {
display: block;
border-bottom: 1px solid @box-border-color;
border-radius: 3px;
padding: 10px 10px 10px 30px;
font-weight: bold;
input[type=radio] {
margin-left: -20px;
}
span {
display: block;
color: @text-muted;
font-size: 90%;
font-weight: normal;
&.bottom-line {
font-size: 100%;
color: @text-color;
margin-top: 5px;
}
}
}
}
/* Modals */
.modal-footer {
text-align: left;
}
/* Tables */
.table-selectable {
td:not(.actions) {
cursor: pointer;
span {
cursor: text;
}
}
}
.table-vmiddle td {
vertical-align: middle !important;
}
.table td .label {
font-size: 85%;
font-weight: normal;
}
.box-header.with-border + .box-body .table > tbody > tr:first-child > td {
border-top: 0;
}
/* Callouts */
.callout.callout-default {
background-color: #fff;
border-color: darken(@gray, 10%);
a {
color: @link-color;
}
a:hover,
a:active,
a:focus {
color: @link-hover-color;
}
}
.modal .callout.callout-default, .box .callout.callout-default {
&:extend(.bg-gray-light);
.btn-default:not(:hover) {
background-color: #ffffff;
}
}
.callout a.btn {
text-decoration: none;
&.btn-default {
color: @btn-default-color;
}
}
/* Boxes */
.box > .list-group {
margin-bottom: 0;
}
.box > .list-group .list-group-item {
border-width: 1px 0;
border-radius: 0;
border-color: @box-border-color;
}
.box > .list-group:last-child .list-group-item:last-child {
border-bottom: 0;
border-bottom-right-radius: @box-border-radius;
border-bottom-left-radius: @box-border-radius;
}
.list-group + .box-footer, .box-header + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.box-header .box-filters {
position: absolute;
left: 10px;
top: 5px;
}
.box-body p:last-child {
margin-bottom: 0;
}
.box-apps {
font-size: 20px;
ul.fa-ul {
li {
margin-bottom: 10px;
}
}
a .fa {
color: @sidebar-dark-submenu-bg;
}
}
/* Toastr */
#toast-container {
position: absolute;
&.toast-top-right {
top: 65px;
right: 15px;
@media (max-width: @screen-xs-max) {
top: initial;
bottom: 0;
right: 0;
width: 100%;
}
}
.toast {
.border-radius(0);
.boxShadow(0 0 8px rgba(0, 0, 0, 0.5));
@media (max-width: @screen-xs-max) {
width: 100%;
}
&.toast-danger, &.toast-error {
background-image: none !important;
&:extend(.bg-red);
&:before {
content: "\f0e7";
}
}
&.toast-warning {
background-image: none !important;
&:extend(.bg-yellow);
&:before {
content: "\f071";
}
}
&.toast-info {
background-image: none !important;
&:extend(.bg-aqua);
&:before {
content: "\f005";
}
}
&.toast-success {
background-image: none !important;
&:extend(.bg-green);
&:before {
content: "\f00C";
}
}
&:before {
position: fixed;
font-family: FontAwesome;
font-size: 24px;
line-height: 24px;
float: left;
color: #ffffff;
padding-right: 0.5em;
margin: auto 0.5em auto -1.5em;
}
}
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
}
/* Misc */
.strike {
text-decoration: line-through;
color: @text-muted;
}
.tooltip-wrapper {
display: inline-block;
}
.cc {
display: inline-block;
background: url('../images/cards.png') no-repeat;
overflow: hidden;
text-indent: -9999px;
text-align: left;
width: 73px;
height: 44px;
&.amex {
background-position: 0 0;
}
&.diners {
background-position: -73px 0;
}
&.discover {
background-position: 0 -44px;
}
&.jcb {
background-position: -73px -44px;
}
&.mastercard, &.maestro {
background-position: 0 -88px;
}
&.visa {
background-position: -73px -88px;
}
}