233 lines
3.7 KiB
CSS
Vendored
233 lines
3.7 KiB
CSS
Vendored
/*
|
|
* Base structure
|
|
*/
|
|
|
|
/* Move down content because we have a fixed navbar that is 50px tall */
|
|
body {
|
|
padding-top: 50px;
|
|
}
|
|
|
|
|
|
/*
|
|
* Global add-ons
|
|
*/
|
|
|
|
.sub-header {
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
/*
|
|
* Top navigation
|
|
* Hide default border to remove 1px line.
|
|
*/
|
|
.navbar-fixed-top {
|
|
border: 0;
|
|
}
|
|
|
|
/*
|
|
* Sidebar
|
|
*/
|
|
|
|
/* Hide for mobile, show later */
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
@media (min-width: 768px) {
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 51px;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
display: block;
|
|
padding: 20px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
|
background-color: #f5f5f5;
|
|
border-right: 1px solid #eee;
|
|
}
|
|
}
|
|
|
|
/* Sidebar navigation */
|
|
.nav-sidebar {
|
|
margin-right: -21px; /* 20px padding + 1px border */
|
|
margin-bottom: 20px;
|
|
margin-left: -20px;
|
|
}
|
|
.nav-sidebar > li > a {
|
|
padding-right: 20px;
|
|
padding-left: 20px;
|
|
}
|
|
.nav-sidebar > .active > a,
|
|
.nav-sidebar > .active > a:hover,
|
|
.nav-sidebar > .active > a:focus {
|
|
color: #fff;
|
|
background-color: #428bca;
|
|
}
|
|
|
|
|
|
/*
|
|
* Main content
|
|
*/
|
|
|
|
.main {
|
|
padding: 20px;
|
|
}
|
|
@media (min-width: 768px) {
|
|
.main {
|
|
padding-right: 40px;
|
|
padding-left: 40px;
|
|
}
|
|
}
|
|
.main .page-header {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.vertical-space {
|
|
height: 70px;
|
|
}
|
|
.text-vert-middle {
|
|
vertical-align: middle !important;
|
|
}
|
|
|
|
.table-borderless tbody tr td {
|
|
border: none;
|
|
}
|
|
|
|
.drop-shadow {
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12)
|
|
}
|
|
|
|
.disabled {
|
|
background-color: lightgray;
|
|
opacity: .6;
|
|
}
|
|
|
|
/*
|
|
* Placeholder dashboard ideas
|
|
*/
|
|
|
|
.placeholders {
|
|
margin-bottom: 150px;
|
|
text-align: center;
|
|
}
|
|
.placeholders h4 {
|
|
margin-bottom: 0;
|
|
}
|
|
.placeholder {
|
|
margin-bottom: 20px;
|
|
}
|
|
.placeholder img {
|
|
display: inline-block;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
|
|
/*
|
|
* c3.js charts overrides
|
|
*/
|
|
.c3 line, .c3 path {
|
|
stroke: #ccc;
|
|
}
|
|
.c3-line {
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
.anim-spin {
|
|
animation: spin 2s infinite linear;
|
|
}
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(359deg);
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Animations
|
|
*/
|
|
|
|
.pulse-border {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
stroke-width: 3;
|
|
opacity: 1;
|
|
}
|
|
|
|
10% {
|
|
stroke-width: 5;
|
|
opacity: 0.2;
|
|
}
|
|
15% {
|
|
stroke-width: 5;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
50% {
|
|
stroke-width: 3;
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
stroke-width: 3;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Switch checkbox CSS, originally from:
|
|
* https://community.tadabase.io/t/convert-checkbox-to-toggle-switch/2566
|
|
*/
|
|
|
|
input[type="checkbox"].switch {
|
|
/* Backgrpund properties */
|
|
appearance: none;
|
|
background-color: #e1e1e1; /* unchecked background color */
|
|
border-radius: 72px;
|
|
border-style: none;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
cursor: pointer;
|
|
margin: 0 !important;
|
|
width: 40px !important;
|
|
height: 20px !important;
|
|
border: 1px solid #ccc;
|
|
}
|
|
input[type="checkbox"].switch,
|
|
input[type="checkbox"].switch::after {
|
|
transition: all 100ms ease-out;
|
|
}
|
|
input[type="checkbox"].switch::after {
|
|
/* Ball properties */
|
|
background-color: #fff; /* Color of ball */
|
|
border-radius: 50%;
|
|
content: "";
|
|
height: 15px !important;
|
|
width: 15px !important;
|
|
left: 3px !important;
|
|
top: 2px !important;
|
|
position: absolute;
|
|
}
|
|
/* Properties for a checked state */
|
|
input[type="checkbox"].switch:checked {
|
|
background-color: #d9534f; /* Color of background */
|
|
}
|
|
input[type="checkbox"].switch:checked::after {
|
|
background-color: #fff; /* Color of ball */
|
|
left: 20px !important;
|
|
}
|
|
|
|
/*
|
|
* Slider styling
|
|
*/
|
|
|
|
input[type="range"] {
|
|
accent-color: #d9534f;
|
|
}
|