checklists.styl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. #card-details-overlay
  42. top: 0
  43. bottom: -600px
  44. right: 0
  45. .checklist
  46. background: darken(white, 3%)
  47. &.placeholder
  48. background: darken(white, 20%)
  49. border-radius: 2px
  50. &.ui-sortable-helper
  51. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  52. 0 0 1px rgba(0, 0, 0, .5)
  53. transform: rotate(4deg)
  54. cursor: grabbing
  55. .checklist-item
  56. margin: 0 0 0 0.1em
  57. line-height: 18px
  58. font-size: 1.1em
  59. margin-top: 3px
  60. display: flex
  61. background: darken(white, 3%)
  62. opacity: 1
  63. transition: height 0ms 400ms, opacity 400ms 0ms
  64. height: auto
  65. overflow: hidden
  66. &.is-checked.invisible
  67. opacity: 0
  68. height: 0
  69. transition: height 0ms 0ms, opacity 600ms 0ms
  70. margin-top: 0
  71. margin-bottom: 0
  72. &.placeholder
  73. background: darken(white, 20%)
  74. border-radius: 2px
  75. &.ui-sortable-helper
  76. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  77. 0 0 1px rgba(0, 0, 0, .5)
  78. transform: rotate(4deg)
  79. cursor: grabbing
  80. &:hover
  81. background-color: darken(white, 8%)
  82. .check-box-container
  83. padding-right: 10px;
  84. .check-box
  85. margin: 0.1em 0 0 0;
  86. &.is-checked
  87. border-bottom: 2px solid #3cb500
  88. border-right: 2px solid #3cb500
  89. .item-title
  90. flex: 1
  91. &.is-checked
  92. color: #8c8c8c
  93. font-style: italic
  94. text-decoration: line-through
  95. & .viewer
  96. p
  97. margin-bottom: 2px
  98. display: block
  99. word-wrap: break-word
  100. max-width: 420px
  101. span.fa.checklistitem-handle
  102. padding-top: 2px
  103. padding-right: 10px;
  104. .js-delete-checklist-item,
  105. .js-convert-checklist-item-to-card
  106. margin: 0 0 0.5em 1.33em
  107. @extends .delete-text
  108. padding: 12px 0 0 0
  109. .add-checklist-item
  110. margin: 0.2em 0 0.5em 1.33em
  111. .add-checklist-item,.add-checklist
  112. &.js-open-inlined-form
  113. display: block
  114. width: 50%
  115. &:hover
  116. background: #dbdbdb
  117. color: #222
  118. box-shadow: 0 1px 2px rgba(0,0,0,.2)