website-utilities 1.0.374 → 1.0.376

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.
package/index.scss CHANGED
@@ -22,7 +22,7 @@ endregion */
22
22
  --w-large-width: #{v.$large-width};
23
23
  /*** region extra small dimension */
24
24
  @custom-media --w-extra-extra-small
25
- (min-width: #{v.$extra-extra-small-width});
25
+ (min-width: #{v.$extra-extra-small-width});
26
26
  @custom-media --w-extra-small (min-width: #{v.$extra-small-width});
27
27
  /*** endregion */
28
28
  /*** region default media query dimensions */
@@ -49,318 +49,476 @@ endregion */
49
49
  /* endregion */
50
50
  }
51
51
 
52
- .wu {
52
+ website-utilities {
53
53
  margin: 0;
54
54
 
55
55
  font-family: var(--w-typography-font-family, v.$typography-font-family);
56
56
  font-size: 14px;
57
- }
58
57
 
59
- .wu-lang-replacement,
60
- .wu lang-replacement {
61
- display: none;
62
- }
63
- /* region generic dom nodes */
64
- /** region headline */
65
- .wu-h1,
66
- .wu h1,
67
- .wu-h2,
68
- .wu h2,
69
- .wu-h3,
70
- .wu h3,
71
- .wu-h4,
72
- .wu h4,
73
- .wu-h5,
74
- .wu h5,
75
- .wu-h6,
76
- .wu h6 {
77
- font-family: var(--w-typography-font-family, v.$typography-font-family);
78
- line-height: 1.1;
79
- }
58
+ lang-replacement {
59
+ display: none;
60
+ }
61
+ /* region generic dom nodes */
62
+ /** region headline */
63
+ h1,
64
+ h2,
65
+ h3,
66
+ h4,
67
+ h5,
68
+ h6 {
69
+ font-family: var(--w-typography-font-family, v.$typography-font-family);
70
+ line-height: 1.1;
71
+ }
80
72
 
81
- .wu-h1,
82
- .wu h1,
83
- .wu-h2,
84
- .wu h2 {
85
- font-family:
86
- var(
87
- --w-typography-font-family-headline,
88
- v.$typography-font-family-headline
73
+ h1,
74
+ h2 {
75
+ font-family: var(
76
+ --w-typography-font-family-headline,
77
+ v.$typography-font-family-headline
89
78
  );
90
- font-weight: normal;
91
- font-size: 3em;
92
- }
93
-
94
- .wu-h2,
95
- .wu h2 {
96
- font-size: 2em;
97
- }
98
- /** endregion */
99
- /** region link */
100
- a.wu-a,
101
- .wu a,
102
- a.wu-a:hover,
103
- .wu a:hover,
104
- a.wu-a:focus,
105
- .wu a:focus,
106
- a.wu-a:visited,
107
- .wu a:visited {
108
- outline: none;
109
- text-decoration: none;
110
- }
111
- /** endregion */
112
- /* endregion */
113
- /* region generic classes */
114
- /* Disables and hides a scrolling and scrollbar. */
115
- .tools-disable-scrolling {
116
- height: 100% !important;
117
- overflow: hidden !important;
118
- }
79
+ font-weight: normal;
80
+ font-size: 3em;
81
+ }
119
82
 
120
- .wu-action,
121
- .wu .action {
122
- cursor: pointer;
123
- }
124
- /* Overlay the whole page till everything is loaded completely. */
125
- .wu-window-loading-cover,
126
- .wu .window-loading-cover {
127
- background-color: var(--w-background-color, v.$theme-background);
128
- /* always cover full viewport */
129
- position: fixed;
130
- height: 100%;
131
- width: 100%;
132
- z-index: 1002 !important;
83
+ h2 {
84
+ font-size: 2em;
85
+ }
86
+ /** endregion */
87
+ /** region link */
88
+ a,
89
+ a:hover,
90
+ a:focus,
91
+ a:visited {
92
+ outline: none;
93
+ text-decoration: none;
94
+ }
95
+ /** endregion */
96
+ /* endregion */
97
+ /* region generic classes */
98
+ /* Disables and hides a scrolling and scrollbar. */
99
+ .wu-disable-scrolling {
100
+ height: 100% !important;
101
+ overflow: hidden !important;
102
+ }
133
103
 
134
- > div {
135
- /* Positioning the loading spinner in center in the loading overlay. */
136
- position: absolute;
137
- top: 50%;
138
- left: 50%;
104
+ .wu-action {
105
+ cursor: pointer;
139
106
  }
140
- }
141
- /** region icons */
142
- .wu-icon,
143
- .wu .icon,
144
- .wu-icon-social,
145
- .wu .icon-social {
146
- font-family:
147
- var(
148
- --w-typography-font-family-social,
149
- v.$typography-font-family-social
107
+ /** region icons */
108
+ .icon,
109
+ .icon-social {
110
+ font-family: var(
111
+ --w-typography-font-family-social,
112
+ v.$typography-font-family-social
150
113
  );
151
- font-style: normal;
152
- font-weight: 400;
114
+ font-style: normal;
115
+ font-weight: 400;
153
116
 
154
- line-height: 1;
117
+ line-height: 1;
155
118
 
156
- display: inline-block;
157
- position: relative;
119
+ display: inline-block;
120
+ position: relative;
158
121
 
159
- text-decoration: none;
122
+ text-decoration: none;
160
123
 
161
- top: 1px;
162
- vertical-align: middle;
124
+ top: 1px;
125
+ vertical-align: middle;
163
126
 
164
- zoom: 1;
127
+ zoom: 1;
165
128
 
166
- -webkit-font-smoothing: antialiased;
167
- -moz-osx-font-smoothing: grayscale;
129
+ -webkit-font-smoothing: antialiased;
130
+ -moz-osx-font-smoothing: grayscale;
168
131
 
169
- &::before {
170
- font-family:
171
- var(
172
- --w-typography-font-family-social,
173
- v.$typography-font-family-social
132
+ &::before {
133
+ font-family: var(
134
+ --w-typography-font-family-social,
135
+ v.$typography-font-family-social
174
136
  );
175
137
 
176
- display: inline-block;
138
+ display: inline-block;
177
139
 
178
- left: 0;
179
- margin: 0 5px 0 0;
180
- position: absolute;
181
- top: 0;
140
+ left: 0;
141
+ margin: 0 5px 0 0;
142
+ position: absolute;
143
+ top: 0;
144
+ }
182
145
  }
183
- }
184
-
185
- .wu-icon,
186
- .wu .icon {
187
- &-arrow-left::before { content: "\E091"; }
188
- }
189
146
 
190
- .wu-icon-social,
191
- .wu .icon-social {
192
- &::before {
193
- font: 24px/1em "Glyphicons Social Regular", sans-serif;
147
+ .icon {
148
+ &-arrow-left::before {
149
+ content: "\E091";
150
+ }
194
151
  }
195
152
 
196
- &-white::before { color: #fff; }
197
- &-pinterest::before { content: "\E001"; }
198
- &-dropbox::before { content: "\E002"; }
199
- &-google_plus::before { content: "\E003"; }
200
- &-jolicloud::before { content: "\E004"; }
201
- &-yahoo::before { content: "\E005"; }
202
- &-blogger::before { content: "\E006"; }
203
- &-picasa::before { content: "\E007"; }
204
- &-amazon::before { content: "\E008"; }
205
- &-tumblr::before { content: "\E009"; }
206
- &-wordpress::before { content: "\E010"; }
207
- &-instapaper::before { content: "\E011"; }
208
- &-evernote::before { content: "\E012"; }
209
- &-xing::before { content: "\E013"; }
210
- &-zootool::before { content: "\E014"; }
211
- &-dribbble::before { content: "\E015"; }
212
- &-deviantart::before { content: "\E016"; }
213
- &-read_it_later::before { content: "\E017"; }
214
- &-linked_in::before { content: "\E018"; }
215
- &-forrst::before { content: "\E019"; }
216
- &-pinboard::before { content: "\E020"; }
217
- &-behance::before { content: "\E021"; }
218
- &-github::before { content: "\E022"; }
219
- &-youtube::before { content: "\E023"; }
220
- &-skitch::before { content: "\E024"; }
221
- &-foursquare::before { content: "\E025"; }
222
- &-quora::before { content: "\E026"; }
223
- &-badoo::before { content: "\E027"; }
224
- &-spotify::before { content: "\E028"; }
225
- &-stumbleupon::before { content: "\E029"; }
226
- &-readability::before { content: "\E030"; }
227
- &-facebook::before { content: "\E031"; }
228
- &-twitter::before { content: "\E032"; }
229
- &-instagram::before { content: "\E033"; }
230
- &-posterous_spaces::before { content: "\E034"; }
231
- &-vimeo::before { content: "\E035"; }
232
- &-flickr::before { content: "\E036"; }
233
- &-last_fm::before { content: "\E037"; }
234
- &-rss::before { content: "\E038"; }
235
- &-skype::before { content: "\E039"; }
236
- &-e-mail::before { content: "\E040"; }
237
- &-vine::before { content: "\E041"; }
238
- &-myspace::before { content: "\E042"; }
239
- &-goodreads::before { content: "\E043"; }
240
- &-apple::before { content: "\F8FF"; }
241
- &-windows::before { content: "\E045"; }
242
- &-yelp::before { content: "\E046"; }
243
- &-playstation::before { content: "\E047"; }
244
- &-xbox::before { content: "\E048"; }
245
- &-android::before { content: "\E049"; }
246
- &-ios::before { content: "\E050"; }
247
- }
248
- /** endregion */
249
- /** region form */
250
- /*** region styled select */
251
- .wu-select,
252
- .wu .select {
253
- position: relative;
254
-
255
- &__arrow {
256
- position: absolute;
257
- top: 3px;
258
- right: 15px;
259
- pointer-events: none;
153
+ .icon-social {
154
+ &::before {
155
+ font: 24px/1em "Glyphicons Social Regular", sans-serif;
156
+ }
260
157
 
261
- span {
262
- vertical-align: bottom;
263
- font-size: 10px;
158
+ &-white::before {
159
+ color: #fff;
160
+ }
161
+
162
+ &-pinterest::before {
163
+ content: "\E001";
164
+ }
165
+
166
+ &-dropbox::before {
167
+ content: "\E002";
168
+ }
169
+
170
+ &-google_plus::before {
171
+ content: "\E003";
172
+ }
173
+
174
+ &-jolicloud::before {
175
+ content: "\E004";
176
+ }
177
+
178
+ &-yahoo::before {
179
+ content: "\E005";
180
+ }
181
+
182
+ &-blogger::before {
183
+ content: "\E006";
184
+ }
185
+
186
+ &-picasa::before {
187
+ content: "\E007";
188
+ }
189
+
190
+ &-amazon::before {
191
+ content: "\E008";
192
+ }
193
+
194
+ &-tumblr::before {
195
+ content: "\E009";
196
+ }
197
+
198
+ &-wordpress::before {
199
+ content: "\E010";
200
+ }
201
+
202
+ &-instapaper::before {
203
+ content: "\E011";
204
+ }
205
+
206
+ &-evernote::before {
207
+ content: "\E012";
208
+ }
209
+
210
+ &-xing::before {
211
+ content: "\E013";
212
+ }
213
+
214
+ &-zootool::before {
215
+ content: "\E014";
216
+ }
217
+
218
+ &-dribbble::before {
219
+ content: "\E015";
220
+ }
221
+
222
+ &-deviantart::before {
223
+ content: "\E016";
224
+ }
225
+
226
+ &-read_it_later::before {
227
+ content: "\E017";
228
+ }
229
+
230
+ &-linked_in::before {
231
+ content: "\E018";
232
+ }
233
+
234
+ &-forrst::before {
235
+ content: "\E019";
236
+ }
237
+
238
+ &-pinboard::before {
239
+ content: "\E020";
240
+ }
241
+
242
+ &-behance::before {
243
+ content: "\E021";
244
+ }
245
+
246
+ &-github::before {
247
+ content: "\E022";
248
+ }
249
+
250
+ &-youtube::before {
251
+ content: "\E023";
252
+ }
253
+
254
+ &-skitch::before {
255
+ content: "\E024";
256
+ }
257
+
258
+ &-foursquare::before {
259
+ content: "\E025";
260
+ }
261
+
262
+ &-quora::before {
263
+ content: "\E026";
264
+ }
265
+
266
+ &-badoo::before {
267
+ content: "\E027";
268
+ }
269
+
270
+ &-spotify::before {
271
+ content: "\E028";
272
+ }
273
+
274
+ &-stumbleupon::before {
275
+ content: "\E029";
276
+ }
277
+
278
+ &-readability::before {
279
+ content: "\E030";
280
+ }
281
+
282
+ &-facebook::before {
283
+ content: "\E031";
284
+ }
285
+
286
+ &-twitter::before {
287
+ content: "\E032";
288
+ }
289
+
290
+ &-instagram::before {
291
+ content: "\E033";
292
+ }
293
+
294
+ &-posterous_spaces::before {
295
+ content: "\E034";
296
+ }
297
+
298
+ &-vimeo::before {
299
+ content: "\E035";
300
+ }
301
+
302
+ &-flickr::before {
303
+ content: "\E036";
304
+ }
305
+
306
+ &-last_fm::before {
307
+ content: "\E037";
308
+ }
309
+
310
+ &-rss::before {
311
+ content: "\E038";
312
+ }
313
+
314
+ &-skype::before {
315
+ content: "\E039";
316
+ }
317
+
318
+ &-e-mail::before {
319
+ content: "\E040";
320
+ }
321
+
322
+ &-vine::before {
323
+ content: "\E041";
324
+ }
325
+
326
+ &-myspace::before {
327
+ content: "\E042";
328
+ }
329
+
330
+ &-goodreads::before {
331
+ content: "\E043";
332
+ }
333
+
334
+ &-apple::before {
335
+ content: "\F8FF";
336
+ }
337
+
338
+ &-windows::before {
339
+ content: "\E045";
340
+ }
341
+
342
+ &-yelp::before {
343
+ content: "\E046";
344
+ }
345
+
346
+ &-playstation::before {
347
+ content: "\E047";
348
+ }
349
+
350
+ &-xbox::before {
351
+ content: "\E048";
264
352
  }
265
- }
266
353
 
267
- select {
268
- position: initial !important;
269
- padding-left: 7px !important;
270
- padding-right: 25px !important;
271
- /* hide default down arrow in IE10 */
272
- &::-ms-expand { display: none; }
354
+ &-android::before {
355
+ content: "\E049";
356
+ }
357
+
358
+ &-ios::before {
359
+ content: "\E050";
360
+ }
273
361
  }
274
- }
275
- /*** endregion */
276
- /*** region styled checkbox */
277
- .wu-checkbox,
278
- .wu .checkbox {
279
- margin-top: 2px;
280
- padding-top: 3px;
281
-
282
- label {
283
- padding-left: 40px;
284
-
285
- .checkbox__wrapper {
286
- margin-top: -2px;
287
- margin-left: -40px;
362
+ /** endregion */
363
+ /** region form */
364
+ /*** region styled select */
365
+ .wu-select {
366
+ position: relative;
367
+
368
+ &__arrow {
288
369
  position: absolute;
370
+ top: 3px;
371
+ right: 15px;
372
+ pointer-events: none;
289
373
 
290
- .checkbox__wrapper__styled {
291
- border-radius: 4px;
292
- border: 2px solid var(--w-theme-primary, v.$theme-primary);
293
- cursor: pointer;
294
- float: right;
295
- height: 25px;
296
- padding: 0;
297
- width: 25px;
298
-
299
- .checkbox__wrapper__styled__checked {
300
- background: transparent;
301
- border: 3px solid var(--w-theme-on-primary, v.$theme-on-primary);
302
- border-top: none;
303
- border-right: none;
304
- height: 8px;
305
- left: 4px;
306
- opacity: 0;
307
- position: absolute;
308
- top: 5px;
309
- transform: rotate(-45deg);
310
- width: 13px;
311
- }
374
+ span {
375
+ vertical-align: bottom;
376
+ font-size: 10px;
312
377
  }
378
+ }
313
379
 
314
- input[type="checkbox"] {
380
+ select {
381
+ position: initial !important;
382
+ padding-left: 7px !important;
383
+ padding-right: 25px !important;
384
+ /* hide default down arrow in IE10 */
385
+ &::-ms-expand {
315
386
  display: none;
316
-
317
- &:checked ~ .checkbox-styled > .checkbox-styled-checked {
318
- opacity: 1;
387
+ }
388
+ }
389
+ }
390
+ /*** endregion */
391
+ /*** region styled checkbox */
392
+ .wu-checkbox {
393
+ margin-top: 2px;
394
+ padding-top: 3px;
395
+
396
+ label {
397
+ padding-left: 40px;
398
+
399
+ .wu-checkbox__wrapper {
400
+ margin-top: -2px;
401
+ margin-left: -40px;
402
+ position: absolute;
403
+
404
+ .wu-checkbox__wrapper__styled {
405
+ border-radius: 4px;
406
+ border: 2px solid var(--w-theme-primary, v.$theme-primary);
407
+ cursor: pointer;
408
+ float: right;
409
+ height: 25px;
410
+ padding: 0;
411
+ width: 25px;
412
+
413
+ .wu-checkbox__wrapper__styled__checked {
414
+ background: transparent;
415
+ border: 3px solid var(--w-theme-on-primary, v.$theme-on-primary);
416
+ border-top: none;
417
+ border-right: none;
418
+ height: 8px;
419
+ left: 4px;
420
+ opacity: 0;
421
+ position: absolute;
422
+ top: 5px;
423
+ transform: rotate(-45deg);
424
+ width: 13px;
425
+ }
319
426
  }
320
427
 
321
- &:disabled ~ .checkbox-styled {
322
- background-color: var(--w-theme-surface, v.$theme-surface);
428
+ input[type="checkbox"] {
429
+ display: none;
430
+
431
+ &:checked ~ .wu-checkbox-styled > .wu-checkbox-styled-checked {
432
+ opacity: 1;
433
+ }
434
+
435
+ &:disabled ~ .wu-checkbox-styled {
436
+ background-color: var(--w-theme-surface, v.$theme-surface);
437
+ }
323
438
  }
324
439
  }
325
440
  }
326
441
  }
327
- }
328
- /*** endregion */
329
- /** endregion */
330
- /* endregion */
331
- /* Initially hide/show javaScript dependent dom nodes. */
332
- .tools-hidden-on-javascript-enabled { display: none; }
333
- .tools-visible-on-javascript-enabled { display: initial; }
334
- /* region spinner animation */
335
- @keyframes spinner-line-fade-more {
336
- 0%,
337
- 100% {
442
+ /*** endregion */
443
+ /** endregion */
444
+ /* endregion */
445
+ /* Initially hide/show javaScript dependent dom nodes. */
446
+ .wu-hidden-on-javascript-enabled {
447
+ display: none;
448
+ }
449
+
450
+ .wu-visible-on-javascript-enabled {
451
+ display: initial;
452
+ }
453
+ /* region move to top button animation */
454
+ .wu-scroll-to-top {
455
+ display: block;
456
+
457
+ transition-property: bottom, opacity;
458
+ transition-duration: .5s;
459
+
460
+ position: fixed;
461
+
462
+ right: var(--w-default-space, #{v.$default-space});
463
+ }
464
+
465
+ a.wu-scroll-to-top.wu-scroll-up {
466
+ bottom: calc(3 * var(--w-default-space, #{v.$default-space}));
338
467
  opacity: 0;
339
468
  }
340
469
 
341
- 1% {
470
+ a.wu-scroll-to-top.wu-scroll-down {
471
+ bottom: var(--w-default-space, #{v.$default-space});
342
472
  opacity: 1;
343
473
  }
344
- }
345
- @keyframes spinner-line-fade-quick {
346
- 0%,
347
- 39%,
348
- 100% {
349
- opacity: 0.25;
474
+
475
+ a.wu-scroll-to-top.wu-top-settled {
476
+ display: none;
350
477
  }
478
+ /* endregion */
479
+ }
480
+ /* Overlay the whole page till everything is loaded completely. */
481
+ .wu-window-loading-cover {
482
+ background-color: var(--w-surface-color, v.$theme-surface);
483
+ top: 0;
484
+ left: 0;
485
+ /* always cover full viewport */
486
+ position: fixed;
487
+ height: 100%;
488
+ width: 100%;
489
+ z-index: 1002 !important;
351
490
 
352
- 40% {
353
- opacity: 1;
491
+ .loading-text {
492
+ position: absolute;
493
+ inset: 0;
494
+ margin: auto;
495
+ text-align: center;
496
+
497
+ width: 100%;
498
+ height: 100px;
499
+ line-height: 100px;
500
+
501
+ span {
502
+ display: inline-block;
503
+ margin: 0 5px;
504
+ color: var(--w-on-surface-color, v.$theme-on-surface);
505
+
506
+ @for $i from 0 through 40 {
507
+ &:nth-child(#{$i + 1}) {
508
+ filter: blur(0);
509
+ animation: blur-text 1.5s (#{$i/5})+s infinite linear alternate;
510
+ }
511
+ }
512
+ }
354
513
  }
355
514
  }
356
- @keyframes spinner-line-fade-default {
357
- 0%,
358
- 100% {
359
- opacity: 0.22;
515
+
516
+ @keyframes blur-text {
517
+ 0% {
518
+ filter: blur(0);
360
519
  }
361
520
 
362
- 1% {
363
- opacity: 1;
521
+ 100% {
522
+ filter: blur(4px);
364
523
  }
365
524
  }
366
- /* endregion */