item.innerHTML = box.name + icon;
+ const sortableIndicator = document.createElement("fa-icon");
+ sortableIndicator.setIcon("up-down");
+
+ item.prepend(sortableIndicator);
+
container.appendChild(item);
});
<style>
#pbo {
- border: 1px solid #ccc;
+ border: 1px solid var(--wcfContentBorderInner);
+ border-radius: var(--wcfBorderRadius);
padding: 5px;
}
#pbo [data-placeholder] {
background-color: rgb(224, 224, 224);
+ border-radius: var(--wcfBorderRadius);
padding: 20px 10px;
position: relative;
}
cursor: move;
}
- #pbo [data-placeholder] .ui-sortable > li::before {
- content: "\f047";
- font-family: FontAwesome;
- padding-right: 5px;
- }
-
#pbo [data-placeholder] li + li {
margin-top: 5px;
}
#pboContent {
background-color: #BBDEFB;
+ border-radius: var(--wcfBorderRadius);
padding: 40px 20px;
text-align: center;
}
#pboContent:not(:last-child) {
margin-bottom: 10px;
}
+
+ html[data-color-scheme="dark"] #pbo [data-placeholder] {
+ background-color: rgb(37 46 61);
+ }
+
+ html[data-color-scheme="dark"] #pbo [data-placeholder]::before {
+ color: rgb(8 166 149);
+ }
+
+ html[data-color-scheme="dark"] #pboContent {
+ background-color: rgb(26 29 33);
+ }
</style>
<script data-relocate="true">
AcpUiPageBoxOrder.init({@$page->pageID}, boxes);
});
-
</script>
<header class="contentHeader">
</span>`;
}
item.innerHTML = box.name + icon;
+ const sortableIndicator = document.createElement("fa-icon");
+ sortableIndicator.setIcon("up-down");
+ item.prepend(sortableIndicator);
container.appendChild(item);
});
if (boxData.length > 1) {