header.styl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. @import 'nib'
  2. #header
  3. color: white
  4. transition: background-color 0.4s
  5. background: #27AE60
  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. ul li
  14. color: darken(white, 17%)
  15. .fa
  16. color: inherit
  17. a:hover, a.is-active
  18. color: white
  19. ul
  20. flex: 1
  21. transition: opacity 0.2s
  22. margin: 4px 0 0 5px
  23. li
  24. display: block
  25. float: left
  26. width: auto
  27. color: darken(white, 15%)
  28. padding: 2px 5px 0
  29. &.current
  30. color: darken(white, 5%)
  31. &:first-child .fa-home
  32. margin-right: 5px
  33. a.js-create-board
  34. margin-left: 5px
  35. #header-user-bar
  36. margin: 2px 0
  37. .header-user-bar-avatar
  38. float: left
  39. .member
  40. width: 24px
  41. height: @width
  42. margin: 0
  43. margin-top: 1px
  44. .header-user-bar-name
  45. margin: 4px 8px 0 0
  46. float: left
  47. i.fa-chevron-down
  48. margin-right: 4px
  49. #header-main-bar
  50. height: 28px * 1.618034 - 6px
  51. padding: 7px 10px 0
  52. h1
  53. font-size: 20px
  54. line-height: 1.7em
  55. padding: 0 10px
  56. margin: 0
  57. margin-right: 10px
  58. float: left
  59. border-radius: 3px
  60. .board-header-btns
  61. display: block
  62. margin-top: 3px
  63. width: auto
  64. // XXX Use a flexbox instead of floats?
  65. &.left
  66. float: left
  67. &.right
  68. float: right
  69. .board-header-btn
  70. border-radius: 3px
  71. color: darken(white, 5%)
  72. padding: 0
  73. height: 28px
  74. font-size: 13px
  75. float: left
  76. overflow: hidden
  77. line-height: @height
  78. margin: 0 2px
  79. i.fa
  80. float: left
  81. display: block
  82. line-height: 28px
  83. color: darken(white, 5%)
  84. margin: 0 10px
  85. + span
  86. margin-right: 10px
  87. .board-header-btn-close
  88. float: right
  89. i.fa
  90. margin: 0 6px
  91. .board-header-btn,
  92. h1.is-clickable
  93. &.is-active,
  94. &:hover
  95. background: rgba(0, 0, 0, .15)
  96. .separator
  97. margin: 2px 4px
  98. border-left: 1px solid rgba(255, 255, 255, .3)
  99. height: 24px
  100. float: left