Skip to content

Commit f5fa45d

Browse files
authored
Merge pull request #53 from ForEvolve/features/themed-utilities
## 2.1.0 - Add a Themed page in the sample app. - Add the following themed utilities that flip from dark to light depending on the theme: - `.bg-themed` (dark: `.bg-dark` | Light: `.bg-light`) - `.text-themed` (dark: `.text-light` | Light: `.text-dark`) - `.alert-themed` (dark: `.alert-dark` | Light: `.alert-light`) - Add the following themed utilities (inverted colors) that flip from dark to light depending on the theme: - `.bg-themed-inverted` (dark: `.bg-light` | Light: `.bg-dark`) - `.text-themed-inverted` (dark: `.text-dark` | Light: `.text-light`) - `.alert-themed-inverted` (dark: `.alert-light` | Light: `.alert-dark`)
2 parents 6acb739 + 6ff3863 commit f5fa45d

File tree

68 files changed

+1163
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1163
-537
lines changed

dist/css/bootstrap-dark-prefers-light.css

Lines changed: 64 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5805,31 +5805,37 @@ a.badge-dark:focus {
58055805
color: #491217;
58065806
}
58075807

5808-
.alert-light {
5808+
.alert-light,
5809+
.alert-themed-inverted {
58095810
color: #818182;
58105811
background-color: #fefefe;
58115812
border-color: #fdfdfe;
58125813
}
58135814

5814-
.alert-light hr {
5815+
.alert-light hr,
5816+
.alert-themed-inverted hr {
58155817
border-top-color: #ececf6;
58165818
}
58175819

5818-
.alert-light .alert-link {
5820+
.alert-light .alert-link,
5821+
.alert-themed-inverted .alert-link {
58195822
color: #686868;
58205823
}
58215824

5822-
.alert-dark {
5825+
.alert-dark,
5826+
.alert-themed {
58235827
color: #1b1e21;
58245828
background-color: #d6d8d9;
58255829
border-color: #c6c8ca;
58265830
}
58275831

5828-
.alert-dark hr {
5832+
.alert-dark hr,
5833+
.alert-themed hr {
58295834
border-top-color: #b9bbbe;
58305835
}
58315836

5832-
.alert-dark .alert-link {
5837+
.alert-dark .alert-link,
5838+
.alert-themed .alert-link {
58335839
color: #040505;
58345840
}
58355841

@@ -7223,28 +7229,38 @@ button.bg-danger:hover {
72237229
background-color: #bd2130!important;
72247230
}
72257231

7226-
.bg-light {
7232+
.bg-light,
7233+
.bg-themed-inverted {
72277234
background-color: #f8f9fa!important;
72287235
}
72297236

72307237
a.bg-light:focus,
72317238
a.bg-light:hover,
7239+
a.bg-themed-inverted:focus,
7240+
a.bg-themed-inverted:hover,
72327241
button.bg-light:focus,
7233-
button.bg-light:hover {
7242+
button.bg-light:hover,
7243+
button.bg-themed-inverted:focus,
7244+
button.bg-themed-inverted:hover {
72347245
background-color: #dae0e5!important;
72357246
}
72367247

72377248
.bg-dark,
7249+
.bg-themed,
72387250
.navbar-themed {
72397251
background-color: #343a40!important;
72407252
}
72417253

72427254
a.bg-dark:focus,
72437255
a.bg-dark:hover,
7256+
a.bg-themed:focus,
7257+
a.bg-themed:hover,
72447258
a.navbar-themed:focus,
72457259
a.navbar-themed:hover,
72467260
button.bg-dark:focus,
72477261
button.bg-dark:hover,
7262+
button.bg-themed:focus,
7263+
button.bg-themed:hover,
72487264
button.navbar-themed:focus,
72497265
button.navbar-themed:hover {
72507266
background-color: #1d2124!important;
@@ -10950,21 +10966,27 @@ a.text-danger:hover {
1095010966
color: #a71d2a!important;
1095110967
}
1095210968

10953-
.text-light {
10969+
.text-light,
10970+
.text-themed {
1095410971
color: #f8f9fa!important;
1095510972
}
1095610973

1095710974
a.text-light:focus,
10958-
a.text-light:hover {
10975+
a.text-light:hover,
10976+
a.text-themed:focus,
10977+
a.text-themed:hover {
1095910978
color: #cbd3da!important;
1096010979
}
1096110980

10962-
.text-dark {
10981+
.text-dark,
10982+
.text-themed-inverted {
1096310983
color: #343a40!important;
1096410984
}
1096510985

1096610986
a.text-dark:focus,
10967-
a.text-dark:hover {
10987+
a.text-dark:hover,
10988+
a.text-themed-inverted:focus,
10989+
a.text-themed-inverted:hover {
1096810990
color: #121416!important;
1096910991
}
1097010992

@@ -13117,23 +13139,27 @@ a.text-dark:hover {
1311713139
color: #491217;
1311813140
}
1311913141

13120-
.alert-light {
13142+
.alert-light,
13143+
.alert-themed {
1312113144
color: #818182;
1312213145
background-color: #fefefe;
1312313146
border-color: #fdfdfe;
1312413147
}
1312513148

13126-
.alert-light .alert-link {
13149+
.alert-light .alert-link,
13150+
.alert-themed .alert-link {
1312713151
color: #686868;
1312813152
}
1312913153

13130-
.alert-dark {
13154+
.alert-dark,
13155+
.alert-themed-inverted {
1313113156
color: #1b1e21;
1313213157
background-color: #d6d8d9;
1313313158
border-color: #c6c8ca;
1313413159
}
1313513160

13136-
.alert-dark .alert-link {
13161+
.alert-dark .alert-link,
13162+
.alert-themed-inverted .alert-link {
1313713163
color: #040505;
1313813164
}
1313913165

@@ -13581,29 +13607,39 @@ a.text-dark:hover {
1358113607
}
1358213608

1358313609
.bg-light,
13610+
.bg-themed,
1358413611
.navbar-themed {
1358513612
background-color: #f8f9fa!important;
1358613613
}
1358713614

1358813615
a.bg-light:focus,
1358913616
a.bg-light:hover,
13617+
a.bg-themed:focus,
13618+
a.bg-themed:hover,
1359013619
a.navbar-themed:focus,
1359113620
a.navbar-themed:hover,
1359213621
button.bg-light:focus,
1359313622
button.bg-light:hover,
13623+
button.bg-themed:focus,
13624+
button.bg-themed:hover,
1359413625
button.navbar-themed:focus,
1359513626
button.navbar-themed:hover {
1359613627
background-color: #dae0e5!important;
1359713628
}
1359813629

13599-
.bg-dark {
13630+
.bg-dark,
13631+
.bg-themed-inverted {
1360013632
background-color: #343a40!important;
1360113633
}
1360213634

1360313635
a.bg-dark:focus,
1360413636
a.bg-dark:hover,
13637+
a.bg-themed-inverted:focus,
13638+
a.bg-themed-inverted:hover,
1360513639
button.bg-dark:focus,
13606-
button.bg-dark:hover {
13640+
button.bg-dark:hover,
13641+
button.bg-themed-inverted:focus,
13642+
button.bg-themed-inverted:hover {
1360713643
background-color: #1d2124!important;
1360813644
}
1360913645

@@ -13798,21 +13834,27 @@ a.text-dark:hover {
1379813834
color: #a71d2a!important;
1379913835
}
1380013836

13801-
.text-light {
13837+
.text-light,
13838+
.text-themed-inverted {
1380213839
color: #f8f9fa!important;
1380313840
}
1380413841

1380513842
a.text-light:focus,
13806-
a.text-light:hover {
13843+
a.text-light:hover,
13844+
a.text-themed-inverted:focus,
13845+
a.text-themed-inverted:hover {
1380713846
color: #cbd3da!important;
1380813847
}
1380913848

13810-
.text-dark {
13849+
.text-dark,
13850+
.text-themed {
1381113851
color: #343a40!important;
1381213852
}
1381313853

1381413854
a.text-dark:focus,
13815-
a.text-dark:hover {
13855+
a.text-dark:hover,
13856+
a.text-themed:focus,
13857+
a.text-themed:hover {
1381613858
color: #121416!important;
1381713859
}
1381813860

dist/css/bootstrap-dark-prefers-light.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-dark.css

Lines changed: 21 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-dark.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)