-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(basic and error pages): suite of padding util classes
- Loading branch information
Dan Bull
committed
Jul 29, 2019
1 parent
a3a7a3f
commit 359b866
Showing
5 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/gravity-ui-nunjucks/src/_patterns/04-templates/00-page-layouts/00-basic-page.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/gravity-ui-web/src/sass/06-utilities/_padding.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$grav-sides: (top, bottom, left, right); | ||
$grav-spaces-map: ('xs': $grav-sp-s,'s': $grav-sp-s, 'm': $grav-sp-m, 'l': $grav-sp-l, 'xl': $grav-sp-xl, 'xxl': $grav-sp-xl); | ||
|
||
// Generate utility classes for available spacing sizes | ||
@each $name, $space in $grav-spaces-map { | ||
@each $side in $grav-sides { | ||
.grav-u-p#{str-slice($side, 0, 1)}-#{$name} { | ||
padding-#{$side}: #{$space} !important; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
// triangle, eg. hide helper class. | ||
@import 'color-schemes'; | ||
@import 'text'; | ||
@import 'padding'; |