Skip to content

Commit

Permalink
feat(ui): rework category list
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored May 10, 2022
1 parent 343e526 commit 2bbbe73
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 13 additions & 2 deletions css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ tr[data-itemtype="PluginFormcreatorCondition"] ~ tr[data-itemtype="PluginFormcre
ul,
li {
list-style: none;
margin: 0;
padding-bottom: 10px;
}

ul {
Expand Down Expand Up @@ -597,7 +597,7 @@ tr[data-itemtype="PluginFormcreatorCondition"] ~ tr[data-itemtype="PluginFormcre

li {
background-color: inherit;
height: 51px;
height: 40px;
}
}

Expand Down Expand Up @@ -1044,3 +1044,14 @@ a.plugin_formcreator_formTile_title {
padding-left: 5px;
color: #717171;
}

.category-divider {
height: 0;
margin-bottom: 0.5rem;
overflow: hidden;
border-top: 1px solid rgba(98, 105, 118, 0.16);
}

a.category_active span {
font-weight: bold;
}
2 changes: 2 additions & 0 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ public function showServiceCatalog() : void {

public function showWizard() : void {
echo '<div id="plugin_formcreator_wizard_categories" class="card">';

echo '<div><h2 class="card-title">'._n("Category", "Categories", 2, 'formcreator').'</h2></div>';
echo '<div class="category-divider"></div>';
echo '<div class="slinky-menu"></div>';
echo '<div><a href="#" id="wizard_seeall">' . __('See all', 'formcreator') . '</a></div>';
echo '</div>';
Expand Down

0 comments on commit 2bbbe73

Please sign in to comment.