mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: CMS lightbox
This commit is contained in:
parent
4c3fb3cf73
commit
36d72210f7
@ -1,4 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
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';
|
||||
|
||||
(function ($) {
|
||||
$.entwine("ss", ($) => {
|
||||
$('[data-toggle="lightbox"]').entwine({
|
||||
onmatch() {
|
||||
console.log("Init lightbox links at CMS");
|
||||
window.dispatchEvent(new Event("MetaWindow.initLinks"));
|
||||
},
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
|
@ -1,14 +1,3 @@
|
||||
@import "./variables";
|
||||
@import "~@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/scss/types/cms";
|
||||
|
||||
.notifications-list {
|
||||
.alert {
|
||||
.btn-close {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-outline-primary,
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
}
|
||||
@import "~@a2nt/meta-lightbox-js/src/scss/app";
|
||||
|
Loading…
Reference in New Issue
Block a user