-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy path_field.scss
146 lines (141 loc) · 2.94 KB
/
_field.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
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
136
137
138
139
140
141
142
143
144
145
146
.field {
align-items: flex-start;
border-top: var(--border-light);
color: var(--color-text-base);
display: flex;
font-size: var(--font-size-base);
font-weight: var(--font-weight-normal);
justify-content: flex-start;
line-height: var(--font-size-base);
min-height: 32px;
padding: var(--spacing-quarter-unit) 0;
width: 100%;
position: relative;
&__default-indicator {
position: absolute;
top: 0;
height: 100%;
width: var(--spacing-quarter-unit);
z-index: 2;
&__is-default {
background-color: $color-cornflower;
}
&__clear {
position: absolute;
display: flex;
width: 15px;
height: 100%;
top: 0;
left: var(--spacing-quarter-unit);
border-radius: 0 50% 50% 0;
background-color: $color-cornflower;
z-index: 1;
&::before {
content: '\00D7';
font-size: 20px;
font-weight: 600;
color: white;
display: flex;
align-items: center;
}
}
}
&__no-title {
width: 100%;
padding: 0 var(--spacing-half-unit);
align-self: center;
line-height: var(--font-leading-body);
&--center {
text-align: center;
}
}
&__widget {
display: flex;
flex-wrap: wrap;
flex-basis: 0;
padding-right: var(--spacing-half-unit);
padding-left: var(--spacing-half-unit);
align-self: center;
// if it has units, don't allow it to grow,
// otherwise it should take up the available space
&:not(.field__widget--units) {
flex-grow: 1;
}
&--units {
padding-right: 0;
}
}
&__units {
align-self: center;
}
&__title {
width: 80px;
//flex-shrink:0;
padding-left: var(--spacing-half-unit);
display: block;
font-size: var(--font-size-small);
line-height: var(--font-leading-body);
color: var(--color-text-base);
padding-top: var(--spacing-quarter-unit);
user-select: none;
&-text {
text-transform: capitalize;
cursor: default;
}
}
&__delete {
display: flex;
align-items: center;
justify-content: center;
padding-left: var(--spacing-quarter-unit);
opacity: 0.5;
svg {
display: block;
path {
fill: var(--color-text-base);
}
}
&:hover {
cursor: pointer;
opacity: 1;
svg {
path {
fill: var(--color-sienna);
}
}
}
}
&__colorscale {
.field__widget {
padding-right: 0;
}
}
.rect,
.square {
border-color: var(--color-accent);
}
.rect-grid {
border-color: var(--panel-background) !important;
float: left;
border-top: 1px solid;
border-left: 1px solid;
}
.rect-container {
margin: 0 auto;
position: relative;
max-width: 294px;
}
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.field {
&__widget {
flex-basis: auto;
}
}
}
.field .field {
border-top: none;
.field__no-title {
padding: 0;
}
}