-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
layout: docs | ||
title: Shadows | ||
description: Add or remove shadows to elements with `box-shadow` utilities. | ||
group: utilities | ||
toc: false | ||
--- | ||
|
||
## Examples | ||
|
||
While shadows on components are disabled by default in Bootstrap and can be enabled via `$enable-shadows`, you can also quickly add or remove a shadow with our `box-shadow` utility classes. Includes support for `.shadow-none` and three default sizes (which have associated variables to match). | ||
|
||
{% capture example %} | ||
<div class="shadow-none p-3 mb-5 bg-light rounded">No shadow</div> | ||
<div class="shadow-sm p-3 mb-5 bg-white rounded">Small shadow</div> | ||
<div class="shadow p-3 mb-5 bg-white rounded">Regular shadow</div> | ||
<div class="shadow-lg p-3 mb-5 bg-white rounded">Larger shadow</div> | ||
{% endcapture %} | ||
{% include example.html content=example %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// stylelint-disable declaration-no-important | ||
|
||
.shadow-sm { box-shadow: $box-shadow-sm !important; } | ||
.shadow { box-shadow: $box-shadow !important; } | ||
.shadow-lg { box-shadow: $box-shadow-lg !important; } | ||
.shadow-none { box-shadow: none !important; } |