header.styl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. a, .fa
  16. color: inherit
  17. text-decoration: none
  18. &:hover
  19. color: white
  20. ul
  21. flex: 1
  22. transition: opacity 0.2s
  23. margin: 4px 0 0 5px
  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. margin: 2px 0
  38. .member
  39. width: 24px
  40. height: @width
  41. float: left
  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. &.is-clickable
  61. cursor: pointer
  62. .board-header-btns
  63. display: block
  64. margin-top: 3px
  65. width: auto
  66. // XXX Use a flexbox instead of floats?
  67. &.left
  68. float: left
  69. &.right
  70. float: right
  71. .board-header-btn
  72. border-radius: 3px
  73. color: darken(white, 5%)
  74. padding: 0
  75. height: 28px
  76. font-size: 13px
  77. float: left
  78. overflow: hidden
  79. line-height: @height
  80. margin: 0 2px
  81. i.fa
  82. float: left
  83. display: block
  84. line-height: 28px
  85. color: darken(white, 5%)
  86. margin: 0 10px
  87. + span
  88. margin-right: 10px
  89. .board-header-btn-close
  90. float: right
  91. i.fa
  92. margin: 0 6px
  93. .board-header-btn,
  94. h1.is-clickable
  95. &.is-hovered,
  96. &:hover
  97. background: rgba(0, 0, 0, .15)
  98. .separator
  99. margin: 2px 4px
  100. border-left: 1px solid rgba(255, 255, 255, .3)
  101. height: 24px
  102. float: left