diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-07-08 07:20:10 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-07-08 07:20:10 +0300 |
commit | 99d7d814c9d045d4f47fdac0a5446c45718bc2af (patch) | |
tree | d9f53b925a6feb0fdd7356a95cd0af2907f3d6a1 | |
parent | 67cd99fc685a7266d9c214f7b7ea2b1e1b678d66 (diff) |
Updated hamburger menu
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | static/css/khata.css | 84 |
2 files changed, 47 insertions, 39 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9c399f4..a468577 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,6 @@ <div class="header"> <nav id="main-nav" class="standard"> - <div> + <div class="hamburger-icon"> <i class="hamburger fas fa-bars" onclick="toggleDisplay(this.parentNode.nextElementSibling)" diff --git a/static/css/khata.css b/static/css/khata.css index df01952..e00c0ce 100644 --- a/static/css/khata.css +++ b/static/css/khata.css @@ -49,10 +49,18 @@ a, .all-menu { display: flex; } -.hamburger { +.hamburger-icon { + text-align: right; display: none; - cursor: pointer; +} +.hamburger { + font-size: 1.5em; color: white !important; + cursor: pointer; +} +.hamburger:active { + color: #2f16ac !important; + background-color: white; } .main-menu { font-variant: small-caps; @@ -126,42 +134,6 @@ a, float: right; background-color: #dbdbdb; } -@media only screen and (max-width: 1050px) { - .grid-container { - grid-template-columns: repeat(auto-fill, calc((100% - 50px) / 2)); - } -} -@media only screen and (max-width: 750px) { - .grid-container { - grid-template-columns: repeat(auto-fill, 100%); - } - .main-menu { - margin-right: 0px; - margin-top: 5px; - margin-bottom: 5px; - } - .profile-info { - width: 100%; - margin-top: 30px; - margin-bottom: 30px; - flex-wrap: wrap; - max-width: auto; - min-width: auto; - } - .about-container { - min-height: auto; - width: 90vw; - margin-left: auto; - margin-right: auto; - } - .hamburger { - display: block; - font-size: 1.2em; - } - .TableOfContents { - float: initial; - } -} .metadata-value { font-size: 0.8em; } @@ -218,3 +190,39 @@ a, justify-content: end; align-items: center; } + +@media only screen and (max-width: 1050px) { + .grid-container { + grid-template-columns: repeat(auto-fill, calc((100% - 50px) / 2)); + } +} +@media only screen and (max-width: 750px) { + .grid-container { + grid-template-columns: repeat(auto-fill, 100%); + } + .main-menu { + margin-right: 0px; + margin-top: 5px; + margin-bottom: 5px; + } + .profile-info { + width: 100%; + margin-top: 30px; + margin-bottom: 30px; + flex-wrap: wrap; + max-width: auto; + min-width: auto; + } + .about-container { + min-height: auto; + width: 90vw; + margin-left: auto; + margin-right: auto; + } + .hamburger-icon { + display: block; + } + .TableOfContents { + float: initial; + } +}
\ No newline at end of file |