@patternfly/patternfly 4.203.0 → 4.203.3

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.
@@ -311,4 +311,104 @@
311
311
  .pf-u-background-color-danger-on-2xl {
312
312
  background-color: var(--pf-global--palette--red-50) !important;
313
313
  }
314
+ }
315
+ :where(.pf-theme-dark) .pf-u-background-color-default {
316
+ background-color: var(--pf-global--BackgroundColor--100) !important;
317
+ }
318
+ :where(.pf-theme-dark) .pf-u-background-color-success {
319
+ background-color: var(--pf-global--BackgroundColor--100) !important;
320
+ }
321
+ :where(.pf-theme-dark) .pf-u-background-color-info {
322
+ background-color: var(--pf-global--BackgroundColor--100) !important;
323
+ }
324
+ :where(.pf-theme-dark) .pf-u-background-color-warning {
325
+ background-color: var(--pf-global--BackgroundColor--100) !important;
326
+ }
327
+ :where(.pf-theme-dark) .pf-u-background-color-danger {
328
+ background-color: var(--pf-global--BackgroundColor--100) !important;
329
+ }
330
+ @media screen and (min-width: 576px) {
331
+ :where(.pf-theme-dark) .pf-u-background-color-default-on-sm {
332
+ background-color: var(--pf-global--BackgroundColor--100) !important;
333
+ }
334
+ :where(.pf-theme-dark) .pf-u-background-color-success-on-sm {
335
+ background-color: var(--pf-global--BackgroundColor--100) !important;
336
+ }
337
+ :where(.pf-theme-dark) .pf-u-background-color-info-on-sm {
338
+ background-color: var(--pf-global--BackgroundColor--100) !important;
339
+ }
340
+ :where(.pf-theme-dark) .pf-u-background-color-warning-on-sm {
341
+ background-color: var(--pf-global--BackgroundColor--100) !important;
342
+ }
343
+ :where(.pf-theme-dark) .pf-u-background-color-danger-on-sm {
344
+ background-color: var(--pf-global--BackgroundColor--100) !important;
345
+ }
346
+ }
347
+ @media screen and (min-width: 768px) {
348
+ :where(.pf-theme-dark) .pf-u-background-color-default-on-md {
349
+ background-color: var(--pf-global--BackgroundColor--100) !important;
350
+ }
351
+ :where(.pf-theme-dark) .pf-u-background-color-success-on-md {
352
+ background-color: var(--pf-global--BackgroundColor--100) !important;
353
+ }
354
+ :where(.pf-theme-dark) .pf-u-background-color-info-on-md {
355
+ background-color: var(--pf-global--BackgroundColor--100) !important;
356
+ }
357
+ :where(.pf-theme-dark) .pf-u-background-color-warning-on-md {
358
+ background-color: var(--pf-global--BackgroundColor--100) !important;
359
+ }
360
+ :where(.pf-theme-dark) .pf-u-background-color-danger-on-md {
361
+ background-color: var(--pf-global--BackgroundColor--100) !important;
362
+ }
363
+ }
364
+ @media screen and (min-width: 992px) {
365
+ :where(.pf-theme-dark) .pf-u-background-color-default-on-lg {
366
+ background-color: var(--pf-global--BackgroundColor--100) !important;
367
+ }
368
+ :where(.pf-theme-dark) .pf-u-background-color-success-on-lg {
369
+ background-color: var(--pf-global--BackgroundColor--100) !important;
370
+ }
371
+ :where(.pf-theme-dark) .pf-u-background-color-info-on-lg {
372
+ background-color: var(--pf-global--BackgroundColor--100) !important;
373
+ }
374
+ :where(.pf-theme-dark) .pf-u-background-color-warning-on-lg {
375
+ background-color: var(--pf-global--BackgroundColor--100) !important;
376
+ }
377
+ :where(.pf-theme-dark) .pf-u-background-color-danger-on-lg {
378
+ background-color: var(--pf-global--BackgroundColor--100) !important;
379
+ }
380
+ }
381
+ @media screen and (min-width: 1200px) {
382
+ :where(.pf-theme-dark) .pf-u-background-color-default-on-xl {
383
+ background-color: var(--pf-global--BackgroundColor--100) !important;
384
+ }
385
+ :where(.pf-theme-dark) .pf-u-background-color-success-on-xl {
386
+ background-color: var(--pf-global--BackgroundColor--100) !important;
387
+ }
388
+ :where(.pf-theme-dark) .pf-u-background-color-info-on-xl {
389
+ background-color: var(--pf-global--BackgroundColor--100) !important;
390
+ }
391
+ :where(.pf-theme-dark) .pf-u-background-color-warning-on-xl {
392
+ background-color: var(--pf-global--BackgroundColor--100) !important;
393
+ }
394
+ :where(.pf-theme-dark) .pf-u-background-color-danger-on-xl {
395
+ background-color: var(--pf-global--BackgroundColor--100) !important;
396
+ }
397
+ }
398
+ @media screen and (min-width: 1450px) {
399
+ :where(.pf-theme-dark) .pf-u-background-color-default-on-2xl {
400
+ background-color: var(--pf-global--BackgroundColor--100) !important;
401
+ }
402
+ :where(.pf-theme-dark) .pf-u-background-color-success-on-2xl {
403
+ background-color: var(--pf-global--BackgroundColor--100) !important;
404
+ }
405
+ :where(.pf-theme-dark) .pf-u-background-color-info-on-2xl {
406
+ background-color: var(--pf-global--BackgroundColor--100) !important;
407
+ }
408
+ :where(.pf-theme-dark) .pf-u-background-color-warning-on-2xl {
409
+ background-color: var(--pf-global--BackgroundColor--100) !important;
410
+ }
411
+ :where(.pf-theme-dark) .pf-u-background-color-danger-on-2xl {
412
+ background-color: var(--pf-global--BackgroundColor--100) !important;
413
+ }
314
414
  }
