header.styl 4.4 KB

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