IMPR: CMS lightbox

This commit is contained in:
Tony Air 2023-02-20 16:55:17 +02:00
parent 4c3fb3cf73
commit 36d72210f7
2 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,16 @@
'use strict' 'use strict'
import '../../scss/cms.scss' import '../../scss/cms.scss'
import "@a2nt/meta-lightbox-js/src/js/app";
// import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_components/_ui.image-position'; // import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_components/_ui.image-position';
(function ($) {
$.entwine("ss", ($) => {
$('[data-toggle="lightbox"]').entwine({
onmatch() {
console.log("Init lightbox links at CMS");
window.dispatchEvent(new Event("MetaWindow.initLinks"));
},
});
});
})(jQuery);

View File

@ -1,14 +1,3 @@
@import "./variables";
@import "~@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/scss/types/cms"; @import "~@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/scss/types/cms";
@import "~@a2nt/meta-lightbox-js/src/scss/app";
.notifications-list {
.alert {
.btn-close {
display: none;
}
}
}
.btn-outline-primary,
.btn-primary {
color: #fff;
}