@@ -54,5 +54,11 @@ $pf-u-background-color-options: (
54
54
 
55
55
  @include pf-utility-builder($pf-u-background-color-options, $pf-global--breakpoint-list);
56
56
 
57
+ @import "themes/dark/BackgroundColor";
58
+
59
+ @include pf-theme-dark {
60
+ @include pf-theme-dark-background-color;
61
+ }
62
+
57
63
  // stylelint-enable
58
64
 
@@ -0,0 +1,25 @@
1
+ @import "../../../../sass-utilities/themes/dark/all";
2
+
3
+ @mixin pf-theme-dark-background-color() {
4
+ // Background color options to be redefined in theme
5
+ $pf-u-background-color-options: (
6
+ // Note that the status backgrounds are not intended to be used in dark theme; instead, a border or other indication would be used.
7
+ background-color-default: (
8
+ background-color var(--pf-global--BackgroundColor--100)
9
+ ),
10
+ background-color-success: (
11
+ background-color var(--pf-global--BackgroundColor--100)
12
+ ),
13
+ background-color-info: (
14
+ background-color var(--pf-global--BackgroundColor--100)
15
+ ),
16
+ background-color-warning: (
17
+ background-color var(--pf-global--BackgroundColor--100)
18
+ ),
19
+ background-color-danger: (
20
+ background-color var(--pf-global--BackgroundColor--100)
21
+ )
22
+ );
23
+
24
+ @include pf-utility-builder($pf-u-background-color-options, $pf-global--breakpoint-list);
25
+ }
@@ -942,4 +942,177 @@
942
942
  overflow: hidden !important;
943
943
  text-overflow: ellipsis !important;
944
944
  white-space: nowrap !important;
945
+ }
946
+
947
+ :where(.pf-theme-dark) .pf-u-color-300 {
948
+ color: var(--pf-global--Color--100) !important;
949
+ }
950
+ :where(.pf-theme-dark) .pf-u-color-light-100 {
951
+ color: var(--pf-global--Color-100) !important;
952
+ }
953
+ :where(.pf-theme-dark) .pf-u-color-light-200 {
954
+ color: var(--pf-global--Color-200) !important;
955
+ }
956
+ :where(.pf-theme-dark) .pf-u-link-color-visited {
957
+ color: var(--pf-global--palette--purple-200) !important;
958
+ }
959
+ :where(.pf-theme-dark) .pf-u-default-color-300 {
960
+ color: var(--pf-global--default-color--100) !important;
961
+ }
962
+ :where(.pf-theme-dark) .pf-u-success-color-200 {
963
+ color: var(--pf-global--success-color--100) !important;
964
+ }
965
+ :where(.pf-theme-dark) .pf-u-info-color-200 {
966
+ color: var(--pf-global--info-color--100) !important;
967
+ }
968
+ :where(.pf-theme-dark) .pf-u-danger-color-300 {
969
+ color: var(--pf-global--danger-color--100) !important;
970
+ }
971
+ :where(.pf-theme-dark) .pf-u-icon-color-dark {
972
+ color: var(--pf-global--icon--Color--dark) !important;
973
+ }
974
+ @media screen and (min-width: 576px) {
975
+ :where(.pf-theme-dark) .pf-u-color-300-on-sm {
976
+ color: var(--pf-global--Color--100) !important;
977
+ }
978
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-sm {
979
+ color: var(--pf-global--Color-100) !important;
980
+ }
981
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-sm {
982
+ color: var(--pf-global--Color-200) !important;
983
+ }
984
+ :where(.pf-theme-dark) .pf-u-link-color-visited-on-sm {
985
+ color: var(--pf-global--palette--purple-200) !important;
986
+ }
987
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-sm {
988
+ color: var(--pf-global--default-color--100) !important;
989
+ }
990
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-sm {
991
+ color: var(--pf-global--success-color--100) !important;
992
+ }
993
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-sm {
994
+ color: var(--pf-global--info-color--100) !important;
995
+ }
996
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-sm {
997
+ color: var(--pf-global--danger-color--100) !important;
998
+ }
999
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-sm {
1000
+ color: var(--pf-global--icon--Color--dark) !important;
1001
+ }
1002
+ }
1003
+ @media screen and (min-width: 768px) {
1004
+ :where(.pf-theme-dark) .pf-u-color-300-on-md {
1005
+ color: var(--pf-global--Color--100) !important;
1006
+ }
1007
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-md {
1008
+ color: var(--pf-global--Color-100) !important;
1009
+ }
1010
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-md {
1011
+ color: var(--pf-global--Color-200) !important;
1012
+ }
1013
+ :where(.pf-theme-dark) .pf-u-link-color-visited-on-md {
1014
+ color: var(--pf-global--palette--purple-200) !important;
1015
+ }
1016
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-md {
1017
+ color: var(--pf-global--default-color--100) !important;
1018
+ }
1019
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-md {
1020
+ color: var(--pf-global--success-color--100) !important;
1021
+ }
1022
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-md {
1023
+ color: var(--pf-global--info-color--100) !important;
1024
+ }
1025
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-md {
1026
+ color: var(--pf-global--danger-color--100) !important;
1027
+ }
1028
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-md {
1029
+ color: var(--pf-global--icon--Color--dark) !important;
1030
+ }
1031
+ }
1032
+ @media screen and (min-width: 992px) {
1033
+ :where(.pf-theme-dark) .pf-u-color-300-on-lg {
1034
+ color: var(--pf-global--Color--100) !important;
1035
+ }
1036
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-lg {
1037
+ color: var(--pf-global--Color-100) !important;
1038
+ }
1039
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-lg {
1040
+ color: var(--pf-global--Color-200) !important;
1041
+ }
1042
+ :where(.pf-theme-dark) .pf-u-link-color-visited-on-lg {
1043
+ color: var(--pf-global--palette--purple-200) !important;
1044
+ }
1045
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-lg {
1046
+ color: var(--pf-global--default-color--100) !important;
1047
+ }
1048
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-lg {
1049
+ color: var(--pf-global--success-color--100) !important;
1050
+ }
1051
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-lg {
1052
+ color: var(--pf-global--info-color--100) !important;
1053
+ }
1054
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-lg {
1055
+ color: var(--pf-global--danger-color--100) !important;
1056
+ }
1057
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-lg {
1058
+ color: var(--pf-global--icon--Color--dark) !important;
1059
+ }
1060
+ }
1061
+ @media screen and (min-width: 1200px) {
1062
+ :where(.pf-theme-dark) .pf-u-color-300-on-xl {
1063
+ color: var(--pf-global--Color--100) !important;
1064
+ }
1065
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-xl {
1066
+ color: var(--pf-global--Color-100) !important;
1067
+ }
1068
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-xl {
1069
+ color: var(--pf-global--Color-200) !important;
1070
+ }
1071
+ :where(.pf-theme-dark) .pf-u-link-color-visited-on-xl {
1072
+ color: var(--pf-global--palette--purple-200) !important;
1073
+ }
1074
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-xl {
1075
+ color: var(--pf-global--default-color--100) !important;
1076
+ }
1077
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-xl {
1078
+ color: var(--pf-global--success-color--100) !important;
1079
+ }
1080
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-xl {
1081
+ color: var(--pf-global--info-color--100) !important;
1082
+ }
1083
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-xl {
1084
+ color: var(--pf-global--danger-color--100) !important;
1085
+ }
1086
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-xl {
1087
+ color: var(--pf-global--icon--Color--dark) !important;
1088
+ }
1089
+ }
1090
+ @media screen and (min-width: 1450px) {
1091
+ :where(.pf-theme-dark) .pf-u-color-300-on-2xl {
1092
+ color: var(--pf-global--Color--100) !important;
1093
+ }
1094
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-2xl {
1095
+ color: var(--pf-global--Color-100) !important;
1096
+ }
1097
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-2xl {
1098
+ color: var(--pf-global--Color-200) !important;
1099
+ }
1100
+ :where(.pf-theme-dark) .pf-u-link-color-visited-on-2xl {
1101
+ color: var(--pf-global--palette--purple-200) !important;
1102
+ }
1103
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-2xl {
1104
+ color: var(--pf-global--default-color--100) !important;
1105
+ }
1106
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-2xl {
1107
+ color: var(--pf-global--success-color--100) !important;
1108
+ }
1109
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-2xl {
1110
+ color: var(--pf-global--info-color--100) !important;
1111
+ }
1112
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-2xl {
1113
+ color: var(--pf-global--danger-color--100) !important;
1114
+ }
1115
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-2xl {
1116
+ color: var(--pf-global--icon--Color--dark) !important;
1117
+ }
945
1118
  }
