Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // /**
- // * Copyright © 2016 Magento. All rights reserved.
- // * See COPYING.txt for license details.
- // */
- //
- // Variables
- // _____________________________________________
- @active-nav-indent: 54px;
- //
- // Common
- // _____________________________________________
- & when (@media-common = true) {
- .panel.header {
- .links,
- .switcher {
- display: none;
- }
- }
- .nav-sections {
- .lib-css(background, #363636);
- z-index: 2;
- }
- .nav-toggle {
- .lib-icon-font(
- @icon-menu,
- @_icon-font-size: 28px,
- @_icon-font-color: @header-icons-color,
- @_icon-font-color-hover: @header-icons-color-hover
- );
- .lib-icon-text-hide();
- cursor: pointer;
- display: block;
- font-size: 0;
- left: 15px;
- position: absolute;
- top: 50%;
- margin-top: -20px;
- z-index: 14;
- }
- }
- //
- // Mobile
- // _____________________________________________
- .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
- .navigation {
- background: #363636 !important;
- padding: 0;
- .parent {
- .level-top {
- .lib-icon-font(
- @_icon-font-content: @icon-down,
- @_icon-font-size: 42px,
- @_icon-font-position: after,
- @_icon-font-display: block
- );
- &:after {
- position: absolute;
- right: 7px;
- top: -8px;
- }
- &.ui-state-active {
- .lib-icon-font-symbol(
- @_icon-font-content: @icon-up,
- @_icon-font-position: after
- );
- }
- }
- }
- .level0 {
- border-color: #2e2e2e !important;
- > .level-top{
- color: @blanco;
- font-weight: normal !important;
- .fontParuolo();
- padding: .8rem @indent__base !important;
- font-size: 15px;
- &:after{
- top: 8px !important;
- font-size: 14px !important;
- }
- }
- a{
- color: @blanco;
- font-weight: normal;
- .fontParuolo();
- }
- &.active{
- > a:not(.ui-state-active){
- color: @blanco !important;
- background: #2e2e2e !important;
- border-left: 0 !important;
- span:not(.ui-menu-icon){
- margin-left: 0 !important;
- }
- }
- }
- }
- }
- .nav-sections {
- padding: 15px;
- -webkit-overflow-scrolling: touch;
- .lib-css(transition, left .3s, 1);
- height: 100%;
- left: -80%;
- left: calc(~'-1 * (100% - @{active-nav-indent})');
- overflow: auto;
- position: fixed;
- top: 0;
- width: 80%;
- width: calc(~'100% - @{active-nav-indent}');
- .switcher {
- border-top: 1px solid @color-gray82;
- font-size: 1.6rem;
- font-weight: 700;
- margin: 0;
- padding: .8rem 3.5rem .8rem 2rem;
- .label {
- display: block;
- margin-bottom: @indent__xs;
- }
- &:last-child {
- border-bottom: 1px solid @color-gray82;
- }
- }
- .switcher-trigger {
- strong {
- position: relative;
- .lib-icon-font(
- @_icon-font-content: @icon-down,
- @_icon-font-size: 42px,
- @_icon-font-position: after,
- @_icon-font-display: block
- );
- &:after {
- position: absolute;
- right: -40px;
- top: -16px;
- }
- }
- &.active strong {
- .lib-icon-font-symbol(
- @_icon-font-content: @icon-up,
- @_icon-font-position: after
- );
- }
- }
- .switcher-dropdown {
- .lib-list-reset-styles();
- padding: @indent__s 0;
- }
- .header.links {
- .lib-list-reset-styles();
- border-bottom: none;
- li {
- font-size: 1.6rem;
- margin: 0;
- &.greet.welcome {
- display: none;
- }
- > a {
- border-top: 1px solid #2e2e2e;
- font-weight: normal;
- .fontParuolo();
- color: @blanco;
- font-size: 15px;
- }
- }
- a,
- a:hover {
- .lib-css(color, @navigation-level0-item__color);
- .lib-css(text-decoration, @navigation-level0-item__text-decoration);
- text-decoration: none;
- display: block;
- font-weight: 700;
- padding: .8rem @indent__base;
- }
- .header.links {
- border: 0;
- }
- }
- }
- .nav-before-open {
- height: 100%;
- overflow-x: hidden;
- width: 100%;
- .page-wrapper {
- .lib-css(transition, left .3s, 1);
- height: 100%;
- left: 0;
- overflow: hidden;
- position: relative;
- }
- body {
- height: 100%;
- overflow: hidden;
- position: relative;
- width: 100%;
- }
- }
- .nav-open {
- .page-wrapper {
- left: 80%;
- left: calc(~'100% - @{active-nav-indent}');
- }
- .nav-sections {
- @_shadow: 0 0 10px 0 rgba(50, 50, 50, .75);
- .lib-css(box-shadow, @_shadow, 1);
- left: 0;
- z-index: 99;
- }
- .nav-toggle {
- &:after{
- background: rgba(0, 0, 0, 0);
- content: '';
- display: block;
- height: 100%;
- position: fixed;
- right: 0;
- top: 0;
- width: 100%;
- z-index: 1;
- }
- }
- }
- .nav-sections-items {
- .lib-clearfix();
- position: relative;
- z-index: 1;
- }
- .nav-sections-item-title {
- background: #363636;
- border: solid darken(@navigation__background, 10%);
- border-width: 0;
- box-sizing: border-box;
- float: left;
- height: 42px;
- padding-top: 9px;
- text-align: center;
- width: 50%;
- border-radius: 10px;
- .nav-sections-item-switch {
- color: @blanco;
- text-decoration: none;
- .fontParuolo();
- &:hover {
- text-decoration: none;
- }
- }
- &.active {
- background: #2e2e2e;
- border-bottom: 0;
- .nav-sections-item-switch {
- .fontParuoloBold();
- color: #9a9a9a;
- }
- }
- }
- .nav-sections-item-content {
- .lib-clearfix();
- box-sizing: border-box;
- float: right;
- margin-left: -100%;
- margin-top: 35px;
- width: 100%;
- &.active {
- display: block;
- }
- padding: @indent__m 0;
- }
- .nav-sections-item-content > .navigation ul .universo .universo-container
- {
- display: none;
- }
- .universo-mobile-activo{
- display:block !important;
- padding-left: 15px;
- padding: 0 10px;
- background: #2e2e2e;
- width: 100%;
- .clearfixParuolo();
- .universo-left{display: none;}
- .universo-right{
- width: 100%;
- padding: 15px 20px;
- .menu{
- width: 100%;
- padding-right: 0;
- label{
- color: @blanco;
- font-weight: normal;
- .fontParuolo();
- font-size: 15px;
- }
- ul{
- display: block !important;
- li a{
- color: @blanco;
- }
- }
- }
- }
- }
- .lib-main-navigation();
- .nav-sections-item-content .authorization-link a {
- font-family: 'ParuoloBold' !important;
- font-size: 15px !important;
- letter-spacing: 0.08em !important;
- color: #ffffff !important;
- display:block !important;
- background: #2e2e2e !important;
- border-radius: 5px !important;
- padding: 4px 7px 3px 7px !important;
- border: 0 !important;
- margin: 0 0 0 17px !important;
- width: 100px !important;
- text-align: center !important;
- }
- }
- //
- // Desktop
- // _____________________________________________
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .nav-toggle {
- display: none;
- }
- .nav-sections {
- .lib-vendor-prefix-flex-shrink(0);
- .lib-vendor-prefix-flex-basis(auto);
- margin-bottom: 15px;
- background: #ffffff;
- border-top: 1px solid @gris_menu;
- border-bottom: 1px solid @gris_menu;
- }
- .cms-home .nav-sections { /* Menu de la home */
- margin-bottom: 0 !important;
- }
- /* agregado matias*/
- .menu-fixed {
- position:fixed;
- z-index:1000;
- top:45px;
- width:100%;
- background-color: #ffffff;
- }
- .menu-fixed-sin-ticker {
- position:fixed;
- z-index:1000;
- width:100%;
- background-color: #ffffff;
- }
- .nav-fixed {
- position:fixed;
- z-index:1000;
- top:149px;
- width:100%;
- }
- .nav-fixed-sin-ticker {
- position:fixed;
- z-index:1000;
- top:115px;
- width:100%;
- }
- .widget-fixed {
- position:fixed;
- z-index:1000;
- top:0px;
- width:100%;
- }
- /* fin agregado matias */
- .nav-sections-item-title {
- display: none;
- }
- .nav-sections-item-content {
- display: block !important;
- }
- .nav-sections-item-content > * {
- display: none;
- }
- .nav-sections-item-content {
- > .navigation {
- display: block;
- background-color: #fff;
- text-align: center;
- max-width: @layout__max-width;
- padding-left: @layout-indent__width;
- padding-right: @layout-indent__width;
- z-index: 50;
- ul{
- display: -webkit-flex;
- display: flex;
- width: 100%;
- align-items: center;
- flex-wrap: nowrap;
- -webkit-justify-content: space-between;
- justify-content: center;
- box-sizing: border-box;
- .level0 {
- font-size: 18px;
- margin-right: 0;
- padding: 3px 10px;
- position: static;
- > .level-top {
- font-size: 15px;
- font-weight: normal;
- letter-spacing: 0.09em;
- color: @negro;
- border-width: 0;
- display: inline-block;
- line-height: 1;
- }
- &.active{
- > .level-top {
- border-width: 0;
- }
- }
- &:first-of-type{
- font-family: ParuoloBold;
- }
- }
- /* MENU UNIVERSO */
- .universo-container{
- /*display: none;*/
- position: absolute;
- top: 100%;
- width: 100% !important;
- left: 0;
- padding: 20px;
- border-radius: 0 0 25px 25px;
- border: 0;
- border-top: 0;
- background: @blanco;
- box-sizing: border-box;
- /* MODIFICACIÓN */
- /*opacity: 0;*/
- visibility: hidden;
- /*-webkit-transition: all .25s ease-in-out;
- -moz-transition: all .25s ease-in-out;
- -ms-transition: all .25s ease-in-out;
- -o-transition: all .25s ease-in-out;
- transition: all .25s ease-in-out;*/
- max-height: 0;
- overflow-y: hidden;
- -webkit-transition: max-height 0.5s ease-in-out;
- -moz-transition: max-height 0.5s ease-in-out;
- -o-transition: max-height 0.5s ease-in-out;
- transition: max-height 0.5s ease-in-out;
- .universo-left{
- float: left;
- width: 36%;
- padding-left: 50px;
- padding-right: 30px;
- position: relative;
- p{
- padding: 0;
- margin: 0;
- font: 0;
- display: block;
- width: 100%;
- img{
- width: 100%;
- display: block;
- }
- }
- &:before{
- content: '';
- display: block;
- position: absolute;
- left:20px;
- top: 3px;
- font-size: 0;
- width: 13px;
- height: 20px;
- background-image: url(../images/icon-sprite.png);
- background-size: 100px 1000px;
- background-repeat: no-repeat;
- background-position: 0 -45px;
- }
- }
- .universo-right{
- float: right;
- width: 64%;
- position: relative;
- .menu{
- float: left;
- width: 50%;
- padding-right: 60px;
- label{
- .fontParuoloBold();
- font-size: 18px;
- text-align: left;
- border-bottom: 1px solid @gris_menu;
- padding: 0 0 5px 0;
- margin: 0 0 15px 0;
- display: block;
- }
- }
- ul{
- padding: 0;
- margin: 0;
- list-style: none;
- display: block !important;
- li{
- display: block;
- line-height: 1.2;
- text-align: left;
- padding: 4px 0;
- a{
- .fontParuolo();
- color: @negro;
- text-decoration: none;
- font-weight: normal;
- font-size: 14px;
- &:hover{
- .fontParuoloBold();
- letter-spacing: 0.075em;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- .nav-sections-item-content > .navigation ul .universo:hover> .universo-container {
- /*display: block;
- opacity: 1;*/
- max-height: 600px;
- visibility: visible;
- }
- .lib-main-navigation-desktop();
- .panel.header {
- .links,
- .switcher {
- display: inline-block;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement