/
style.scss
100 lines (81 loc) · 1.85 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.sortable-list__list {
display: flex;
margin: 0;
user-select: none;
}
.sortable-list.is-horizontal .sortable-list__list {
flex-direction: row;
flex-wrap: wrap;
}
.sortable-list.is-vertical .sortable-list__list {
flex-direction: column;
}
.sortable-list__item {
display: inline-block;
&.is-active > * {
box-shadow: 0 0 0 2px var(--studio-white), 0 0 0 4px var(--color-accent);
z-index: z-index("root", ".sortable-list__item.is-draggable.is-active");
}
&.is-draggable.is-active {
position: fixed;
}
&.is-shadow {
filter: grayscale(100%);
opacity: 0.5;
}
&.is-draggable > * {
cursor: move;
box-shadow: none;
}
}
.sortable-list__navigation {
margin-top: 18px;
text-align: right;
}
.sortable-list__navigation-button {
padding: 8px;
background-color: var(--color-neutral-0);
border: 1px solid var(--color-neutral-10);
color: var(--color-neutral-light);
&:not(:disabled):hover {
cursor: pointer;
color: var(--color-accent);
}
&:disabled {
cursor: not-allowed;
opacity: 0.4;
}
}
.sortable-list.is-horizontal .sortable-list__navigation-button {
display: inline-block;
&.is-previous {
padding-left: 12px;
border-top-left-radius: 50%;
border-bottom-left-radius: 50%;
}
&.is-next {
margin-left: -1px;
padding-right: 12px;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
}
}
.sortable-list.is-horizontal .sortable-list__navigation-button .gridicon {
transform: rotate(90deg) translateX(1px);
}
.sortable-list.is-vertical .sortable-list__navigation-button {
display: block;
margin-left: auto;
&.is-previous {
border-top-right-radius: 50%;
border-top-left-radius: 50%;
}
&.is-next {
margin-top: -1px;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
}
}
.sortable-list.is-vertical .sortable-list__navigation-button .gridicon {
transform: rotate(180deg) translateX(1px);
}