boardsList.styl 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. @import 'nib'
  2. $spaceBetweenTiles = 16px
  3. .board-list
  4. margin: 0 ($spaceBetweenTiles/2)
  5. li
  6. float: left
  7. width: 20%
  8. box-sizing: border-box
  9. position: relative
  10. &.placeholder:after
  11. content: '';
  12. display: block;
  13. background: darken(white, 20%)
  14. border-radius: 3px;
  15. height: 106px;
  16. margin: 8px;
  17. &.ui-sortable-helper
  18. cursor: grabbing
  19. transform: rotate(4deg)
  20. display: block !important
  21. &.starred
  22. .fa-star,
  23. .fa-star-o
  24. opacity: 1
  25. .board-list-item
  26. overflow: hidden;
  27. background-color: #999
  28. color: #f6f6f6
  29. min-height: 100px
  30. font-size: 16px
  31. line-height: 22px
  32. border-radius: 3px
  33. display: block
  34. font-weight: 700
  35. padding: 8px
  36. margin: ($spaceBetweenTiles/2)
  37. position: relative
  38. text-decoration: none
  39. word-wrap: break-word
  40. &.tile
  41. background-size: auto
  42. background-repeat: repeat
  43. .board-list-item-sub-name
  44. color: rgba(255, 255, 255, .5)
  45. display: block
  46. font-size: 14px
  47. font-weight: 400
  48. line-height: 22px
  49. .board-list-item-desc
  50. color: #fff
  51. display: block
  52. font-size: 14px
  53. font-weight: 400
  54. line-height: 18px
  55. .js-add-board
  56. text-align:center
  57. .label
  58. font-weight: normal
  59. line-height: 56px
  60. :hover
  61. background-color:#939393
  62. .fa-star,
  63. .fa-star-o
  64. bottom: 0
  65. font-size: 14px
  66. height: 18px
  67. line-height: 18px
  68. opacity: 0
  69. padding: 9px 9px
  70. position: absolute
  71. right: 0
  72. top: 0
  73. transition-duration: .15s
  74. transition-property: color, font-size, background
  75. .fa-circle
  76. bottom: 0;
  77. font-size: 10px;
  78. height: 10px;
  79. line-height: 10px;
  80. padding: 9px 9px;
  81. position: absolute;
  82. right: 0;
  83. transition-duration: .15s
  84. transition-property: color, font-size, background
  85. .has-overtime-card-active
  86. color: #eb4646 !important
  87. .no-overtime-card-active
  88. color: #3cb500 !important
  89. .is-star-active
  90. color: white
  91. .fa-clone
  92. position: absolute;
  93. bottom: 0
  94. font-size: 14px
  95. height: 18px
  96. line-height: 18px
  97. opacity: 0
  98. right: 0
  99. padding: 9px 9px
  100. transition-duration: .15s
  101. transition-property: color, font-size, background
  102. .fa-archive
  103. position: absolute;
  104. bottom: 0
  105. font-size: 14px
  106. height: 18px
  107. line-height: 18px
  108. opacity: 0
  109. left: 0
  110. padding: 9px 9px
  111. transition-duration: .15s
  112. transition-property: color, font-size, background
  113. li:hover a
  114. &:hover
  115. .fa-star,
  116. .fa-clone,
  117. .fa-archive,
  118. .fa-star-o
  119. color: white
  120. .fa-star,
  121. .fa-clone,
  122. .fa-archive,
  123. .fa-star-o
  124. color: white
  125. opacity: .75
  126. &:hover
  127. font-size: 18px
  128. opacity: 1
  129. &.is-star-active
  130. opacity: 1
  131. .board-backgrounds-list
  132. .board-background-select
  133. box-sizing: border-box
  134. display: block
  135. float: left
  136. width: 50%
  137. padding-top: 12px
  138. position: relative
  139. z-index: 1
  140. &:nth-child(-n + 2)
  141. padding-top: 0
  142. &:nth-child(2n)
  143. padding-left: 6px
  144. &:nth-child(2n+1)
  145. padding-right: 6px
  146. .background-box
  147. color: white
  148. border-radius: 3px
  149. background-size: cover
  150. display: block
  151. height: 74px
  152. position: relative
  153. width: 100%
  154. cursor: pointer
  155. display: flex
  156. align-items: center
  157. justify-content: center
  158. i.fa-check
  159. font-size: 25px
  160. color: white
  161. @media screen and (max-width: 800px)
  162. .board-list
  163. height: 100%
  164. overflow: scroll
  165. li
  166. width: 50%
  167. .board-list-item
  168. overflow: hidden
  169. height: 8rem
  170. .board-list-item-sub-name
  171. position: relative
  172. top: -100px
  173. left: -100px
  174. .board-handle
  175. position: absolute
  176. padding: 7px
  177. top: 50%
  178. transform: translateY(-50%)
  179. right: 10px
  180. font-size: 24px
  181. @media screen and (max-width: 360px)
  182. li
  183. width: 100%
  184. .board-handle
  185. position: absolute
  186. padding: 7px
  187. top: 50%
  188. transform: translateY(-50%)
  189. right: 10px
  190. font-size: 24px