forked from fluid-project/infusion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SeparatedPanelPrefsEditor.scss
340 lines (294 loc) · 9.97 KB
/
SeparatedPanelPrefsEditor.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
$icon-font: 'PrefsFramework-Icons';
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: 300;
src: url('../../../lib/opensans/fonts/OpenSans-Light.woff');
}
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: normal;
src: url('../../../lib/opensans/fonts/OpenSans-Regular.woff');
}
@font-face {
font-family: 'OpenSans';
font-style: normal;
font-weight: 600;
src: url('../../../lib/opensans/fonts/OpenSans-SemiBold.woff');
}
body {
margin: 0;
}
// Top bar and show/hide button
.fl-prefsEditor-separatedPanel {
background-color: var(--fl-prefsEditorBgColor, #bcb5ad);
background-image: none;
border-bottom: 1px solid var(--fl-prefsEditorBgColor, #bcb5ad);
display: flex;
flex-direction: column;
font-size: 1rem;
line-height: 1.2;
.fl-panelBar {
background-color: var(--fl-bgColor, #fff);
box-shadow: 0 2px 3px 0 var(--fl-fgColor, #6f6f6f);
color: var(--fl-fgColor);
width: 100%;
// panelBar for desktop view
&.fl-panelBar-wideScreen {
display: none;
}
.fl-prefsEditor-buttons {
align-items: center;
display: flex;
flex-wrap: nowrap;
height: 66px; // fixed height so the buttons won't push down the sliding panel as the text size is changed
justify-content: space-between;
line-height: 1; // fixed line height so it doesn't scale with the Preferences Editor line space scaling.
width: 100%;
}
}
.fl-prefsEditor-showHide,
.fl-prefsEditor-reset {
background-color: var(--fl-buttonBgColor, #fff);
border: none;
color: var(--fl-buttonFgColor, #2f2b2a);
font-family: var(--fl-font-family, OpenSans, "Myriad Pro", Helvetica, Arial, sans-serif);
font-size: calc(var(--fl-enhance-font-size-factor, 1) * var(--fl-textSize, 1rem) * 1.3);
letter-spacing: var(--fl-letterSpace);
overflow: hidden;
padding: 0;
text-align: center;
text-overflow: ellipsis;
text-transform: lowercase;
white-space: nowrap;
word-spacing: var(--fl-wordSpace);
}
.fl-prefsEditor-showHide {
flex-grow: 1;
flex-shrink: 2;
padding-left: 16px; // fixed padding to save space on mobile when text size adjustments are applied
text-align: left;
}
.fl-prefsEditor-reset {
border-left: 2px solid var(--fl-fgColor, #ccc);
flex-shrink: 1;
padding-right: 16px; // fixed padding to save space on mobile when text size adjustments are applied
}
// Font icon for reset tab
.fl-icon-undo {
font-family: $icon-font;
font-size: 1.2em;
-webkit-font-smoothing: antialiased;
font-style: normal;
font-variant: normal;
font-weight: normal;
text-transform: none;
}
.fl-icon-undo::before {
content: "\e008";
}
.fl-prefsEditor {
color: var(--fl-prefsEditorFgColor, #5d5652);
font-family: var(--fl-font-family, "OpenSans", "Myriad Pro", Helvetica, Arial, sans-serif);
min-width: 100%;
overflow-x: scroll;
}
// Preference Panels
.fl-prefsEditor-panels {
display: table;
margin: 0;
white-space: nowrap;
.fl-prefsEditor-panel {
background-color: var(--fl-bgColor, #fff);
border: 1px solid var(--fl-prefsEditorPanelBorderFgColor, #615e59);
display: table-cell;
// minus 2px because of borders
min-width: calc(100vw - 2px);
padding: 16px 0.5em;
white-space: normal;
h2 {
align-items: center;
display: flex;
justify-content: space-between;
min-height: 3.6em;
pointer-events: none;
text-transform: lowercase;
white-space: nowrap;
width: 100%;
[class*='fl-icon-'] {
display: none;
}
.fl-heading-text {
font-size: 1.3em;
font-weight: 600;
text-align: center;
}
// for right and left arrows
&::before,
&::after {
font-family: "Times New Roman", Georgia, Times, serif !important;
font-size: 2em;
-webkit-font-smoothing: antialiased;
font-style: normal;
font-variant: normal;
font-weight: normal;
pointer-events: auto;
text-transform: none;
}
// Single Left-Pointing Angle Quotation Mark
&::before {
content: "\2039";
margin-left: 0.3em;
}
// Single Right-Pointing Angle Quotation Mark
&::after {
content: "\203a";
margin-right: 0.3em;
}
}
// hiding arrows from IE 11, as the current method for making them interactive does
// not work in IE. The media query used here is a hack to target only IE
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
h2 {
display: block;
text-align: center;
&::before,
&::after {
content: none;
}
}
}
// hide left arrow from first panel
// hide right arrow from last panel
&:first-of-type h2::before,
&:last-of-type h2::after {
visibility: hidden;
}
// visually hide descriptions in mobile view.
// this style declaration is essentially a copy of
// .fl-hidden-accessible
.fl-prefsEditor-panel-descr {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: fixed;
width: 1px;
}
label {
font-size: 1em;
}
// Stepper
.fl-textfieldStepper {
[class*='fl-icon-'] {
display: none;
}
.fl-textfieldStepper-focusContainer {
align-items: center;
display: flex;
justify-content: center;
}
}
// Swtich
.fl-switchUI {
font-size: 1em;
}
}
}
// large screen / desktop view
@media screen and (min-width: 40em) {
display: block;
.fl-panelBar {
box-shadow: none;
font-size: 1rem;
// panelBar for mobile view
&.fl-panelBar-smallScreen {
display: none;
}
// panelBar for desktop view
&.fl-panelBar-wideScreen {
display: block;
}
.fl-prefsEditor-buttons {
background-color: var(--fl-buttonBgColor, #fff);
border: 1px solid var(--fl-fgColor, #ccc);
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
border-top: none;
box-shadow: 2px 2px 3px 0 var(--fl-fgColor, #6f6f6f);
display: block;
float: right;
height: auto;
margin-right: 5%;
min-height: 2em;
width: auto;
[class*="fl-theme"]:not(.fl-theme-prefsEditor-default) & {
box-shadow: none;
}
}
}
.fl-prefsEditor-showHide,
.fl-prefsEditor-reset {
border: none;
font-size: calc(var(--fl-enhance-font-size-factor, 1) * var(--fl-textSize, 1rem) * 1.1);
font-weight: bold;
min-height: 1.8em;
padding: 0;
}
.fl-prefsEditor-showHide {
margin: 0 0.5em;
}
.fl-prefsEditor-reset {
margin-right: 0.5em;
padding-left: 0.8em;
}
// Preference Panels
.fl-prefsEditor-panels {
border-spacing: 20px 0;
margin: 1em auto;
.fl-prefsEditor-panel {
border-radius: 5px;
box-shadow: 2px 2px #7a766d;
min-width: 25em;
padding: 1.5em;
padding-top: 1em;
h2 {
border-bottom: solid var(--fl-prefsEditorPanelBorderBottomFgColor, #ccc) 1px;
box-shadow: 0 6px 7px -6px rgba(0, 0, 0, 0.3);
font-size: 1.2em;
height: 3em;
justify-content: flex-start;
margin: 0 0 1.8em 0;
white-space: normal;
[class*='fl-icon-'] {
display: inline;
}
&::before,
&::after {
content: none;
}
}
.fl-prefsEditor-panel-descr {
height: auto;
margin: 0;
margin-bottom: 1em;
overflow: visible;
position: inherit;
width: 100%;
}
// Stepper icons
.fl-textfieldStepper {
[class*='fl-icon-'] {
display: inline;
font-size: 1.4em;
margin: 0 0.3em;
padding-top: 0.3em;
}
}
}
}
}
}