header.styl 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. @import 'nib'
  2. global-reset()
  3. #header
  4. color: white
  5. transition: background-color 0.4s
  6. background: #27AE60
  7. #header-quick-access
  8. background-color: rgba(0, 0, 0, 0.2)
  9. padding: 4px 10px
  10. height: 16px
  11. font-size: 12px
  12. display: flex
  13. ul li, #header-user-bar
  14. color: darken(white, 17%)
  15. a
  16. color: inherit
  17. text-decoration: none
  18. &:hover
  19. color: white
  20. ul
  21. flex: 1
  22. transition: opacity 0.2s
  23. margin-left: 5px
  24. li
  25. display: block
  26. float: left
  27. width: auto
  28. color: darken(white, 15%)
  29. padding: 0 4px 1px 4px
  30. &.separator
  31. padding: 0 2px 1px 2px
  32. &.current
  33. font-style: italic
  34. &:first-child .fa-home
  35. margin-right: 5px
  36. #header-main-bar
  37. height: 30px
  38. padding: 8px
  39. h1
  40. font-size: 19px
  41. line-height: 1.7em
  42. margin: 0 20px 0 10px
  43. float: left
  44. &.header-board-menu
  45. cursor: pointer
  46. .fa-angle-down
  47. font-size: 0.8em
  48. // line-height: 1.1em
  49. margin-left: 5px
  50. .board-header-starred .fa
  51. color: yellow
  52. .board-header-members
  53. float: right
  54. .member
  55. display: block
  56. width: 32px
  57. height: @width
  58. .add-board-member
  59. color: white
  60. display: flex
  61. align-items: center
  62. justify-content: center
  63. border: 1px solid white
  64. height: 32px - 2px
  65. width: @height
  66. i.fa-plus
  67. margin-top: 2px
  68. .header-btn:last-child
  69. margin-right: 0
  70. // #header {
  71. // background: #138871;
  72. // height: 30px;
  73. // overflow: hidden;
  74. // padding: 5px;
  75. // position: relative;
  76. // z-index: 10;
  77. // }
  78. // .header-logo {
  79. // bottom: 0;
  80. // display: block;
  81. // height: 25px;
  82. // left: 50%;
  83. // position: absolute;
  84. // top: 8px;
  85. // width: 80px;
  86. // margin-left: - @width/2;
  87. // text-align: center;
  88. // z-index: 2;
  89. // opacity: .5;
  90. // transition: opacity ease-in 85ms;
  91. // color: white;
  92. // font-size: 22px;
  93. // text-decoration: none;
  94. // background-image: url('/logos/white_logo.png');
  95. // &:hover {
  96. // opacity: .8;
  97. // color: white;
  98. // }
  99. // }
  100. // .header-btn.header-btn-feedback {
  101. // background: rgba(255, 255, 255, .1);
  102. // background: linear-gradient(to bottom, rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, .05) 100%);
  103. // padding-left: 22px;
  104. // margin-right: 16px;
  105. // .header-btn-icon {
  106. // top: 1px;
  107. // }
  108. // }
  109. .header-btn {
  110. border-radius: 3px;
  111. user-select: none;
  112. background: rgba(255, 255, 255, .3);
  113. background: linear-gradient(to bottom, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, .2) 100%);
  114. color: #f3f3f3;
  115. display: block;
  116. float: left;
  117. font-weight: 700;
  118. height: 30px;
  119. line-height: 30px;
  120. padding: 0 10px;
  121. position: relative;
  122. margin-right: 8px;
  123. min-width: 30px;
  124. text-decoration: none;
  125. cursor: pointer;
  126. .header-btn-icon {
  127. font-size: 16px;
  128. line-height: 28px;
  129. position: absolute;
  130. top: 0;
  131. left: 0;
  132. }
  133. &.new-notifications {
  134. background: #ba1212;
  135. &:hover {
  136. background: #d11515;
  137. }
  138. }
  139. &.header-member .member {
  140. margin: 0;
  141. border-top-left-radius: 3px;
  142. border-top-right-radius: 0;
  143. border-bottom-right-radius: 0;
  144. border-bottom-left-radius: 3px;
  145. &:hover .member-avatar {
  146. opacity: 1;
  147. }
  148. }
  149. &:hover {
  150. background: rgba(255, 255, 255, .4);
  151. background: linear-gradient(to bottom, rgba(255, 255, 255, .4) 0, rgba(255, 255, 255, .3) 100%);
  152. color: #fff;
  153. .header-btn-count {
  154. background: #d11515;
  155. }
  156. }
  157. &:active {
  158. background: rgba(255, 255, 255, .4);
  159. background: linear-gradient(to bottom, rgba(255, 255, 255, .4) 0, rgba(255, 255, 255, .3) 100%);
  160. }
  161. &.upgrade {
  162. margin-right: 16px;
  163. .icon-sm {
  164. padding: 6px 2px 6px 4px;
  165. }
  166. }
  167. &.upgrade,
  168. &.header-boards {
  169. padding-left: 4px;
  170. }
  171. &.header-boards {
  172. padding-right: 4px;
  173. }
  174. &.header-login,
  175. &.header-signup {
  176. padding: 0 12px;
  177. }
  178. &.header-signup {
  179. background: #48b512;
  180. background: linear-gradient(to bottom, #48b512 0, #3d990f 100%);
  181. &:hover {
  182. background: #3d990f;
  183. background: linear-gradient(to bottom, #3d990f 0, #327d0c 100%);
  184. }
  185. &:active {
  186. background: #327d0c;
  187. }
  188. }
  189. &.header-go-to-boards {
  190. padding: 0 8px 0 38px;
  191. }
  192. &.header-go-to-boards .member {
  193. border-top-left-radius: 3px;
  194. border-top-right-radius: 0;
  195. border-bottom-right-radius: 0;
  196. border-bottom-left-radius: 3px;
  197. position: absolute;
  198. left: 0;
  199. }
  200. }
  201. // .header-btn-text {
  202. // padding: 0 8px;
  203. // }
  204. // .header-notification-list ul {
  205. // margin-top: 8px;
  206. // }
  207. // .header-notification-list .action-comment {
  208. // max-height: 250px;
  209. // overflow-y: auto;
  210. // }
  211. // .header-user {
  212. // position: absolute;
  213. // top: 5px;
  214. // right: 0;
  215. // }