2
0

minicard.styl 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .minicard
  2. background-color: #fff
  3. box-shadow: 0 1px 2px rgba(0,0,0,.2)
  4. border-radius: 2px
  5. cursor: pointer
  6. margin-bottom: 9px
  7. max-width: 300px
  8. min-height: 20px
  9. position: relative
  10. z-index: 0
  11. overflow: hidden
  12. a
  13. color: #4d4d4d
  14. &.active-card
  15. background-color: #f0f0f0
  16. border-bottom-color: #c2c2c2
  17. .minicard-operation
  18. display: block
  19. &.draggable-hover-card
  20. background-color: #f0f0f0
  21. border-bottom-color: #c2c2c2
  22. .minicard-cover
  23. background-position: center
  24. background-repeat: no-repeat
  25. background-size: cover
  26. height: 145px
  27. user-select: none
  28. margin: -6px -8px 6px -8px
  29. border-radius: top 2px
  30. &.no-preview-size
  31. background-size: auto
  32. background-position: center
  33. .minicard-details
  34. padding: 6px 8px 2px
  35. position: relative
  36. z-index: 10
  37. &.is-selected
  38. .minicard-details
  39. padding-bottom: 0
  40. a.minicard-details
  41. text-decoration:none
  42. .minicard-details-overlay
  43. background: transparent
  44. bottom: 0
  45. left: 0
  46. position: absolute
  47. right: 0
  48. top: 0
  49. .minicard-dropzone
  50. display: none
  51. .minicard.drophover .minicard-dropzone
  52. background: rgba(255, 255, 255, .8)
  53. // border-radius: 3px
  54. // bottom: 0
  55. // display: block
  56. // font-weight: 700
  57. // line-height: 100%
  58. // left: 0
  59. // margin: 0
  60. // opacity: 1
  61. // padding: 0
  62. // position: absolute
  63. // right: 0
  64. // text-align: center
  65. // top: 0
  66. // z-index: 40
  67. .minicard-title
  68. display: block
  69. font-weight: 400
  70. margin: 0 0 4px
  71. overflow: hidden
  72. text-decoration: none
  73. word-wrap: break-word
  74. &::selection
  75. background: transparent
  76. .minicard-labels
  77. padding-top: 3px
  78. margin-top: 4px
  79. float: right
  80. .minicard-label
  81. float: right
  82. width: 8px
  83. height: @width
  84. border-radius: 2px
  85. margin-left: 4px
  86. .minicard-members
  87. float: right
  88. margin: 2px -8px -2px 0
  89. .member
  90. float: right
  91. border-radius: 50%
  92. height: 28px
  93. width: @height
  94. + .badges
  95. margin-top: 10px
  96. .minicard-members:empty
  97. display: none
  98. .badges
  99. float: left
  100. &:empty
  101. display: none
  102. textarea.minicard-composer-textarea,
  103. textarea.minicard-composer-textarea:focus
  104. background: none
  105. border: none
  106. box-shadow: none
  107. height: auto
  108. margin-bottom: 4px
  109. padding: 0
  110. max-height: 162px
  111. min-height: 54px
  112. overflow-y: auto