sidebar.styl 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. @import 'nib'
  2. .sidebar
  3. position: absolute
  4. top: 0
  5. bottom: 0
  6. right: 0
  7. .sidebar-shadow
  8. position: absolute
  9. top: 0
  10. bottom: 0
  11. right: 0
  12. left: 0
  13. background: darken(white, 3%)
  14. box-shadow: -10px 0px 5px -10px darken(white, 30%)
  15. z-index: 10
  16. .sidebar-content
  17. padding: 12px
  18. margin-bottom: 1.6em
  19. position: absolute
  20. top: 0
  21. bottom: 0
  22. right: 0
  23. left: 0
  24. overflow-x: hidden
  25. overflow-y: auto
  26. .hide-btn
  27. display: none
  28. h3
  29. color: darken(white, 50%)
  30. font-size: 1em
  31. margin-bottom: 10px
  32. font-weight: bold
  33. i.fa
  34. margin-right: 3px
  35. hr
  36. margin: 13px 0
  37. ul.sidebar-list
  38. display: flex
  39. flex-direction: column
  40. li
  41. & > a
  42. display: flex
  43. height: 30px
  44. margin: 0
  45. padding: 4px
  46. border-radius: 3px
  47. align-items: center
  48. &:hover
  49. &, i, .quiet
  50. color white
  51. .member, .card-label
  52. margin-right: 7px
  53. margin-top: 5px
  54. .minicard-edit-button
  55. float: right
  56. padding: 8px
  57. border-radius: 3px
  58. .sidebar-list-item-description
  59. flex: 1
  60. overflow: ellipsis
  61. .fa.fa-check
  62. margin: 0 4px
  63. .minicard
  64. padding: 6px 8px 4px
  65. .minicard-edit-button
  66. float: right
  67. padding: 4px
  68. border-radius: 3px
  69. &:hover
  70. background: #dbdbdb
  71. .sidebar-btn
  72. display: block
  73. margin: 5px 0
  74. padding: 10px
  75. border-radius: 3px
  76. background: darken(white, 10%)
  77. &:hover *
  78. color: white
  79. i.fa
  80. margin-right: 10px
  81. .sidebar-shortcuts
  82. position: absolute
  83. margin-left: 40%
  84. padding: 0
  85. top: 7px
  86. font-size: 0.8em
  87. line-height: 1.6em
  88. color: darken(white, 40%)
  89. .board-sidebar
  90. width: 548px
  91. right: -@width
  92. transition: top .1s, right .1s, width .1s
  93. &.is-open
  94. right: 0
  95. .board-widget h4
  96. margin: 5px 0
  97. .board-widget-activity
  98. margin-right: -4px
  99. .sidebar-tongue
  100. display: block
  101. width: 30px
  102. height: @width
  103. left: -@width
  104. position: absolute
  105. top: 0px
  106. z-index: 15
  107. background: darken(white, 3%)
  108. border-bottom-left-radius: 3px
  109. box-shadow: -4px 0px 7px -4px darken(white, 30%)
  110. color: darken(white, 50%)
  111. transition: left .1s
  112. i.fa
  113. padding: 3px 9px
  114. font-size: 24px
  115. transition: transform 0.5s
  116. .board-sidebar.is-open &
  117. left: -@width + 2px
  118. // XXX Bug: we should add a padding left
  119. &:hover
  120. left: -@width + 5px
  121. i.fa
  122. transform: rotate(180deg)
  123. &.is-hidden,
  124. .board-sidebar.is-open &.is-hidden
  125. z-index: 0
  126. left: 5px
  127. .archived-lists .archived-lists-item
  128. border-top: 1px solid darken(white, 20%)
  129. clear: both
  130. padding: 5px 0
  131. &:first-child
  132. border-top: none
  133. button
  134. float: right
  135. margin: 0
  136. margin: 0 0 5px 5px
  137. padding: 0 10px 0 10px
  138. @media screen and (max-width: 800px)
  139. .board-sidebar
  140. width: 100%
  141. right: -@width
  142. .sidebar-content
  143. .hide-btn
  144. width: 40px
  145. height: @width
  146. position: absolute
  147. right: 5px
  148. top: 5px
  149. display: block
  150. z-index: 15
  151. background: darken(white, 3%)
  152. transition: left .1s
  153. color: darken(white, 50%)
  154. border-radius: 50%
  155. border: 1px solid darken(white, 30%)
  156. box-shadow: 0 1px 6px rgba(0, 0, 0, .3)
  157. color: darken(white, 50%)
  158. i.fa
  159. padding: 8px 16px
  160. font-size: 24px
  161. font-weight: bold
  162. .sidebar-tongue
  163. width: 40px
  164. height: @width
  165. left: -@width - 7px
  166. top: 5px
  167. display: block
  168. border-radius: 50%
  169. border: 1px solid darken(white, 30%)
  170. box-shadow: 0 1px 6px rgba(0, 0, 0, .3)
  171. color: darken(white, 50%)
  172. .board-sidebar.is-open &
  173. display: none
  174. i.fa
  175. padding: 8px 0px 8px 16px
  176. font-weight: bold
  177. #jsBoardOrgs, #jsBoardTeams
  178. width: 90%
  179. .leaveBoardBtn
  180. background-color: green !important
  181. .cancelLeaveBoardBtn
  182. margin-left: 5% !important
  183. background-color: red !important
  184. .addTeamsLabelcss
  185. font-weight: normal;
  186. .js-manage-board-removeTeam
  187. box-shadow: 0 0 0 2px #e23210 inset !important
  188. .js-manage-board-addTeam
  189. box-shadow: 0 0 0 2px #73ea10 inset !important
  190. .addTeamFaPlus
  191. color: green !important
  192. .removeTeamFaMinus
  193. color: red !important
  194. .divaddfaplusminus
  195. padding-top: 5px;
  196. margin-left: 40px;