hugo-theme-hilfe/src/sass/_mobile.scss
2021-08-12 18:17:49 +02:00

106 lines
1.5 KiB
SCSS

@media screen and (max-width: $sm-breakpoint) {
.gdoc-nav {
margin-left: -$menu-width;
font-size: $font-size-base;
&__control {
display: inline-block;
}
}
.gdoc-header {
.icon {
width: $font-size-24;
height: $font-size-24;
}
}
.gdoc-brand {
font-size: $font-size-24;
&__img {
display: none;
}
}
.gdoc-menu-header {
&__items {
display: none;
}
&__control {
display: inline-block;
}
}
.gdoc-error {
padding: $padding-16 * 6 $padding-16;
.icon {
width: $font-size-96;
height: $font-size-96;
}
&__message {
padding-left: $padding-32;
}
&__line {
padding: $padding-4 0;
}
&__title {
font-size: $font-size-32;
}
}
.gdoc-page__header .breadcrumb,
.hidden-mobile {
display: none;
}
.gdoc-footer {
&__item--row {
width: 100%;
}
}
#menu-control:checked ~ main {
.gdoc-nav nav,
.gdoc-page {
transform: translateX($menu-width);
}
.gdoc-page {
opacity: 0.25;
}
}
#menu-control:checked ~ .gdoc-header .gdoc-nav__control {
.icon.gdoc_menu {
display: none;
}
.icon.gdoc_arrow_back {
display: inline-block;
}
}
#menu-header-control:checked ~ .gdoc-header {
.gdoc-brand__title {
display: none;
}
.gdoc-menu-header {
&__items {
display: inline-block;
}
&__control {
.icon.gdoc_keyborad_arrow_left {
display: none;
}
}
}
}
}