Skip to content

Commit 5598b63

Browse files
More Gutenberg width adjustments
1 parent 51b1cf0 commit 5598b63

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

resources/assets/scss/helpers/align.scss

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,14 @@
1515
}
1616
}
1717

18-
@include media-breakpoint-up("xl", $container-max-widths) {
18+
@include media-breakpoint-up("lg", $container-max-widths) {
1919

2020
.alignwide {
2121

22-
.site-primary--full & {
23-
margin-left: -($grid-gutter-width * 2);
24-
margin-right: -($grid-gutter-width * 2);
25-
width: calc(100% + #{$grid-gutter-width * 4});
26-
transform: none;
27-
}
28-
}
29-
}
30-
31-
@include media-breakpoint-up("xl", $grid-breakpoints) {
32-
33-
.alignwide {
34-
margin-left: 50%;
35-
width: 75vw;
36-
transform: translate3d(-50%, 0, 0);
22+
margin-left: -($grid-gutter-width * 2);
23+
margin-right: -($grid-gutter-width * 2);
24+
width: calc(100% + #{$grid-gutter-width * 4});
25+
transform: none;
3726
}
3827
}
3928

resources/assets/scss/modules/gutenberg.scss

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
@if ( $use-margins ) {
1616

17+
&.alignleft,
18+
&.alignright {
19+
margin-top: 0;
20+
}
21+
1722
@include vertical-spacing("margin", "both", (
1823
sm: 2,
1924
lg: 3,
@@ -32,6 +37,13 @@
3237
margin-right: auto;
3338
text-align: center;
3439
}
40+
41+
&.alignfull {
42+
43+
img {
44+
border-radius: 0;
45+
}
46+
}
3547
}
3648

3749
.wp-block-gallery {
@@ -40,18 +52,25 @@
4052
}
4153

4254
.wp-block-separator {
43-
display: block;
44-
height: 1px;
45-
border: 0;
46-
border-top: 2px solid gray("300");
47-
max-width: 200px;
55+
56+
&:before {
57+
display: none;
58+
}
59+
60+
&,
61+
&.is-style-dots {
62+
display: block;
63+
border: 0;
64+
border-top: 2px solid gray("300");
65+
}
4866

4967
&.is-style-wide {
50-
max-width: 500px;
68+
max-width: 400px;
5169
}
5270

5371
&.is-style-dots {
5472
border-top-style: dashed;
73+
max-width: 100px;
5574
}
5675
}
5776

0 commit comments

Comments
 (0)