From 92ccf46805bc04e31f4bdb1ebc8e8bc58999651b Mon Sep 17 00:00:00 2001 From: Brad Simpson Date: Tue, 21 May 2024 07:01:52 -0600 Subject: [PATCH] Fix: Add variables to control box menu item padding (fixes #506) #517 --- less/_defaults/_spacing-containers.less | 3 +++ less/plugins/adapt-contrib-boxmenu/boxMenuItem.less | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/less/_defaults/_spacing-containers.less b/less/_defaults/_spacing-containers.less index b6cc6c66..8fbba087 100644 --- a/less/_defaults/_spacing-containers.less +++ b/less/_defaults/_spacing-containers.less @@ -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 diff --git a/less/plugins/adapt-contrib-boxmenu/boxMenuItem.less b/less/plugins/adapt-contrib-boxmenu/boxMenuItem.less index bf27524c..30605078 100644 --- a/less/plugins/adapt-contrib-boxmenu/boxMenuItem.less +++ b/less/plugins/adapt-contrib-boxmenu/boxMenuItem.less @@ -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;