Groups can now be ordered (via drag and drop)

This commit is contained in:
Greg Burri 2025-01-10 22:38:34 +01:00
parent 16c484c2d1
commit 975d1ceee2
14 changed files with 461 additions and 54 deletions

View file

@ -70,6 +70,8 @@ body {
.drag-handle {
width: 20px;
height: 20px;
display: inline-block;
vertical-align: bottom;
background-color: blue;
}
@ -92,7 +94,6 @@ body {
border: 0;
}
.recipe-item {
padding: 4px;
}
@ -118,6 +119,13 @@ body {
h1 {
text-align: center;
}
}
#recipe-edit {
.drag-handle {
cursor: move;
}
.group {
border: 0.1em solid lighten($color-3, 30%);
@ -131,6 +139,21 @@ body {
border: 0.1em solid lighten($color-3, 30%);
}
.dropzone-group,
.dropzone-step {
height: 10px;
background-color: white;
&.active {
background-color: blue;
}
&.hover {
background-color: red;
}
}
#hidden-templates {
display: none;
}