Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44443f6

Browse files
author
markzegarelli
authored
Ran sass migrator to replace slashes (segmentio#5028)
1 parent89a9b81 commit44443f6

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

‎src/_sass/objects/_flex.scss‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use"sass:math";
2+
13
.flex {
24
$this: &;
35

@@ -29,8 +31,8 @@
2931

3032
@for$ifrom1through$flex-columns {
3133
&--#{$i} {
32-
flex-basis:percentage($i/$flex-columns);
33-
max-width:percentage($i/$flex-columns);
34+
flex-basis:percentage(math.div($i,$flex-columns));
35+
max-width:percentage(math.div($i,$flex-columns));
3436
}
3537
}
3638

@@ -42,8 +44,8 @@
4244
@includebreakpoint($breakpointup) {
4345
@for$ifrom1through$flex-columns {
4446
&--#{$i}\@#{$breakpoint} {
45-
flex-basis:percentage($i/$flex-columns);
46-
max-width:percentage($i/$flex-columns);
47+
flex-basis:percentage(math.div($i,$flex-columns));
48+
max-width:percentage(math.div($i,$flex-columns));
4749
}
4850
}
4951
}

‎src/_sass/objects/_gutter.scss‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33

44
$size:map-get($gutter-sizes,$gutter-size);
55

6-
margin-right:-#{$size/2};
7-
margin-left:-#{$size/2};
6+
margin-right:-#{$size*0.5};
7+
margin-left:-#{$size*0.5};
88

99
& >* {
10-
padding-right:$size/2;
11-
padding-left:$size/2;
10+
padding-right:$size*0.5;
11+
padding-left:$size*0.5;
1212
}
1313

1414
@each$name,$sizein$gutter-sizes {
1515
@if$name!=$gutter-size {
1616
&--#{$name} {
17-
margin-right:-#{$size/2};
18-
margin-left:-#{$size/2};
17+
margin-right:-#{$size*0.5};
18+
margin-left:-#{$size*0.5};
1919

2020
& >* {
21-
padding-right:$size/2;
22-
padding-left:$size/2;
21+
padding-right:$size*0.5;
22+
padding-left:$size*0.5;
2323
}
2424
}
2525
}
@@ -29,12 +29,12 @@
2929
@includebreakpoint($breakpointup) {
3030
@each$name,$sizein$gutter-sizes {
3131
&--#{$name}\@#{$breakpoint} {
32-
margin-right:-#{$size/2};
33-
margin-left:-#{$size/2};
32+
margin-right:-#{$size*0.5};
33+
margin-left:-#{$size*0.5};
3434

3535
& >* {
36-
padding-right:$size/2;
37-
padding-left:$size/2;
36+
padding-right:$size*0.5;
37+
padding-left:$size*0.5;
3838
}
3939
}
4040
}

‎src/_sass/objects/_waffle.scss‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44
$size:map-get($waffle-sizes,$waffle-size);
55

6-
margin:-#{$size/2};
6+
margin:-#{$size*0.5};
77

88
& >* {
9-
padding:$size/2;
9+
padding:$size*0.5;
1010
}
1111

1212
@each$name,$sizein$waffle-sizes {
1313
@if$name!=$waffle-size {
1414
&--#{$name} {
15-
margin:-#{$size/2};
15+
margin:-#{$size*0.5};
1616

1717
& >* {
18-
padding:$size/2;
18+
padding:$size*0.5;
1919
}
2020
}
2121
}
@@ -25,10 +25,10 @@
2525
@includebreakpoint($breakpointup) {
2626
@each$name,$sizein$waffle-sizes {
2727
&--#{$name}\@#{$breakpoint} {
28-
margin:-#{$size/2};
28+
margin:-#{$size*0.5};
2929

3030
& >* {
31-
padding:$size/2;
31+
padding:$size*0.5;
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp