mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Add styling
This commit is contained in:
parent
243af32fc7
commit
06e64d24a8
3 changed files with 17 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ BlazeComponent.extendComponent({
|
||||||
helper: 'clone',
|
helper: 'clone',
|
||||||
handle: '.checklist-title',
|
handle: '.checklist-title',
|
||||||
items: '.js-checklist',
|
items: '.js-checklist',
|
||||||
placeholder: 'js-checklist placeholder',
|
placeholder: 'checklist placeholder',
|
||||||
distance: 7,
|
distance: 7,
|
||||||
start(evt, ui) {
|
start(evt, ui) {
|
||||||
ui.placeholder.height(ui.helper.height());
|
ui.placeholder.height(ui.helper.height());
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ template(name="checklists")
|
||||||
| {{_ 'add-checklist'}}...
|
| {{_ 'add-checklist'}}...
|
||||||
|
|
||||||
template(name="checklistDetail")
|
template(name="checklistDetail")
|
||||||
.js-checklist
|
.js-checklist.checklist
|
||||||
+inlinedForm(classNames="js-edit-checklist-title" checklist = checklist)
|
+inlinedForm(classNames="js-edit-checklist-title" checklist = checklist)
|
||||||
+editChecklistItemForm(checklist = checklist)
|
+editChecklistItemForm(checklist = checklist)
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -78,12 +78,27 @@ textarea.js-add-checklist-item, textarea.js-edit-checklist-item
|
||||||
bottom: -600px
|
bottom: -600px
|
||||||
right: 0
|
right: 0
|
||||||
|
|
||||||
|
.checklist
|
||||||
|
background: darken(white, 3%)
|
||||||
|
|
||||||
|
&.placeholder
|
||||||
|
background: darken(white, 20%)
|
||||||
|
border-radius: 2px
|
||||||
|
|
||||||
|
&.ui-sortable-helper
|
||||||
|
box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
|
||||||
|
0 0 1px rgba(0, 0, 0, .5)
|
||||||
|
transform: rotate(4deg)
|
||||||
|
cursor: grabbing
|
||||||
|
|
||||||
|
|
||||||
.checklist-item
|
.checklist-item
|
||||||
margin: 0 0 0.5em 1.33em
|
margin: 0 0 0.5em 1.33em
|
||||||
line-height: 25px
|
line-height: 25px
|
||||||
font-size: 1.1em
|
font-size: 1.1em
|
||||||
margin-top: 3px
|
margin-top: 3px
|
||||||
display: flex
|
display: flex
|
||||||
|
background: darken(white, 3%)
|
||||||
|
|
||||||
&.placeholder
|
&.placeholder
|
||||||
background: darken(white, 20%)
|
background: darken(white, 20%)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue