1441 |
ariadna |
1 |
/* Card-style border on category lists */
|
|
|
2 |
.qbank_managecategories-categorylist {
|
|
|
3 |
padding: 1rem;
|
|
|
4 |
border: 1px solid #dee2e6;
|
|
|
5 |
border-radius: 1rem;
|
|
|
6 |
}
|
|
|
7 |
/* Category item layout */
|
|
|
8 |
.qbank_managecategories-handlecontainer {
|
|
|
9 |
width: 32px;
|
|
|
10 |
height: 32px;
|
|
|
11 |
display: inline-flex;
|
|
|
12 |
justify-content: center;
|
|
|
13 |
align-items: center;
|
|
|
14 |
}
|
|
|
15 |
.qbank_managecategories-item .container {
|
|
|
16 |
padding: 0.75rem;
|
|
|
17 |
}
|
|
|
18 |
/* Separators between each item become drop indicators */
|
|
|
19 |
.qbank_managecategories-item {
|
|
|
20 |
width: 100%;
|
|
|
21 |
list-style: none;
|
|
|
22 |
border-top: 1px solid #dee2e6;
|
|
|
23 |
}
|
|
|
24 |
.qbank_managecategories-item:first-child {
|
|
|
25 |
border-top-color: transparent;
|
|
|
26 |
}
|
|
|
27 |
.qbank_managecategories-item:last-child {
|
|
|
28 |
border-bottom: 1px solid transparent;
|
|
|
29 |
}
|
|
|
30 |
.qbank_managecategories-item .qbank_managecategories-item:first-child {
|
|
|
31 |
border-top-color: #dee2e6;
|
|
|
32 |
}
|
|
|
33 |
.qbank_managecategories-details p:last-child {
|
|
|
34 |
margin-bottom: 0;
|
|
|
35 |
}
|
|
|
36 |
.qbank_managecategories-childlistcontainer:empty {
|
|
|
37 |
display: none;
|
|
|
38 |
}
|
|
|
39 |
/* Fade effect on drag handle */
|
|
|
40 |
.qbank_managecategories-draghandle {
|
|
|
41 |
display: none;
|
|
|
42 |
opacity: 0.45;
|
|
|
43 |
}
|
|
|
44 |
.qbank_managecategories-item.draghandle .qbank_managecategories-draghandle {
|
|
|
45 |
display: inline;
|
|
|
46 |
}
|
|
|
47 |
/* Drag indicator */
|
|
|
48 |
.qbank_managecategories-item.draghandle > .container {
|
|
|
49 |
border: 2px solid transparent;
|
|
|
50 |
border-radius: 1rem;
|
|
|
51 |
}
|
|
|
52 |
.qbank_managecategories-item.draghandle > .container:hover {
|
|
|
53 |
cursor: move;
|
|
|
54 |
border-color: #0f6cbf;
|
|
|
55 |
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
|
56 |
}
|
|
|
57 |
/* No move/delete buttons on non-draggable items */
|
|
|
58 |
.dropdown-item.show-when-movable {
|
|
|
59 |
display: none;
|
|
|
60 |
}
|
|
|
61 |
.qbank_managecategories-item.draghandle .dropdown-item.show-when-movable {
|
|
|
62 |
display: block;
|
|
|
63 |
}
|
|
|
64 |
/* Don't show card border on nested lists. */
|
|
|
65 |
.qbank_managecategories-categorylist .qbank_managecategories-categorylist {
|
|
|
66 |
padding: 0 0 .5rem 0;
|
|
|
67 |
border: 0;
|
|
|
68 |
border-radius: 0;
|
|
|
69 |
}
|
|
|
70 |
/* Don't show hover indication on parent when a child is hovered */
|
|
|
71 |
.editing .qbank_managecategories-item .container:hover:has(.container:hover) {
|
|
|
72 |
border-color: transparent;
|
|
|
73 |
}
|
|
|
74 |
/* New child drop target */
|
|
|
75 |
.qbank_managecategories-newchild {
|
|
|
76 |
display: none;
|
|
|
77 |
border: 1px solid #dee2e6;
|
|
|
78 |
background-color: #fff;
|
|
|
79 |
padding: 0.25rem 1rem;
|
|
|
80 |
color: #dee2e6;
|
|
|
81 |
font-weight: bold;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/* stylelint-disable max-line-length */
|
|
|
85 |
.qbank_managecategories-newchild.qbank_managecategories-droptarget,
|
|
|
86 |
/* Show the drop target if it's directly inside a highlighted category, but not if its inside a child of that category */
|
|
|
87 |
.qbank_managecategories-droptarget-before > .container > .row > .qbank_managecategories-contentcontainer > :not(.qbank_managecategories-childlistcontainer) .qbank_managecategories-newchild {
|
|
|
88 |
display: unset;
|
|
|
89 |
}
|
|
|
90 |
/* stylelint-enable max-line-length */
|
|
|
91 |
|
|
|
92 |
/* Hidden descriptions */
|
|
|
93 |
.qbank_managecategories-description {
|
|
|
94 |
display: none;
|
|
|
95 |
}
|
|
|
96 |
.showdescriptions .qbank_managecategories-description {
|
|
|
97 |
display: unset;
|
|
|
98 |
}
|