new sortable list implementation
This commit is contained in:
@@ -867,6 +867,10 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus
|
||||
background-color: rgb(235.4, 239.8, 248.2);
|
||||
}
|
||||
|
||||
input:not(form input):invalid {
|
||||
border: 2px dashed red;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-family: "Atkinson Hyperlegible Mono", monospace;
|
||||
}
|
||||
@@ -1069,35 +1073,6 @@ textarea {
|
||||
background-color: none;
|
||||
}
|
||||
|
||||
.draggable-topic {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
background-color: #ced9ee;
|
||||
padding: 20px;
|
||||
margin: 15px 0;
|
||||
border-top: 5px outset rgb(231.36, 234, 239.04);
|
||||
border-bottom: 5px outset rgb(136.0836363636, 149.3636363636, 174.7163636364);
|
||||
}
|
||||
.draggable-topic.dragged {
|
||||
background-color: #eecee9;
|
||||
}
|
||||
|
||||
.draggable-collection {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
background-color: #ced9ee;
|
||||
padding: 20px;
|
||||
margin: 15px 0;
|
||||
border-top: 5px outset rgb(231.36, 234, 239.04);
|
||||
border-bottom: 5px outset rgb(136.0836363636, 149.3636363636, 174.7163636364);
|
||||
}
|
||||
.draggable-collection.dragged {
|
||||
background-color: #eecee9;
|
||||
}
|
||||
.draggable-collection.default {
|
||||
background-color: #eee3ce;
|
||||
}
|
||||
|
||||
.editing {
|
||||
background-color: rgb(231.36, 234, 239.04);
|
||||
}
|
||||
@@ -1550,3 +1525,54 @@ img.badge-button {
|
||||
padding-right: 20px;
|
||||
}
|
||||
}
|
||||
ol.sortable-list {
|
||||
list-style: none;
|
||||
flex-grow: 1;
|
||||
margin: 0;
|
||||
}
|
||||
ol.sortable-list li {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
background-color: #ced9ee;
|
||||
padding: 20px;
|
||||
margin: 15px 0;
|
||||
border-top: 5px outset rgb(231.36, 234, 239.04);
|
||||
border-bottom: 5px outset rgb(136.0836363636, 149.3636363636, 174.7163636364);
|
||||
}
|
||||
ol.sortable-list li.dragged {
|
||||
background-color: #eecee9;
|
||||
}
|
||||
ol.sortable-list li.immovable {
|
||||
background-color: #eee3ce;
|
||||
}
|
||||
ol.sortable-list li.immovable .dragger {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.dragger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: rgb(136.0836363636, 149.3636363636, 174.7163636364);
|
||||
padding: 5px 10px;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.sortable-item-inner {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-grow: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
.sortable-item-inner > * {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.sortable-item-inner.row {
|
||||
flex-direction: row;
|
||||
}
|
||||
.sortable-item-inner:not(.row) > * {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.fg {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user