/
_list.sass
135 lines (106 loc) · 2.98 KB
/
_list.sass
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
.selective__field__type__list
> .selective__field__header
align-items: center
display: flex
flex-flow: row-reverse
.selective__field__label
flex-grow: 1
margin: $le-space-small 0
> .selective__field__footer
margin-top: $le-space-small
button
+button
+button-outline
+button-tertiary
.selective__action--add
+field-action-icon
.selective__list__item
align-items: center
display: flex
flex-flow: row
> .selective__list__fields__header .selective__field__actions,
> .selective__field__actions
column-gap: $le-space-small
&--pre
margin-left: $le-space-small
margin-right: $le-space-small
&--post
margin-left: $le-space-small
margin-right: $le-space-small
.selective__list__item__drag
cursor: grab
.material-icons
padding-left: 0
padding-right: 0
.selective__field__action
+clickable
.material-icons
padding: $le-space-small
> .selective__list__item__index
aspect-ratio: 1
border: $le-border-size-medium solid var(--color-tertiary)
border-radius: 50%
display: inline-block
padding: $le-space-small
text-align: center
width: $le-space-large
> .selective__field
flex-grow: 1
margin: $le-space-small 0
> .selective__list__fields__header > .selective__list__item__preview,
> .selective__list__item__preview
flex-grow: 1
overflow: hidden
padding: $le-space-medium 0
text-overflow: ellipsis
white-space: nowrap
img
max-height: $le-space-xxlarge
max-width: 100%
&:not(.selective__list__item--simple):not(.selective__list__item--empty)
border: $le-border-size-medium solid var(--color-tertiary)
border-radius: $le-radius-small
margin-bottom: $le-space-small
&:hover
border-color: var(--color-tertiary-dark)
box-shadow: $le-shadow-small
&:last-child
margin-bottom: 0
&--simple
> .selective__field__actions
&--pre
.material-icons
padding-left: 0
padding-right: 0
&--empty
padding: $le-space-medium 0
&--collapsed
> .selective__list__item__preview
+clickable
padding: $le-space-medium 0
&--expanded
align-items: stretch
flex-flow: column
> .selective__list__fields__header
+clickable
align-items: center
background: var(--color-tertiary)
color: var(--color-on-tertiary)
display: flex
flex-flow: row
font-weight: var(--font-weight-bold)
position: sticky
top: 0
z-index: 1
img
max-height: $le-space-xlarge
max-width: 100%
> .selective__list__fields
padding: $le-space-medium
&.selective__sortable--hover
*
pointer-events: none
&.selective__sortable--above
box-shadow: 0 -1 * $le-border-size-xlarge 0 0 var(--color-primary-light)
&.selective__sortable--below
box-shadow: 0 $le-border-size-xlarge 0 0 var(--color-primary-light)