header.styl 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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. .allBoards
  86. padding: 0 0 0 10px
  87. #header-user-bar,
  88. #header-new-board-icon,
  89. ul li
  90. color: darken(white, 17%)
  91. .fa
  92. color: inherit
  93. a:hover, a.is-active
  94. color: white
  95. ul.header-quick-access-list
  96. transition: opacity 0.2s
  97. overflow-x: auto
  98. overflow-y: hidden
  99. white-space: nowrap
  100. padding: 10px
  101. margin: -10px
  102. li
  103. display: inline
  104. width: auto
  105. color: darken(white, 15%)
  106. padding: 12px 0px
  107. margin: -10px 0px
  108. a
  109. padding: 12px 10px
  110. margin: -10px 0px
  111. &.current
  112. color: darken(white, 5%)
  113. &.current.empty
  114. padding: 12px 10px 12px 10px
  115. &:first-child .fa-home,&:nth-child(3) .fa-globe
  116. margin-right: 5px
  117. a.js-create-board
  118. margin-left: 5px
  119. #header-user-bar,
  120. #header-new-board-icon
  121. flex-shrink: 0
  122. #header-user-bar
  123. margin: 2px 0
  124. .header-user-bar-avatar
  125. float: left
  126. position: relative
  127. top: -5px
  128. margin-right: 5px
  129. .member
  130. width: 24px
  131. height: @width
  132. margin: 0
  133. margin-top: 1px
  134. .header-user-bar-name
  135. margin: 4px 8px 0 0
  136. float: left
  137. i.fa-chevron-down
  138. margin-right: 4px
  139. #header-new-board-icon
  140. flex-grow: 1
  141. margin: 6px 5px 0
  142. width: 12px
  143. @media screen and (max-width: 800px)
  144. #header
  145. #header-main-bar
  146. height: 40px
  147. .board-header-btns
  148. margin-top: 0px
  149. .board-header-btn
  150. height: 32px
  151. line-height: @height
  152. font-size: 15px
  153. i.fa
  154. line-height: 32px
  155. + span
  156. display: none
  157. #header-quick-access
  158. transition: background-color 0.4s
  159. width: 100%
  160. z-index: 30
  161. ul
  162. width: calc(100% - 60px)
  163. margin-right: 10px
  164. li
  165. height: 100%
  166. a
  167. height: 100%
  168. span
  169. .fa-home
  170. font-size: 26px
  171. margin-top: -2px
  172. margin-right: 10px
  173. margin-left: 10px
  174. #header-new-board-icon
  175. display: none
  176. #header-user-bar
  177. right: 0px
  178. padding: 10px
  179. margin: -8px 0 -10px -10px
  180. .announcement .viewer
  181. display: inline-block
  182. .announcement,
  183. .offline-warning
  184. width: 100%
  185. text-align: center
  186. padding: 0
  187. margin: 0
  188. background: #F8ECBD
  189. clear: both
  190. p
  191. margin: 7px
  192. padding: 0