checklists.styl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. .js-add-checklist
  2. color: #8c8c8c
  3. textarea.js-add-checklist-item, textarea.js-edit-checklist-item
  4. overflow: hidden
  5. word-wrap: break-word
  6. resize: none
  7. height: 34px
  8. .delete-text
  9. color: #8c8c8c
  10. text-decoration: underline
  11. word-wrap: break-word
  12. float: right
  13. padding-top: 6px
  14. &:hover
  15. color: inherit
  16. .checklists-title
  17. display: flex
  18. justify-content: space-between
  19. .checklist-title
  20. .checkbox
  21. float: left
  22. width: 30px
  23. height 30px
  24. font-size: 18px
  25. line-height: 30px
  26. .title
  27. font-size: 18px
  28. line-height: 25px
  29. .checklist-stat
  30. margin: 0 0.5em
  31. float: right
  32. padding-top: 6px
  33. &.is-finished
  34. color: #3cb500
  35. .js-delete-checklist
  36. @extends .delete-text
  37. span.fa.checklist-handle
  38. padding-right: 20px
  39. padding-top: 3px
  40. float: left
  41. .js-confirm-checklist-delete
  42. background-color: darken(white, 3%)
  43. position: absolute
  44. float: left;
  45. width: 60%
  46. margin-top: 0
  47. margin-left: 13%
  48. padding-bottom: 2%
  49. padding-left: 3%
  50. padding-right: 3%
  51. z-index: 17
  52. border-radius: 3px
  53. p
  54. position: relative
  55. margin-top: 3%
  56. width: 100%
  57. text-align: center
  58. span
  59. font-weight: bold
  60. i
  61. font-size: 2em
  62. .js-checklist-delete-buttons
  63. position: relative
  64. padding: left 2% right 2%
  65. .confirm-checklist-delete
  66. margin-left: 12%
  67. float: left
  68. .toggle-delete-checklist-dialog
  69. margin-right: 12%
  70. float: right
  71. #card-details-overlay
  72. top: 0
  73. bottom: -600px
  74. right: 0
  75. .checklist
  76. background: darken(white, 3%)
  77. &.placeholder
  78. background: darken(white, 20%)
  79. border-radius: 2px
  80. &.ui-sortable-helper
  81. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  82. 0 0 1px rgba(0, 0, 0, .5)
  83. transform: rotate(4deg)
  84. cursor: grabbing
  85. .checklist-item
  86. margin: 0 0 0 0.1em
  87. line-height: 18px
  88. font-size: 1.1em
  89. margin-top: 3px
  90. display: flex
  91. background: darken(white, 3%)
  92. opacity: 1
  93. transition: height 0ms 400ms, opacity 400ms 0ms
  94. height: auto
  95. overflow: hidden
  96. &.is-checked.invisible
  97. opacity: 0
  98. height: 0
  99. transition: height 0ms 0ms, opacity 600ms 0ms
  100. margin-top: 0
  101. margin-bottom: 0
  102. &.placeholder
  103. background: darken(white, 20%)
  104. border-radius: 2px
  105. &.ui-sortable-helper
  106. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  107. 0 0 1px rgba(0, 0, 0, .5)
  108. transform: rotate(4deg)
  109. cursor: grabbing
  110. &:hover
  111. background-color: darken(white, 8%)
  112. .check-box-container
  113. padding-right: 10px;
  114. .check-box
  115. margin: 0.1em 0 0 0;
  116. &.is-checked
  117. border-bottom: 2px solid #3cb500
  118. border-right: 2px solid #3cb500
  119. .item-title
  120. flex: 1
  121. &.is-checked
  122. color: #8c8c8c
  123. font-style: italic
  124. text-decoration: line-through
  125. & .viewer
  126. p
  127. margin-bottom: 2px
  128. display: block
  129. word-wrap: break-word
  130. max-width: 420px
  131. span.fa.checklistitem-handle
  132. padding-top: 2px
  133. padding-right: 10px;
  134. .js-delete-checklist-item,
  135. .js-convert-checklist-item-to-card
  136. margin: 0 0 0.5em 1.33em
  137. @extends .delete-text
  138. padding: 12px 0 0 0
  139. .add-checklist-item
  140. margin: 0.2em 0 0.5em 1.33em
  141. display: inline-block