boardsList.styl 4.0 KB

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