2
0

header.styl 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. @import 'nib'
  2. #header
  3. color: white
  4. transition: background-color 0.4s
  5. background: #2980B9
  6. #header-quick-access
  7. background-color: rgba(0, 0, 0, 0.2)
  8. padding: 0px 10px
  9. height: 28px
  10. font-size: 12px
  11. display: flex
  12. #header-user-bar,
  13. #header-new-board-icon,
  14. ul li
  15. color: darken(white, 17%)
  16. .fa
  17. color: inherit
  18. a:hover, a.is-active
  19. color: white
  20. ul
  21. transition: opacity 0.2s
  22. margin: 4px 0 0 5px
  23. overflow: hidden
  24. li
  25. display: block
  26. float: left
  27. width: auto
  28. color: darken(white, 15%)
  29. padding: 2px 5px 0
  30. &.current
  31. color: darken(white, 5%)
  32. &:first-child .fa-home
  33. margin-right: 5px
  34. a.js-create-board
  35. margin-left: 5px
  36. #header-user-bar,
  37. #header-new-board-icon
  38. flex-shrink: 0
  39. #header-user-bar
  40. margin: 2px 0
  41. .header-user-bar-avatar
  42. float: left
  43. .member
  44. width: 24px
  45. height: @width
  46. margin: 0
  47. margin-top: 1px
  48. .header-user-bar-name
  49. margin: 4px 8px 0 0
  50. float: left
  51. i.fa-chevron-down
  52. margin-right: 4px
  53. #header-new-board-icon
  54. flex-grow: 1
  55. margin: 6px 5px 0
  56. width: 12px
  57. #header-main-bar
  58. height: 28px * 1.618034 - 6px
  59. padding: 7px 10px 0
  60. h1
  61. font-size: 20px
  62. line-height: 1.7em
  63. padding: 0 10px
  64. margin: 0
  65. margin-right: 10px
  66. float: left
  67. border-radius: 3px
  68. a.fa, a i.fa
  69. color: white
  70. .back-btn
  71. font-size: 0.9em
  72. margin-right: 10px
  73. .wekan-logo
  74. display: block
  75. margin: 3px auto 0
  76. width: 97px
  77. opacity: 0.6
  78. transition: opacity 0.15s
  79. &:hover
  80. opacity: 0.9
  81. .board-header-btns
  82. display: block
  83. margin-top: 3px
  84. width: auto
  85. // XXX Use a flexbox instead of floats?
  86. &.left
  87. float: left
  88. &.right
  89. float: right
  90. .board-header-btn
  91. border-radius: 3px
  92. color: darken(white, 5%)
  93. padding: 0
  94. height: 28px
  95. font-size: 13px
  96. float: left
  97. overflow: hidden
  98. line-height: @height
  99. margin: 0 2px
  100. i.fa
  101. float: left
  102. display: block
  103. line-height: 28px
  104. color: darken(white, 5%)
  105. margin: 0 10px
  106. + span
  107. display: inline-block
  108. margin-top: 1px
  109. margin-right: 10px
  110. .board-header-btn-close
  111. float: right
  112. i.fa
  113. margin: 0 6px
  114. .board-header-btn,
  115. h1.is-clickable
  116. &.is-active,
  117. &:hover:not(.is-disabled)
  118. background: rgba(0, 0, 0, .15)
  119. .separator
  120. margin: 2px 4px
  121. border-left: 1px solid rgba(255, 255, 255, .3)
  122. height: 24px
  123. float: left