lungo.layout.nav.styl 3.3 KB

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