149 lines
2.7 KiB
SCSS
149 lines
2.7 KiB
SCSS
.cw-restrictions {
|
|
margin-bottom: 15px;
|
|
padding: 3px 0 0;
|
|
font-size: 0.88rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.card {
|
|
box-shadow: 0 0.46875rem 2.1875rem rgba(8, 10, 37, 0.03),
|
|
0 0.9375rem 1.40625rem rgba(8, 10, 37, 0.03),
|
|
0 0.25rem 0.53125rem rgba(8, 10, 37, 0.05),
|
|
0 0.125rem 0.1875rem rgba(8, 10, 37, 0.03);
|
|
border-width: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
$widget-spacer: 1rem;
|
|
|
|
.widget-content {
|
|
padding: $widget-spacer;
|
|
flex-direction: row !important;
|
|
align-items: center !important;
|
|
margin-inline-end: 1rem !important;
|
|
|
|
.widget-content-wrapper {
|
|
display: flex;
|
|
flex: 1;
|
|
position: relative;
|
|
align-items: center;
|
|
}
|
|
|
|
.widget-content-left {
|
|
.widget-heading {
|
|
opacity: 0.8;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.widget-subheading {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.widget-content-right {
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
.widget-numbers {
|
|
font-weight: bold;
|
|
font-size: 1.8rem;
|
|
display: block;
|
|
}
|
|
|
|
.widget-content-outer {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.widget-progress-wrapper {
|
|
margin-top: $widget-spacer;
|
|
|
|
.progress-sub-label {
|
|
position: absolute;
|
|
margin-top: ($widget-spacer / 3);
|
|
opacity: 0.5;
|
|
display: flex;
|
|
align-content: center;
|
|
align-items: center;
|
|
left: 50%;
|
|
top: 4.2rem;
|
|
color: #000;
|
|
|
|
.sub-label-left {
|
|
}
|
|
|
|
.sub-label-right {
|
|
margin-inline-start: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.widget-content-right {
|
|
&.widget-content-actions {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.widget-content-right {
|
|
&.widget-content-actions {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
$enable-transitions: true !default;
|
|
$progress-bar-animation-timing: 1s linear infinite !default;
|
|
|
|
@if $enable-transitions {
|
|
@keyframes progress-bar-stripes {
|
|
from {
|
|
background-position: 1rem 0;
|
|
}
|
|
to {
|
|
background-position: 0 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.progress {
|
|
display: flex;
|
|
height: 1rem;
|
|
overflow: hidden; // force rounded corners by cropping it
|
|
font-size: 1rem * 0.75;
|
|
background-color: #e9ecef;
|
|
border-radius: 0.25rem;
|
|
box-shadow: inset 0 0.1rem 0.1rem rgba(#000, 0.1);
|
|
}
|
|
|
|
.progress-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
color: #fff;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
background-color: theme-color("primary");
|
|
transition: width 0.6s ease;
|
|
}
|
|
|
|
.progress-bar-striped {
|
|
// gradient-striped();
|
|
background-size: 1rem 1rem;
|
|
}
|
|
|
|
@if $enable-transitions {
|
|
.progress-bar-animated {
|
|
animation: progress-bar-stripes $progress-bar-animation-timing;
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
animation: none;
|
|
}
|
|
}
|
|
}
|