Added CSS for sortable lists
authorAlexander Ebert <ebert@woltlab.com>
Wed, 9 Mar 2016 13:24:00 +0000 (14:24 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 9 Mar 2016 13:24:00 +0000 (14:24 +0100)
wcfsetup/install/files/style/ui/listSortable.scss [new file with mode: 0644]

diff --git a/wcfsetup/install/files/style/ui/listSortable.scss b/wcfsetup/install/files/style/ui/listSortable.scss
new file mode 100644 (file)
index 0000000..eae8105
--- /dev/null
@@ -0,0 +1,65 @@
+.sortableList {
+       list-style: decimal outside;
+       margin-left: 20px;
+}
+
+.sortableNode {
+       &:not(:last-child) {
+               border-bottom: 1px solid $wcfContentBorderInner;
+       }
+       
+       > .sortableList {
+               //padding-left: 20px;
+               
+               &:not(:empty) {
+                       border-top: 1px solid $wcfContentBorderInner;
+               }
+       }
+}
+
+.sortableNodeLabel {
+       align-items: center;
+       cursor: move;
+       padding: 10px;
+       
+       /* `display:flex` acts weird inside lists with a visible list-style */
+       display: inline-flex;
+       width: 100%;
+       
+       &:hover {
+               background-color: $wcfTabularBoxBackgroundActive
+       }
+       
+       > .icon,
+       > a {
+               flex: 0 0 auto;
+               margin-right: 5px;
+       }
+       
+       > .statusDisplay {
+               align-items: center;
+               display: flex;
+               flex: 1 1 auto;
+               justify-content: flex-end;
+               
+               > a,
+               > span {
+                       cursor: pointer;
+                       flex: 0 0 auto;
+                       margin-left: 5px;
+               }
+       } 
+}
+
+.sortablePlaceholder {
+       background-color: $wcfStatusWarningBackground;
+       border: 1px solid $wcfStatusWarningBorder;
+       color: $wcfStatusWarningText;
+       padding: 10px;
+       
+       &.sortableInvalidTarget {
+               background-color: $wcfStatusErrorBackground;
+               border-color: $wcfStatusErrorBorder;
+               color: $wcfStatusErrorText;
+       }
+}