diff --git a/src/arquivos/sass/main.scss b/src/arquivos/sass/main.scss index d75e9b2..4275639 100644 --- a/src/arquivos/sass/main.scss +++ b/src/arquivos/sass/main.scss @@ -18,6 +18,7 @@ @import "./partials/header"; @import "./partials/menu"; +@import "./partials/search"; @import "./partials/barraDeVantagens"; @import "./partials/footer"; @import "./partials/breadcrumb"; diff --git a/src/arquivos/sass/partials/_header.scss b/src/arquivos/sass/partials/_header.scss index d770650..44f480f 100644 --- a/src/arquivos/sass/partials/_header.scss +++ b/src/arquivos/sass/partials/_header.scss @@ -27,43 +27,6 @@ } } - .busca { - display: flex; - align-items: center; - margin: 0; - - legend, - label, - select { - display: none; - } - - .fulltext-search-box { - flex: 1; - height: 23px; - outline: 0; - border: 0; - padding: 0; - font-size: 10px; - line-height: 12px; - background: transparent; - color: $white; - } - - .btn-buscar { - width: 23px; - height: 23px; - padding: 0; - border: 0; - outline: 0; - font-size: 0; - background-color: transparent; - - @extend .sprite; - @extend .sprite-search-icon; - } - } - .user-items { display: flex; align-items: center; diff --git a/src/arquivos/sass/partials/_menu.scss b/src/arquivos/sass/partials/_menu.scss index 291f22d..ebac2a9 100644 --- a/src/arquivos/sass/partials/_menu.scss +++ b/src/arquivos/sass/partials/_menu.scss @@ -13,21 +13,87 @@ } } + .menu-header { + + &__top-wrapper { + display: flex; + align-items: center; + justify-content: space-between; + padding: 16px; + } + + &__text { + display: flex; + align-items: center; + color: $gray-200; + line-height: 15px; + font-size: 12px; + + i { + margin-right: 10px; + } + } + + &__close-button { + padding: 0; + border: 0; + outline: 0; + + } + + &__search-box { + background: $black; + + .busca { + padding: 16px; + } + } + } + .main-menu { height: 100%; + @include mq(lg, max) { + display: flex; + flex-direction: column; + position: fixed; + top: 0; + left: 0; + z-index: map-get($z-index, level-5); + transform: translateX(- 100%); + width: 100%; + height: 100%; + background: $white; + } + &__departments { display: flex; margin: 0; - height: 100%; + + @include mq(lg, max) { + flex-direction: column; + flex: 1; + position: relative; + overflow: hidden auto; + } + + @include mq(lg, min) { + height: 100%; + } } &__department { display: flex; align-items: center; - margin-right: 40px; + + @include mq(lg, max) { + border-bottom: 1px solid $gray-100; + } @include mq(lg, min) { + + margin-right: 40px; + &:hover { .main-menu__department__link { color: $blue; @@ -47,6 +113,15 @@ font-size: 12px; line-height: 15px; color: $white; + display: flex; + align-items: center; + justify-content: space-between; + + @include mq(lg, max) { + width: 100%; + padding: 20px 16px; + color: $black; + } @include mq(lg, min) { &::after { @@ -61,20 +136,51 @@ } } + + &__account-link { + display: flex; + align-items: center; + justify-content: center; + background: $black; + height: 64px; + line-height: 12px; + font-size: 10px; + color: $white; + + i { + margin-right: 16px; + } + + } } .submenu { position: absolute; - top: calc(100% + 32px); - left: 0; width: 100%; - padding: 30px 0 43px; - z-index: map-get($z-index, level-4); - background: rgba($white, 0.95); - box-shadow: 0px 4px 4px rgba($black, 0.02); - opacity: 0; - pointer-events: none; - transition: all 0.2s ease-in-out; + + @include mq(lg, max) { + background: $white; + top: 0; + left: 100%; + height: 100%; + overflow: auto; + padding-bottom: 34px; + + } + + @include mq(lg, min) { + position: absolute; + top: calc(100% + 32px); + left: 0; + padding: 30px 0 43px; + z-index: map-get($z-index, level-4); + background: rgba($white, 0.95); + box-shadow: 0px 4px 4px rgba($black, 0.02); + opacity: 0; + pointer-events: none; + transition: all 0.2s ease-in-out; + } + &::before { content: ''; @@ -86,15 +192,51 @@ background: transparent; } + .container { + @include mq(lg, max) { + padding: 0 16px; + } + } + + &__return-button { + display: flex; + align-items: center; + width: 100%; + margin-bottom: 34px; + padding: 0; + border: solid $gray-100; + border-width: 0 0 1px 0; + outline: 0; + background: transparent; + text-align: left; + padding: 16px; + + i { + margin-right: 8px; + } + + } + &__title { line-height: 24px; font-size: 20px; margin: 0 0 8px; + + @include mq(lg, max) { + text-decoration: underline; + line-height: 14px; + font-size: 12px; + color: $blue; + } } &__categories-wrapper { - display: flex; - margin-bottom: 8px; + margin-bottom: 16px; + + @include mq(lg, min) { + display: flex; + margin-bottom: 8px; + } } &__categories { diff --git a/src/arquivos/sass/partials/_search.scss b/src/arquivos/sass/partials/_search.scss new file mode 100644 index 0000000..d9ca931 --- /dev/null +++ b/src/arquivos/sass/partials/_search.scss @@ -0,0 +1,36 @@ +.busca { + display: flex; + align-items: center; + margin: 0; + + legend, + label, + select { + display: none; + } + + .fulltext-search-box { + flex: 1; + height: 23px; + outline: 0; + border: 0; + padding: 0; + font-size: 10px; + line-height: 12px; + background: transparent; + color: $white; + } + + .btn-buscar { + width: 23px; + height: 23px; + padding: 0; + border: 0; + outline: 0; + font-size: 0; + background-color: transparent; + + @extend .sprite; + @extend .sprite-search-icon; + } +} diff --git a/src/arquivos/sass/utils/_variaveis.scss b/src/arquivos/sass/utils/_variaveis.scss index c6cebb2..e8129ca 100644 --- a/src/arquivos/sass/utils/_variaveis.scss +++ b/src/arquivos/sass/utils/_variaveis.scss @@ -9,6 +9,8 @@ $black: #000; $white: #fff; $blue: #00c8ff; $gray: #333; +$gray-100: #e0e0e0; +$gray-200: #828282; // Grid breakpoints diff --git a/src/arquivos/sprite/close-menu-icon.png b/src/arquivos/sprite/close-menu-icon.png new file mode 100644 index 0000000..adb1940 Binary files /dev/null and b/src/arquivos/sprite/close-menu-icon.png differ diff --git a/src/arquivos/sprite/lock-icon.png b/src/arquivos/sprite/lock-icon.png new file mode 100644 index 0000000..cc8c56c Binary files /dev/null and b/src/arquivos/sprite/lock-icon.png differ diff --git a/src/arquivos/sprite/menu-mobile-arrow.png b/src/arquivos/sprite/menu-mobile-arrow.png new file mode 100644 index 0000000..f81c134 Binary files /dev/null and b/src/arquivos/sprite/menu-mobile-arrow.png differ diff --git a/src/arquivos/sprite/submenu-back-arrow.png b/src/arquivos/sprite/submenu-back-arrow.png new file mode 100644 index 0000000..b3ec0c8 Binary files /dev/null and b/src/arquivos/sprite/submenu-back-arrow.png differ diff --git a/src/controles-customizados/menuPrincipal.html b/src/controles-customizados/menuPrincipal.html index 0af4a1e..acbfc03 100644 --- a/src/controles-customizados/menuPrincipal.html +++ b/src/controles-customizados/menuPrincipal.html @@ -1,11 +1,32 @@