header.styl 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. @import 'nib'
  2. #header
  3. color: white
  4. transition: background-color 0.4s
  5. background: #2980B9
  6. z-index: 17
  7. #header-main-bar
  8. height: 40px
  9. padding: 7px 10px 0
  10. h1
  11. font-size: 20px
  12. line-height: 1.7em
  13. padding: 0 10px
  14. margin: 0
  15. margin-right: 10px
  16. float: left
  17. border-radius: 3px
  18. .board-header-watch-icon
  19. padding-left: 7px
  20. a.fa, a i.fa
  21. color: white
  22. .back-btn
  23. font-size: 0.9em
  24. margin-right: 10px
  25. .wekan-logo
  26. margin: 3px auto auto
  27. width: 97px
  28. opacity: 0.6
  29. transition: opacity 0.15s
  30. float: right
  31. &:hover
  32. opacity: 0.9
  33. .board-header-btns
  34. display: block
  35. margin-top: 3px
  36. width: auto
  37. // XXX Use a flexbox instead of floats?
  38. &.left
  39. float: left
  40. &.right
  41. float: right
  42. .board-header-btn
  43. border-radius: 3px
  44. color: darken(white, 5%)
  45. padding: 0
  46. height: 28px
  47. font-size: 13px
  48. float: left
  49. overflow: hidden
  50. line-height: @height
  51. margin: 0 2px
  52. i.fa
  53. float: left
  54. display: block
  55. line-height: 28px
  56. color: darken(white, 5%)
  57. margin: 0 10px
  58. + span
  59. display: inline-block
  60. margin-top: 1px
  61. margin-right: 10px
  62. .board-header-btn-close
  63. float: right
  64. i.fa
  65. margin: 0 6px
  66. .board-header-btn,
  67. h1.is-clickable
  68. &.is-active,
  69. &:hover:not(.is-disabled)
  70. background: rgba(0, 0, 0, .15)
  71. .separator
  72. margin: 2px 4px
  73. border-left: 1px solid rgba(255, 255, 255, .3)
  74. height: 24px
  75. float: left
  76. #header-quick-access
  77. color: white
  78. transition: background-color 0.4s
  79. background: #2573a7
  80. height: 28px
  81. font-size: 12px
  82. display: flex
  83. z-index: 21
  84. padding: 10px 0px
  85. #header-user-bar,
  86. #header-new-board-icon,
  87. ul li
  88. color: darken(white, 17%)
  89. .fa
  90. color: inherit
  91. a:hover, a.is-active
  92. color: white
  93. ul
  94. transition: opacity 0.2s
  95. overflow-x: auto
  96. overflow-y: hidden
  97. white-space: nowrap
  98. padding: 10px
  99. margin: -10px
  100. li
  101. display: inline
  102. width: auto
  103. color: darken(white, 15%)
  104. padding: 12px 0px
  105. margin: -10px 0px
  106. a
  107. padding: 12px 10px
  108. margin: -10px 0px
  109. &.current
  110. color: darken(white, 5%)
  111. &:first-child .fa-home,&:nth-child(3) .fa-globe
  112. margin-right: 5px
  113. a.js-create-board
  114. margin-left: 5px
  115. #header-user-bar,
  116. #header-new-board-icon
  117. flex-shrink: 0
  118. #header-user-bar
  119. margin: 2px 0
  120. .header-user-bar-avatar
  121. float: left
  122. position: relative
  123. top: -5px
  124. margin-right: 5px
  125. .member
  126. width: 24px
  127. height: @width
  128. margin: 0
  129. margin-top: 1px
  130. .header-user-bar-name
  131. margin: 4px 8px 0 0
  132. float: left
  133. i.fa-chevron-down
  134. margin-right: 4px
  135. #header-new-board-icon
  136. flex-grow: 1
  137. margin: 6px 5px 0
  138. width: 12px
  139. @media screen and (max-width: 800px)
  140. #header
  141. #header-main-bar
  142. height: 40px
  143. .board-header-btns
  144. margin-top: 0px
  145. .board-header-btn
  146. height: 32px
  147. line-height: @height
  148. font-size: 15px
  149. i.fa
  150. line-height: 32px
  151. + span
  152. display: none
  153. #header-quick-access
  154. transition: background-color 0.4s
  155. width: 100%
  156. z-index: 30
  157. ul
  158. width: calc(100% - 60px)
  159. margin-right: 10px
  160. li
  161. height: 100%
  162. a
  163. height: 100%
  164. span
  165. .fa-home
  166. font-size: 26px
  167. margin-top: -2px
  168. margin-right: 20px
  169. #header-new-board-icon
  170. display: none
  171. #header-user-bar
  172. right: 0px
  173. padding: 10px
  174. margin: -8px 0 -10px -10px
  175. .announcement .viewer
  176. display: inline-block
  177. .announcement,
  178. .offline-warning
  179. width: 100%
  180. text-align: center
  181. padding: 0
  182. margin: 0
  183. background: #F8ECBD
  184. clear: both
  185. p
  186. margin: 7px
  187. padding: 0