I have a custom template with some variables set on _theme.less, it´s working fine. I need to remove "margin-bottom" from class named "sections nav-sections" but I cannot find this variable on ../lib/variables/*.less files. Tested a lot of variables with "margin" on their names without luck so far. I´m flushing the cache before testing. Any idea on how to identify the correct variable?

1 Answer 1


you can create a new variable for that set margin 0 it to. magento\lib\web\css\source\lib\variables_typography.less

in this file find following code. line no 67 approx

here is set default margin valuse you can new else write css 
sections .nav-sections { margin: @indent__base @indent__base 0 @indent__base; }

//  Indents
//  ---------------------------------------------

@indent__base: @line-height__computed; // 20px 
@indent__xl: @indent__base * 2; // 40px
@indent__l: @indent__base * 1.5; // 30px
@indent__m: @indent__base * 1.25; // 25px
@indent__s: @indent__base / 2; // 10px
@indent__xs: @indent__base / 4; // 5px

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.