chiro-canto/public/styles/style.css

271 lines
4.0 KiB
CSS

* {
align-self: baseline;
}
body{
margin: 0;
background-color: white;
}
header {
text-align: right;
padding: 0;
margin-top: 1em;
}
header .container, nav .container {
display: flex;
justify-content: space-between;
}
header h1 {
font-size: 4em;
padding: 0;
margin: 0;
}
section{
padding: 1em;
min-height: 100vh;
width: 50vw;
text-align: left;
margin: auto;
}
article {
width: 50vw;
text-align: left;
margin: auto;
}
article h1 {
font-size: 5em;
}
footer {
color: white;
text-align: center;
background-color: rgba(0,0,0, 0.8);
padding: 0.5em;
}
footer a {
text-decoration: none;
}
footer img {
height: 1em;
}
label {
width: 40em;
display: inline;
}
label span.info {
display: none;
}
label:hover span.info {
display: inline-block;
position: relative;
background: yellow;
padding: 0.5em;
border-radius: 5px;
}
input {
margin: 0.1em;
}
/* Style inputs with type="text", select elements and textareas */
input[type=text], input[type=email], input[type=url], input[type=password], 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) */
}
/* Style the submit button with a specific background color etc */
input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=reset] {
background-color: #af4c4c;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
background-color: #45a049;
}
/* When moving the mouse over the reset button, add a darker red color */
input[type=reset]:hover {
background-color: #923737;
}
/* Add a background color and some padding around the form */
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
nav {
border-bottom: 1px solid black;
position: flex;
display: block;
width: 99vw;
background-color: white;
z-index: 10;
}
nav.dark-theme {
background: black;
}
nav.dark-theme ul li {
color: white;
}
nav ul {
display: flex;
flex-direction: row;
}
nav ul a {
text-decoration: none;
}
nav ul li {
list-style: none;
color: black;
margin: 0.5em;
}
iframe::parent {
padding: 0;
margin: 0;
}
iframe {
width: 100%;
height: 750px;
}
#previewFrame {
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;
}
iframe html body {
font-size: 0.1em;
}
.container {
display: flex;
padding-top: 0;
padding-bottom: 0;
}
.container.row {
flex-direction: row;
}
.container.column {
flex-direction: column;
}
h3, p{
padding: 1em;
width: 15em;
}
p.large {
width: auto;
}
table {
border-radius: 5px;
width: 100%;
border-collapse: collapse;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 0.5em;
}
tr:nth-child(even) {
background-color: #dddddd;
}
#searchbar {
display: flex;
flex-direction: row;
align-self: right;
}
ul.breadcrumb {
display: flex;
flex-basis: row;
}
ul.breadcrumb li {
list-style: url("/media/icons/arrow.svg");
margin-left: 2em;
}
ul.breadcrumb li.active {
font-weight: bold;
}
div.coordinates {
display: flex;
flex-direction: row;
}
div.coordinates input[type="text"] {
width: 25em;
}
.sci-name {
font-style: italic;
}
.error {
border: solid red;
border-radius: 5px;
padding: 0.5em;
background-color: rgba(255, 0, 0, 0.4)
}
.sound {
background-color: rgba(0, 255, 0, 0.5);
padding: 1em;
border-radius: 5px;
overflow: auto;
}