lungo.layout.nav.styl 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Nav
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. nav
  10. /* ========================================================================= */
  11. /* ================================= HEADER ================================ */
  12. /* ========================================================================= */
  13. header &
  14. & .button, button
  15. margin-top: 0.45em
  16. float: left
  17. &.on-right .button, &.on-right button
  18. margin-right: 0.4em
  19. &:not(.on-right) .button, &:not(.on-right) button
  20. margin-left: 0.4em
  21. & a:not(.button)
  22. padding: 0 0.75em !important
  23. float: left
  24. height: HEADER_HEIGHT
  25. & > .icon
  26. font-size: 1.7em
  27. & .tag
  28. position: relative
  29. top: -1em
  30. left: -1em
  31. margin-right: -20px
  32. // @TODO
  33. & .loading
  34. margin-top: .5em
  35. font-size: 1.6em
  36. & + .icon
  37. display: none
  38. &[data-control=groupbar], footer &
  39. display-box()
  40. box-pack(justify)
  41. width: 100%
  42. & > a
  43. box-flex(1)
  44. text-decoration: none
  45. /* ========================================================================= */
  46. /* =============================== GROUPBAR ================================ */
  47. /* ========================================================================= */
  48. &[data-control=groupbar]
  49. z-index: 2
  50. height: HEADER_GROUPBAR_HEIGHT
  51. width: 100%
  52. font-size: FONT_SIZE_SMALL
  53. line-height: HEADER_GROUPBAR_HEIGHT
  54. & > a
  55. padding:0
  56. margin:0
  57. height: HEADER_GROUPBAR_HEIGHT !important
  58. display: block
  59. text-align: center
  60. & .icon, .tag
  61. margin: 0 0.25em
  62. line-height: inherit
  63. /* ========================================================================= */
  64. /* ================================= MENU ================================== */
  65. /* ========================================================================= */
  66. &[data-control=menu]
  67. position: absolute
  68. left:0
  69. top: HEADER_HEIGHT
  70. visibility: hidden
  71. z-index: 2
  72. width: 100%
  73. text-align: center
  74. transform translateY(-120%)
  75. transition-property transform
  76. transition-duration TRANSITION_TIME
  77. transition-timing-function DEFAULT_TRANSITION
  78. backface-visibility hidden
  79. &.show
  80. visibility: visible
  81. transform translateY(0%)
  82. &.icons
  83. font-size: FONT_SIZE_TINY
  84. & > a
  85. width: 25%
  86. float: left
  87. padding: 10px 0
  88. & > .icon
  89. font-size: S = 32px
  90. line-height: S
  91. display: block
  92. &:not(.icons)
  93. font-size: FONT_SIZE_BIG
  94. & > a
  95. display: block
  96. position: relative
  97. padding: INDENT
  98. & > .icon
  99. position: absolute
  100. left: 0.5em
  101. font-size: 1.5em
  102. /* ========================================================================= */
  103. /* ================================ FOOTER ================================= */
  104. /* ========================================================================= */
  105. footer &
  106. & a
  107. text-align: center
  108. display: block
  109. padding: 0
  110. height: HEADER_HEIGHT
  111. & .icon
  112. font-size: 2.0em
  113. line-height: inherit
  114. width: HEADER_HEIGHT
  115. display: inline-block
  116. & .tag
  117. position: relative
  118. top: SIZE = -12px
  119. left: SIZE
  120. margin-right: -24px
  121. & .loading
  122. top: 0
  123. font-size: 1.4em
  124. abbr
  125. display: none
  126. &.with-labels
  127. & .icon
  128. font-size: 1.8em
  129. line-height: 1.0em
  130. & abbr
  131. z-index: 1
  132. display: block !important
  133. margin-top: -1.3em
  134. font-size: FONT_SIZE_TINY
  135. line-height: FONT_SIZE_TINY
  136. overflow: hidden
  137. white-space: nowrap
  138. text-overflow: ellipsis