minicard.styl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .minicard-wrapper
  2. cursor: pointer
  3. position: relative
  4. display: flex
  5. align-items: center
  6. margin-bottom: 9px
  7. &.draggable-hover-card
  8. background-color: #f0f0f0
  9. border-bottom-color: #c2c2c2
  10. &.placeholder
  11. background: darken(white, 20%)
  12. border-radius: 2px
  13. &.ui-sortable-helper
  14. cursor: grabbing
  15. transform: rotate(4deg)
  16. display: block !important
  17. .and-n-other
  18. width: 100%
  19. height: 16px
  20. padding: 4px
  21. background-color: darken(white, 5%)
  22. text-align: center
  23. border-radius: 3px
  24. .multi-selection-checkbox
  25. display: none
  26. .multi-selection-checkbox + .minicard
  27. margin-left: 8px
  28. .minicard
  29. padding: 6px 8px 2px
  30. position: relative
  31. flex: 1
  32. flex-wrap: wrap
  33. background-color: #fff
  34. min-height: 20px
  35. box-shadow: 0 1px 2px rgba(0,0,0,.2)
  36. border-radius: 2px
  37. color: #4d4d4d
  38. overflow: hidden
  39. transition: transform 0.2s,
  40. border-radius 0.2s
  41. .is-selected &
  42. transform: translateX(11px)
  43. border-bottom-right-radius: 0
  44. border-top-right-radius: 0
  45. z-index: 25
  46. box-shadow: -2px 1px 2px rgba(0,0,0,.2)
  47. .minicard-cover
  48. background-position: center
  49. background-repeat: no-repeat
  50. background-size: cover
  51. height: 145px
  52. user-select: none
  53. margin: -6px -8px 6px -8px
  54. border-radius: top 2px
  55. position: relative
  56. img
  57. height: 100%
  58. width: 100%
  59. .minicard-title
  60. display: block
  61. font-weight: 400
  62. overflow: hidden
  63. margin-bottom: 2px
  64. text-decoration: none
  65. word-wrap: break-word
  66. &::selection
  67. background: transparent
  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. .badges
  77. float: left
  78. margin-top: 5px
  79. color: darken(white, 60%)
  80. &:empty
  81. display: none
  82. .badge
  83. float: left
  84. margin-right: 10px
  85. .badge-text
  86. font-size: 0.9em
  87. .minicard-members
  88. float: right
  89. margin: 2px -8px -2px 0
  90. .member
  91. float: right
  92. border-radius: 50%
  93. height: 28px
  94. width: @height
  95. + .badges
  96. margin-top: 10px
  97. .minicard-members:empty
  98. display: none
  99. &.minicard-composer
  100. margin-bottom: 10px
  101. textarea.minicard-composer-textarea,
  102. textarea.minicard-composer-textarea:focus
  103. resize: none
  104. background: none
  105. border: none
  106. box-shadow: none
  107. height: auto
  108. margin: 0
  109. padding: 0
  110. max-height: 162px
  111. min-height: 54px
  112. overflow-y: auto