minicard.styl 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. &.linked-board
  40. &.linked-card
  41. .linked-icon
  42. display: inline-block
  43. margin-right: 11px
  44. vertical-align: baseline
  45. font-size: 0.9em
  46. .linked-archived
  47. color: #937760
  48. .is-selected &
  49. transform: translateX(11px)
  50. border-bottom-right-radius: 0
  51. border-top-right-radius: 0
  52. z-index: 25
  53. box-shadow: -2px 1px 2px rgba(0,0,0,.2)
  54. &:hover:not(.minicard-composer),
  55. .is-selected &,
  56. .draggable-hover-card &
  57. background: darken(white, 3%)
  58. .draggable-hover-card &
  59. background: darken(white, 7%)
  60. .minicard-cover
  61. background-position: center
  62. background-repeat: no-repeat
  63. background-size: contain
  64. height: 145px
  65. user-select: none
  66. margin: -6px -8px 6px -8px
  67. border-radius: top 2px
  68. .minicard-labels
  69. float: right
  70. display: flex
  71. .minicard-label
  72. width: 11px
  73. height: @width
  74. border-radius: 2px
  75. margin-left: 3px
  76. .minicard-custom-fields
  77. display:block;
  78. .minicard-custom-field
  79. display:flex;
  80. .minicard-custom-field-item
  81. max-width:50%;
  82. flex-grow:1;
  83. .minicard-title
  84. p:last-child
  85. margin-bottom: 0
  86. .viewer
  87. display: inline-block
  88. .dates
  89. display: flex;
  90. flex-direction: row;
  91. flex-wrap: wrap;
  92. .date
  93. margin-right: 3px
  94. .badges
  95. float: left
  96. margin-top: 7px
  97. color: darken(white, 50%)
  98. &:empty
  99. display: none
  100. .badge
  101. float: left
  102. margin-right: 11px
  103. margin-bottom: 3px
  104. font-size: 0.9em
  105. &.is-finished
  106. background: #3cb500
  107. padding: 0px 3px
  108. border-radius: 3px
  109. color: white
  110. &:last-of-type
  111. margin-right: 0
  112. .badge-icon,
  113. .badge-text
  114. vertical-align: middle
  115. &.badge-comment
  116. margin-bottom: 0.1rem
  117. .badge-text
  118. font-size: 0.9em
  119. padding-left: 2px
  120. line-height: 14px
  121. .check-list-text
  122. padding-left: 0px
  123. line-height: 12px
  124. .minicard-members
  125. float: right
  126. margin: 2px -8px -2px 0
  127. .member
  128. float: right
  129. border-radius: 50%
  130. height: 28px
  131. width: @height
  132. + .badges
  133. margin-top: 10px
  134. .minicard-members:empty
  135. display: none
  136. &.minicard-composer
  137. margin-bottom: 10px
  138. textarea.minicard-composer-textarea,
  139. textarea.minicard-composer-textarea:focus
  140. resize: none
  141. background: none
  142. border: none
  143. box-shadow: none
  144. height: auto
  145. margin: 0
  146. padding: 0
  147. max-height: 162px
  148. min-height: 36px
  149. margin-bottom: 20px
  150. overflow-y: auto
  151. .parent-prefix
  152. color: darken(white, 30%)
  153. font-size: 0.9em
  154. .parent-subtext
  155. color: darken(white, 30%)
  156. font-size: 0.9em
  157. @media screen and (max-width: 800px)
  158. .minicard
  159. .is-selected &
  160. transform: translateX(0px)
  161. border-bottom-right-radius: 0
  162. border-top-right-radius: 0
  163. z-index: 15
  164. box-shadow: 0 1px 2px rgba(0,0,0,.15)