2019-07-18 16:22:11 +02:00
|
|
|
//
|
|
|
|
// Component: Cards
|
|
|
|
//
|
2018-03-17 18:07:55 +01:00
|
|
|
|
|
|
|
.card {
|
|
|
|
@extend .mb-3;
|
2018-04-15 01:33:53 +02:00
|
|
|
@include box-shadow($card-shadow);
|
2018-03-17 18:07:55 +01:00
|
|
|
|
|
|
|
&.bg-dark {
|
2019-08-08 14:32:33 +02:00
|
|
|
.card-header {
|
|
|
|
border-color: $card-dark-border-color;
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
&,
|
|
|
|
.card-body {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-15 12:22:25 +02:00
|
|
|
&.maximized-card {
|
|
|
|
height: 100% !important;
|
2019-06-28 10:02:07 +02:00
|
|
|
left: 0;
|
2019-06-15 12:22:25 +02:00
|
|
|
max-height: 100% !important;
|
2019-06-28 10:02:07 +02:00
|
|
|
max-width: 100% !important;
|
2019-06-15 12:22:25 +02:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
width: 100% !important;
|
|
|
|
z-index: 9999;
|
2019-07-17 23:01:00 +02:00
|
|
|
|
2019-06-15 12:22:25 +02:00
|
|
|
&.was-collapsed .card-body {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
2019-06-28 10:02:07 +02:00
|
|
|
[data-widget='collapse'] {
|
2019-06-15 12:22:25 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-header,
|
|
|
|
.card-footer {
|
|
|
|
@include border-radius(0 !important);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
// collapsed mode
|
|
|
|
&.collapsed-card {
|
|
|
|
.card-body,
|
|
|
|
.card-footer {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav.flex-column {
|
|
|
|
> li {
|
|
|
|
border-bottom: 1px solid $card-border-color;
|
|
|
|
margin: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
&:last-of-type {
|
2019-07-17 23:01:00 +02:00
|
|
|
border-bottom: 0;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// fixed height to 300px
|
|
|
|
&.height-control {
|
|
|
|
.card-body {
|
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.border-right {
|
|
|
|
border-right: 1px solid $card-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.border-left {
|
|
|
|
border-left: 1px solid $card-border-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-15 12:22:25 +02:00
|
|
|
// Maximized Card Body Scroll fix
|
|
|
|
html.maximized-card {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
// Add clearfix to header, body and footer
|
|
|
|
.card-header,
|
|
|
|
.card-body,
|
|
|
|
.card-footer {
|
2019-06-28 10:02:07 +02:00
|
|
|
@include clearfix;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Box header
|
|
|
|
.card-header {
|
|
|
|
background-color: transparent;
|
|
|
|
border-bottom: 1px solid $card-border-color;
|
2019-06-28 10:02:07 +02:00
|
|
|
position: relative;
|
2019-08-26 12:02:59 +02:00
|
|
|
padding: 0 $card-spacer-x;
|
2018-03-17 18:07:55 +01:00
|
|
|
|
|
|
|
@if $enable-rounded {
|
|
|
|
@include border-top-radius($border-radius);
|
|
|
|
}
|
|
|
|
|
|
|
|
.collapsed-card & {
|
2019-07-17 23:01:00 +02:00
|
|
|
border-bottom: 0;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> .card-tools {
|
2019-08-08 14:52:11 +02:00
|
|
|
float: right;
|
2019-08-26 12:02:59 +02:00
|
|
|
margin-right: -$card-spacer-x/2;
|
2018-03-17 18:07:55 +01:00
|
|
|
|
2019-06-28 10:02:07 +02:00
|
|
|
[data-toggle='tooltip'] {
|
2018-03-17 18:07:55 +01:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-title {
|
2019-08-08 14:52:11 +02:00
|
|
|
float: left;
|
2018-03-17 18:07:55 +01:00
|
|
|
font-size: $card-title-font-size;
|
|
|
|
font-weight: $card-title-font-weight;
|
|
|
|
margin: 0;
|
2019-08-26 12:02:59 +02:00
|
|
|
padding: $card-spacer-y 0;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Box Tools Buttons
|
|
|
|
.btn-tool {
|
|
|
|
background: transparent;
|
|
|
|
color: $gray-500;
|
2019-06-28 10:02:07 +02:00
|
|
|
font-size: $font-size-sm;
|
2019-08-26 12:02:59 +02:00
|
|
|
margin: ($card-spacer-y / 2) 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
padding: .25rem .5rem;
|
2018-03-17 18:07:55 +01:00
|
|
|
|
|
|
|
.btn-group.show &,
|
|
|
|
&:hover {
|
|
|
|
color: $gray-700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.show &,
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Box Body
|
|
|
|
.card-body {
|
|
|
|
// @include border-radius-sides(0, 0, $border-radius, $border-radius);
|
|
|
|
.no-header & {
|
|
|
|
// @include border-top-radius($border-radius);
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
// Tables within the box body
|
|
|
|
> .table {
|
|
|
|
margin-bottom: 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
> thead > tr > th,
|
|
|
|
> thead > tr > td {
|
|
|
|
border-top-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Calendar within the box body
|
|
|
|
.fc {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.full-width-chart {
|
|
|
|
margin: -19px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.p-0 .full-width-chart {
|
|
|
|
margin: -9px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chart-legend {
|
|
|
|
@extend .list-unstyled;
|
|
|
|
margin: 10px 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
> li {
|
|
|
|
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Comment Box
|
|
|
|
.card-comments {
|
2019-06-28 10:02:07 +02:00
|
|
|
background: $gray-100;
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
.card-comment {
|
2019-06-28 10:02:07 +02:00
|
|
|
@include clearfix;
|
|
|
|
border-bottom: 1px solid $gray-200;
|
2018-03-17 18:07:55 +01:00
|
|
|
padding: 8px 0;
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
&:last-of-type {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
&:first-of-type {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
img {
|
|
|
|
@extend .img-sm;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
.comment-text {
|
2019-06-28 10:02:07 +02:00
|
|
|
color: lighten($gray-700, 20%);
|
2018-03-17 18:07:55 +01:00
|
|
|
margin-left: 40px;
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
.username {
|
2019-06-28 10:02:07 +02:00
|
|
|
color: $gray-700;
|
2018-03-17 18:07:55 +01:00
|
|
|
display: block;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
.text-muted {
|
|
|
|
font-size: 12px;
|
2019-06-28 10:02:07 +02:00
|
|
|
font-weight: 400;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Widgets
|
|
|
|
//-----------
|
|
|
|
|
|
|
|
// Widget: TODO LIST
|
|
|
|
.todo-list {
|
|
|
|
list-style: none;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin: 0;
|
2018-03-17 18:07:55 +01:00
|
|
|
overflow: auto;
|
2019-06-28 10:02:07 +02:00
|
|
|
padding: 0;
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
// Todo list element
|
|
|
|
> li {
|
|
|
|
@include border-radius(2px);
|
2019-06-28 10:02:07 +02:00
|
|
|
background: $gray-100;
|
|
|
|
border-left: 2px solid $gray-200;
|
|
|
|
color: $gray-700;
|
2018-03-17 18:07:55 +01:00
|
|
|
margin-bottom: 2px;
|
2019-06-28 10:02:07 +02:00
|
|
|
padding: 10px;
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
&:last-of-type {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> input[type='checkbox'] {
|
|
|
|
margin: 0 10px 0 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
display: inline-block;
|
|
|
|
font-weight: 600;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-left: 5px;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Time labels
|
2019-07-28 21:11:54 +02:00
|
|
|
.badge {
|
|
|
|
font-size: .7rem;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-left: 10px;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tools and options box
|
|
|
|
.tools {
|
2019-06-28 10:02:07 +02:00
|
|
|
color: theme-color('danger');
|
2018-03-17 18:07:55 +01:00
|
|
|
display: none;
|
|
|
|
float: right;
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
// icons
|
2019-06-28 10:02:07 +02:00
|
|
|
> .fa,
|
|
|
|
> .fas,
|
|
|
|
> .far,
|
|
|
|
> .fab,
|
|
|
|
> .glyphicon,
|
2019-05-25 15:15:32 +02:00
|
|
|
> .ion {
|
2018-03-17 18:07:55 +01:00
|
|
|
cursor: pointer;
|
2019-06-28 10:02:07 +02:00
|
|
|
margin-right: 5px;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
&:hover .tools {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.done {
|
2019-06-28 10:02:07 +02:00
|
|
|
color: darken($gray-500, 25%);
|
|
|
|
|
2018-03-17 18:07:55 +01:00
|
|
|
.text {
|
|
|
|
font-weight: 500;
|
2019-06-28 10:02:07 +02:00
|
|
|
text-decoration: line-through;
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
2019-07-28 21:11:54 +02:00
|
|
|
.badge {
|
2018-03-17 18:07:55 +01:00
|
|
|
background: $gray-500 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-17 23:01:00 +02:00
|
|
|
// Color variants
|
|
|
|
@each $name, $color in $theme-colors {
|
|
|
|
.#{$name} {
|
|
|
|
border-left-color: $color;
|
|
|
|
}
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
2019-06-28 10:02:07 +02:00
|
|
|
|
2019-07-17 23:01:00 +02:00
|
|
|
@each $name, $color in $colors {
|
|
|
|
.#{$name} {
|
|
|
|
border-left-color: $color;
|
|
|
|
}
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.handle {
|
|
|
|
cursor: move;
|
2019-06-28 10:02:07 +02:00
|
|
|
display: inline-block;
|
2018-03-17 18:07:55 +01:00
|
|
|
margin: 0 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// END TODO WIDGET
|
|
|
|
|
|
|
|
// Input in box
|
|
|
|
.card-input {
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
|
2019-07-17 23:01:00 +02:00
|
|
|
// Color variants
|
2018-03-17 18:07:55 +01:00
|
|
|
@each $name, $color in $theme-colors {
|
2019-07-17 23:01:00 +02:00
|
|
|
@include cards-variant($name, $color);
|
|
|
|
}
|
2019-06-10 17:38:54 +02:00
|
|
|
|
2019-07-17 23:01:00 +02:00
|
|
|
@each $name, $color in $colors {
|
|
|
|
@include cards-variant($name, $color);
|
2018-03-17 18:07:55 +01:00
|
|
|
}
|