mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
IMPR: Store Carousel UI at the element, fix embed video aspect ratio
This commit is contained in:
parent
c66a1da4e4
commit
01083045ba
@ -9,6 +9,8 @@ const CarouselUI = ((window) => {
|
||||
|
||||
document.querySelectorAll(`.${NAME}`).forEach((el, i) => {
|
||||
const carousel = new Carousel(el);
|
||||
el.ui = carousel;
|
||||
|
||||
// create next/prev arrows
|
||||
if (el.dataset.bsArrows) {
|
||||
const next = document.createElement("button");
|
||||
|
@ -242,3 +242,15 @@ img {
|
||||
img {
|
||||
border: 1px dashed;
|
||||
}
|
||||
|
||||
.ss-htmleditorfield-file.embed {
|
||||
@include responsive-ratio(4,3,true);
|
||||
position: relative;
|
||||
iframe {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top:0;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user