Skip to content

Commit 8d36dfc

Browse files
Dark mode: Grid example (#2368)
Co-authored-by: Julien Déramond <julien.deramond@orange.com>
1 parent 5da1f0c commit 8d36dfc

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
.themed-grid-col {
22
padding-top: .75rem;
33
padding-bottom: .75rem;
4-
background-color: #eee; /* Boosted mod */
5-
outline: 1px solid #ddd; /* Boosted mod */
4+
background-color: var(--bs-secondary-bg); /* Boosted mod: instead of `rgba(112.520718, 44.062154, 249.437846, .15)` */
5+
/* Boosted mod: no `border` */
6+
outline: 1px solid var(--bs-border-color-translucent); /* Boosted mod */
67
}
78

89
.themed-container {
10+
/* Boosted mod: no `padding` */
911
padding-top: .75rem; /* Boosted mod */
1012
padding-bottom: .75rem; /* Boosted mod */
1113
margin-bottom: 1.5rem;
12-
background-color: #b5e8f7;
13-
outline: 1px solid #4bb4e6; /* Boosted mod */
14+
background-color: var(--bs-secondary-bg); /* Boosted mod: instead of `rgba(112.520718, 44.062154, 249.437846, .15)` */
15+
/* Boosted mod: no `border` */
16+
outline: 1px solid var(--bs-border-color-translucent); /* Boosted mod */
1417
}

site/content/docs/5.3/examples/grid/index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ <h2 class="mt-4">Two columns</h2>
8686
</div>
8787

8888
<h2 class="mt-4">Full width, single column</h2>
89-
<p class="text-warning">
90-
No grid classes are necessary for full-width elements.
91-
</p>
89+
<div class="alert alert-warning">
90+
<span class="alert-icon"><span class="visually-hidden">Warning</span></span>
91+
<p>No grid classes are necessary for full-width elements.</p>
92+
</div>
9293

9394
<hr class="my-4">
9495

0 commit comments

Comments
 (0)