checklists.styl 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. .checklist-title
  17. .checkbox
  18. float: left
  19. width: 30px
  20. height 30px
  21. font-size: 18px
  22. line-height: 30px
  23. .title
  24. font-size: 18px
  25. line-height: 25px
  26. .checklist-stat
  27. margin: 0 0.5em
  28. float: right
  29. padding-top: 6px
  30. &.is-finished
  31. color: #3cb500
  32. .checklist-handle
  33. position: absolute
  34. padding: 7px
  35. top: 50%
  36. transform: translateY(-50%)
  37. left: 100px
  38. font-size: 18px
  39. .js-delete-checklist
  40. @extends .delete-text
  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: 20%
  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. &.placeholder
  93. background: darken(white, 20%)
  94. border-radius: 2px
  95. &.ui-sortable-helper
  96. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  97. 0 0 1px rgba(0, 0, 0, .5)
  98. transform: rotate(4deg)
  99. cursor: grabbing
  100. &:hover
  101. background-color: darken(white, 8%)
  102. .check-box
  103. margin: 0.1em 0 0 0;
  104. &.is-checked
  105. border-bottom: 2px solid #3cb500
  106. border-right: 2px solid #3cb500
  107. .item-title
  108. flex: 1
  109. padding-left: 10px;
  110. &.is-checked
  111. color: #8c8c8c
  112. font-style: italic
  113. &.viewer
  114. p
  115. margin-bottom: 2px
  116. display: block
  117. word-wrap: break-word
  118. max-width: 420px
  119. .checklist-item-handle
  120. position: absolute
  121. padding: 7px
  122. top: 50%
  123. transform: translateY(-50%)
  124. left: 200px
  125. font-size: 18px
  126. .js-delete-checklist-item
  127. margin: 0 0 0.5em 1.33em
  128. @extends .delete-text
  129. padding: 12px 0 0 0
  130. .add-checklist-item
  131. margin: 0.2em 0 0.5em 1.33em
  132. display: inline-block