hugo_idunn/static/css/media-queries.css

72 lines
1.2 KiB
CSS
Raw Normal View History

2020-04-27 16:49:21 +02:00
/******************* Main layout *******************/
2020-04-28 08:10:37 +02:00
@media only screen and (max-width: 320px) {
html {
font-size: smaller;
}
}
2020-04-27 16:49:21 +02:00
@media screen and (max-width: 768px) {
.post {
margin-bottom: calc(-1 * var(--footer-height-block));
}
2020-04-28 08:10:37 +02:00
.post_body,
.post_header {
padding: 0 1em;
width: 100%;
2020-04-27 16:49:21 +02:00
}
.post:after {
height: var(--footer-height-block);
}
.footer {
height: var(--footer-height-block);
padding: 1em 0;
}
.footer address {
display: block;
}
.footer p {
line-height: 2em;
}
.front-screen {
margin-left: 1em;
margin-right: 1em;
2020-04-27 16:49:21 +02:00
padding-left: 0;
}
.section {
width: 100%;
padding: 1em 1em;
}
}
/******************* Navbar Menu *******************/
2020-04-27 23:17:53 +02:00
@media screen and (min-width: 768px) {
2020-04-27 16:49:21 +02:00
#navigation-list {
position: relative;
float: right;
top: 0;
max-height: none;
visibility: visible;
opacity: 100;
width: auto;
border: none;
font-size: 1em;
margin-top: 0;
}
#navigation-list .navigation-item {
display: inline-block;
line-height: 4rem;
}
#navigation-list .navigation-item a,
#navigation-list .navigation-item span {
line-height: 1rem;
}
#menu-toggle:checked + label + ul {
visibility: visible;
opacity: 1;
}
#navigation .menu-button {
display: none;
}
}