minicard.styl 3.4 KB

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