File tree 6 files changed +449
-29
lines changed
6 files changed +449
-29
lines changed Original file line number Diff line number Diff line change 8
8
padding : 0 var (--gap );
9
9
}
10
10
11
- . o-grid__item--1of2 {
12
- flex : 0 0 50 % ;
11
+ @media (--xs) {
12
+ @mixin grid xs ;
13
13
}
14
14
15
- . o-grid__item--1of4 {
16
- flex : 0 0 25 % ;
15
+ @media (--sm) {
16
+ @mixin grid sm ;
17
17
}
18
18
19
- . o-grid__item--1of3 {
20
- flex : 0 0 calc ( 100 % / 3 ) ;
19
+ @media (--md) {
20
+ @mixin grid md ;
21
21
}
22
22
23
- . o-grid__item--2of3 {
24
- flex : 0 0 66.66667 % ;
23
+ @media (--lg) {
24
+ @mixin grid lg ;
25
25
}
26
26
27
- .o-grid__item--1of5 {
28
- flex : 0 0 20% ;
29
- }
30
-
31
- .o-grid__item--1of6 {
32
- flex : 0 0 calc (100% / 6 );
27
+ @media (--xl) {
28
+ @mixin grid xl;
33
29
}
Original file line number Diff line number Diff line change 7
7
margin : auto;
8
8
}
9
9
10
- @define-mixin breakpoint-helpers $bp {
11
- .hidden- $(bp ) {
10
+ @define-mixin breakpoint-helpers $breakpoint {
11
+ .hidden- $(breakpoint ) {
12
12
display : none !important ;
13
13
}
14
14
15
15
@each $dis play in var(- - dis plays) {
16
- .visible- $(bp )- $(dis play) {
16
+ .visible- $(breakpoint )- $(dis play) {
17
17
display : $(dis play) !important ;
18
18
}
19
19
}
23
23
display : $value !important ;
24
24
}
25
25
26
+ @define-mixin grid $breakpoint {
27
+ @for $i from 1 to 12 {
28
+ .$(breakpoint)- $i {
29
+ max-width : calc($i / 12 * 100% );
30
+ flex : 0 0 calc($i / 12 * 100% );
31
+ }
32
+ }
33
+ }
34
+
26
35
@define-extend display-none {
27
36
display : none !important ;
28
37
}
You can’t perform that action at this time.
0 commit comments