ctdo.de/css/main.css

189 lines
2.9 KiB
CSS
Raw Normal View History

:root {
--background-color: #193360;
--nav-background-color: #14284c;
--logo-background-color: #0e1e38;
}
2023-01-29 19:45:44 +00:00
* {
word-wrap: break-word;
}
html, body {
padding: 0;
margin: 0;
background-color: var(--background-color);
color: white;
font-family: sans-serif;
line-height: 150%;
}
a {
color: #22bb22 !important;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:visited {
color: #bb66ff !important;
}
a.imgLink div {
position: relative;
text-align: center;
color: white;
}
a.imgLink:hover {
text-decoration: none;
}
a.imgLink div {
position: relative;
text-align: center;
color: white !important;
font-size: 0;
transform: scale(1);
transition: transform .5s;
text-shadow: 2px 2px black;
}
2023-01-29 19:34:22 +00:00
a.imgLink:hover div {
font-size: 200%;
transform: scale(.9);
transition: font-size .5s, transform .5s;
}
a.imgLink div h2 {
position: absolute;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
}
header {
background-color: var(--logo-background-color);
}
nav {
2023-01-29 18:45:51 +00:00
padding: 10px 0 10px 0;
background-color: var(--nav-background-color);
}
2023-01-29 18:45:51 +00:00
nav ul {
list-style: none;
text-align: center;
}
nav ul li {
display: inline-block;
padding: 0 2vw 0 2vw;
font-size: 125%;
}
nav ul li a {
color: white !important;
text-decoration: none;
}
2023-01-29 18:45:51 +00:00
nav ul li a.active {
text-decoration: underline;
2023-01-27 14:30:42 +00:00
text-decoration-style: double;
}
2023-01-29 18:45:51 +00:00
nav ul li a:visited {
color: white !important;
}
.red-text {
color: #DD0000 !important;
}
.green-text {
color: #00DD00 !important;
}
header {
text-align: center;
padding: 10px 0 0 0;
}
header img {
max-width: 200px;
max-height: 200px;
width: 90vw;
margin-bottom: 10px;
}
main {
max-width: 950px;
min-height: 100vh;
height: auto;
width: 90%;
margin: auto;
2023-01-27 14:30:42 +00:00
padding: 10px 0 0 0;
}
footer {
background-color: var(--nav-background-color);
height: 100px;
}
2023-01-27 14:30:42 +00:00
iframe.osm {
width: 500px;
height: 500px;
max-width: 90vw;
max-height: 90vw;
margin: auto;
display: block;
}
div.newBanner {
display: block;
position: fixed;
top: 30px;
left: -40px;
background-color: #DD0000;
text-align: center;
transform: rotateZ(-45deg);
transition: transform .5s;
2023-01-29 19:54:43 +00:00
z-index: 1;
}
div.newBanner:hover {
transform: rotateZ(-45deg) scale(1.4);
transition: transform .5s;
}
div.newBanner a {
color: white !important;
padding: 100px 50px 100px 50px;
}
div.newBanner a:hover {
text-decoration: none;
}
h3.topic {
margin-bottom: 0;
}
p.topic {
margin-top: 0;
}
@media only screen and (max-width: 885px) {
nav ul li {
display: block;
font-size: 200%;
2023-01-29 19:17:42 +00:00
padding: 20px 20px 20px 0;
2023-01-29 18:45:51 +00:00
text-align: right;
}
2023-01-29 19:52:33 +00:00
a.imgLink div {
font-size: 200%;
}
}