computerschaf/static/styles.css

392 lines
5.1 KiB
CSS
Raw Permalink Normal View History

2023-02-10 00:47:59 +01:00
*, *:before, *:after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 7em;
height: 100%;
}
body {
display: flex;
flex-direction: column;
margin: 0;
min-height: 100%;
2023-02-22 15:07:16 +01:00
font-size: 1.25em;
2023-02-27 23:59:39 +01:00
font-family: LatoLatin, Lato, Roboto, Noto, sans-serif;
2023-02-22 15:07:16 +01:00
text-align: justify;
2023-02-10 00:47:59 +01:00
}
header, main, footer {
display: flex;
flex-direction: column;
align-items: center;
}
main {
flex-grow: 1;
}
2023-02-22 15:07:16 +01:00
.header-contact {
background: #DD8033;
}
.header-nav, footer {
background: #65bb50;
}
.header-contact {
width: 100%;
}
2023-02-10 00:47:59 +01:00
.header-content, .main-content, .footer-content {
max-width: 1000px;
width: 100%;
}
.header-content {
display: flex;
flex-direction: row;
align-items: center;
margin: 0 auto;
2023-02-22 15:07:16 +01:00
padding: 0.2em 0.3em;
2023-02-10 00:47:59 +01:00
}
.header-nav .header-content {
gap: 0.8em;
font-size: 1.2em;
}
.header-contact .header-content {
gap: 1.2em;
line-height: 1.6em;
justify-content: center;
}
.header-right {
flex-grow: 1;
text-align: right;
margin-right: 10px;
display: flex;
flex-direction: row;
justify-content: right;
}
.header-spacer {
flex-grow: 1;
min-width: 1em;
}
.header-title {
font-size: 1.3em;
display: inline-flex;
align-items: center;
2023-02-14 02:39:54 +01:00
font-weight: 600;
2023-02-22 22:58:53 +01:00
margin: 0.2em 0;
2023-02-10 00:47:59 +01:00
}
.header-nav {
width: 100%;
position: sticky;
z-index: 100;
top: 0;
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.15);
}
.header-contact {
width: 100%;
2023-02-22 15:07:16 +01:00
}
.text-icon {
height: 1em;
width: auto;
vertical-align: middle;
2023-02-10 00:47:59 +01:00
}
a {
text-decoration: none;
}
a, a:visited, a:hover, a:focus {
color: inherit;
}
a:hover {
text-decoration: underline;
}
.header-title:hover, .service-link:hover, .social-media:hover {
2023-02-10 00:47:59 +01:00
text-decoration: none;
}
.service-icon:hover {
filter: drop-shadow( 0px 0px 3px rgba(0, 0, 0, .7));
}
2023-02-27 22:19:17 +01:00
.logo-img {
2023-02-14 02:39:54 +01:00
height: 2em;
2023-02-22 22:58:53 +01:00
width: auto;
2023-02-14 02:39:54 +01:00
margin-right: 0.3em;
2023-02-10 00:47:59 +01:00
}
.lang-item {
margin: 0 0.2em;
}
h1, h2, h3, h4 {
text-align: center;
}
2023-03-09 21:10:43 +01:00
.intro-text {
margin-bottom: 2em;
text-align: center;
font-size: 1.2em;
font-weight: 500;
}
2023-02-10 00:47:59 +01:00
.overview {
display: flex;
flex-direction: row;
width: 100%;
justify-content: space-between;
text-align: center;
}
.overview > * {
2023-02-22 15:07:16 +01:00
width: 22%;
2023-02-10 00:47:59 +01:00
}
.service-link {
display: flex;
flex-direction: column;
}
.service-icon {
width: 100%;
2023-02-22 15:07:16 +01:00
height: auto;
2023-02-10 00:47:59 +01:00
}
.service-name {
font-weight: bold;
font-size: 1.2em;
margin-bottom: 0.4em;
2023-02-22 15:07:16 +01:00
margin-top: 0.9em;
2023-02-10 00:47:59 +01:00
}
.service:hover > .service-inner {
height: 2.5em;
}
section {
background-color: #FFFFFF;
width: 100%;
}
section:nth-child(even) {
background-color: #F5F5F5;
}
2023-02-14 02:39:54 +01:00
.section-inner {
2023-02-10 00:47:59 +01:00
max-width: 1000px;
width: 100%;
margin: auto;
padding: 2.5em 0.5em;
}
2023-02-14 02:39:54 +01:00
.section-inner > *:first-child {
margin-top: 0;
}
2023-02-22 15:07:16 +01:00
.split-section {
display: flex;
flex-direction: row;
gap: 1.5em;
}
2023-02-22 23:28:36 +01:00
.split-section-reverse {
flex-direction: row-reverse;
}
2023-02-22 15:07:16 +01:00
.split-section-text {
width: 70%;
}
.split-section-text > *:first-child {
margin-top: 0;
}
.split-section-text > *:last-child {
margin-bottom: 0;
}
.split-section-img {
width: 30%;
display: flex;
flex-direction: column;
justify-content: center;
}
2023-02-27 23:08:41 +01:00
.split-section-img a {
2023-02-28 00:38:19 +01:00
max-height: 100%;
2023-02-27 23:08:41 +01:00
}
2023-02-22 15:07:16 +01:00
.split-section-img img {
width: 100%;
height: auto;
2023-02-28 00:38:19 +01:00
display: block;
2023-02-22 15:07:16 +01:00
}
2023-02-10 00:47:59 +01:00
footer {
padding: 2em 0.5em;
box-shadow: 0px -3px 3px rgba(0, 0, 0, 0.15);
}
.footer-content {
display: flex;
flex-direction: row;
gap: 10px;
}
.footer-content > * {
width: 30%;
flex-grow: 1;
text-align: center;
}
footer h2 {
margin-top: 0;
}
.footer-sep {
width: 0;
flex-grow: 0;
border-left: 0.2em solid #F5F5F5;
}
2023-02-22 15:07:16 +01:00
.social-media {
display: inline-flex;
margin: 0 0.2em;
}
.social-icon {
height: 3em;
width: auto;
}
2023-02-10 00:47:59 +01:00
.credits {
font-size: 0.85em;
}
.privacy h2, .privacy h3, .privacy h3 {
text-align: initial;
}
#map {
height: 400px;
z-index: 1;
}
.zone-heading {
text-align: left;
margin-top: 1em;
margin-bottom: 0.3em;
}
.legend {
width: fit-content;
margin: 0.3em auto;
}
.legend-item {
display: inline-flex;
margin: 0 0.3em;
align-items: center;
}
.legend-square {
display: inline-block;
height: 1em;
width: 1em;
margin-right: 0.2em;
border-radius: 0.2em;
border: 1px solid #868686;
}
.green {
background-color: #3ef06e;
}
.blue {
background-color: #3388ff;
}
.orange {
background-color: #ffeb0a;
}
2023-02-10 00:47:59 +01:00
@media only screen and (max-width:768px) {
.header-content {
flex-direction: column;
align-items: start;
}
2023-02-22 15:07:16 +01:00
2023-02-10 00:47:59 +01:00
.header-nav .header-content {
2023-02-22 22:58:53 +01:00
gap: 0.15em;
2023-02-10 00:47:59 +01:00
}
2023-02-22 15:07:16 +01:00
2023-02-10 00:47:59 +01:00
.header-contact .header-content {
gap: initial;
}
2023-02-22 15:07:16 +01:00
2023-02-22 22:58:53 +01:00
.nav-img {
height: 1.5em;
}
2023-02-10 00:47:59 +01:00
.overview {
display: grid;
grid-template-columns: 1fr 1fr;
2023-02-22 22:58:53 +01:00
gap: 1em;
2023-02-10 00:47:59 +01:00
}
2023-02-22 15:07:16 +01:00
.split-section {
flex-direction: column;
gap: 2em;
}
.split-section-text {
width: auto;
}
2023-02-22 23:28:36 +01:00
.split-section-reverse {
2023-02-27 23:08:41 +01:00
flex-direction: column;
2023-02-22 23:28:36 +01:00
}
2023-02-22 15:07:16 +01:00
.split-section-img {
height: 11em;
width: auto;
flex-direction: row;
}
2023-02-28 00:38:19 +01:00
.split-section-img a {
height: 100%;
}
2023-02-22 15:07:16 +01:00
.split-section-img img {
height: 100%;
width: auto;
}
2023-02-10 00:47:59 +01:00
.footer-content {
flex-direction: column;
}
2023-02-22 15:07:16 +01:00
2023-02-10 00:47:59 +01:00
.footer-content > * {
width: initial;
}
2023-02-22 15:07:16 +01:00
2023-02-10 00:47:59 +01:00
.overview > * {
width: initial;
}
}