Margin & Paddings
Ways to manage margin and padding in your project
For margin and padding, Drift utilizes the classes provided by BootStrap. You can use the same class names throughout the project.
To change the values of spacing for these margin and padding, you can change the values for $spacer in assets / scss / layouts / {layout} / themes / {theme} / _variables.scss
as mentioned below:
assets / scss / layouts / {layout} / themes / {theme} / _variables.scss
You can add extra classes here by extending this array. Or there is another place where you can add more classes and that is assets / scss / core/ globals / _margin.scss
or can create your own custom file and import that.
Last updated