Tīpoka ki te ihirangi matua Tīpoka ki te whakaterenga tuhinga
in English

Kōruru

Tāpirihia, tangohia ranei nga atarangi ki nga huānga me nga taputapu pouaka-atarangi.

I tenei wharangi

Tauira

Ahakoa ko nga atarangi i runga i nga waahanga kua monoa ma te taunoa i Bootstrap ka taea te whakahohe ma te $enable-shadows, ka taea hoki e koe te taapiri tere, te tango ranei i tetahi atarangi me o maatau box-shadowakomanga whaipainga. Kei roto ko te tautoko .shadow-noneme nga rahi taunoa e toru (he taurangi e hono ana hei taurite).

Kaore he atarangi
Atarangi iti
Taumarumaru tonu
Atarangi nui ake
<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

Taurangi

$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 taputapu

Ko nga taputapu atarangi e whakaatuhia ana i roto i o maatau taputapu API i roto i scss/_utilities.scss. Akohia me pehea te whakamahi i nga taputapu API.

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