diff --git a/ekko-lightbox.js b/ekko-lightbox.js index fa759b3..25e220f 100644 --- a/ekko-lightbox.js +++ b/ekko-lightbox.js @@ -83,9 +83,9 @@ const Lightbox = (($) => { let h4 = ``; let btn = ``; - let header = ``; + let header = ``; let footer = ``; - let body = '' + let body = btn + '' let dialog = `` $(this._config.doc.body).append(``) diff --git a/ekko-lightbox.less b/ekko-lightbox.less index e6dae94..4171709 100644 --- a/ekko-lightbox.less +++ b/ekko-lightbox.less @@ -76,6 +76,18 @@ .modal-footer { text-align: left; } + + button.close { + position:fixed; + right: 10px; + top: 10px; + background: #fff; + border-radius: 50%; + width: 2rem; + height: 2rem; + opacity: 1; + z-index: 999; + } // http://tobiasahlin.com/spinkit/ &-loader {