196 lines
3.0 KiB
CSS
196 lines
3.0 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.chart {
|
|
width: 100%;
|
|
max-width: 38em;
|
|
}
|
|
|
|
h2 {
|
|
font-weight: normal;
|
|
font-family: sans-serif;
|
|
font-size: 1.5em;
|
|
margin: 0.25em;
|
|
}
|
|
|
|
.recharts-wrapper p {
|
|
color: initial;
|
|
font-size: initial;
|
|
}
|
|
|
|
|
|
.menu {
|
|
overflow: hidden;
|
|
background-color: #333;
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.time-slider {
|
|
padding: 1em 0.5em;
|
|
}
|
|
|
|
.range {
|
|
color: white;
|
|
text-align: center;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.submenu {
|
|
background-color: #666;
|
|
max-width: 40em;
|
|
margin: 0 auto;
|
|
padding: 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.submenu h2 {
|
|
color: white;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.submenu-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.menu-container {
|
|
max-width: 40em;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.menu button {
|
|
background-color: #333;
|
|
height: 2.5rem;
|
|
min-width: 3rem;
|
|
font-size: 1.5rem;
|
|
color: white;
|
|
border-radius: 0;
|
|
border: 0;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
.menu button:hover {
|
|
background-color: #999;
|
|
}
|
|
|
|
.menu button.active {
|
|
background-color: #666;
|
|
}
|
|
|
|
.submenu button {
|
|
background-color: #666;
|
|
}
|
|
|
|
.submenu-checkbox-label {
|
|
/* Make it look like a button */
|
|
background-color: #666;
|
|
height: 2.5rem;
|
|
font-size: 1.5rem;
|
|
color: white;
|
|
cursor: pointer;
|
|
font-family: sans-serif;
|
|
|
|
/* Center content */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.submenu-checkbox-label:hover {
|
|
background-color: #999;
|
|
}
|
|
|
|
.submenu-checkbox-label input[type="checkbox"] {
|
|
/* Reset default styles */
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
background-color: transparent;
|
|
margin: 0;
|
|
|
|
/* Custom checkbox style */
|
|
font: inherit;
|
|
color: currentColor;
|
|
width: 0.75em;
|
|
height: 0.75em;
|
|
border: 0.1em solid currentColor;
|
|
border-radius: 0;
|
|
transform: translateY(-0.075em);
|
|
|
|
/* For the checkmark */
|
|
display: grid;
|
|
place-content: center;
|
|
}
|
|
|
|
/* Fix for Firefox Mobile rendering a black background on checked state,
|
|
especially when extensions like Dark Reader are active. */
|
|
.submenu-checkbox-label input[type="checkbox"]:checked {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.submenu-checkbox-label input[type="checkbox"]::before {
|
|
content: "";
|
|
width: 0.75em;
|
|
height: 0.75em;
|
|
transform: scale(0);
|
|
transition: 120ms transform ease-in-out;
|
|
background-color: white;
|
|
}
|
|
|
|
.submenu-checkbox-label input[type="checkbox"]:checked::before {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.datepicker .rdtPicker {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 1rem;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
.datepicker th:hover,
|
|
.datepicker td:hover {
|
|
background-color: #999!important;
|
|
}
|
|
|
|
.submenu-actions {
|
|
padding-top: 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.submenu-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.submenu-group span {
|
|
color: white;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.submenu-group button {
|
|
flex-grow: 1;
|
|
}
|