hugo_idunn/static/css/media-queries.css

72 lines
1.2 KiB
CSS

/******************* Main layout *******************/
@media only screen and (max-width: 320px) {
html {
font-size: smaller;
}
}
@media screen and (max-width: 768px) {
.post {
margin-bottom: calc(-1 * var(--footer-height-block));
}
.post_body,
.post_header {
padding: 0 1em;
width: 100%;
}
.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;
padding-left: 0;
}
.section {
width: 100%;
padding: 1em 1em;
}
}
/******************* Navbar Menu *******************/
@media screen and (min-width: 768px) {
#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;
}
}