diff --git a/src/arquivos/sass/partials/_header.scss b/src/arquivos/sass/partials/_header.scss index 798a37b..f744caf 100644 --- a/src/arquivos/sass/partials/_header.scss +++ b/src/arquivos/sass/partials/_header.scss @@ -1,4 +1,5 @@ .page-header { + position: relative; padding: 28px 0; background: $black-500; diff --git a/src/arquivos/sass/partials/_menu.scss b/src/arquivos/sass/partials/_menu.scss index 577cd86..c583324 100644 --- a/src/arquivos/sass/partials/_menu.scss +++ b/src/arquivos/sass/partials/_menu.scss @@ -1,4 +1,6 @@ .menu { + align-self: stretch; + &__button { padding: 0; border: 0; @@ -11,6 +13,118 @@ } .main-menu { - display: none; + height: 100%; + + &__departaments { + display: flex; + height: 100%; + margin: 0; + } + + &__departament { + display: flex; + align-items: center; + margin-right: 40px; + + &:hover { + .main-menu__departament-link { + text-decoration: underline; + font-weight: 700; + color: $blue-500; + } + + .submenu { + top: 100%; + opacity: 1; + pointer-events: all; + } + } + } + + &__departament-link { + line-height: 15px; + font-size: 12px; + color: $white-500; + + @include mq(lg, min) { + &::after { + content: attr(title); + display: block; + height: 0; + overflow: hidden; + font-weight: bold; + visibility: hidden; + } + } + } + } + + .submenu { + position: absolute; + top: calc(100% + 32px); + left: 0; + width: 100%; + z-index: map-get($z-index , Level-4); + padding: 31px 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 .2s ease-in-out; + + &::before { + content: ""; + position: absolute; + left: 0; + bottom: 100%; + width: 100%; + height: 28px; + background: transparent; + } + + &__title { + margin: 0 0 8px; + line-height: 24px; + font-size: 20px; + } + + &__categories-wrapper { + display: flex; + margin-bottom: 8px; + } + + &__categories { + margin-right: 30px; + } + + &__category { + padding: 8px 0; + } + + &__category-link { + line-height: 15px; + font-size: 12px; + color: $black-500; + transition: color .2s linear; + + @include mq(lg, min) { + &:hover { + color: $blue-500; + } + } + } + + &__see-all { + display: flex; + align-items: center; + line-height: 15px; + font-size: 12px; + font-weight: 700; + color: $black-500; + + i { + margin-left: 9px; + } + } } } diff --git a/src/arquivos/sass/utils/_normalize.scss b/src/arquivos/sass/utils/_normalize.scss index 69d0d98..e61f344 100644 --- a/src/arquivos/sass/utils/_normalize.scss +++ b/src/arquivos/sass/utils/_normalize.scss @@ -23,7 +23,7 @@ html { */ body { - color: #142032; + color: $black-500; margin: 0; } diff --git a/src/arquivos/sprite/arrow-icon.png b/src/arquivos/sprite/arrow-icon.png new file mode 100644 index 0000000..ab20912 Binary files /dev/null and b/src/arquivos/sprite/arrow-icon.png differ diff --git a/src/controles-customizados/menuPrincipal.html b/src/controles-customizados/menuPrincipal.html new file mode 100644 index 0000000..ff06795 --- /dev/null +++ b/src/controles-customizados/menuPrincipal.html @@ -0,0 +1,64 @@ + diff --git a/src/template-pagina/sub-templates/sabrinamiranda-header.html b/src/template-pagina/sub-templates/sabrinamiranda-header.html index e9dd432..04be25d 100644 --- a/src/template-pagina/sub-templates/sabrinamiranda-header.html +++ b/src/template-pagina/sub-templates/sabrinamiranda-header.html @@ -5,8 +5,8 @@ - - + +