Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit d5895d0

Browse files
vladblinduvladblindu
andauthored
fix: spacing breakpoints (#239)
* #230 * #230-fixed Co-authored-by: vladblindu <[email protected]>
1 parent 670ba02 commit d5895d0

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

packages/svelte-materialify/src/styles/generic/_display.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.d-#{$display} {
55
display: unquote($display);
66
}
7+
}
8+
9+
@each $display in ('none', 'inline', 'inline-block', 'block', 'flex', 'inline-flex') {
710
@include create_breakpoints() using ($screen_size) {
811
.d-#{$screen_size}-#{$display} {
912
display: unquote($display);

packages/svelte-materialify/src/styles/generic/_spacing.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212
.#{$mORp}#{$type}-n#{$i} {
1313
#{$marginORpadding}#{$suffix}: $spacer * -$i !important;
1414
}
15+
}
16+
}
17+
}
1518

19+
@for $i from 0 through 16 {
20+
@each $mORp, $marginORpadding in ('m': 'margin', 'p': 'padding') {
21+
@each $type,
22+
$suffix in ('a': '', 'l': '-left', 'r': '-right', 't': '-top', 'b': '-bottom')
23+
{
1624
@include create_breakpoints() using ($screen_size) {
1725
.#{$mORp}#{$type}-#{$screen_size}-#{$i} {
1826
#{$marginORpadding}#{$suffix}: $spacer * $i !important;
@@ -32,7 +40,13 @@
3240
.#{$mORp}#{$type}-auto {
3341
#{$marginORpadding}#{$suffix}: auto !important;
3442
}
43+
}
44+
}
3545

46+
@each $mORp, $marginORpadding in ('m': 'margin', 'p': 'padding') {
47+
@each $type,
48+
$suffix in ('a': '', 'l': '-left', 'r': '-right', 't': '-top', 'b': '-bottom')
49+
{
3650
@include create_breakpoints() using ($screen_size) {
3751
.#{$mORp}#{$type}-#{$screen_size}-auto {
3852
#{$marginORpadding}#{$suffix}: auto !important;

packages/svelte-materialify/src/styles/generic/_typography.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
.text-#{$align} {
77
text-align: #{$align};
88
}
9+
}
10+
11+
@each $align in ('left', 'center', 'right') {
912
@include create_breakpoints() using ($screen_size) {
1013
.text-#{$screen_size}-#{$align} {
1114
text-align: #{$align};

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,18 @@
13071307
unique-filename "^1.1.1"
13081308
which "^1.3.1"
13091309

1310+
"@fortawesome/fontawesome-common-types@^0.2.35":
1311+
version "0.2.35"
1312+
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.35.tgz#01dd3d054da07a00b764d78748df20daf2b317e9"
1313+
integrity sha512-IHUfxSEDS9dDGqYwIW7wTN6tn/O8E0n5PcAHz9cAaBoZw6UpG20IG/YM3NNLaGPwPqgjBAFjIURzqoQs3rrtuw==
1314+
1315+
"@fortawesome/free-solid-svg-icons@^5.15.2":
1316+
version "5.15.3"
1317+
resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.3.tgz#52eebe354f60dc77e0bde934ffc5c75ffd04f9d8"
1318+
integrity sha512-XPeeu1IlGYqz4VWGRAT5ukNMd4VHUEEJ7ysZ7pSSgaEtNvSo+FLurybGJVmiqkQdK50OkSja2bfZXOeyMGRD8Q==
1319+
dependencies:
1320+
"@fortawesome/fontawesome-common-types" "^0.2.35"
1321+
13101322
"@istanbuljs/load-nyc-config@^1.0.0":
13111323
version "1.1.0"
13121324
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced"

0 commit comments

Comments
 (0)