Skip to content

Commit

Permalink
Dark mode: Grid example (#2368)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Déramond <[email protected]>
  • Loading branch information
louismaximepiton and julien-deramond authored Nov 13, 2023
1 parent 9ccbebd commit 449b31f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
11 changes: 7 additions & 4 deletions site/content/docs/5.3/examples/grid/grid.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.themed-grid-col {
padding-top: .75rem;
padding-bottom: .75rem;
background-color: #eee; /* Boosted mod */
outline: 1px solid #ddd; /* Boosted mod */
background-color: var(--bs-secondary-bg); /* Boosted mod: instead of `rgba(112.520718, 44.062154, 249.437846, .15)` */
/* Boosted mod: no `border` */
outline: 1px solid var(--bs-border-color-translucent); /* Boosted mod */
}

.themed-container {
/* Boosted mod: no `padding` */
padding-top: .75rem; /* Boosted mod */
padding-bottom: .75rem; /* Boosted mod */
margin-bottom: 1.5rem;
background-color: #b5e8f7;
outline: 1px solid #4bb4e6; /* Boosted mod */
background-color: var(--bs-secondary-bg); /* Boosted mod: instead of `rgba(112.520718, 44.062154, 249.437846, .15)` */
/* Boosted mod: no `border` */
outline: 1px solid var(--bs-border-color-translucent); /* Boosted mod */
}
7 changes: 4 additions & 3 deletions site/content/docs/5.3/examples/grid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ <h2 class="mt-4">Two columns</h2>
</div>

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

<hr class="my-4">

Expand Down

0 comments on commit 449b31f

Please sign in to comment.