header.styl 3.9 KB

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