header.styl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. .header-user-bar-avatar
  39. float: left
  40. .member
  41. width: 24px
  42. height: @width
  43. margin: 0
  44. margin-top: 1px
  45. .header-user-bar-name
  46. margin: 4px 8px 0 0
  47. float: left
  48. i.fa-chevron-down
  49. margin-right: 4px
  50. #header-main-bar
  51. height: 28px * 1.618034 - 6px
  52. padding: 7px 10px 0
  53. h1
  54. font-size: 20px
  55. line-height: 1.7em
  56. padding: 0 10px
  57. margin: 0
  58. margin-right: 10px
  59. float: left
  60. border-radius: 3px
  61. &.is-clickable
  62. cursor: pointer
  63. .board-header-btns
  64. display: block
  65. margin-top: 3px
  66. width: auto
  67. // XXX Use a flexbox instead of floats?
  68. &.left
  69. float: left
  70. &.right
  71. float: right
  72. .board-header-btn
  73. border-radius: 3px
  74. color: darken(white, 5%)
  75. padding: 0
  76. height: 28px
  77. font-size: 13px
  78. float: left
  79. overflow: hidden
  80. line-height: @height
  81. margin: 0 2px
  82. i.fa
  83. float: left
  84. display: block
  85. line-height: 28px
  86. color: darken(white, 5%)
  87. margin: 0 10px
  88. + span
  89. margin-right: 10px
  90. .board-header-btn-close
  91. float: right
  92. i.fa
  93. margin: 0 6px
  94. .board-header-btn,
  95. h1.is-clickable
  96. &.is-active,
  97. &:hover
  98. background: rgba(0, 0, 0, .15)
  99. .separator
  100. margin: 2px 4px
  101. border-left: 1px solid rgba(255, 255, 255, .3)
  102. height: 24px
  103. float: left