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