BirdNET-stream/www/assets/styles/app.css

337 lines
5.2 KiB
CSS

:root {
--bg: white;
--font-family: 'Latin Modern Math';
--font-size: 2em;
}
* {
box-sizing: border-box;
font-family: var(--font-family);
font-size: large;
}
html {
position: relative;
min-height: 100vh;
}
a {
text-decoration: none;
color: inherit;
cursor: pointer;
}
.container {
display: flex;
flex-direction: column;
position: relative;
}
.container.col {
flex-direction: column;
}
.container.row {
flex-direction: row;
}
.grow {
flex-grow: 100;
}
.end {
justify-self: flex-end;
}
.item {
align-self: flex-end;
}
.grid {
display: grid;
}
.grid>* {
padding-left: 0.1em;
}
.behind {
position: relative;
z-index: -1;
}
.above {
position: relative;
z-index: 1;
}
.button,
input[type=submit],
input[type=button] {
background-color: #f1f1f1;
color: black;
border-radius: 5px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1em;
cursor: pointer;
appearance: none;
background-color: #FAFBFC;
border: 1px solid rgba(27, 31, 35, 0.15);
border-radius: 6px;
box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
color: #24292E;
cursor: pointer;
display: inline-block;
font-size: 1em;
font-weight: 500;
line-height: 20px;
list-style: none;
padding: 6px 16px;
position: relative;
transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
vertical-align: middle;
white-space: nowrap;
word-wrap: break-word;
}
.button:hover,
input:hover {
background-color: #F3F4F6;
text-decoration: none;
transition-duration: 0.1s;
}
.button:disabled {
background-color: #FAFBFC;
border-color: rgba(27, 31, 35, 0.15);
color: #959DA5;
cursor: default;
}
.button-main:focus:not(:focus-visible):not(.focus-visible) {
box-shadow: none;
outline: none;
}
.button-main:hover {
background-color: #2c974b;
padding: 6px 16px;
}
.button-main:focus {
box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
outline: none;
}
.button-main:disabled {
background-color: #94d3a2;
border-color: rgba(27, 31, 35, .1);
color: rgba(255, 255, 255, .8);
cursor: default;
}
.button-main:active {
background-color: #298e46;
box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}
.button-main:active {
background-color: #EDEFF2;
box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
transition: none 0s;
}
.button:focus,
input:focus {
outline: 1px transparent;
border: solid blue 1px;
}
body {
background-color: var(--bg);
margin: 0;
padding: 0;
}
header {
padding: 1em;
/** Align text and center of image */
/* justify-content: center; */
width: fit-content;
margin: auto;
}
header h1 {
font-size: 4rem;
}
header:first-child {
justify-content: center;
}
header img.logo {
width: auto;
height: 10rem;
position: relative;
top: -2rem;
padding-top: 1em;
}
main {
min-height: calc(100vh - (var(--header-height, 4em) + var(--footer-height, 4em)));
padding: 5em;
z-index: 0;
}
footer {
color: white;
background-color: black;
padding: 2em;
text-align: center;
overflow: hidden;
}
footer a {
color: white;
text-decoration: none;
}
footer a:hover {
font-style: italic;
}
li {
list-style: none;
}
.dropdown-toggle:hover {
background-color: #900;
color: white
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown-content {
display: none;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
width: fit-content;
}
canvas {
display: block;
height: 100%;
width: 100%;
}
.language-selector {
position: absolute;
top: 0;
right: 0;
}
.language-selector .toggle {
position: absolute;
top: 0;
right: 0;
opacity: 0;
width: 5em;
height: 1em;
}
.touch {
cursor: pointer;
}
.touch::after {
content: "+";
}
.slide {
clear: both;
width: 100%;
height: 0px;
overflow: hidden;
text-align: center;
transition: height .4s ease;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}
.toggle:checked + .slide {
height: fit-content;
}
.scientific-name {
font-style: italic;
}
.dataviz img {
max-width: 100%;
width: 100%;
}
#statuses li {
list-style: none;
}
#statuses .grid {
display: grid;
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
gap: 0.1em;
}
.status.bullet {
border-radius: 50%;
background-color: #999;
width: 1em;
height: 1em;
display: inline-block;
position: relative;
top: 0.4em;
z-index: -1;
}
.status.inactive.bullet {
background-color: #999;
}
.status.active.bullet {
background-color: #090;
}
.status.dead.bullet {
background-color: #900;
}
.overlay {
z-index: 10;
opacity: 100%;
background-color: rgba(255, 255, 255, 1);
position: relative;
}
.logs {
background-color: black;
color: white;
font: monospace;
padding: 1em;
overflow-y: scroll;
height: 100%;
}
@media screen and (max-width: 700px) {
main {
padding: 1em;
}
}