Source

Ukubonakala

Lawula imbonakalo, ngaphandle kokuguqula umboniso, wezinto ezinoncedo olubonakalayo.

Seta i visibility-elementi kunye nezixhobo zethu zokubonakala. Ezi klasi ziluncedo aziliguquli displayxabiso kwaphela kwaye azichaphazeli uyilo – .invisibleizinto zisathatha indawo kwiphepha. Umxholo uya kufihlwa ngokubonakalayo kunye nokuncedisa iteknoloji / abasebenzisi bokufunda isikrini.

Faka isicelo .visibleokanye .invisiblenjengoko kuyimfuneko.

<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}

// Usage as a mixin
.element {
  @include invisible(visible);
}
.element {
  @include invisible(hidden);
}