computerschaf/static/styles.css

271 lines
3.6 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%;
font-size: 20px;
2023-02-14 02:39:54 +01:00
font-family: Lato, Roboto, Noto, sans-serif;
2023-02-10 00:47:59 +01:00
}
header, main, footer {
display: flex;
flex-direction: column;
align-items: center;
}
main {
flex-grow: 1;
}
.header-content, .main-content, .footer-content {
max-width: 1000px;
width: 100%;
}
.header-content {
display: flex;
flex-direction: row;
align-items: center;
margin: 0 auto;
padding: 5px 8px;
}
.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-10 00:47:59 +01:00
}
.header-nav {
width: 100%;
2023-02-14 02:39:54 +01:00
background-color: #65bb50;
2023-02-10 00:47:59 +01:00
position: sticky;
z-index: 100;
top: 0;
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.15);
}
.header-contact {
width: 100%;
2023-02-14 02:39:54 +01:00
background-color: #DD8033;
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;
}
.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));
}
.nav-img {
2023-02-14 02:39:54 +01:00
width: 2em;
height: 2em;
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;
}
.overview {
display: flex;
flex-direction: row;
width: 100%;
justify-content: space-between;
text-align: center;
}
.overview > * {
width: 24%;
}
.service-link {
display: flex;
flex-direction: column;
}
.service-icon {
width: 100%;
}
.service-name {
font-weight: bold;
font-size: 1.2em;
margin-bottom: 0.4em;
}
.service:hover > .service-inner {
height: 2.5em;
}
2023-02-22 11:14:05 +01:00
#map{
height: 400px;
z-index: 1;
}
.legend{
width: fit-content;
margin: 0 auto;
}
.legend > *{
vertical-align: middle;
}
.square{
display: inline-block;
height: 20px;
width: 20px;
border: black solid 1px;
margin-right: 3px;
margin-left: 3px;
}
.green{
background-color: #3ef06e;
}
.blue{
background-color: #3388ff;
}
.orange{
background-color: #ffeb0a;
}
2023-02-10 00:47:59 +01:00
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-10 00:47:59 +01:00
footer {
2023-02-14 02:39:54 +01:00
background: #65bb50;
2023-02-10 00:47:59 +01:00
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;
}
.credits {
font-size: 0.85em;
}
.privacy h2, .privacy h3, .privacy h3 {
text-align: initial;
}
@media only screen and (max-width:768px) {
.header-content {
flex-direction: column;
align-items: start;
}
.header-nav .header-content {
gap: initial;
}
.header-contact .header-content {
gap: initial;
}
.overview {
display: grid;
grid-template-columns: 1fr 1fr;
}
.footer-content {
flex-direction: column;
}
.footer-content > * {
width: initial;
}
.overview > * {
width: initial;
}
}