mCaptcha/templates/panel/navbar/mobile.scss

75 lines
1.6 KiB
SCSS
Raw Normal View History

2021-05-07 21:59:19 +03:00
/*
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2021-07-01 20:06:22 +03:00
@import '../../vars';
2021-05-07 21:59:19 +03:00
2021-05-25 18:10:57 +03:00
.secondary-menu {
display: block;
2021-05-07 21:59:19 +03:00
}
2021-07-01 20:06:22 +03:00
.secondary-menu__list {
// position: sticky;
height: 0px;
overflow: hidden;
}
.nav__hamburger-menu {
display: inline-block;
width: 50px;
height: 50px;
padding: 13px;
}
.nav__hamburger-menu:hover {
cursor: grab;
}
.nav__hamburger-menu:hover > span {
color: $green;
}
.nav__hamburger-menu > span {
display: block;
width: 25px;
height: 10px;
border-top: 2px solid #eee;
}
.secondary-menu__logo {
width: 40px;
height: 40px;
}
.secondary-menu__heading {
padding: 10px 5px;
}
.secondary-menu__brand-name {
font-size: 1rem;
font-weight: 700;
}
.nav-toggle:not(:checked) ~ .secondary-menu__list {
height: 0px;
// overflow-y: hidden;
// max-height: 100%;
}
.nav-toggle:checked ~ .secondary-menu__list {
height: 100%;
overflow-y: auto;
2021-05-07 21:59:19 +03:00
}