header.styl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. .viewer
  112. display: inline
  113. white-space: nowrap
  114. p
  115. display: inline
  116. white-space: nowrap
  117. &.current
  118. color: darken(white, 5%)
  119. &.current.empty
  120. padding: 12px 10px 12px 10px
  121. &:first-child .fa-home,&:nth-child(3) .fa-globe
  122. margin-right: 5px
  123. a.js-create-board
  124. margin-left: 5px
  125. #header-user-bar,
  126. #header-new-board-icon
  127. flex-shrink: 0
  128. #header-user-bar
  129. margin: 2px 0
  130. .header-user-bar-avatar
  131. float: left
  132. position: relative
  133. top: -5px
  134. margin-right: 5px
  135. .member
  136. width: 24px
  137. height: @width
  138. margin: 0
  139. margin-top: 1px
  140. .header-user-bar-name
  141. margin: 4px 8px 0 0
  142. float: left
  143. i.fa-chevron-down
  144. margin-right: 4px
  145. #header-new-board-icon
  146. flex-grow: 1
  147. margin: 6px 5px 0
  148. width: 12px
  149. @media screen and (max-width: 800px)
  150. #header
  151. #header-main-bar
  152. height: 40px
  153. .board-header-btns
  154. margin-top: 0px
  155. .board-header-btn
  156. height: 32px
  157. line-height: @height
  158. font-size: 15px
  159. i.fa
  160. line-height: 32px
  161. + span
  162. display: none
  163. #header-quick-access
  164. transition: background-color 0.4s
  165. width: 100%
  166. z-index: 30
  167. ul
  168. width: calc(100% - 60px)
  169. margin-right: 10px
  170. li
  171. height: 100%
  172. a
  173. height: 100%
  174. span
  175. .fa-home
  176. font-size: 26px
  177. margin-top: -2px
  178. margin-right: 10px
  179. margin-left: 10px
  180. #header-new-board-icon
  181. display: none
  182. #header-user-bar
  183. right: 0px
  184. padding: 10px
  185. margin: -8px 0 -10px -10px
  186. .announcement .viewer
  187. display: inline-block
  188. .announcement,
  189. .offline-warning
  190. width: 100%
  191. text-align: center
  192. padding: 0
  193. margin: 0
  194. background: #F8ECBD
  195. clear: both
  196. p
  197. margin: 7px
  198. padding: 0
  199. #headerIsSettingDatabaseCallDone
  200. display: none;