computerschaf/static/styles_mobile.css
2023-02-10 00:47:59 +01:00

234 lines
3.1 KiB
CSS

*, *: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;
font-family: Lato, Roboto, sans-serif;
}
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: column;
align-items: start;
margin: 0 auto;
padding: 5px 8px;
}
.header-nav .header-content {
font-size: 1.2em;
}
.header-contact .header-content {
line-height: 1.6em;
}
.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;
}
.header-nav {
width: 100%;
background-color: #77bc65;
position: sticky;
z-index: 100;
top: 0;
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.15);
}
.header-contact {
width: 100%;
background-color: #D6701C;
}
a {
text-decoration: none;
}
a, a:visited, a:hover, a:focus {
color: inherit;
}
a:hover {
text-decoration: underline;
}
.service-link:hover {
text-decoration: none;
}
.service-icon:hover {
filter: drop-shadow( 0px 0px 3px rgba(0, 0, 0, .7));
}
.nav-img {
width: 100px;
height: 60px;
}
/*
.link-button {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 10px;
padding: 10px 15px;
}
*/
.lang-item {
margin: 0 0.2em;
}
h1, h2, h3, h4 {
text-align: center;
}
.overview {
display: grid;
grid-template-columns: 1fr 1fr;
width: 100%;
justify-content: space-between;
text-align: center;
}
.overview > * {
}
.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 {
display: flex;
aspect-ratio: 1;
width: 32%;
border-radius: 10px;
background-size: cover;
background-position: center;
justify-content: center;
align-items: center;
font-size: 1.5em;
text-decoration: none;
color: inherit;
}
.service-inner {
display: flex;
width: 100%;
height: 100%;
background: #e5f1ffcf;
justify-content: center;
align-items: center;
font-weight: 500;
transition: 1s;
}
*/
.service:hover > .service-inner {
height: 2.5em;
}
section {
background-color: #FFFFFF;
width: 100%;
}
section:nth-child(even) {
background-color: #F5F5F5;
}
section > * {
max-width: 1000px;
width: 100%;
margin: auto;
padding: 2.5em 0.5em;
}
footer {
background: #77bc65;
padding: 2em 0.5em;
box-shadow: 0px -3px 3px rgba(0, 0, 0, 0.15);
}
.footer-content {
display: flex;
flex-direction: column;
gap: 10px;
}
.footer-content > * {
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;
}