2018-04-04 20:19:44 +02:00
|
|
|
|
@import "variables.scss";
|
|
|
|
|
|
|
|
|
|
.box {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
|
2018-04-04 22:29:43 +02:00
|
|
|
|
&.first {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-04 20:19:44 +02:00
|
|
|
|
.box-header {
|
|
|
|
|
margin: 0 10px 5px 10px;
|
|
|
|
|
color: $gray-light;
|
|
|
|
|
text-transform: uppercase;
|
2018-04-05 23:27:31 +02:00
|
|
|
|
display: flex;
|
2018-04-04 20:19:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-content {
|
|
|
|
|
background: $box-background-color;
|
|
|
|
|
border-top: 1px solid $border-color-dark;
|
|
|
|
|
border-bottom: 1px solid $border-color-dark;
|
|
|
|
|
|
|
|
|
|
&.box-content-padded {
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-content-row {
|
|
|
|
|
display: block;
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
height: 1px;
|
|
|
|
|
width: calc(100% - 10px);
|
|
|
|
|
border-bottom: 1px solid $box-border-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:first-child, &:last-child {
|
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
&:before {
|
|
|
|
|
border: none;
|
|
|
|
|
height: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
|
content: "";
|
|
|
|
|
display: table;
|
|
|
|
|
clear: both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover, &:focus, &.active {
|
|
|
|
|
background-color: $box-background-hover-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.pre {
|
|
|
|
|
white-space: pre;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-label, label {
|
|
|
|
|
font-size: $font-size-small;
|
|
|
|
|
color: $text-muted;
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text, .detail {
|
|
|
|
|
display: block;
|
|
|
|
|
color: $text-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.detail {
|
|
|
|
|
font-size: $font-size-small;
|
|
|
|
|
color: $text-muted;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img-right {
|
|
|
|
|
float: right;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-main {
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.box-content-row-flex, &.box-content-row-checkbox, &.box-content-row-input,
|
|
|
|
|
&.box-content-row-slider, &.box-content-row-multi {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.box-content-row-multi {
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
input:not([type="checkbox"]) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input + label.sr-only + select {
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> a {
|
|
|
|
|
padding: 8px 8px 8px 4px;
|
|
|
|
|
color: $brand-danger;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.box-content-row-checkbox, &.box-content-row-input, &.box-content-row-slider {
|
|
|
|
|
label, .row-label {
|
|
|
|
|
font-size: $font-size-base;
|
|
|
|
|
color: $text-color;
|
|
|
|
|
display: inline;
|
|
|
|
|
width: initial;
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> span {
|
|
|
|
|
color: $text-muted;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
> 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 {
|
|
|
|
|
input[type="range"] {
|
|
|
|
|
height: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="number"] {
|
|
|
|
|
width: 45px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input:not([type="checkbox"]), textarea {
|
|
|
|
|
border: none;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
|
|
|
|
|
&::-webkit-input-placeholder {
|
|
|
|
|
color: lighten($gray-light, 35%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border: 1px solid darken($border-color-dark, 7%);
|
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.action-buttons {
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
|
|
|
|
|
.row-btn {
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.no-pad .row-btn {
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select.field-type {
|
|
|
|
|
margin: 5px 0 0 25px;
|
|
|
|
|
width: calc(100% - 25px);
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-05 23:27:31 +02:00
|
|
|
|
.row-sub-icon, .row-sub-label + i.fa {
|
2018-04-04 20:19:44 +02:00
|
|
|
|
color: $list-icon-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.row-sub-label {
|
|
|
|
|
margin: 0 15px;
|
|
|
|
|
color: $gray-light;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2018-04-05 23:27:31 +02:00
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
float: left;
|
|
|
|
|
height: 36px;
|
|
|
|
|
width: 34px;
|
|
|
|
|
margin-left: -5px;
|
|
|
|
|
color: $text-muted;
|
|
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
max-height: 20px;
|
|
|
|
|
max-width: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.condensed .box-content-row, .box-content-row.condensed {
|
|
|
|
|
padding-top: 5px;
|
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.no-hover .box-content-row, .box-content-row.no-hover {
|
|
|
|
|
&:hover, &:focus {
|
|
|
|
|
background-color: initial;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-05 23:27:31 +02:00
|
|
|
|
|
|
|
|
|
&.single-line {
|
|
|
|
|
.box-content-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
height: initial;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-footer {
|
|
|
|
|
margin: 5px 10px;
|
|
|
|
|
font-size: $font-size-small;
|
|
|
|
|
color: $text-muted;
|
|
|
|
|
}
|
2018-04-05 21:35:56 +02:00
|
|
|
|
|
|
|
|
|
&.list {
|
|
|
|
|
.box-content {
|
|
|
|
|
.box-content-row {
|
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
color: $text-color;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
&:hover, &:focus, &.active {
|
|
|
|
|
background-color: $list-item-hover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
border-left: 5px solid $text-muted;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-05 23:27:31 +02:00
|
|
|
|
.action-buttons {
|
|
|
|
|
.row-btn {
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-05 21:35:56 +02:00
|
|
|
|
.text, .detail {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
2018-04-05 23:27:31 +02:00
|
|
|
|
}
|
2018-04-05 21:35:56 +02:00
|
|
|
|
|
2018-04-05 23:27:31 +02:00
|
|
|
|
&.single-line {
|
|
|
|
|
.box-content-row {
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
padding-bottom: 10px;
|
2018-04-05 21:35:56 +02:00
|
|
|
|
}
|
2018-04-05 23:27:31 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-05 21:35:56 +02:00
|
|
|
|
|
2018-04-05 23:27:31 +02:00
|
|
|
|
&.only-list {
|
|
|
|
|
margin-bottom: 0;
|
2018-04-05 21:35:56 +02:00
|
|
|
|
|
2018-04-05 23:27:31 +02:00
|
|
|
|
.box-content {
|
|
|
|
|
border-bottom: none;
|
2018-04-05 21:35:56 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-04 20:19:44 +02:00
|
|
|
|
}
|