in English

Leabaíonn

Cruthaigh físeán sofhreagrach nó leabaithe taispeántas sleamhnán bunaithe ar leithead an tuismitheora trí chóimheas intreach a chruthú a scálaíonn ar aon fheiste.

Faoi

Cuirtear rialacha i bhfeidhm go díreach ar <iframe>, <embed>, <video>, agus <object>eilimintí; úsáid go roghnach aicme shliocht follasach .embed-responsive-itemnuair is mian leat an stíliú le haghaidh tréithe eile a mheaitseáil.

Pro-Leid! Ní gá duit a chur san áireamh frameborder="0"i do <iframe>chuid mar go sáraíonn muid é duit.

Sampla

Wrap aon leabaithe mar <iframe>eilimint i tuismitheora le .embed-responsiveagus cóimheas gné. Níl .embed-responsive-itemsé ag teastáil go docht, ach molaimid é.

<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
</div>

Cóimheasa gné

Is féidir cóimheasa gné a shaincheapadh le ranganna mionathraithe. De réir réamhshocraithe soláthraítear na haicmí cóimheasa seo a leanas:

<!-- 21:9 aspect ratio -->
<div class="embed-responsive embed-responsive-21by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

<!-- 1:1 aspect ratio -->
<div class="embed-responsive embed-responsive-1by1">
  <iframe class="embed-responsive-item" src="..."></iframe>
</div>

Laistigh de _variables.scss, is féidir leat na cóimheasa gné is mian leat a úsáid a athrú. Seo sampla den $embed-responsive-aspect-ratiosliosta:

$embed-responsive-aspect-ratios: (
  (21 9),
  (16 9),
  (4 3),
  (1 1)
) !default;