minicard.styl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. @import 'nib'
  2. .minicard-wrapper
  3. cursor: pointer
  4. position: relative
  5. display: flex
  6. align-items: center
  7. margin-bottom: 9px
  8. &.placeholder
  9. background: darken(white, 20%)
  10. border-radius: 9px
  11. &.ui-sortable-helper
  12. cursor: grabbing
  13. transform: rotate(4deg)
  14. display: block !important
  15. .and-n-other
  16. width: 100%
  17. height: 16px
  18. padding: 4px
  19. background-color: darken(white, 5%)
  20. text-align: center
  21. border-radius: 3px
  22. .multi-selection-checkbox
  23. display: none
  24. .multi-selection-checkbox + .minicard
  25. margin-left: 8px
  26. .minicard
  27. padding: 6px 8px 2px
  28. position: relative
  29. flex: 1
  30. flex-wrap: wrap
  31. background-color: #fff
  32. min-height: 20px
  33. box-shadow: 0 1px 2px rgba(0,0,0,.15)
  34. border-radius: 2px
  35. color: #4d4d4d
  36. overflow: hidden
  37. transition: transform 0.2s,
  38. border-radius 0.2s
  39. &.imported-board
  40. background-color: #efd8e6
  41. &:hover:not(.minicard-composer),
  42. .is-selected &,
  43. .draggable-hover-card &
  44. background: darken(#efd8e6, 3%)
  45. .is-selected &
  46. border-left: 3px solid darken(#efd8e6, 50%)
  47. .minicard-title
  48. font-style: italic
  49. font-weight: bold
  50. &.imported-card
  51. background-color: #d5e4bd
  52. &:hover:not(.minicard-composer),
  53. .is-selected &,
  54. .draggable-hover-card &
  55. background: darken(#d5e4bd, 3%)
  56. .is-selected &
  57. border-left: 3px solid darken(#d5e4bd, 50%)
  58. .minicard-title
  59. font-style: italic
  60. &.imported-board
  61. &.imported-card
  62. .imported-icon
  63. display: inline-block
  64. margin-right: 11px
  65. vertical-align: baseline
  66. font-size: 0.9em
  67. .is-selected &
  68. transform: translateX(11px)
  69. border-bottom-right-radius: 0
  70. border-top-right-radius: 0
  71. z-index: 25
  72. box-shadow: -2px 1px 2px rgba(0,0,0,.2)
  73. &:hover:not(.minicard-composer),
  74. .is-selected &,
  75. .draggable-hover-card &
  76. background: darken(white, 3%)
  77. .draggable-hover-card &
  78. background: darken(white, 7%)
  79. .minicard-cover
  80. background-position: center
  81. background-repeat: no-repeat
  82. background-size: contain
  83. height: 145px
  84. user-select: none
  85. margin: -6px -8px 6px -8px
  86. border-radius: top 2px
  87. .minicard-labels
  88. float: right
  89. display: flex
  90. .minicard-label
  91. width: 11px
  92. height: @width
  93. border-radius: 2px
  94. margin-left: 3px
  95. .minicard-custom-fields
  96. display:block;
  97. .minicard-custom-field
  98. display:flex;
  99. .minicard-custom-field-item
  100. max-width:50%;
  101. flex-grow:1;
  102. .minicard-title
  103. p:last-child
  104. margin-bottom: 0
  105. .viewer
  106. display: inline-block
  107. .dates
  108. display: flex;
  109. flex-direction: row;
  110. flex-wrap: wrap;
  111. .date
  112. margin-right: 3px
  113. .badges
  114. float: left
  115. margin-top: 7px
  116. color: darken(white, 50%)
  117. &:empty
  118. display: none
  119. .badge
  120. float: left
  121. margin-right: 11px
  122. margin-bottom: 3px
  123. font-size: 0.9em
  124. &.is-finished
  125. background: #3cb500
  126. padding: 0px 3px
  127. border-radius: 3px
  128. color: white
  129. &:last-of-type
  130. margin-right: 0
  131. .badge-icon,
  132. .badge-text
  133. vertical-align: middle
  134. &.badge-comment
  135. margin-bottom: 0.1rem
  136. .badge-text
  137. font-size: 0.9em
  138. padding-left: 2px
  139. line-height: 14px
  140. .check-list-text
  141. padding-left: 0px
  142. line-height: 12px
  143. .minicard-members
  144. float: right
  145. margin: 2px -8px -2px 0
  146. .member
  147. float: right
  148. border-radius: 50%
  149. height: 28px
  150. width: @height
  151. + .badges
  152. margin-top: 10px
  153. .minicard-members:empty
  154. display: none
  155. &.minicard-composer
  156. margin-bottom: 10px
  157. textarea.minicard-composer-textarea,
  158. textarea.minicard-composer-textarea:focus
  159. resize: none
  160. background: none
  161. border: none
  162. box-shadow: none
  163. height: auto
  164. margin: 0
  165. padding: 0
  166. max-height: 162px
  167. min-height: 36px
  168. margin-bottom: 20px
  169. overflow-y: auto
  170. .parent-prefix
  171. color: darken(white, 30%)
  172. font-size: 0.9em
  173. .parent-subtext
  174. color: darken(white, 30%)
  175. font-size: 0.9em
  176. @media screen and (max-width: 800px)
  177. .minicard
  178. .is-selected &
  179. transform: translateX(0px)
  180. border-bottom-right-radius: 0
  181. border-top-right-radius: 0
  182. z-index: 15
  183. box-shadow: 0 1px 2px rgba(0,0,0,.15)