spotlight-frontend 5.3.1 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,4 @@
1
1
  .spotlight-flexbox {
2
- display: -webkit-box;
3
- display: -moz-box;
4
- display: -ms-flexbox;
5
- display: -webkit-flex;
6
2
  display: flex;
7
3
  flex-flow: row wrap;
8
4
 
@@ -13,7 +9,7 @@
13
9
 
14
10
  @media (max-width: breakpoint-max("sm")) {
15
11
  min-width: 200px;
16
- -webkit-flex: 1 1 200px;
12
+ flex: 1 1 200px;
17
13
  }
18
14
 
19
15
  .caption {
@@ -23,11 +19,6 @@
23
19
  img {
24
20
  max-width: 100%;
25
21
  }
26
- -webkit-box-flex: 1;
27
- -moz-box-flex: 1;
28
- -webkit-flex: 1;
29
- -ms-flex: 1;
30
22
  flex: 1;
31
- -webkit-flex: 1 1 125px;
32
23
  }
33
24
  }
@@ -26,10 +26,27 @@ tr.dd-item {
26
26
  position: relative;
27
27
  }
28
28
 
29
+ // SortableJS moves an item to the start of a list when the pointer is over the list more than
30
+ // 10px left of its items.
31
+ $dd-nested-list-padding-left: 5px;
32
+
29
33
  .dd-list { display: block; position: relative; margin: 0; padding: 0 0 5px 0; list-style: none; }
30
- .dd-list .dd-list { margin-left: 15px; padding-left: 15px; padding-bottom: 0; } // Having this mix of padding and margin improves the experience of dragging left to remove an item from a nested list.
34
+ .dd-list .dd-list { margin-left: 25px; padding-left: $dd-nested-list-padding-left; padding-bottom: 0; }
31
35
  .dd-collapsed .dd-list { display: none; }
32
36
 
37
+ // While a drag is in progress, extend each child list with a drop zone that covers the
38
+ // indented part of the next item. Dragging an item to the right then nests it.
39
+ .dd-nesting .dd-item > .dd-list::after {
40
+ content: "";
41
+ position: absolute;
42
+ top: 100%;
43
+ left: $dd-nested-list-padding-left; // Offset from the child list's padding box, so the zone starts where its items start
44
+ right: 0;
45
+ height: var(--dd-nesting-zone-height);
46
+ z-index: 1;
47
+ }
48
+ .dd-nesting .sortable-chosen > .dd-list::after { display: none; }
49
+
33
50
  .dd-item,
34
51
  .dd-empty,
35
52
  .dd-placeholder { display: block; position: relative; margin: 0; padding: 0; min-height: 20px; font-size: 13px; line-height: 20px; }
@@ -237,14 +237,14 @@
237
237
 
238
238
  .box {
239
239
  min-width: 150px;
240
- -webkit-flex: 1 1 150px;
240
+ flex: 1 1 150px;
241
241
  }
242
242
 
243
243
  /* two items */
244
244
  .box:first-child:nth-last-child(2),
245
245
  .box:first-child:nth-last-child(2) ~ .box {
246
246
  min-width: 250px;
247
- -webkit-flex: 1 1 250px;
247
+ flex: 1 1 250px;
248
248
  }
249
249
 
250
250
  /* only images, no text */
@@ -260,7 +260,7 @@
260
260
  }
261
261
 
262
262
  @media (max-width: breakpoint-max("md")) {
263
- -webkit-flex: 1 1 175px;
263
+ flex: 1 1 175px;
264
264
  }
265
265
  }
266
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spotlight-frontend",
3
- "version": "5.3.1",
3
+ "version": "5.3.2",
4
4
  "description": "Exhibits plugin for blacklight",
5
5
  "main": "app/assets/javascripts/spotlight",
6
6
  "type": "module",