@skyux/theme 11.0.0-alpha.1 → 11.0.0-alpha.10

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/css/sky.css CHANGED
@@ -1,37 +1,30 @@
1
1
  @import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
2
- @import url("https://sky.blackbaudcdn.net/static/skyux-icons/7.3.0/assets/css/skyux-icons.min.css");
2
+ @import url("https://sky.blackbaudcdn.net/static/skyux-icons/7.5.0/assets/css/skyux-icons.min.css");
3
3
  /*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
4
4
  /* Document
5
5
  ========================================================================== */
6
6
  /**
7
7
  * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in
9
- * IE on Windows Phone and in iOS.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
10
9
  */
11
10
  html {
12
11
  line-height: 1.15; /* 1 */
13
- -ms-text-size-adjust: 100%; /* 2 */
14
12
  -webkit-text-size-adjust: 100%; /* 2 */
15
13
  }
16
14
 
17
15
  /* Sections
18
16
  ========================================================================== */
19
17
  /**
20
- * Remove the margin in all browsers (opinionated).
18
+ * Remove the margin in all browsers.
21
19
  */
22
20
  body {
23
21
  margin: 0;
24
22
  }
25
23
 
26
24
  /**
27
- * Add the correct display in IE 9-.
25
+ * Render the `main` element consistently in IE.
28
26
  */
