diff --git a/sass/css/header.scss b/sass/css/header.scss index fe3e8a1..652675e 100644 --- a/sass/css/header.scss +++ b/sass/css/header.scss @@ -37,8 +37,58 @@ header { text-decoration: none; } +@media (prefers-color-scheme: light) { + .header-menu-phone { + background-color: white; + } +} + @media (prefers-color-scheme: dark) { #header-menu a { color: white; } + + .header-menu-phone { + background-color: black; + } +} + +@media (min-width: 768px) { + .phone-only { + display: none; + } +} + +@media (max-width: 767px) { + .header-menu-phone { + position: absolute; + top: 0; + left: 0; + display: flex; + flex-direction: column; + gap: 1em; + padding: 2em; + } + + .phone-hidden { + display: none; + } +} + +.hamburger-menu { + font-size: 1.5em; + margin: 0.25em; + font-family: LunaSans; + border: none; + background-color: transparent; + cursor: pointer; + opacity: 65%; +} + +.hamburger-menu:hover, .hamburger-menu:focus { + opacity: 100%; +} + +.hamburger-menu > summary { + list-style: none; } diff --git a/templates/base.html b/templates/base.html index ca50805..7ffebeb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,13 +28,31 @@

Librezo

{% block body %}{% endblock body %}