in English
Meriti
Eketsa kapa u tlose meriti ho likarolo tse nang le lisebelisoa tsa li-box-shadow.
Leqepheng lena
Mehlala
Le ha meriti ea likarolo e koetsoe ka mokhoa oa kamehla ho Bootstrap mme e ka nolofalloa ka $enable-shadows
, o ka eketsa kapa oa tlosa moriti kapele ka box-shadow
litlelase tsa rona tsa ts'ebeliso. E kenyelletsa tšehetso bakeng sa .shadow-none
le li-saese tse tharo tsa kamehla (tse nang le mefuta e amanang le eona).
Ha ho moriti
Moriti o monyane
Moriti o tloaelehileng
Moriti o moholoanyane
<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
Lintho tse fapaneng
$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);
Utilities API
Lisebelisoa tsa Shadow li phatlalatsoa lits'ebetsong tsa rona tsa API ho scss/_utilities.scss
. Ithute ho sebelisa lisebelisoa tsa API.
"shadow": (
property: box-shadow,
class: shadow,
values: (
null: $box-shadow,
sm: $box-shadow-sm,
lg: $box-shadow-lg,
none: none,
)
),