Skip to content

Commit 2bbbe73

Browse files
authored
feat(ui): rework category list
1 parent 343e526 commit 2bbbe73

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

css/styles.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ tr[data-itemtype="PluginFormcreatorCondition"] ~ tr[data-itemtype="PluginFormcre
496496
ul,
497497
li {
498498
list-style: none;
499-
margin: 0;
499+
padding-bottom: 10px;
500500
}
501501

502502
ul {
@@ -597,7 +597,7 @@ tr[data-itemtype="PluginFormcreatorCondition"] ~ tr[data-itemtype="PluginFormcre
597597

598598
li {
599599
background-color: inherit;
600-
height: 51px;
600+
height: 40px;
601601
}
602602
}
603603

@@ -1044,3 +1044,14 @@ a.plugin_formcreator_formTile_title {
10441044
padding-left: 5px;
10451045
color: #717171;
10461046
}
1047+
1048+
.category-divider {
1049+
height: 0;
1050+
margin-bottom: 0.5rem;
1051+
overflow: hidden;
1052+
border-top: 1px solid rgba(98, 105, 118, 0.16);
1053+
}
1054+
1055+
a.category_active span {
1056+
font-weight: bold;
1057+
}

inc/form.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,9 @@ public function showServiceCatalog() : void {
644644

645645
public function showWizard() : void {
646646
echo '<div id="plugin_formcreator_wizard_categories" class="card">';
647+
647648
echo '<div><h2 class="card-title">'._n("Category", "Categories", 2, 'formcreator').'</h2></div>';
649+
echo '<div class="category-divider"></div>';
648650
echo '<div class="slinky-menu"></div>';
649651
echo '<div><a href="#" id="wizard_seeall">' . __('See all', 'formcreator') . '</a></div>';
650652
echo '</div>';

0 commit comments

Comments
 (0)