header.styl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. .wekan-logo
  69. display: block
  70. margin: 3px auto 0
  71. width: 97px
  72. opacity: 0.6
  73. transition: opacity 0.15s
  74. &:hover
  75. opacity: 0.9
  76. .board-header-btns
  77. display: block
  78. margin-top: 3px
  79. width: auto
  80. // XXX Use a flexbox instead of floats?
  81. &.left
  82. float: left
  83. &.right
  84. float: right
  85. .board-header-btn
  86. border-radius: 3px
  87. color: darken(white, 5%)
  88. padding: 0
  89. height: 28px
  90. font-size: 13px
  91. float: left
  92. overflow: hidden
  93. line-height: @height
  94. margin: 0 2px
  95. i.fa
  96. float: left
  97. display: block
  98. line-height: 28px
  99. color: darken(white, 5%)
  100. margin: 0 10px
  101. + span
  102. display: inline-block
  103. margin-top: 1px
  104. margin-right: 10px
  105. .board-header-btn-close
  106. float: right
  107. i.fa
  108. margin: 0 6px
  109. .board-header-btn,
  110. h1.is-clickable
  111. &.is-active,
  112. &:hover:not(.is-disabled)
  113. background: rgba(0, 0, 0, .15)
  114. .separator
  115. margin: 2px 4px
  116. border-left: 1px solid rgba(255, 255, 255, .3)
  117. height: 24px
  118. float: left