chiro-canto/public/styles/style.css

769 lines
11 KiB
CSS
Raw Normal View History

2021-03-28 20:40:17 +02:00
* {
2021-04-19 20:34:09 +02:00
padding: 0;
margin: 0;
2021-03-28 20:40:17 +02:00
}
2021-04-07 12:35:25 +02:00
body {
margin: 0;
background-color: white;
2021-03-28 20:40:17 +02:00
}
header {
2021-04-07 12:35:25 +02:00
text-align: right;
padding: 0;
2021-04-15 12:29:53 +02:00
z-index: -1;
position: relative;
2021-03-28 20:40:17 +02:00
}
2021-03-31 15:09:10 +02:00
header a {
2021-04-07 12:35:25 +02:00
text-decoration: none;
color: black;
2021-03-31 15:09:10 +02:00
}
2021-04-07 12:35:25 +02:00
nav,
nav .container {
padding: 0;
margin: 0;
2021-03-31 08:38:30 +02:00
}
2021-04-07 12:35:25 +02:00
header .container,
nav .container {
display: flex;
justify-content: space-between;
2021-03-28 20:40:17 +02:00
}
header h1 {
2021-04-07 12:35:25 +02:00
font-size: 4em;
padding: 0;
margin: 0;
2021-03-28 20:40:17 +02:00
}
img.banner {
2021-04-07 12:35:25 +02:00
width: 100%;
height: auto;
}
2021-04-07 12:35:25 +02:00
section {
padding: 1em;
min-height: 100vh;
width: 50vw;
text-align: left;
margin: auto;
2021-03-28 20:40:17 +02:00
}
article {
2021-04-07 12:35:25 +02:00
width: 50vw;
text-align: left;
margin: auto;
2021-03-28 20:40:17 +02:00
}
2021-04-07 12:35:25 +02:00
article h1 {
2021-04-19 20:34:09 +02:00
font-size: 5em
2021-03-28 20:40:17 +02:00
}
footer {
2021-04-07 12:35:25 +02:00
color: white;
text-align: center;
background-color: rgba(0, 0, 0, 0.9);
padding: 1em;
2021-03-28 20:40:17 +02:00
}
footer a {
2021-04-07 12:35:25 +02:00
text-decoration: none;
2021-03-28 20:40:17 +02:00
}
footer img {
2021-04-07 12:35:25 +02:00
height: 1em;
2021-03-28 20:40:17 +02:00
}
label {
2021-04-07 12:35:25 +02:00
width: 40em;
2021-04-19 20:34:09 +02:00
display: inline-block;
2021-03-28 20:40:17 +02:00
}
2021-04-07 12:35:25 +02:00
2021-03-28 20:40:17 +02:00
label span.info {
2021-04-07 12:35:25 +02:00
display: none;
2021-03-28 20:40:17 +02:00
}
label:hover span.info {
2021-04-19 20:34:09 +02:00
display: inline;
2021-04-07 12:35:25 +02:00
position: relative;
background: yellow;
padding: 0.5em;
border-radius: 5px;
2021-03-28 20:40:17 +02:00
}
2021-04-19 20:34:09 +02:00
label {
float: left;
clear: none;
display: inline;
padding: 0px 1em 0px 8px;
2021-03-28 20:40:17 +02:00
}
2021-04-19 20:34:09 +02:00
2021-03-28 20:40:17 +02:00
/* Style inputs with type="text", select elements and textareas */
2021-04-19 20:34:09 +02:00
input,
2021-04-07 12:35:25 +02:00
select,
textarea {
2021-04-20 17:05:13 +02:00
width: 100%;
2021-04-07 12:35:25 +02:00
/* Full width */
padding: 12px;
2021-04-19 20:34:09 +02:00
margin: 0;
2021-04-07 12:35:25 +02:00
/* Some padding */
border: 1px solid #ccc;
/* Gray border */
border-radius: 4px;
/* Rounded borders */
box-sizing: border-box;
/* Add a top margin */
2021-04-19 20:34:09 +02:00
margin-bottom: 1em;
2021-04-07 12:35:25 +02:00
/* Bottom margin */
2021-04-19 20:34:09 +02:00
;
}
input[type=radio],
input[type=checkbox] {
display: inline;
width: auto;
height: auto;
2021-03-28 20:40:17 +02:00
}
/* Style the submit button with a specific background color etc */
input[type=submit] {
2021-04-07 12:35:25 +02:00
background-color: #4CAF50;
color: white;
padding: 12px 20px;
2021-04-20 17:05:13 +02:00
margin: 0.1em;
2021-04-07 12:35:25 +02:00
border: none;
border-radius: 4px;
cursor: pointer;
2021-04-20 17:05:13 +02:00
width: auto;
2021-03-28 20:40:17 +02:00
}
input[type=reset] {
2021-04-07 12:35:25 +02:00
background-color: #af4c4c;
color: white;
padding: 12px 20px;
2021-04-20 17:05:13 +02:00
margin: 0.1em;
2021-04-07 12:35:25 +02:00
border: none;
border-radius: 4px;
cursor: pointer;
2021-04-19 20:34:09 +02:00
width: auto;
2021-03-28 20:40:17 +02:00
}
/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
2021-04-07 12:35:25 +02:00
background-color: #45a049;
2021-03-28 20:40:17 +02:00
}
/* When moving the mouse over the reset button, add a darker red color */
input[type=reset]:hover {
2021-04-07 12:35:25 +02:00
background-color: #923737;
2021-03-28 20:40:17 +02:00
}
/* Add a background color and some padding around the form */
.container {
2021-04-07 12:35:25 +02:00
border-radius: 5px;
background-color: #f2f2f2;
padding: 1em;
2021-03-28 20:40:17 +02:00
}
nav {
2021-04-07 12:35:25 +02:00
border-bottom: 1px solid black;
position: flex;
display: block;
width: 100%;
background-color: white;
z-index: 10;
2021-04-09 14:29:00 +02:00
overflow: hidden;
overflow-wrap: break-word;
2021-03-28 20:40:17 +02:00
}
2021-03-31 08:38:30 +02:00
nav div {
2021-04-07 12:35:25 +02:00
padding: 1em;
2021-03-31 08:38:30 +02:00
}
2021-03-28 20:40:17 +02:00
nav.dark-theme {
2021-04-07 12:35:25 +02:00
background: black;
2021-03-28 20:40:17 +02:00
}
nav.dark-theme ul li {
2021-04-07 12:35:25 +02:00
color: white;
2021-03-28 20:40:17 +02:00
}
nav ul {
2021-04-07 12:35:25 +02:00
display: flex;
flex-direction: row;
2021-03-28 20:40:17 +02:00
}
nav ul a {
2021-04-07 12:35:25 +02:00
text-decoration: none;
2021-03-28 20:40:17 +02:00
}
nav ul li {
2021-04-07 12:35:25 +02:00
list-style: none;
color: black;
margin: 0.5em;
2021-03-28 20:40:17 +02:00
}
iframe::parent {
2021-04-07 12:35:25 +02:00
padding: 0;
margin: 0;
2021-03-28 20:40:17 +02:00
}
iframe {
2021-04-07 12:35:25 +02:00
width: 100%;
height: 750px;
2021-03-28 20:40:17 +02:00
}
#previewFrame {
2021-04-07 12:35:25 +02:00
width: 300px;
height: 200px;
resize: both;
zoom: 0.2;
-moz-transform: scale(0.5);
-moz-transform-origin: 0 0;
-o-transform: scale(0.5);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.5);
-webkit-transform-origin: 0 0;
2021-03-28 20:40:17 +02:00
}
2021-04-07 12:35:25 +02:00
iframe html body {
font-size: 0.1em;
2021-03-28 20:40:17 +02:00
}
.container {
2021-04-07 12:35:25 +02:00
display: flex;
padding-top: 0;
padding-bottom: 0;
2021-04-20 17:05:13 +02:00
padding: 0.5em;
2021-03-28 20:40:17 +02:00
}
2021-04-19 20:34:09 +02:00
.container.row {
2021-04-07 12:35:25 +02:00
flex-direction: row;
2021-03-28 20:40:17 +02:00
}
.container.column {
2021-04-07 12:35:25 +02:00
flex-direction: column;
2021-04-19 20:34:09 +02:00
}
2021-03-28 20:40:17 +02:00
2021-04-07 12:35:25 +02:00
h3,
p {
padding: 1em;
width: auto;
2021-03-28 20:40:17 +02:00
}
p.large {
2021-04-07 12:35:25 +02:00
width: auto;
2021-03-28 20:40:17 +02:00
}
2021-03-30 10:52:22 +02:00
table {
2021-04-07 12:35:25 +02:00
border-radius: 5px;
width: 100%;
border-collapse: collapse;
2021-03-30 10:52:22 +02:00
}
2021-04-07 12:35:25 +02:00
td,
th {
border: 1px solid #dddddd;
text-align: left;
padding: 0.5em;
2021-03-30 10:52:22 +02:00
}
tr:nth-child(even) {
2021-04-07 12:35:25 +02:00
background-color: #dddddd;
2021-03-30 10:52:22 +02:00
}
table a {
2021-04-07 12:35:25 +02:00
text-decoration: none;
color: black;
}
table a:hover {
2021-04-07 12:35:25 +02:00
font-style: italic;
}
2021-03-28 20:40:17 +02:00
#searchbar {
2021-04-18 16:59:01 +02:00
display: inline-flex;
2021-04-07 12:35:25 +02:00
flex-direction: row;
2021-03-28 20:40:17 +02:00
}
ul.breadcrumb {
2021-04-07 12:35:25 +02:00
display: flex;
flex-basis: row;
2021-03-28 20:40:17 +02:00
}
ul.breadcrumb li {
2021-04-07 12:35:25 +02:00
list-style: url("/media/icons/arrow.svg");
margin-left: 2em;
2021-03-28 20:40:17 +02:00
}
ul.breadcrumb li.active {
2021-04-07 12:35:25 +02:00
font-weight: bold;
2021-03-28 20:40:17 +02:00
}
div.coordinates {
2021-04-07 12:35:25 +02:00
display: flex;
flex-direction: row;
2021-03-28 20:40:17 +02:00
}
div.coordinates input[type="text"] {
2021-04-07 12:35:25 +02:00
width: 25em;
2021-03-29 12:05:53 +02:00
}
.sci-name {
2021-04-07 12:35:25 +02:00
font-style: italic;
2021-03-29 19:35:47 +02:00
}
.error {
2021-04-07 12:35:25 +02:00
border: solid red;
border-radius: 5px;
padding: 0.5em;
background-color: rgba(255, 0, 0, 0.4)
2021-03-30 10:52:22 +02:00
}
.sound {
2021-04-07 12:35:25 +02:00
background-color: rgba(0, 255, 0, 0.5);
padding: 1em;
border-radius: 5px;
overflow: auto;
2021-03-31 08:38:30 +02:00
}
#spectrogram {
2021-04-07 12:35:25 +02:00
width: 100%;
max-width: 75vh;
2021-04-05 15:37:12 +02:00
}
button img {
2021-04-07 12:35:25 +02:00
max-height: 1em;
2021-04-05 15:37:12 +02:00
}
form#url-form {
2021-04-07 12:35:25 +02:00
display: none;
position: fixed;
top: 50%;
left: 35%;
width: 15em;
z-index: 1;
background-color: white;
padding: 1em;
border-radius: 5px;
border: 1px solid #ccc;
}
table#replies td {
2021-04-07 12:35:25 +02:00
background-color: white;
}
#larynx {
background-color: rgba(0, 0, 0, 0.8);
min-height: 100vh;
margin: 0;
color: white;
padding: 1em;
2021-04-17 12:20:38 +02:00
max-width: 100vw;
height: 10vh;
text-align: center;
2021-04-16 19:14:52 +02:00
overflow: auto;
2021-04-07 12:35:25 +02:00
}
#larynx h2 {
text-align: center;
}
#larynx .license {
text-align: left;
}
#larynx canvas {
width: 100vw;
position: relative;
left: 0;
}
2021-04-07 12:35:25 +02:00
#larynx .container {
background: transparent;
display: flex;
justify-content: space-between;
}
2021-04-09 14:29:00 +02:00
#larynx .settings {
display: flex;
}
2021-04-19 20:34:09 +02:00
#larynx .settings input,
#larynx .settings label {
2021-04-09 14:29:00 +02:00
width: auto;
padding: 0em 1em;
}
2021-04-19 20:34:09 +02:00
table {
max-width: 100vw;
}
table#list {
position: absolute;
left: 0;
}
table img {
height: 1em;
2021-04-09 14:29:00 +02:00
}
.images img {
max-height: 10em;
}
.images li {
list-style: none;
}
.images .fullscreen {
display: block;
position: fixed;
/*top: 10%;*/
bottom: 0;
left: 50%;
max-width: 100vw;
max-height: 100vh;
transform: translate(-50%);
}
2021-04-19 20:34:09 +02:00
2021-04-09 14:29:00 +02:00
.images .fullscreen::parent {
2021-04-19 20:34:09 +02:00
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(9px);
position: fixed;
bottom: 0;
right: 0;
left: 0;
top: 0;
2021-04-09 14:29:00 +02:00
}
.arrow {
2021-04-19 20:34:09 +02:00
position: relative;
bottom: 0;
left: 50%;
margin-left: -20px;
width: 40px;
height: 40px;
background-image: url(/media/icons/bottom_arrow.svg);
background-size: contain;
2021-04-09 14:29:00 +02:00
}
.bounce {
2021-04-19 20:34:09 +02:00
animation: bounce 2s infinite;
2021-04-09 14:29:00 +02:00
}
@keyframes bounce {
2021-04-19 20:34:09 +02:00
0%,
20%,
50%,
100% {
2021-04-09 14:29:00 +02:00
transform: translateY(0);
}
2021-04-19 20:34:09 +02:00
2021-04-09 14:29:00 +02:00
40% {
transform: translateY(-30px);
}
2021-04-19 20:34:09 +02:00
2021-04-09 14:29:00 +02:00
60% {
transform: translateY(-15px);
}
}
article#guano {
font-family: "Consolas";
background-color: lightgray;
padding: 1em;
border-radius: 8px;
}
.collapsible {
2021-04-19 20:34:09 +02:00
background-color: lightgrey;
color: black;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
2021-04-09 14:29:00 +02:00
}
2021-04-19 20:34:09 +02:00
.collapsed,
.collapsible:hover {
background-color: grey;
2021-04-09 14:29:00 +02:00
}
.content {
2021-04-19 20:34:09 +02:00
padding: 0 18px;
display: none;
overflow: hidden;
background-color: #f1f1f1;
2021-04-09 14:29:00 +02:00
}
.collapsible:after {
2021-04-19 20:34:09 +02:00
content: '\02795';
/* Unicode character for "plus" sign (+) */
font-size: 13px;
color: #777;
float: right;
margin-left: 5px;
2021-04-09 14:29:00 +02:00
}
.collapsed:after {
2021-04-19 20:34:09 +02:00
content: '\2796';
/* Unicode character for "minus" sign (-) */
2021-04-09 14:29:00 +02:00
}
.tooltip {
2021-04-19 20:34:09 +02:00
position: relative;
display: inline-block;
2021-04-09 14:29:00 +02:00
}
.tooltip .tooltiptext {
2021-04-19 20:34:09 +02:00
visibility: hidden;
width: 140px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 150%;
left: 50%;
margin-left: -75px;
opacity: 0;
transition: opacity 0.3s;
2021-04-09 14:29:00 +02:00
}
.tooltip .tooltiptext::after {
2021-04-19 20:34:09 +02:00
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
2021-04-09 14:29:00 +02:00
}
.tooltip:hover .tooltiptext {
2021-04-19 20:34:09 +02:00
visibility: visible;
opacity: 1;
2021-04-15 12:29:53 +02:00
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
color: black;
2021-04-19 20:34:09 +02:00
padding: 0;
2021-04-15 12:29:53 +02:00
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
2021-04-19 20:34:09 +02:00
display: none;
position: absolute;
background-color: #f2f2f2;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
2021-04-15 12:29:53 +02:00
}
.dropdown-content ul {
display: flex;
flex-direction: column;
padding: 0;
}
2021-04-19 20:34:09 +02:00
2021-04-15 12:29:53 +02:00
/* Links inside the dropdown */
.dropdown-content li a {
2021-04-19 20:34:09 +02:00
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
2021-04-15 12:29:53 +02:00
}
/* Change color of dropdown links on hover */
2021-04-19 20:34:09 +02:00
.dropdown-content a:hover {
background-color: #f1f1f1
}
2021-04-15 12:29:53 +02:00
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
2021-04-19 20:34:09 +02:00
display: flex;
position: fixed;
2021-04-15 12:29:53 +02:00
}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
2021-04-19 20:34:09 +02:00
background-color: #3e8e41;
2021-04-15 12:29:53 +02:00
}
2021-04-19 20:34:09 +02:00
.search img,
.larynx img,
.mystery img,
.list img,
.spectro img {
2021-04-15 12:29:53 +02:00
max-height: 15vw
}
.wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
grid-auto-rows: minmax(100px, auto);
}
2021-04-19 20:34:09 +02:00
.search {}
2021-04-15 12:29:53 +02:00
2021-04-19 20:34:09 +02:00
.larynx {}
2021-04-15 12:29:53 +02:00
2021-04-19 20:34:09 +02:00
.mystery {}
2021-04-15 12:29:53 +02:00
2021-04-19 20:34:09 +02:00
.list {}
2021-04-15 12:29:53 +02:00
2021-04-19 20:34:09 +02:00
.spectro {}
2021-04-16 13:41:22 +02:00
2021-04-19 20:34:09 +02:00
i,
.fa {
2021-04-16 13:41:22 +02:00
height: 0.1em;
color: black;
}
2021-04-17 12:20:38 +02:00
.message .content {
display: flex;
flex-direction: row;
width: auto;
background-color: lightgreen;
border-radius: 8px 8px 0px 8px;
}
2021-04-18 16:59:01 +02:00
.notification {
text-decoration: none;
position: relative;
display: inline-block;
}
.notification span {
padding: 1em;
}
.notification .badge {
position: absolute;
font-size: 0.5em;
font-weight: bold;
top: -0.5em;
right: -0.5em;
padding: 5px;
border-radius: 50%;
background: red;
color: white;
}
2021-04-19 20:34:09 +02:00
section.observation {
height: 100%;
width: 100%;
display: flex;
position: absolute;
top: 20em;
left: 0;
width: auto;
flex-direction: row;
height: auto;
padding: 0;
margin: 0;
}
section .container {
padding: 0;
margin: 0;
}
section.observation {
max-width: 100%;
}
section.observation #map {
cursor: crosshair;
border-radius: 0;
width: 50vw;
height: 100% !important;
}
section.observation form .container.column {
display: flex;
flex-direction: column;
}
section.observation .container {
display: flex;
}
section.observation .metadata {
padding: 1em;
width: 47.5vw;
left: 0;
right: 0;
overflow: auto;
}
section.observation input,
section.observation select,
section.observation textarea,
section.observation label {
max-width: 80%;
}
section.observation .collapsible {
background-color: lightgrey;
width: 80%;
margin-bottom: 1em;
border-radius: 4px;
}
section.observation label {
width: auto;
display: block;
}
#map {
object-fit: contain;
2021-04-20 17:05:13 +02:00
height: 50vh;
2021-04-19 20:34:09 +02:00
}
#map img {
max-height: none;
}
.fa {
height: 1em;
2021-04-20 17:05:13 +02:00
}
.language {
background: transparent;
margin: 0;
padding: 0.1em;
}
.language:hover {
background: transparent;
}
.language::after {
content: none;
}
#language {
position: absolute;
right: 2.5em;
top: 2.5em;
2021-04-19 20:34:09 +02:00
}