in English
Izithunzi
Engeza noma susa izithunzi ezintweni nge-box-shadow utility.
Kuleli khasi
Izibonelo
Ngenkathi izithunzi ezicini zenza ukuthi zingasebenzi ngokuzenzakalela ku-Bootstrap futhi zingavulwa nge- $enable-shadows
, ungakwazi ukwengeza noma ukususa isithunzi ngokushesha box-shadow
ngamakilasi ethu okusebenza. Kufaka phakathi usekelo .shadow-none
nosayizi abathathu abazenzakalelayo (abanokuguquguquka okuhlotshaniswayo ukuze kufaniswe).
Asikho isithunzi
Isithunzi esincane
Isithunzi esivamile
Isithunzi esikhulu
<div class="shadow-none p-3 mb-5 bg-light rounded">No shadow</div>
<div class="shadow-sm p-3 mb-5 bg-body rounded">Small shadow</div>
<div class="shadow p-3 mb-5 bg-body rounded">Regular shadow</div>
<div class="shadow-lg p-3 mb-5 bg-body rounded">Larger shadow</div>
Sass
Okuguquguqukayo
$box-shadow: 0 .5rem 1rem rgba($black, .15);
$box-shadow-sm: 0 .125rem .25rem rgba($black, .075);
$box-shadow-lg: 0 1rem 3rem rgba($black, .175);
$box-shadow-inset: inset 0 1px 2px rgba($black, .075);
I-Utilities API
Izinsiza zethunzi zimenyezelwa kuzinsiza zethu ze-API ku- scss/_utilities.scss
. Funda indlela yokusebenzisa i-API yezinsiza.
"shadow": (
property: box-shadow,
class: shadow,
values: (
null: $box-shadow,
sm: $box-shadow-sm,
lg: $box-shadow-lg,
none: none,
)
),