minicard.styl 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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: 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. .dates
  68. display: flex;
  69. flex-direction: row;
  70. flex-wrap: wrap;
  71. .date
  72. margin-right: 3px
  73. .badges
  74. float: left
  75. margin-top: 7px
  76. color: darken(white, 50%)
  77. &:empty
  78. display: none
  79. .badge
  80. float: left
  81. margin-right: 11px
  82. margin-bottom: 3px
  83. font-size: 0.9em
  84. &.is-finished
  85. background: #3cb500
  86. padding: 0px 3px
  87. border-radius: 3px
  88. color: white
  89. &:last-of-type
  90. margin-right: 0
  91. .badge-icon,
  92. .badge-text
  93. vertical-align: middle
  94. &.badge-comment
  95. margin-bottom: 0.1rem
  96. .badge-text
  97. font-size: 0.9em
  98. padding-left: 2px
  99. line-height: 14px
  100. .check-list-text
  101. padding-left: 0px
  102. line-height: 12px
  103. .minicard-members
  104. float: right
  105. margin: 2px -8px -2px 0
  106. .member
  107. float: right
  108. border-radius: 50%
  109. height: 28px
  110. width: @height
  111. + .badges
  112. margin-top: 10px
  113. .minicard-members:empty
  114. display: none
  115. &.minicard-composer
  116. margin-bottom: 10px
  117. textarea.minicard-composer-textarea,
  118. textarea.minicard-composer-textarea:focus
  119. resize: none
  120. background: none
  121. border: none
  122. box-shadow: none
  123. height: auto
  124. margin: 0
  125. padding: 0
  126. max-height: 162px
  127. min-height: 36px
  128. margin-bottom: 20px
  129. overflow-y: auto
  130. @media screen and (max-width: 800px)
  131. .minicard
  132. .is-selected &
  133. transform: translateX(0px)
  134. border-bottom-right-radius: 0
  135. border-top-right-radius: 0
  136. z-index: 15
  137. box-shadow: 0 1px 2px rgba(0,0,0,.15)