Rach gu prìomh shusbaint Air adhart gu seòladh docs
Check
in English

Faileas

Cuir ris no thoir air falbh faileasan gu eileamaidean le goireasan sgàil-bhogsa.

Air an duilleig seo

Eisimpleirean

Ged a tha faileasan air co-phàirtean ciorramach gu bunaiteach ann am Bootstrap agus faodar an comasachadh tro $enable-shadows, faodaidh tu cuideachd sgàil a chuir ris no a thoirt air falbh leis na box-shadowclasaichean goireis againn. A’ toirt a-steach taic airson .shadow-noneagus trì meudan bunaiteach (aig a bheil caochladairean co-cheangailte ri bhith co-ionnan).

Gun sgàil
Sgàil bheag
Sgàil cunbhalach
Sgàil nas motha
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

Caochlaidhean

$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

Tha goireasan sgàil air an ainmeachadh anns na goireasan API againn ann an scss/_utilities.scss. Ionnsaich mar a chleachdas tu an API Utilities.

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