-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
See #6
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
//FRONTEND | ||
.wp-site-blocks { // top level of the view | ||
//In this situation we want to introduce a standardized gap between content and the edge of the screen. | ||
padding-left: var(--wp--custom--post-content--padding--left); | ||
.site-content-container { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
iandunn
Author
Member
|
||
// In this situation we want to introduce a standardized gap between content and the edge of the screen. | ||
padding-top: var(--wp--custom--post-content--padding--top); | ||
padding-right: var(--wp--custom--post-content--padding--right); | ||
padding-bottom: var(--wp--custom--post-content--padding--bottom); | ||
padding-left: var(--wp--custom--post-content--padding--left); | ||
|
||
.alignfull { | ||
// these elements we want to "bust out" of the gap created above | ||
// These elements we want to "bust out" of the gap created above | ||
margin-left: calc(-1 * var(--wp--custom--post-content--padding--left)) !important; | ||
margin-right: calc(-1 * var(--wp--custom--post-content--padding--right)) !important; | ||
width: unset; | ||
// however any containers that "bust out" should re-apply that gap but this time using padding instead of margins. | ||
|
||
// However any containers that "bust out" should re-apply that gap but this time using padding instead of margins. | ||
&.wp-block-template-part, | ||
&.wp-block-columns, | ||
&.wp-block-group { | ||
|
@@ -18,12 +22,26 @@ | |
} | ||
} | ||
|
||
@include break-tablet { | ||
.site-content-container { | ||
padding-top: var(--wp--custom--post-content--breakpoint--tablet--padding--top); | ||
padding-right: var(--wp--custom--post-content--breakpoint--tablet--padding--right); | ||
padding-bottom: var(--wp--custom--post-content--breakpoint--tablet--padding--bottom); | ||
padding-left: var(--wp--custom--post-content--breakpoint--tablet--padding--left); | ||
|
||
.alignfull { | ||
margin-left: calc(-1 * var(--wp--custom--post-content--breakpoint--tablet--padding--left)) !important; | ||
margin-right: calc(-1 * var(--wp--custom--post-content--breakpoint--tablet--padding--right)) !important; | ||
} | ||
} | ||
} | ||
|
||
// EDITOR (NOTE: It PROBABLY would be OK to bring these together to "simplify" the stylesheet. However the selectors are quite different | ||
// and it's a lot easier to understand and ensure intent separated in this way. | ||
.is-root-container { //top level of the editor | ||
.is-root-container { // Top level of the editor. | ||
padding-left: var(--wp--custom--post-content--padding--left); | ||
padding-right: var(--wp--custom--post-content--padding--right); | ||
.wp-block[data-align="full"] { //blocks configured to be "align full" in "editorspeak" | ||
.wp-block[data-align="full"] { // Blocks configured to be "align full" in "editorspeak". | ||
margin-left: calc(-1 * var(--wp--custom--post-content--padding--left)) !important; | ||
margin-right: calc(-1 * var(--wp--custom--post-content--padding--right)) !important; | ||
width: unset; | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
&.has-background { | ||
padding: var(--wp--custom--padding--vertical) var(--wp--custom--padding--horizontal); | ||
} | ||
} |
Huh, I didn't notice this before, but this breaks the layout of the content column. @iandunn does this affect things in the global header/footer also? I wonder if we could just take it out entirely...