header.styl 3.3 KB

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