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 f2fe7f2..be1eb65 100644 --- a/src/arquivos/sass/partials/_header.scss +++ b/src/arquivos/sass/partials/_header.scss @@ -26,43 +26,6 @@ } } - .busca { - display: flex; - align-items: center; - margin: 0; - - legend, - label, - select { - display: none; - } - - .fulltext-search-box { - flex: 1; - height: 23px; - padding: 0; - border: 0; - background: transparent; - outline: 0; - color: $white-500; - font-size: 10px; - line-height: 12px; - } - - .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 b34272c..6cefaaf 100644 --- a/src/arquivos/sass/partials/_menu.scss +++ b/src/arquivos/sass/partials/_menu.scss @@ -11,20 +11,84 @@ } } + .menu-header { + &__top-wrapper { + display: flex; + align-items: center; + justify-content: space-between; + padding: 16px; + } + + &__text { + display: flex; + align-items: center; + color: $gray-200; + font-size: 12px; + line-height: 15px; + + i { + margin-right: 10px; + } + } + + &__close-button { + padding: 0; + border: 0; + outline: 0; + background: transparent; + } + + &__search-box { + background: $black-500; + + .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: translate(-100%); + width: 100%; + height: 100%; + background: $white-500; + } &__departments { display: flex; - height: 100%; margin: 0; + + @include mq(lg, max) { + flex: 1; + flex-direction: column; + 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 { font-weight: 700; @@ -46,6 +110,15 @@ line-height: 15px; color: $white-500; + @include mq(lg, max) { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + padding: 20px 16px; + color: $black-500; + } + @include mq(lg, min) { &::after { content: attr(title); @@ -57,20 +130,47 @@ } } } + + &__account-link { + display: flex; + align-items: center; + justify-content: center; + height: 64px; + font-size: 10px; + line-height: 12px; + color: $white-500; + background: $black-500; + + i { + margin-right: 16px; + } + } } .submenu { position: absolute; - top: calc(100% + 32px); - left: 0; - z-index: map-get($z-index, Level-4); width: 100%; - padding: 30px 0 43px; - background: rgba($white-500, 0.95); - box-shadow: 0px 4px 4px rgba($black-500, 0.02); - opacity: 0; - pointer-events: none; - transition: all 0.2s ease-in-out; + + @include mq(lg, max) { + top: 0; + left: 100%; + height: 100%; + overflow: auto; + padding-bottom: 34px; + background: $white-500; + } + + @include mq(lg, min) { + top: calc(100% + 32px); + left: 0; + z-index: map-get($z-index, Level-4); + padding: 30px 0 43px; + background: rgba($white-500, 0.95); + box-shadow: 0px 4px 4px rgba($black-500, 0.02); + opacity: 0; + pointer-events: none; + transition: all 0.2s ease-in-out; + } &::before { content: ""; @@ -82,15 +182,48 @@ background: transparent; } + .container { + @include mq(lg, max) { + padding: 0 16px; + } + } + + &__return-button { + display: flex; + align-items: center; + width: 100%; + margin-bottom: 34px; + padding: 16px; + border: 0; + border-bottom: 1px solid $gray-100; + outline: 0; + text-align: left; + background: transparent; + + i { + margin-right: 8px; + } + } + &__title { margin: 0 0 8px; font-size: 20px; line-height: 24px; + + @include mq(lg, max) { + font-size: 12px; + line-height: 14px; + text-decoration-line: underline; + color: $blue-500; + } } &__categories-wrapper { - display: flex; - margin-bottom: 8px; + margin-bottom: 16px; + @include mq(lg, min) { + margin-bottom: 8px; + display: flex; + } } &__categories { diff --git a/src/arquivos/sass/partials/_search.scss b/src/arquivos/sass/partials/_search.scss new file mode 100644 index 0000000..237d97b --- /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; + padding: 0; + border: 0; + background: transparent; + outline: 0; + color: $white-500; + font-size: 10px; + line-height: 12px; + } + + .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 ac09c70..bceccc5 100644 --- a/src/arquivos/sass/utils/_variaveis.scss +++ b/src/arquivos/sass/utils/_variaveis.scss @@ -13,6 +13,9 @@ $font-height: 1.5; $black-500: #000000; $white-500: #ffffff; $blue-500: #00c8ff; + +$gray-100: #e0e0e0; +$gray-200: #828282; $gray-500: #333333; // universal diff --git a/src/arquivos/sprite/close-menu-icon.png b/src/arquivos/sprite/close-menu-icon.png new file mode 100644 index 0000000..b4cf54d 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..a28f7c8 Binary files /dev/null and b/src/arquivos/sprite/lock-icon.png differ diff --git a/src/arquivos/sprite/menu-left-arrow-icon.png b/src/arquivos/sprite/menu-left-arrow-icon.png new file mode 100644 index 0000000..82a786c Binary files /dev/null and b/src/arquivos/sprite/menu-left-arrow-icon.png differ diff --git a/src/arquivos/sprite/vector-mobile.png b/src/arquivos/sprite/vector-mobile.png new file mode 100644 index 0000000..e90833c Binary files /dev/null and b/src/arquivos/sprite/vector-mobile.png differ diff --git a/src/controles-customizados/menuPrincipal.html b/src/controles-customizados/menuPrincipal.html index e4c4287..431d883 100644 --- a/src/controles-customizados/menuPrincipal.html +++ b/src/controles-customizados/menuPrincipal.html @@ -1,40 +1,64 @@