Skip to content

Commit

Permalink
feat: add support for RockPageBuilder sortable 🤩🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Nov 1, 2023
1 parent 4b46a19 commit bf8ab5c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Alfred.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ body:not(.uk-offcanvas-container) .alfred:hover {
outline: 4px groove #ececec;
z-index: 10;
}
body.no-alfred .alfred:hover {
outline: none !important;
}
body.no-alfred .alfredelements {
display: none !important;
}
.alfred-icon {
pointer-events: all;
border-radius: 0;
Expand Down
2 changes: 1 addition & 1 deletion Alfred.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

Alfred.prototype.initItem = function (el) {
$(el).addClass("alfred");
$(el).append("<div class=alfredelements>");
$(el).append("<div class='alfredelements no-sortable'>");
let $elements = $(el).find(".alfredelements");
try {
let config = JSON.parse($(el).attr("alfred"));
Expand Down
8 changes: 8 additions & 0 deletions Alfred.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ body:not(.uk-offcanvas-container) .alfred:hover {
outline: @outline;
z-index: 10;
}
body.no-alfred {
.alfred:hover {
outline: none !important;
}
.alfredelements {
display: none !important;
}
}

// mixin for icons
.alfred-icon {
Expand Down
1 change: 1 addition & 0 deletions Alfred.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf8ab5c

Please sign in to comment.