@@ -194,4 +194,10 @@ $pf-u-font-alignment-options: (
194
194
  white-space: nowrap !important;
195
195
  }
196
196
 
197
+ @import "themes/dark/text";
198
+
199
+ @include pf-theme-dark {
200
+ @include pf-theme-dark-text;
201
+ }
202
+
197
203
  // stylelint-enable
File without changes
@@ -0,0 +1,36 @@
1
+ @import "../../../../sass-utilities/themes/dark/all";
2
+
3
+ @mixin pf-theme-dark-text() {
4
+ // Font color options to be redefined in theme
5
+ $pf-u-font-color-options: (
6
+ color-300: (
7
+ color var(--pf-global--Color--100)
8
+ ),
9
+ color-light-100: (
10
+ color var(--pf-global--Color-100)
11
+ ),
12
+ color-light-200: (
13
+ color var(--pf-global--Color-200)
14
+ ),
15
+ link-color-visited: (
16
+ color var(--pf-global--palette--purple-200)
17
+ ),
18
+ default-color-300: (
19
+ color var(--pf-global--default-color--100)
20
+ ),
21
+ success-color-200: (
22
+ color var(--pf-global--success-color--100)
23
+ ),
24
+ info-color-200: (
25
+ color var(--pf-global--info-color--100)
26
+ ),
27
+ danger-color-300: (
28
+ color var(--pf-global--danger-color--100)
29
+ ),
30
+ icon-color-dark: (
31
+ color var(--pf-global--icon--Color--dark)
32
+ )
33
+ );
34
+
35
+ @include pf-utility-builder($pf-u-font-color-options, $pf-global--breakpoint-list);
36
+ }