checklists.styl 2.9 KB

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