chiro-canto/public/styles/style.css

383 lines
5.5 KiB
CSS
Raw Normal View History

2021-03-28 20:40:17 +02:00
* {
2021-04-07 12:35:25 +02:00
align-self: baseline;
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;
margin-top: 1em;
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 {
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;
display: inline;
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-07 12:35:25 +02:00
display: inline-block;
position: relative;
background: yellow;
padding: 0.5em;
border-radius: 5px;
2021-03-28 20:40:17 +02:00
}
input {
2021-04-07 12:35:25 +02:00
margin: 0.1em;
2021-03-28 20:40:17 +02:00
}
/* Style inputs with type="text", select elements and textareas */
2021-04-07 12:35:25 +02:00
input[type=text],
input[type=email],
input[type=url],
input[type=password],
input[type=number],
input[type=date],
input[type=time],
select,
textarea {
width: 100%;
/* Full width */
padding: 12px;
/* Some padding */
border: 1px solid #ccc;
/* Gray border */
border-radius: 4px;
/* Rounded borders */
box-sizing: border-box;
/* Make sure that padding and width stays in place */
margin-top: 6px;
/* Add a top margin */
margin-bottom: 16px;
/* Bottom margin */
resize: vertical
/* Allow the user to vertically resize the textarea (not horizontally) */
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;
border: none;
border-radius: 4px;
cursor: pointer;
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;
border: none;
border-radius: 4px;
cursor: pointer;
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-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-03-28 20:40:17 +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-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-07 12:35:25 +02:00
display: flex;
flex-direction: row;
align-self: right;
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);
width: auto;
min-height: 100vh;
margin: 0;
color: white;
padding: 1em;
}
#larynx h2 {
text-align: center;
}
#larynx {
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;
}