Tsallake zuwa babban abun ciki Tsallake zuwa kewayawa na takardu

Ƙara ko cire inuwa zuwa abubuwa tare da abubuwan amfani da akwatin-inuwa.

Misalai

Yayin da aka kashe inuwa akan abubuwan da aka gyara ta tsohuwa a cikin Bootstrap kuma ana iya kunna ta ta hanyar $enable-shadows, Hakanan zaka iya ƙara ko cire inuwa da sauri tare da box-shadowazuzuwan masu amfani. Ya haɗa da goyan baya don .shadow-noneda girman tsoho guda uku (waɗanda ke da alaƙa masu alaƙa don daidaitawa).

Babu inuwa
Ƙananan inuwa
Inuwa na yau da kullun
Inuwa mafi girma
<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

Masu canji

$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 ɗin Utilities

An bayyana abubuwan amfani da inuwa a cikin API ɗin mu a cikin scss/_utilities.scss. Koyi yadda ake amfani da API ɗin abubuwan amfani.

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