/** * Stylesheet * * @namespace Lungo.Layout * @class Nav * * @author Javier Jimenez Villar || @soyjavi */ nav /* ========================================================================= */ /* ================================= HEADER ================================ */ /* ========================================================================= */ header & & .button, button margin-top: 0.45em float: left &.on-right .button, &.on-right button margin-right: 0.4em &:not(.on-right) .button, &:not(.on-right) button margin-left: 0.4em & a:not(.button) padding: 0 0.75em !important float: left height: HEADER_HEIGHT & > .icon font-size: 1.7em & .tag position: relative top: -1em left: -1em margin-right: -20px // @TODO & .loading margin-top: .5em font-size: 1.6em & + .icon display: none &[data-control=groupbar], footer & display-box() box-pack(justify) width: 100% & > a box-flex(1) text-decoration: none /* ========================================================================= */ /* =============================== GROUPBAR ================================ */ /* ========================================================================= */ &[data-control=groupbar] z-index: 2 height: HEADER_GROUPBAR_HEIGHT width: 100% font-size: FONT_SIZE_SMALL line-height: HEADER_GROUPBAR_HEIGHT & > a padding:0 margin:0 height: HEADER_GROUPBAR_HEIGHT !important display: block text-align: center & .icon, .tag margin: 0 0.25em line-height: inherit /* ========================================================================= */ /* ================================= MENU ================================== */ /* ========================================================================= */ &[data-control=menu] position: absolute left:0 top: HEADER_HEIGHT visibility: hidden z-index: 2 width: 100% text-align: center transform translateY(-120%) transition-property transform transition-duration TRANSITION_TIME transition-timing-function DEFAULT_TRANSITION backface-visibility hidden &.show visibility: visible transform translateY(0%) &.icons font-size: FONT_SIZE_TINY & > a width: 25% float: left padding: 10px 0 & > .icon font-size: S = 32px line-height: S display: block &:not(.icons) font-size: FONT_SIZE_BIG & > a display: block position: relative padding: INDENT & > .icon position: absolute left: 0.5em font-size: 1.5em /* ========================================================================= */ /* ================================ FOOTER ================================= */ /* ========================================================================= */ footer & & a text-align: center display: block padding: 0 height: HEADER_HEIGHT & .icon font-size: 2.0em line-height: inherit width: HEADER_HEIGHT display: inline-block & .tag position: relative top: SIZE = -12px left: SIZE margin-right: -24px & .loading top: 0 font-size: 1.4em abbr display: none &.with-labels & .icon font-size: 1.8em line-height: 1.0em & abbr z-index: 1 display: block !important margin-top: -1.3em font-size: FONT_SIZE_TINY line-height: FONT_SIZE_TINY overflow: hidden white-space: nowrap text-overflow: ellipsis