Holo i ka ʻike nui Holo i ka hoʻokele docs
Check
in English

Nā aka

Hoʻohui a wehe paha i nā aka i nā mea me nā pono pahu-shadow.

Ma kēia ʻaoʻao

Nā laʻana

ʻOiai ua pio nā aka ma nā ʻāpana ma Bootstrap a hiki ke hoʻohana ʻia ma o $enable-shadows, hiki iā ʻoe ke hoʻohui a wehe koke i kahi aka me kā mākou mau box-shadowpapa hana. Loaʻa i ke kākoʻo .shadow-nonea me ʻekolu mau nui paʻamau (i loaʻa nā ʻano like ʻole e pili ana).

ʻAʻohe aka
aka liʻiliʻi
aka mau
aka nui aku
html
<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

Nā mea hoʻololi

$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);

API no nā pono hana

Hōʻike ʻia nā pono hana Shadow i kā mākou mau pono API ma scss/_utilities.scss. E aʻo pehea e hoʻohana ai i nā pono API.

    "shadow": (
      property: box-shadow,
      class: shadow,
      values: (
        null: $box-shadow,
        sm: $box-shadow-sm,
        lg: $box-shadow-lg,
        none: none,
      )
    ),