Closed lucasvallenet closed 10 months ago
Latest commit: |
b72fdab
|
Status: | ✅ Deploy successful! |
Preview URL: | https://5267ac85.locomotive-boilerplate.pages.dev |
Branch Preview URL: | https://feature-scss-configs.locomotive-boilerplate.pages.dev |
Optimised the loop.
I made some modifications to add grid-column @to
modifiers so we can write the following :
<div class="u-gc-6/12@to-small u-gc-4/8@from-small"></div>
Added a config.spacers.scss
file with the spacer()
function.
Usage:
.c-box {
margin-top: spacer('sm');
}
I also updated the spacing utility to use the array and generate classes with breakpoints if needed. the old syntaxe without breakpoint is still working
Usage:
<div class="u-margin-bottom-sm"></div>
<div class="u-padding-top-gutter-2x@to-small u-padding-top-xs@from-small"></div>
@mcaskill I was not able to purge the css for the spacing properties
I was not able to purge the css for the spacing properties
@devenini I believe you have more experience with PurgeCSS.
Description:
Create dedicated config files. Use of lists of variables for clarity and standardisation (based on
config/_config.colors.scss
) Move specific functions to config files.Changes :
_config.breakpoints.scss
_config.eases.scss
_config.fonts.scss
_config.indexes.scss
_config.timings.scss
Breakpoints:
List of breakpoints and media queries function (See PR #116) Legacy variables available (
$from-small
,$to-medium
, ...)Usage:
Easing
List of eases and new
ease()
function.Usage:
Fonts
No breaking changes. Moved the
tools/_fonts.scss
toconfig/_config.fonts.scss
Z-indexes
No breaking changes. Moved the
z()
function fromtools/_functions.scss
toconfig/_config.indexes.scss
Moved the$z-indexes
list fromconfig/_config.scss
toconfig/_config.indexes.scss
Timing
List of timing and new
t()
function.Usage: