hugo-theme-hilfe/src/sass/_mobile.scss

116 lines
1.7 KiB
SCSS
Raw Normal View History

2020-11-09 22:06:06 +01:00
@media screen and (max-width: $sm-breakpoint) {
.gdoc-nav {
margin-left: -$menu-width;
font-size: $font-size-base;
&__control {
display: inline-block;
}
}
.gdoc-header {
svg.gdoc-icon {
2021-05-21 13:31:19 +02:00
width: $font-size-24;
height: $font-size-24;
2020-11-09 22:06:06 +01:00
}
}
.gdoc-brand {
2021-05-21 13:31:19 +02:00
font-size: $font-size-24;
line-height: $font-size-24;
2020-11-09 22:06:06 +01:00
&__img {
display: none;
}
}
.gdoc-menu-header {
&__items {
display: none;
}
&__control,
&__home {
display: flex;
}
}
2020-11-09 22:06:06 +01:00
.gdoc-error {
padding: $padding-96 $padding-16;
2020-11-09 22:06:06 +01:00
svg.gdoc-icon {
2021-05-21 13:31:19 +02:00
width: $font-size-96;
height: $font-size-96;
2020-11-09 22:06:06 +01:00
}
&__message {
padding-left: $padding-32;
}
&__line {
padding: $padding-4 0;
}
&__title {
2021-05-21 13:31:19 +02:00
font-size: $font-size-32;
2020-11-09 22:06:06 +01:00
}
}
.gdoc-page__header .breadcrumb,
.hidden-mobile {
display: none;
}
2021-11-13 13:57:06 +01:00
.flex-mobile-column {
flex-direction: column;
2022-07-11 20:46:01 +02:00
&.gblog-columns {
margin: $padding-32 0;
}
.gblog-columns__content {
min-width: auto;
margin: 0;
}
2021-11-13 13:57:06 +01:00
}
2020-11-09 22:06:06 +01:00
#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 {
svg.gdoc-icon.gdoc_menu {
2020-11-09 22:06:06 +01:00
display: none;
}
svg.gdoc-icon.gdoc_arrow_back {
2020-11-09 22:06:06 +01:00
display: inline-block;
}
}
#menu-header-control:checked ~ .gdoc-header {
.gdoc-brand {
display: none;
}
.gdoc-menu-header {
&__items {
display: flex;
}
&__control {
svg.gdoc-icon.gdoc_keyboard_arrow_left {
display: none;
}
}
}
}
2020-11-09 22:06:06 +01:00
}