2
0

header.styl 3.5 KB

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