Skip to content

Commit

Permalink
add padh-scale mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromev committed Apr 15, 2022
1 parent ed13024 commit efe9afa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions _baselinegrid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ $_vertical-align: (
}
}
}
@mixin padh-scale() {
@include padh(getFromScale('s','pad'));
@each $size, $props in $scale {
@if (map.get($props, 'min-width') > 0) {
@media (min-width: h(map.get($props, 'min-width'), 1)) {
@include padh(getFromScale($size, 'pad'));
}
}
}
}

// begin()
@mixin begin() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "baselinegrid.scss",
"description": "A small set of SCSS tools to align text to a baseline grid.",
"version": "1.0.8",
"version": "1.0.9",
"author": {
"name": "Jérôme Vogel",
"email": "jerome.vogel@gmail.com"
Expand Down

0 comments on commit efe9afa

Please sign in to comment.