Skip to content

Commit

Permalink
Add class to section, set image prop to false
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed Sep 4, 2020
1 parent edcb6ab commit 21ec3a1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
17 changes: 6 additions & 11 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
section.k-section-name-modules .k-list-item-image {
display: none;
}

section.k-section-name-modules .k-list-item:not(.k-draggable-item) {
section.k-modules-section .k-list-item:not(.k-draggable-item) {
background-color: rgba(255, 255, 255, 0.5);
}

section.k-section-name-modules .k-list-item:not(.k-draggable-item) .k-list-item-text em {
section.k-modules-section .k-list-item:not(.k-draggable-item) .k-list-item-text em {
color: rgba(0, 0, 0, 0.7);
}

section.k-section-name-modules .k-headline {
cursor: auto;
}

section.k-section-name-modules .k-headline a {
section.k-modules-section .k-headline a {
pointer-events: none;
}
section.k-modules-section .k-headline {
cursor: text;
}

.k-topbar-crumbs a[href$="+modules"] {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion index.js

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

1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function url($options = null): string {
'info' => function(string $info = '{{ page.moduleName }}') {
return $info;
},
'image' => false,
'parent' => function($parent = null) {
if($parent != null) {
return $parent;
Expand Down
9 changes: 7 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
panel.plugin('medienbaecker/modules', {
components: {
'k-modules-section': {
extends: 'k-pages-section'
}
extends: 'k-pages-section',
updated: function () {
this.$nextTick(function () {
this.$el.classList.add('k-modules-section');
})
}
},
},
fields: {
modules_redirect: {
Expand Down

0 comments on commit 21ec3a1

Please sign in to comment.