in English
Ukubonakala
Lawula ukubonakala kwama-elementi, ngaphandle kokulungisa isibonisi sazo, ngezinsiza ezibonakalayo.
Setha ama visibility
-elementi ngezinsiza zethu zokubonakala. Lezi zigaba zensiza aziliguquli nhlobo display
inani futhi azithinti isakhiwo - .invisible
izici zisadla isikhala ekhasini.
Izinto ezinekilasi
.invisible
zizofihlwa
kokubili ngokubonakalayo nakubasebenzisi bobuchwepheshe obusizayo/abafunda isikrini.
Faka isicelo .visible
noma .invisible
njengoba kudingeka.
<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
visibility: visible !important;
}
.invisible {
visibility: hidden !important;
}
Sass
I-Utilities API
Izinsiza ezibonakalayo zimenyezelwa kuzinsiza zethu ze-API ku- scss/_utilities.scss
. Funda indlela yokusebenzisa i-API yezinsiza.
"visibility": (
property: visibility,
class: null,
values: (
visible: visible,
invisible: hidden,
)
)