Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorzzossig <zzossig@gmail.com>2020-02-11 04:01:38 +0300
committerzzossig <zzossig@gmail.com>2020-02-11 04:01:38 +0300
commit8fee402235e426295a1faf4fbcb4bc70d8304147 (patch)
treee8391e455b375743fbfa4f90927a285471f57d7b /assets
parent95cf4c1132e50ea0d99be5830005c34b1cd340ec (diff)
navbar menu icon visible when long logo text
Diffstat (limited to 'assets')
-rw-r--r--assets/sass/components/_search.scss3
-rw-r--r--assets/sass/layout/_navigation.scss14
2 files changed, 11 insertions, 6 deletions
diff --git a/assets/sass/components/_search.scss b/assets/sass/components/_search.scss
index 03a7e55..a04f07f 100644
--- a/assets/sass/components/_search.scss
+++ b/assets/sass/components/_search.scss
@@ -347,7 +347,8 @@
@include animation('slide-in-down .5s .25s 1 ease both');
@include themify($themes) {
- color: themed('burger-menu-color');
+ color: themed('burger-menu-color');
+ background-color: themed('navbar-background-color');
@include on-event {
color: themed('link-hover');
}
diff --git a/assets/sass/layout/_navigation.scss b/assets/sass/layout/_navigation.scss
index 653c253..17d5635 100644
--- a/assets/sass/layout/_navigation.scss
+++ b/assets/sass/layout/_navigation.scss
@@ -10,7 +10,7 @@
top: 0;
&[data-dir="rtl"] {
- direction: rtl;
+ direction: rtl;
}
&[data-dir="ltr"] {
@@ -46,7 +46,7 @@
}
@include themify($themes) {
- background-color: themed('navbar-background-color');
+ background-color: themed('navbar-background-color') !important;
@include on-event {
background-color: themed('navbar-menu-hover-background-color');
}
@@ -71,19 +71,22 @@
&__burger {
display: none;
- position: relative;
@include animation('slide-in-down .5s .0s 1 ease both');
@media only screen and (max-width: 769px) {
cursor: pointer;
margin-left: auto;
- position: relative;
height: $grid_navbar_height;
width: 35px;
+ position: absolute;
+ right: 0;
@include flexbox();
@include align-items(center);
@include justify-content(flex-end);
+ @include themify($themes) {
+ background: themed('navbar-background-color');
+ }
span {
@include themify($themes) {
@@ -99,6 +102,7 @@
transition-duration: 86ms;
transition-property: background-color, opacity, transform;
transition-timing-function: ease-out;
+ z-index: z('navbar');
width: 16px;
&:nth-child(1) {
top: calc(50% - 6px);
@@ -198,7 +202,7 @@
font-size: 1rem;
font-family: $title-font;
font-weight: 700;
-
+
@include flexbox();
@include align-items(center);
@include justify-content(center);