Skip to content

Commit

Permalink
Fix: Add variables to control box menu item padding (fixes adaptlearn…
Browse files Browse the repository at this point in the history
  • Loading branch information
swashbuck authored May 21, 2024
1 parent 85c4815 commit 92ccf46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions less/_defaults/_spacing-containers.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
@menu-item-padding-ver: 1rem;
@menu-item-padding-hoz: .5rem;

@menu-item-inner-padding-ver: 1rem;
@menu-item-inner-padding-hoz: 1rem;

@menu-item-container-margin: 1.5rem;

// Page container and header padding
Expand Down
2 changes: 1 addition & 1 deletion less/plugins/adapt-contrib-boxmenu/boxMenuItem.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
&__inner {
width: 100%;
margin: 0 @menu-item-padding-hoz @menu-item-padding-ver;
padding: 1rem;
padding: @menu-item-inner-padding-ver @menu-item-inner-padding-hoz;
background-color: @menu-item;
color: @menu-item-inverted;
border: 1px solid @menu-item-border-color;
Expand Down

0 comments on commit 92ccf46

Please sign in to comment.