checklists.styl 2.7 KB

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