bitwarden-estensione-browser/src/scss/box.scss

336 lines
8.7 KiB
SCSS
Raw Normal View History

2018-04-17 19:11:10 +02:00
@import "variables.scss";
2018-01-26 20:12:41 +01:00
.box {
width: 100%;
.box-header {
margin: 0 10px 5px 10px;
text-transform: uppercase;
2018-02-01 03:13:42 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headingColor');
}
2018-02-01 03:13:42 +01:00
button {
background-color: transparent;
border: none;
text-transform: uppercase;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('headingColor');
}
2018-02-01 03:13:42 +01:00
}
2018-01-26 20:12:41 +01:00
}
.box-content {
border-radius: $border-radius;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
2018-05-30 15:28:19 +02:00
@include themify($themes) {
background-color: themed('boxBackgroundColor');
}
2018-01-26 20:12:41 +01:00
2018-02-11 05:24:22 +01:00
&.box-content-padded {
padding: 10px 15px;
}
2018-01-26 20:12:41 +01:00
.box-content-row {
2018-01-29 23:11:31 +01:00
display: block;
2018-01-26 20:12:41 +01:00
padding: 10px 15px;
position: relative;
z-index: 1;
&:before {
content: "";
position: absolute;
right: 0;
bottom: 0;
height: 1px;
width: calc(100% - 10px);
2018-05-30 21:21:41 +02:00
border-bottom: 1px solid #000000;
2018-05-30 15:28:19 +02:00
@include themify($themes) {
border-bottom-color: themed('boxBorderColor');
}
2018-01-26 20:12:41 +01:00
}
&:first-child, &:last-child {
border-radius: $border-radius;
.progress {
border-bottom-left-radius: $border-radius;
border-bottom-right-radius: $border-radius;
}
2018-01-26 20:12:41 +01:00
}
2018-03-02 05:45:12 +01:00
&:last-child {
2018-01-26 20:12:41 +01:00
&:before {
border: none;
height: 0;
}
}
&:after {
content: "";
display: table;
clear: both;
}
&:hover, &:focus, &.active {
2018-05-30 15:28:19 +02:00
@include themify($themes) {
background-color: themed('boxBackgroundHoverColor');
}
2018-01-26 20:12:41 +01:00
}
&.pre {
white-space: pre;
overflow-x: auto;
}
.row-label, label {
font-size: $font-size-small;
display: block;
width: 100%;
margin-bottom: 5px;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
2018-01-26 20:12:41 +01:00
}
.text, .detail {
display: block;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('textColor');
}
}
.detail {
font-size: $font-size-small;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
}
.img-right {
float: right;
margin-left: 10px;
}
.row-main {
flex-grow: 1;
}
&.box-content-row-flex, .box-content-row-flex, &.box-content-row-checkbox, &.box-content-row-input,
2018-03-02 05:45:12 +01:00
&.box-content-row-slider, &.box-content-row-multi {
2018-01-29 22:13:37 +01:00
display: flex;
align-items: center;
2018-02-18 04:37:43 +01:00
word-break: break-word;
2018-01-29 23:11:31 +01:00
}
2018-01-29 22:13:37 +01:00
2018-03-02 05:45:12 +01:00
&.box-content-row-multi {
2018-01-29 23:11:31 +01:00
width: 100%;
input:not([type="checkbox"]) {
width: 100%;
}
2018-03-02 05:45:12 +01:00
input + label.sr-only + select {
margin-top: 5px;
}
2018-01-29 23:11:31 +01:00
> a {
2018-03-02 05:45:12 +01:00
padding: 8px 8px 8px 4px;
2018-01-29 23:11:31 +01:00
margin: 0;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('dangerColor');
}
2018-01-29 23:11:31 +01:00
}
}
&.box-content-row-checkbox, &.box-content-row-input, &.box-content-row-slider {
2018-01-26 20:12:41 +01:00
label, .row-label {
font-size: $font-size-base;
display: inline;
width: initial;
margin-bottom: 0;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('textColor');
}
2018-01-26 20:12:41 +01:00
}
2018-01-29 22:13:37 +01:00
> span {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
2018-01-29 22:13:37 +01:00
}
> input {
margin: 0 0 0 auto;
padding: 0;
}
> * {
margin-right: 15px;
&:last-child {
margin-right: 0;
}
}
}
&.box-content-row-input {
label {
white-space: nowrap;
}
input {
text-align: right;
}
}
&.box-content-row-slider {
2018-02-01 03:33:55 +01:00
input[type="range"] {
2018-01-29 22:13:37 +01:00
height: 10px;
2018-01-26 20:12:41 +01:00
}
2018-01-30 05:19:55 +01:00
2018-02-01 03:33:55 +01:00
input[type="number"] {
width: 45px;
}
label {
2018-01-30 05:19:55 +01:00
white-space: nowrap;
}
2018-01-26 20:12:41 +01:00
}
2018-01-30 03:17:10 +01:00
input:not([type="checkbox"]), textarea {
2018-01-26 20:12:41 +01:00
border: none;
width: 100%;
background-color: transparent;
&::-webkit-input-placeholder {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('inputPlaceholderColor');
}
2018-01-26 20:12:41 +01:00
}
&:focus {
outline: none;
}
}
2018-01-30 03:17:10 +01:00
select {
width: 100%;
2018-05-30 21:21:41 +02:00
border: 1px solid #000000;
2018-01-30 03:17:10 +01:00
border-radius: $border-radius;
2018-05-31 21:41:48 +02:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
border-color: themed('inputBorderColor');
}
2018-01-30 03:17:10 +01:00
}
2018-01-26 20:12:41 +01:00
.action-buttons {
2018-01-30 05:19:55 +01:00
display: flex;
margin-left: 5px;
2018-01-26 20:12:41 +01:00
.row-btn {
cursor: pointer;
padding: 10px 8px;
background: none;
border: none;
2018-05-31 21:41:48 +02:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('boxRowButtonColor');
}
2018-01-26 20:12:41 +01:00
&:hover, &:focus {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('boxRowButtonHoverColor');
}
2018-01-26 20:12:41 +01:00
}
&.disabled {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('disabledIconColor');
}
2018-01-26 20:12:41 +01:00
&:hover {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('disabledIconColor');
}
2018-01-26 20:12:41 +01:00
}
}
&:last-child {
padding-right: 2px !important;
}
}
2018-01-30 05:19:55 +01:00
&.no-pad .row-btn {
padding-top: 0;
padding-bottom: 0;
}
2018-01-26 20:12:41 +01:00
}
select.field-type {
margin: 5px 0 0 25px;
width: calc(100% - 25px);
}
2018-01-30 05:19:55 +01:00
.row-sub-icon {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('disabledIconColor');
}
2018-01-26 20:12:41 +01:00
}
.row-sub-label {
2018-01-30 05:19:55 +01:00
margin: 0 15px;
white-space: nowrap;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
2018-01-26 20:12:41 +01:00
}
.progress {
display: flex;
height: 5px;
overflow: hidden;
margin: 5px -15px -10px;
.progress-bar {
display: flex;
flex-direction: column;
justify-content: center;
white-space: nowrap;
background-color: $brand-primary;
}
}
2018-01-26 20:12:41 +01:00
}
2018-01-29 22:13:37 +01:00
&.condensed .box-content-row, .box-content-row.condensed {
padding-top: 5px;
padding-bottom: 5px;
}
2018-01-30 19:32:58 +01:00
&.no-hover .box-content-row, .box-content-row.no-hover {
&:hover, &:focus {
background-color: initial;
}
}
2018-01-26 20:12:41 +01:00
}
.box-footer {
margin: 5px 10px;
font-size: $font-size-small;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed('mutedColor');
}
2018-01-26 20:12:41 +01:00
}
}