checklists.styl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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-progress-bar-container
  20. display: flex
  21. flex-direction: row
  22. align-items: center
  23. .checklist-progress-text
  24. margin-right: 10px
  25. .checklist-progress-bar
  26. width: 80%
  27. height: 10px
  28. .checklist-progress
  29. color: #fff !important
  30. background-color: #2196F3 !important
  31. padding: 0.01em 16px
  32. border-radius: 16px
  33. height: 100%
  34. .checklist-title
  35. .checkbox
  36. float: left
  37. width: 30px
  38. height 30px
  39. font-size: 18px
  40. line-height: 30px
  41. .title
  42. font-size: 18px
  43. line-height: 25px
  44. .checklist-stat
  45. margin: 0 0.5em
  46. float: right
  47. padding-top: 6px
  48. &.is-finished
  49. color: #3cb500
  50. span.fa.checklist-handle
  51. padding-right: 20px
  52. padding-top: 3px
  53. float: left
  54. #card-details-overlay
  55. top: 0
  56. bottom: -600px
  57. right: 0
  58. .checklist
  59. background: darken(white, 3%)
  60. &.placeholder
  61. background: darken(white, 20%)
  62. border-radius: 2px
  63. &.ui-sortable-helper
  64. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  65. 0 0 1px rgba(0, 0, 0, .5)
  66. transform: rotate(4deg)
  67. cursor: grabbing
  68. .checklist-item
  69. margin: 0 0 0 0.1em
  70. line-height: 18px
  71. font-size: 1.1em
  72. margin-top: 3px
  73. display: flex
  74. background: darken(white, 3%)
  75. opacity: 1
  76. transition: height 0ms 400ms, opacity 400ms 0ms
  77. height: auto
  78. overflow: hidden
  79. &.is-checked.invisible
  80. opacity: 0
  81. height: 0
  82. transition: height 0ms 0ms, opacity 600ms 0ms
  83. margin-top: 0
  84. margin-bottom: 0
  85. &.placeholder
  86. background: darken(white, 20%)
  87. border-radius: 2px
  88. &.ui-sortable-helper
  89. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  90. 0 0 1px rgba(0, 0, 0, .5)
  91. transform: rotate(4deg)
  92. cursor: grabbing
  93. &:hover
  94. background-color: darken(white, 8%)
  95. .check-box-container
  96. padding-right: 10px;
  97. .check-box
  98. margin: 0.1em 0 0 0;
  99. &.is-checked
  100. border-bottom: 2px solid #3cb500
  101. border-right: 2px solid #3cb500
  102. .item-title
  103. flex: 1
  104. &.is-checked
  105. color: #8c8c8c
  106. font-style: italic
  107. text-decoration: line-through
  108. & .viewer
  109. p
  110. margin-bottom: 2px
  111. display: block
  112. word-wrap: break-word
  113. max-width: 420px
  114. span.fa.checklistitem-handle
  115. padding-top: 2px
  116. padding-right: 10px;
  117. .js-delete-checklist-item,
  118. .js-convert-checklist-item-to-card
  119. margin: 0 0 0.5em 1.33em
  120. @extends .delete-text
  121. padding: 12px 0 0 0
  122. .add-checklist-item
  123. margin: 0.2em 0 0.5em 1.33em
  124. .add-checklist-item,.add-checklist
  125. &.js-open-inlined-form
  126. display: block
  127. width: 50%
  128. &:hover
  129. background: #dbdbdb
  130. color: #222
  131. box-shadow: 0 1px 2px rgba(0,0,0,.2)
  132. .checklist-details-menu
  133. float: right
  134. padding: 6px 10px 6px 10px
  135. .edit-controls
  136. label.toggle-label
  137. margin-left: 2px