29
- article,
30
- aside,
31
- footer,
32
- header,
33
- nav,
34
- section {
27
+ main {
35
28
  display: block;
36
29
  }
37
30
 
@@ -46,21 +39,6 @@ h1 {
46
39
 
47
40
  /* Grouping content
48
41
  ========================================================================== */
49
- /**
50
- * Add the correct display in IE 9-.
51
- */
52
- figcaption,
53
- figure {
54
- display: block;
55
- }
56
-
57
- /**
58
- * Add the correct margin in IE 8.
59
- */
60
- figure {
61
- margin: 1em 40px;
62
- }
63
-
64
42
  /**
65
43
  * 1. Add the correct box sizing in Firefox.
66
44
  * 2. Show the overflow in Edge and IE.
@@ -90,18 +68,16 @@ pre {
90
68
  /* Links
91
69
  ========================================================================== */
92
70
  /**
93
- * 1. Remove the gray background on active links in IE 10.
94
- * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
71
+ * Remove the gray background on active links in IE 10.
95
72
  */
96
73
  a {
97
- background-color: transparent; /* 1 */
98
- -webkit-text-decoration-skip: objects; /* 2 */
74
+ background-color: transparent;
99
75
  }
100
76
 
101
77
  /* Text-level semantics
102
78
  ========================================================================== */
103
79
  /**
104
- * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
80
+ * 1. Remove the bottom border in Chrome 57-
105
81
  * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
106
82
  */
107
83
  abbr[title] {
@@ -110,14 +86,6 @@ abbr[title] {
110
86
  text-decoration: underline dotted; /* 2 */
111
87
  }
112
88
 
113
- /**
114
- * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
115
- */
116
- b,
117
- strong {
118
- font-weight: inherit;
119
- }
120
-
121
89
  /**
122
90
  * Add the correct font weight in Chrome, Edge, and Safari.
123
91
  */
@@ -137,21 +105,6 @@ samp {
137
105
  font-size: 1em; /* 2 */
138
106
  }
139
107
 
140
- /**
141
- * Add the correct font style in Android 4.3-.
142
- */
143
- dfn {
144
- font-style: italic;
145
- }
146
-
147
- /**
148
- * Add the correct background and color in IE 9-.
149
- */
150
- mark {
151
- background-color: #ff0;
152
- color: #000;
153
- }
154
-
155
108
  /**
156
109
  * Add the correct font size in all browsers.
157
110
  */
@@ -182,39 +135,16 @@ sup {
182
135
  /* Embedded content
183
136
  ========================================================================== */
184
137
  /**
185
- * Add the correct display in IE 9-.
186
- */
187
- audio,
188
- video {
189
- display: inline-block;
190
- }
191
-
192
- /**
193
- * Add the correct display in iOS 4-7.
194
- */
195
- audio:not([controls]) {
196
- display: none;
197
- height: 0;
198
- }
199
-
200
- /**
201
- * Remove the border on images inside links in IE 10-.
138
+ * Remove the border on images inside links in IE 10.
202
139
  */
203
140
  img {
204
141
  border-style: none;
205
142
  }
206
143
 
207
- /**
208
- * Hide the overflow in IE.
209
- */
210
- svg:not(:root) {
211
- overflow: hidden;
212
- }
213
-
214
144
  /* Forms
215
145
  ========================================================================== */
216
146
  /**
217
- * 1. Change the font styles in all browsers (opinionated).
147
+ * 1. Change the font styles in all browsers.
218
148
  * 2. Remove the margin in Firefox and Safari.
219
149
  */
220
150
  button,
@@ -222,7 +152,7 @@ input,
222
152
  optgroup,
223
153
  select,
224
154
  textarea {
225
- font-family: sans-serif; /* 1 */
155
+ font-family: inherit; /* 1 */
226
156
  font-size: 100%; /* 1 */
227
157
  line-height: 1.15; /* 1 */
228
158
  margin: 0; /* 2 */
@@ -245,15 +175,13 @@ select { /* 1 */
245
175
  }
246
176
 
247
177
  /**
248
- * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
249
- * controls in Android 4.
250
- * 2. Correct the inability to style clickable types in iOS and Safari.
178
+ * Correct the inability to style clickable types in iOS and Safari.
251
179
  */
252
180
  button,
253
- html [type=button],
181
+ [type=button],
254
182
  [type=reset],
255
183
  [type=submit] {
256
- -webkit-appearance: button; /* 2 */
184
+ -webkit-appearance: button;
257
185
  }
258
186
 
259
187
  button,
@@ -289,8 +217,8 @@ input {
289
217
  }
290
218
 
291
219
  /**
292
- * 1. Add the correct box sizing in IE 10-.
293
- * 2. Remove the padding in IE 10-.
220
+ * 1. Add the correct box sizing in IE 10.
221
+ * 2. Remove the padding in IE 10.
294
222
  */
295
223
  [type=checkbox],
296
224
  [type=radio] {
@@ -314,10 +242,10 @@ input {
314
242
  -webkit-appearance: textfield; /* 1 */
315
243
  outline-offset: -2px; /* 2 */
316
244
  /**
317
- * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
245
+ * Remove the inner padding in Chrome and Safari on macOS.
318
246
  */
319
247
  }
320
- [type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration {
248
+ [type=search]::-webkit-search-decoration {
321
249
  -webkit-appearance: none;
322
250
  }
323
251
 
@@ -353,16 +281,14 @@ legend {
353
281
  }
354
282
 
355
283
  /**
356
- * 1. Add the correct display in IE 9-.
357
- * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
284
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
358
285
  */
359
286
  progress {
360
- display: inline-block; /* 1 */
361
- vertical-align: baseline; /* 2 */
287
+ vertical-align: baseline;
362
288
  }
363
289
 
364
290
  /**
365
- * Remove the default vertical scrollbar in IE.
291
+ * Remove the default vertical scrollbar in IE 10+.
366
292
  */
367
293
  textarea {
368
294
  overflow: auto;
@@ -371,7 +297,7 @@ textarea {
371
297
  /* Interactive
372
298
  ========================================================================== */
373
299
  /*
374
- * Add the correct display in Edge, IE, and Firefox.
300
+ * Add the correct display in Edge, IE 10+, and Firefox.
375
301
  */
376
302
  details {
377
303
  display: block;
@@ -384,22 +310,8 @@ summary {
384
310
  display: list-item;
385
311
  }
386
312
 
387
- /*
388
- * Add the correct display in IE 9-.
389
- */
390
- menu {
391
- display: block;
392
- }
393
-
394
- /* Scripting
313
+ /* Misc
395
314
  ========================================================================== */
396
- /**
397
- * Add the correct display in IE 9-.
398
- */
399
- canvas {
400
- display: inline-block;
401
- }
402
-
403
315
  /**
404
316
  * Add the correct display in IE.
405
317
  */
@@ -407,10 +319,8 @@ template {
407
319
  display: none;
408
320
  }
409
321
 
410
- /* Hidden
411
- ========================================================================== */
412
322
  /**
413
- * Add the correct display in IE 10-.
323
+ * Add the correct display in IE 10.
414
324
  */
415
325
  [hidden] {
416
326
  display: none;
@@ -994,7 +904,7 @@ a.sky-btn:hover {
994
904
  }
995
905
 
996
906
  .sky-form-group {
997
- margin-bottom: var(--sky-compat-sky-form-group-margin-bottom, 0px);
907
+ margin-bottom: 0px;
998
908
  }
999
909
 
1000
910
  input.ng-invalid.ng-touched,
@@ -568,22 +568,22 @@
568
568
  opacity: 1;
569
569
  }
570
570
 
571
- .sky-theme-modern .sky-switch {
571
+ :is(.sky-theme-modern .sky-switch) {
572
572
  cursor: pointer;
573
573
  display: inline-flex;
574
574
  position: relative;
575
575
  }
576
- .sky-theme-modern .sky-switch.sky-switch-disabled {
576
+ :is(.sky-theme-modern .sky-switch).sky-switch-disabled {
577
577
  cursor: not-allowed;
578
578
  }
579
- .sky-theme-modern .sky-switch.sky-control-label-required .sky-switch-label {
579
+ :is(.sky-theme-modern .sky-switch).sky-control-label-required .sky-switch-label {
580
580
  margin-right: 0;
581
581
  }
582
- .sky-theme-modern .sky-switch:hover .sky-switch-control {
582
+ :is(.sky-theme-modern .sky-switch):hover .sky-switch-control {
583
583
  border-color: var(--sky-highlight-color-info);
584
584
  border-width: 2px;
585
585
  }
586
- .sky-theme-modern .sky-switch .sky-switch-input {
586
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input {
587
587
  border: 0;
588
588
  clip: rect(0 0 0 0);
589
589
  height: 1px;
@@ -595,45 +595,45 @@
595
595
  outline: 0;
596
596
  -webkit-appearance: none;
597
597
  }
598
- .sky-theme-modern .sky-switch .sky-switch-input.sky-switch-invalid + .sky-switch-control {
598
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input.sky-switch-invalid + .sky-switch-control {
599
599
  box-shadow: 0 0 8px rgba(239, 64, 68, 0.6);
600
600
  border: 1px solid var(--sky-highlight-color-danger);
601
601
  outline: none;
602
602
  }
603
- .sky-theme-modern .sky-switch .sky-switch-input:checked:not(:disabled) + .sky-switch-control, .sky-theme-modern .sky-switch .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control {
603
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:checked:not(:disabled) + .sky-switch-control, :is(.sky-theme-modern .sky-switch) .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control {
604
604
  background-color: var(--sky-background-color-input-selected);
605
605
  }
606
- .sky-theme-modern .sky-switch .sky-switch-input:checked:not(:disabled) + .sky-switch-control.sky-switch-control-success, .sky-theme-modern .sky-switch .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control.sky-switch-control-success {
606
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:checked:not(:disabled) + .sky-switch-control.sky-switch-control-success, :is(.sky-theme-modern .sky-switch) .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control.sky-switch-control-success {
607
607
  background-color: #d2e8c0;
608
608
  }
609
- .sky-theme-modern .sky-switch .sky-switch-input:checked:not(:disabled) + .sky-switch-control.sky-switch-control-warning, .sky-theme-modern .sky-switch .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control.sky-switch-control-warning {
609
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:checked:not(:disabled) + .sky-switch-control.sky-switch-control-warning, :is(.sky-theme-modern .sky-switch) .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control.sky-switch-control-warning {
610
610
  background-color: #ffeaca;
611
611
  }
612
- .sky-theme-modern .sky-switch .sky-switch-input:checked:not(:disabled) + .sky-switch-control.sky-switch-control-danger, .sky-theme-modern .sky-switch .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control.sky-switch-control-danger {
612
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:checked:not(:disabled) + .sky-switch-control.sky-switch-control-danger, :is(.sky-theme-modern .sky-switch) .sky-switch-input[type=checkbox]:indeterminate:not(:disabled) + .sky-switch-control.sky-switch-control-danger {
613
613
  background-color: #fac8bf;
614
614
  }
615
- .sky-theme-modern .sky-switch .sky-switch-input:disabled + .sky-switch-control {
615
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:disabled + .sky-switch-control {
616
616
  background-color: var(--sky-background-color-disabled);
617
617
  }
618
- .sky-theme-modern .sky-switch .sky-switch-input:focus + .sky-switch-control {
618
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:focus + .sky-switch-control {
619
619
  outline: thin dotted;
620
620
  outline: -webkit-focus-ring-color auto 5px;
621
621
  }
622
- .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled).sky-switch-invalid + .sky-switch-control {
622
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled).sky-switch-invalid + .sky-switch-control {
623
623
  border: solid 2px var(--sky-highlight-color-danger);
624
624
  box-shadow: none;
625
625
  }
626
- .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled):checked + .sky-switch-control, .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled)[type=checkbox]:indeterminate + .sky-switch-control, .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled):hover + .sky-switch-control {
626
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled):checked + .sky-switch-control, :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled)[type=checkbox]:indeterminate + .sky-switch-control, :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled):hover + .sky-switch-control {
627
627
  border: solid 1px var(--sky-background-color-primary-dark);
628
628
  }
629
- .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled):focus + .sky-switch-control, .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled):active + .sky-switch-control {
629
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled):focus + .sky-switch-control, :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled):active + .sky-switch-control {
630
630
  border: solid 2px var(--sky-background-color-primary-dark);
631
631
  }
632
- .sky-theme-modern .sky-switch .sky-switch-input:not(:disabled):focus:not(:active) + .sky-switch-control {
632
+ :is(.sky-theme-modern .sky-switch) .sky-switch-input:not(:disabled):focus:not(:active) + .sky-switch-control {
633
633
  box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.3);
634
634
  outline: none;
635
635
  }
636
- .sky-theme-modern .sky-switch .sky-switch-control {
636
+ :is(.sky-theme-modern .sky-switch) .sky-switch-control {
637
637
  width: var(--sky-switch-size);
638
638
  max-width: var(--sky-switch-size);
639
639
  height: var(--sky-switch-size);
@@ -650,17 +650,17 @@
650
650
  justify-content: center;
651
651
  transition: border-color 150ms, box-shadow 150ms, color 150ms;
652
652
  }
653
- .sky-theme-modern .sky-switch .sky-switch-control.sky-switch-control-icon {
653
+ :is(.sky-theme-modern .sky-switch) .sky-switch-control.sky-switch-control-icon {
654
654
  max-width: none;
655
655
  width: 35px;
656
656
  height: 35px;
657
657
  flex: 1 0 35px;
658
658
  font-size: 18px;
659
659
  }
660
- .sky-theme-modern .sky-switch .sky-switch-control::before {
660
+ :is(.sky-theme-modern .sky-switch) .sky-switch-control::before {
661
661
  content: "";
662
662
  }
663
- .sky-theme-modern .sky-switch .sky-switch-label {
663
+ :is(.sky-theme-modern .sky-switch) .sky-switch-label {
664
664
  line-height: var(--sky-switch-size);
665
665
  flex: 1 1 auto;
666
666
  width: 100%;
@@ -668,41 +668,41 @@
668
668
  min-width: 0;
669
669
  }
670
670
 
671
- .sky-theme-modern .sky-switch-icon-group .sky-switch-control-icon {
671
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-control-icon {
672
672
  margin-left: 0;
673
673
  margin-right: 0;
674
674
  border-radius: 0;
675
675
  }
676
- .sky-theme-modern .sky-switch-icon-group .sky-switch-control {
676
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-control {
677
677
  background-color: transparent;
678
678
  }
679
- .sky-theme-modern .sky-switch-icon-group .sky-switch-input:checked + .sky-switch-control, .sky-theme-modern .sky-switch-icon-group .sky-switch-input[type=checkbox]:indeterminate + .sky-switch-control {
679
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input:checked + .sky-switch-control, :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input[type=checkbox]:indeterminate + .sky-switch-control {
680
680
  background-color: var(--sky-background-color-input-selected);
681
681
  }
682
- .sky-theme-modern .sky-switch-icon-group .sky-switch-input:disabled + .sky-switch-control {
682
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input:disabled + .sky-switch-control {
683
683
  background-color: #ededee;
684
684
  border: none;
685
685
  color: var(--sky-text-color-deemphasized);
686
686
  }
687
- .sky-theme-modern .sky-switch-icon-group .sky-switch-input:checked + .sky-switch-control, .sky-theme-modern .sky-switch-icon-group .sky-switch-input:disabled:checked + .sky-switch-control, .sky-theme-modern .sky-switch-icon-group .sky-switch-input[type=checkbox]:indeterminate + .sky-switch-control, .sky-theme-modern .sky-switch-icon-group .sky-switch-input[type=checkbox]:disabled:indeterminate + .sky-switch-control {
687
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input:checked + .sky-switch-control, :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input:disabled:checked + .sky-switch-control, :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input[type=checkbox]:indeterminate + .sky-switch-control, :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-input[type=checkbox]:disabled:indeterminate + .sky-switch-control {
688
688
  color: var(--sky-background-color-primary-dark);
689
689
  }
690
- .sky-theme-modern .sky-switch-icon-group .sky-switch-control {
690
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-control {
691
691
  border: none;
692
692
  border-radius: 6px;
693
693
  }
694
- .sky-theme-modern .sky-switch-icon-group .sky-switch-control.sky-switch-control-icon {
694
+ :is(.sky-theme-modern .sky-switch-icon-group) .sky-switch-control.sky-switch-control-icon {
695
695
  font-size: 20px;
696
696
  height: 40px;
697
697
  width: 40px;
698
698
  }
699
- .sky-theme-modern .sky-switch-icon-group sky-checkbox .sky-switch-control-icon {
699
+ :is(.sky-theme-modern .sky-switch-icon-group) sky-checkbox .sky-switch-control-icon {
700
700
  margin-right: 10px;
701
701
  }
702
- .sky-theme-modern .sky-switch-icon-group sky-checkbox:last-of-type .sky-switch-control-icon {
702
+ :is(.sky-theme-modern .sky-switch-icon-group) sky-checkbox:last-of-type .sky-switch-control-icon {
703
703
  margin-right: 0;
704
704
  }
705
- .sky-theme-modern .sky-switch-icon-group sky-radio .sky-switch-control-icon {
705
+ :is(.sky-theme-modern .sky-switch-icon-group) sky-radio .sky-switch-control-icon {
706
706
  border-radius: 6px;
707
707
  }
708
708
 
@@ -748,17 +748,17 @@
748
748
  }
749
749
  .sky-theme-modern h4,
750
750
  .sky-theme-modern .sky-font-heading-4 {
751
- color: var(--sky-compat-theme-modern-heading-4-font-color, var(--sky-text-color-default));
751
+ color: var(--sky-text-color-default);
752
752
  font-size: 16px;
753
- font-weight: var(--sky-compat-theme-modern-heading-4-font-weight, var(--sky-theme-modern-font-heading-4-weight));
754
- text-transform: var(--sky-compat-theme-modern-heading-4-text-transform, none);
753
+ font-weight: var(--sky-theme-modern-font-heading-4-weight);
754
+ text-transform: none;
755
755
  }
756
756
  .sky-theme-modern h5,
757
757
  .sky-theme-modern .sky-font-heading-5 {
758
- color: var(--sky-compat-theme-modern-heading-5-font-color, var(--sky-text-color-default));
758
+ color: var(--sky-text-color-default);
759
759
  font-size: 14px;
760
- font-weight: var(--sky-compat-theme-modern-heading-5-font-weight, var(--sky-theme-modern-font-heading-5-weight));
761
- text-transform: var(--sky-compat-theme-modern-heading-5-text-transform, none);
760
+ font-weight: var(--sky-theme-modern-font-heading-5-weight);
761
+ text-transform: none;
762
762
  }
763
763
  .sky-theme-modern p {
764
764
  line-height: 1.5;