From 98f63b22b6a436ba6a3fcf4cb5a656610a2b847f Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Tue, 22 Oct 2019 18:47:58 +0200 Subject: [PATCH] WIP #3053 --- .../resources/assets/images/rendezvous.svg | 36 +++++++---- .../assets/images/teleconsultation.svg | 31 +++++++--- .../assets/styles/components/mmenu.styl | 59 ++++++++++++++++--- 3 files changed, 99 insertions(+), 27 deletions(-) diff --git a/wp-content/themes/CCV/resources/assets/images/rendezvous.svg b/wp-content/themes/CCV/resources/assets/images/rendezvous.svg index f2c1bff..4632889 100644 --- a/wp-content/themes/CCV/resources/assets/images/rendezvous.svg +++ b/wp-content/themes/CCV/resources/assets/images/rendezvous.svg @@ -1,12 +1,26 @@ - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/wp-content/themes/CCV/resources/assets/images/teleconsultation.svg b/wp-content/themes/CCV/resources/assets/images/teleconsultation.svg index a5682b5..1edb948 100644 --- a/wp-content/themes/CCV/resources/assets/images/teleconsultation.svg +++ b/wp-content/themes/CCV/resources/assets/images/teleconsultation.svg @@ -1,10 +1,23 @@ - - - - - - - - - + + + + + + + + + + + + diff --git a/wp-content/themes/CCV/resources/assets/styles/components/mmenu.styl b/wp-content/themes/CCV/resources/assets/styles/components/mmenu.styl index c720810..c4b3f83 100644 --- a/wp-content/themes/CCV/resources/assets/styles/components/mmenu.styl +++ b/wp-content/themes/CCV/resources/assets/styles/components/mmenu.styl @@ -3,7 +3,8 @@ --mm-max-width: 308px #mobile-menu - @apply bg-purple-dark text-white + @apply bg-purple-dark text-white antialiased + font-size: 16px fixed // Submenu header &:after @@ -12,28 +13,72 @@ box-shadow: none border-bottom: 1px solid rgba(#fff, 0.2) - &.mm--main:after - display: none + &.mm--main + // Hide submenu header on root panel + &:after + display: none + + .menu-item + margin-left: 36px .menu-list @apply bg-purple-dark + top: 90px // Space for close button + padding .menu-item @apply bg-purple-dark text-white font-display uppercase - // Submenu arrow (if applicable) + // Menu item divider + &:after + display: none + + // Submenu arrow (if applicable) + .menu-item-has-children &:before opacity: 1 + right: auto + left: -10px + border-width: 0 0 2px 2px // Reverse arrow - // Menu item divider - &:after + // Buttons + .cta-button + a + display: flex + padding-left: 16px + + //img + // height: 20px + + // Sibling selector to add margin above first normal menu item + + .menu-item + margin-top: 1em + + &:nth-of-type(odd) + @apply bg-pink + &:nth-of-type(even) + @apply bg-teal + + // Language options + .locales + @apply font-display uppercase flex mt-6 + margin-left: 56px + + &:before, &:after, a:after display: none + a + width: auto + padding: 0 + + &:not(:last-child) + margin-right: 1.125em + + // Close button #close-menu padding: 0 position: absolute - top: 2.5vw + top: 30px right: @top width: 30px height: @width -- 2.39.5