From 285b1d88bc08bf7073eb5d83cc28ae7e0253f9fe Mon Sep 17 00:00:00 2001 From: Kombie Date: Mon, 14 Jan 2019 18:22:39 +0000 Subject: [PATCH] [feature] add menu close button --- css/menu.css | 27 +++++++++++++++++++++++++++ index.html | 27 ++++++++++++++++----------- js/menu.js | 5 +++++ 3 files changed, 48 insertions(+), 11 deletions(-) diff --git a/css/menu.css b/css/menu.css index 4fefee95..727ef57d 100644 --- a/css/menu.css +++ b/css/menu.css @@ -22,10 +22,19 @@ } .menu-nav { + display: flex; + flex-direction: column-reverse; +} + +.menu-nav-area { display: flex; flex-direction: column; } +.menu-nav-area-grow { + flex-grow: 1; +} + .menu-nav:not(:last-child) { margin: 0; } @@ -59,6 +68,13 @@ border-bottom: 0; } +.menu-close { + margin: 0; + padding-top: 1.25em; + padding-bottom: 1.25em; + border-radius: 0; +} + .menu-nav-button { margin: 0; padding-top: 1.5em; @@ -66,6 +82,13 @@ border-radius: 0; } +.menu-nav-button [class^="icon-"], +.menu-nav-button [class*=" icon-"] { + line-height: 1; + padding-top: 1.5em; + padding-bottom: 1.5em; +} + .menu-nav-button.active { background-color: var(--gray-04); color: var(--white); @@ -80,6 +103,10 @@ flex-direction: row; } + .menu-nav-area { + flex-direction: row; + } + .menu-content-area { grid-template-columns: repeat(2, 1fr); } diff --git a/index.html b/index.html index 2ae8ed69..957e449b 100644 --- a/index.html +++ b/index.html @@ -88,17 +88,22 @@