Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2018-04-01 08:07:48 +0300
committerGitHub <noreply@github.com>2018-04-01 08:07:48 +0300
commitdd7ed798564643d18d738f20e4cf51ccffd5af99 (patch)
treeacd50a759363bf1c48b91d6e8a8e14322eaae4b2 /docs
parenta016cbd6a88dd092179bec327eab2bca84268f5f (diff)
Add box-shadow utilities (#25758)
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/utilities/shadows.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/4.0/utilities/shadows.md b/docs/4.0/utilities/shadows.md
new file mode 100644
index 0000000000..54409b5edf
--- /dev/null
+++ b/docs/4.0/utilities/shadows.md
@@ -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 %}