-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update default width of alignwide elements on mobile * add media query px width comments * adjust specific block alignments * Update group.css * adjust columns mobile alignment * remove headline alignfull on mobile rules * load editor-styles _widths.css * Update _widths.css * FULL IS FULL *taps on book* Co-authored-by: Hendrik Luehrsen <[email protected]>
- Loading branch information
Showing
10 changed files
with
86 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
@import "./src-blocks/core/columns.css"; | ||
@import "./src-blocks/core/cover.css"; | ||
@import "./src-blocks/core/spacer.css"; | ||
@import "./src-blocks/core/embed.css"; | ||
@import "./src-blocks/core/group.css"; | ||
@import "./src-blocks/core/media-text.css"; | ||
@import "./src-blocks/core/pullquote.css"; | ||
@import "./src-blocks/core/spacer.css"; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "./base.css"; | ||
@import "./blocks.css"; | ||
@import "./src-editor-styles/_widths.css"; | ||
@import "./src-editor-styles/_z-index.css"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
/** I am now empty */ | ||
@media (--xs-query) { | ||
|
||
:root .wp-block-columns { | ||
|
||
&.alignwide { | ||
max-width: none; | ||
margin-left: calc(var(--grid-gutter-width) * -1); | ||
margin-right: calc(var(--grid-gutter-width) * -1); | ||
|
||
&:not(.has-background) > .wp-block-column:not(.has-background) { | ||
padding-left: var(--grid-gutter-width); | ||
padding-right: var(--grid-gutter-width); | ||
} | ||
} | ||
} | ||
|
||
/* Retcon gutenberg styles. */ | ||
:root .wp-block-column { | ||
flex-basis: 100% !important; | ||
flex-grow: 1; | ||
} | ||
} |
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 |
---|---|---|
@@ -1 +1,12 @@ | ||
/** I am now empty. */ | ||
@media (--xs-query) { | ||
|
||
:root .wp-block-cover { | ||
|
||
&.alignwide { | ||
max-width: none; | ||
width: auto; | ||
margin-left: calc(var(--grid-gutter-width) * -1); | ||
margin-right: calc(var(--grid-gutter-width) * -1); | ||
} | ||
} | ||
} |
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,7 @@ | ||
:root .wp-block-group { | ||
|
||
& > *.alignfull { | ||
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
} |
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,26 @@ | ||
:root .wp-block-media-text { | ||
|
||
@media (--xs-query) { | ||
|
||
&.is-stacked-on-mobile { | ||
grid-template-columns: 100% !important; | ||
grid-row-gap: var(--grid-gutter-width); | ||
|
||
& .wp-block-media-text__content { | ||
grid-column: auto; | ||
grid-row: auto; | ||
padding-top: 0 !important; | ||
} | ||
} | ||
} | ||
|
||
&.has-background { | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
|
||
& .wp-block-media-text__content { | ||
padding-top: calc(var(--grid-gutter-height) / 2); | ||
padding-bottom: calc(var(--grid-gutter-height) / 2); | ||
} | ||
} | ||
} |
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,10 @@ | ||
:root .wp-block-pullquote { | ||
|
||
@media (--xs-query) { | ||
|
||
&.alignfull { | ||
padding-left: var(--grid-gutter-width); | ||
padding-right: var(--grid-gutter-width); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,53 +1,7 @@ | ||
.wp-block { | ||
max-width: var(--content-width); | ||
margin: 0 auto; | ||
|
||
& + * { | ||
margin-top: var(--grid-gutter-height); | ||
} | ||
} | ||
|
||
:root .wp-block[data-align="wide"] { | ||
max-width: var(--last-bp); | ||
} | ||
|
||
:root .wp-block[data-align="full"] { | ||
max-width: none !important; | ||
margin-left: calc(var(--grid-gutter-width) * -1) !important; | ||
margin-right: calc(var(--grid-gutter-width) * -1) !important; | ||
} | ||
|
||
:root { | ||
padding: var(--grid-gutter-height) var(--grid-gutter-width); | ||
|
||
& .alignfull { | ||
margin-left: 0 !important; | ||
margin-right: 0 !important; | ||
} | ||
} | ||
|
||
@media (--sm-query) { | ||
|
||
.wp-block[data-align="wide"] { | ||
max-width: calc(var(--bp-sm) - var(--grid-gutter-width)); | ||
} | ||
} | ||
|
||
@media (--md-query) { | ||
|
||
.wp-block[data-align="wide"] { | ||
max-width: calc(var(--bp-md) - var(--grid-gutter-width)); | ||
} | ||
} | ||
|
||
@media (--lg-query) { | ||
|
||
.wp-block[data-align="wide"] { | ||
max-width: calc(var(--bp-lg) - var(--grid-gutter-width)); | ||
} | ||
} | ||
|
||
:root .acf-block-fields { | ||
max-width: var(--last-bp); | ||
margin: 0 auto; | ||
} |
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