diff options
Diffstat (limited to 'src/main/scala/reading/component/index/style/Menu.scala')
-rw-r--r-- | src/main/scala/reading/component/index/style/Menu.scala | 52 |
1 files changed, 17 insertions, 35 deletions
diff --git a/src/main/scala/reading/component/index/style/Menu.scala b/src/main/scala/reading/component/index/style/Menu.scala index dd74039..09f529c 100644 --- a/src/main/scala/reading/component/index/style/Menu.scala +++ b/src/main/scala/reading/component/index/style/Menu.scala @@ -9,28 +9,25 @@ object Menu extends StyleSheet.Inline { import dsl._ val menu = style( - Media.mobile(display.none), + height(100.%%), + zIndex(1), Media.desktop( + backgroundColor(C.englishWalnut.value), color(C.white.value), position.relative, width(280.px) - ) - ) - - val background = style( - Media.desktop( + ), + Media.mobile( + backgroundColor(C.white.value), + color(C.black.value), position.fixed, - width(280.px), - height(100.%%), - backgroundColor(C.englishWalnut.value), - boxShadow := "4px 0px 6px -1px rgba(0, 0, 0, 0.2)" + display.none, + width(100.%%) ) ) - val content = style( - position.relative, - width(100.%%), - height(100.%%) + val show = style( + Media.mobile(display.block) ) val header = style( @@ -44,7 +41,6 @@ object Menu extends StyleSheet.Inline { textTransform.uppercase, fontWeight.bold, letterSpacing(1.px), - Media.desktop(marginBottom(20.px)), Media.mobile(boxShadow := "0px 3px 5px -1px rgba(0, 0, 0, 0.2)") ) @@ -53,28 +49,13 @@ object Menu extends StyleSheet.Inline { marginLeft(20.px) ) - val show = style( - Media.mobile( - display.block, - position.fixed, - top(0.px), - left(0.px), - width(100.%%), - height(100.%%), - zIndex(1), - overflowY.scroll, - backgroundColor(C.white.value), - color(C.black.value) - ) - ) - val empty = style() val groups = style( - Media.mobile( - height :=! "calc(100% - 120px)", - overflowY.auto - ) + overflowY.scroll, + paddingTop(20.px), + Media.desktop(height :=! "calc(100% - 60px)"), + Media.mobile(height :=! "calc(100% - 120px)") ) val filterTitle = style( @@ -155,9 +136,10 @@ object Commons extends StyleSheet.Inline { val footerButton = style( display.flex, - width(50.%%), + flexGrow(1), justifyContent.center, alignItems.center, + height(50.px), margin(5.px), textTransform.uppercase, fontSize(14.px), |