@patternfly/patternfly 4.203.1 → 4.203.4

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.
@@ -22,6 +22,7 @@ $pf-global--danger-color--100: $pf-color-red-9999;
22
22
  $pf-global--danger-color--200: $pf-color-red-8888;
23
23
  $pf-global--link--Color: $pf-color-blue-300;
24
24
  $pf-global--link--Color--hover: $pf-color-blue-200;
25
+ $pf-global--link--Color--visited: $pf-color-purple-300;
25
26
  $pf-global--disabled-color--100: $pf-color-black-400; // disabled text on regular background color
26
27
  $pf-global--disabled-color--200: $pf-color-black-500; // disabled background color
27
28
  $pf-global--disabled-color--300: $pf-color-black-200; // disabled text on disabled background color
@@ -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,159 @@
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-default-color-300 {
957
+ color: var(--pf-global--default-color--100) !important;
958
+ }
959
+ :where(.pf-theme-dark) .pf-u-success-color-200 {
960
+ color: var(--pf-global--success-color--100) !important;
961
+ }
962
+ :where(.pf-theme-dark) .pf-u-info-color-200 {
963
+ color: var(--pf-global--info-color--100) !important;
964
+ }
965
+ :where(.pf-theme-dark) .pf-u-danger-color-300 {
966
+ color: var(--pf-global--danger-color--100) !important;
967
+ }
968
+ :where(.pf-theme-dark) .pf-u-icon-color-dark {
969
+ color: var(--pf-global--icon--Color--dark) !important;
970
+ }
971
+ @media screen and (min-width: 576px) {
972
+ :where(.pf-theme-dark) .pf-u-color-300-on-sm {
973
+ color: var(--pf-global--Color--100) !important;
974
+ }
975
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-sm {
976
+ color: var(--pf-global--Color-100) !important;
977
+ }
978
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-sm {
979
+ color: var(--pf-global--Color-200) !important;
980
+ }
981
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-sm {
982
+ color: var(--pf-global--default-color--100) !important;
983
+ }
984
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-sm {
985
+ color: var(--pf-global--success-color--100) !important;
986
+ }
987
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-sm {
988
+ color: var(--pf-global--info-color--100) !important;
989
+ }
990
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-sm {
991
+ color: var(--pf-global--danger-color--100) !important;
992
+ }
993
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-sm {
994
+ color: var(--pf-global--icon--Color--dark) !important;
995
+ }
996
+ }
997
+ @media screen and (min-width: 768px) {
998
+ :where(.pf-theme-dark) .pf-u-color-300-on-md {
999
+ color: var(--pf-global--Color--100) !important;
1000
+ }
1001
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-md {
1002
+ color: var(--pf-global--Color-100) !important;
1003
+ }
1004
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-md {
1005
+ color: var(--pf-global--Color-200) !important;
1006
+ }
1007
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-md {
1008
+ color: var(--pf-global--default-color--100) !important;
1009
+ }
1010
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-md {
1011
+ color: var(--pf-global--success-color--100) !important;
1012
+ }
1013
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-md {
1014
+ color: var(--pf-global--info-color--100) !important;
1015
+ }
1016
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-md {
1017
+ color: var(--pf-global--danger-color--100) !important;
1018
+ }
1019
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-md {
1020
+ color: var(--pf-global--icon--Color--dark) !important;
1021
+ }
1022
+ }
1023
+ @media screen and (min-width: 992px) {
1024
+ :where(.pf-theme-dark) .pf-u-color-300-on-lg {
1025
+ color: var(--pf-global--Color--100) !important;
1026
+ }
1027
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-lg {
1028
+ color: var(--pf-global--Color-100) !important;
1029
+ }
1030
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-lg {
1031
+ color: var(--pf-global--Color-200) !important;
1032
+ }
1033
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-lg {
1034
+ color: var(--pf-global--default-color--100) !important;
1035
+ }
1036
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-lg {
1037
+ color: var(--pf-global--success-color--100) !important;
1038
+ }
1039
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-lg {
1040
+ color: var(--pf-global--info-color--100) !important;
1041
+ }
1042
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-lg {
1043
+ color: var(--pf-global--danger-color--100) !important;
1044
+ }
1045
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-lg {
1046
+ color: var(--pf-global--icon--Color--dark) !important;
1047
+ }
1048
+ }
1049
+ @media screen and (min-width: 1200px) {
1050
+ :where(.pf-theme-dark) .pf-u-color-300-on-xl {
1051
+ color: var(--pf-global--Color--100) !important;
1052
+ }
1053
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-xl {
1054
+ color: var(--pf-global--Color-100) !important;
1055
+ }
1056
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-xl {
1057
+ color: var(--pf-global--Color-200) !important;
1058
+ }
1059
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-xl {
1060
+ color: var(--pf-global--default-color--100) !important;
1061
+ }
1062
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-xl {
1063
+ color: var(--pf-global--success-color--100) !important;
1064
+ }
1065
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-xl {
1066
+ color: var(--pf-global--info-color--100) !important;
1067
+ }
1068
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-xl {
1069
+ color: var(--pf-global--danger-color--100) !important;
1070
+ }
1071
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-xl {
1072
+ color: var(--pf-global--icon--Color--dark) !important;
1073
+ }
1074
+ }
1075
+ @media screen and (min-width: 1450px) {
1076
+ :where(.pf-theme-dark) .pf-u-color-300-on-2xl {
1077
+ color: var(--pf-global--Color--100) !important;
1078
+ }
1079
+ :where(.pf-theme-dark) .pf-u-color-light-100-on-2xl {
1080
+ color: var(--pf-global--Color-100) !important;
1081
+ }
1082
+ :where(.pf-theme-dark) .pf-u-color-light-200-on-2xl {
1083
+ color: var(--pf-global--Color-200) !important;
1084
+ }
1085
+ :where(.pf-theme-dark) .pf-u-default-color-300-on-2xl {
1086
+ color: var(--pf-global--default-color--100) !important;
1087
+ }
1088
+ :where(.pf-theme-dark) .pf-u-success-color-200-on-2xl {
1089
+ color: var(--pf-global--success-color--100) !important;
1090
+ }
1091
+ :where(.pf-theme-dark) .pf-u-info-color-200-on-2xl {
1092
+ color: var(--pf-global--info-color--100) !important;
1093
+ }
1094
+ :where(.pf-theme-dark) .pf-u-danger-color-300-on-2xl {
1095
+ color: var(--pf-global--danger-color--100) !important;
1096
+ }
1097
+ :where(.pf-theme-dark) .pf-u-icon-color-dark-on-2xl {
1098
+ color: var(--pf-global--icon--Color--dark) !important;
1099
+ }
945
1100
  }
@@ -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,33 @@
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
+ default-color-300: (
16
+ color var(--pf-global--default-color--100)
17
+ ),
18
+ success-color-200: (
19
+ color var(--pf-global--success-color--100)
20
+ ),
21
+ info-color-200: (
22
+ color var(--pf-global--info-color--100)
23
+ ),
24
+ danger-color-300: (
25
+ color var(--pf-global--danger-color--100)
26
+ ),
27
+ icon-color-dark: (
28
+ color var(--pf-global--icon--Color--dark)
29
+ )
30
+ );
31
+
32
+ @include pf-utility-builder($pf-u-font-color-options, $pf-global--breakpoint-list);
33
+ }