|
@@ -15,6 +15,11 @@ p {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
+img {
|
|
|
+ height: auto;
|
|
|
+ max-width: 100%;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Required Variables
|
|
|
*/
|
|
@@ -60,7 +65,7 @@ p {
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * Alignments, loaded in the front-end only.
|
|
|
+ * Alignments
|
|
|
*/
|
|
|
body {
|
|
|
margin: 0;
|
|
@@ -80,6 +85,19 @@ body {
|
|
|
padding: 0 var(--wp--custom--margin--horizontal);
|
|
|
}
|
|
|
|
|
|
+.wp-block {
|
|
|
+ max-width: var(--wp--custom--width--default);
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block[data-align=wide] {
|
|
|
+ max-width: var(--wp--custom--width--wide);
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block[data-align=full] {
|
|
|
+ max-width: none;
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-group .wp-block-group,
|
|
|
.wp-site-blocks > *:not(.wp-block-post-content):not(.wp-block-template-part),
|
|
|
.wp-site-blocks .wp-block-post-content > * {
|
|
|
max-width: var(--wp--custom--width--default);
|
|
@@ -103,14 +121,10 @@ body {
|
|
|
box-sizing: content-box;
|
|
|
}
|
|
|
|
|
|
-.wp-site-blocks .wp-block-template-part.alignfull {
|
|
|
- width: 100%;
|
|
|
- max-width: 100%;
|
|
|
-}
|
|
|
-
|
|
|
-.wp-site-blocks .wp-block-columns.alignfull {
|
|
|
+.wp-site-blocks *[class*="__inner-container"] .alignfull {
|
|
|
+ box-sizing: border-box;
|
|
|
+ transform: unset;
|
|
|
width: 100%;
|
|
|
- max-width: 100%;
|
|
|
}
|
|
|
|
|
|
.aligncenter {
|
|
@@ -118,29 +132,36 @@ body {
|
|
|
}
|
|
|
|
|
|
@media only screen and (min-width: 482px) {
|
|
|
+ .block-editor-block-list__layout .alignleft,
|
|
|
+ .block-editor-block-list__layout .alignright,
|
|
|
.wp-site-blocks .alignleft,
|
|
|
.wp-site-blocks .alignright {
|
|
|
- --content-width: min( 100vw - var(--wp--custom--margin--horizontal) * 2, var(--wp--custom--width--default) );
|
|
|
- --alignment-margin: calc( ( 100vw - var(--content-width ) ) / 2 - var(--wp--custom--margin--horizontal) );
|
|
|
- max-width: var(--wp--custom--width--default);
|
|
|
+ max-width: calc(var(--wp--custom--width--default) / 2);
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-@media only screen and (min-width: 482px) {
|
|
|
.wp-site-blocks .alignleft {
|
|
|
/*rtl:ignore*/
|
|
|
float: left;
|
|
|
+ }
|
|
|
+ .wp-site-blocks .alignright {
|
|
|
+ /*rtl:ignore*/
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+ .block-editor-block-list__layout > .alignleft,
|
|
|
+ .block-editor-block-list__layout > .alignright,
|
|
|
+ .wp-site-blocks .wp-block-post-content > .alignleft,
|
|
|
+ .wp-site-blocks .wp-block-post-content > .alignright {
|
|
|
+ --content-width: min( 100% - var(--wp--custom--margin--horizontal) * 2, var(--wp--custom--width--default) );
|
|
|
+ --alignment-margin: calc( ( 100% - var(--content-width ) ) / 2 );
|
|
|
+ }
|
|
|
+ .block-editor-block-list__layout > .alignleft,
|
|
|
+ .wp-site-blocks .wp-block-post-content > .alignleft {
|
|
|
/*rtl:ignore*/
|
|
|
margin-left: var(--alignment-margin);
|
|
|
/*rtl:ignore*/
|
|
|
margin-right: var(--wp--custom--margin--horizontal);
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-@media only screen and (min-width: 482px) {
|
|
|
- .wp-site-blocks .alignright {
|
|
|
- /*rtl:ignore*/
|
|
|
- float: right;
|
|
|
+ .block-editor-block-list__layout > .alignright,
|
|
|
+ .wp-site-blocks .wp-block-post-content > .alignright {
|
|
|
/*rtl:ignore*/
|
|
|
margin-left: var(--wp--custom--margin--horizontal);
|
|
|
/*rtl:ignore*/
|
|
@@ -212,7 +233,6 @@ textarea {
|
|
|
border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
|
|
|
border-radius: var(--wp--custom--form--border-radius);
|
|
|
color: var(--wp--custom--form--color--text);
|
|
|
- line-height: var(--wp--custom--line-height--body);
|
|
|
padding: var(--wp--custom--form--padding);
|
|
|
background: var(--wp--custom--form--color--background);
|
|
|
box-shadow: var(--wp--custom--form--color--box-shadow);
|
|
@@ -255,17 +275,10 @@ input[type=checkbox] + label {
|
|
|
line-height: 1em;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * I had REALLY thought that font-family was a theme.json supported thing for headers
|
|
|
- * but it doesn't seem to be working at the moment so here's the ponyfill.
|
|
|
- */
|
|
|
-h1, h2, h3, h4, h5, h6 {
|
|
|
- font-family: var(--wp--preset--font-family--headings);
|
|
|
-}
|
|
|
-
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
clear: both;
|
|
|
- font-family: var(--wp--custom--fonts--primary);
|
|
|
+ font-family: var(--wp--custom--heading--typography--font-family);
|
|
|
+ font-weight: var(--wp--custom--heading--typography--font-weight);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -292,6 +305,37 @@ h1, h2, h3, h4, h5, h6 {
|
|
|
border-color: var(--wp--custom--button--color--hover-background);
|
|
|
}
|
|
|
|
|
|
+.wp-block-gallery .blocks-gallery-image figcaption,
|
|
|
+.wp-block-gallery .blocks-gallery-item figcaption {
|
|
|
+ font-size: var(--wp--custom--gallery--caption--font-size);
|
|
|
+}
|
|
|
+
|
|
|
+.wp-block-image {
|
|
|
+ /*
|
|
|
+ From what I can tell the below are styles regularly used by themes
|
|
|
+ to fix the image block. I believe these should go into the block's
|
|
|
+ default styles. It's difficult to say how this will land, however
|
|
|
+ based on discussion found in (many) related issues here:
|
|
|
+ https://github.com/WordPress/gutenberg/issues/28923
|
|
|
+ */
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+/*
|
|
|
+ Further gutenberg APPEARS to be defaulting the margin to the same as
|
|
|
+ the below, however (for reason's that aren't clear to me now) this
|
|
|
+ isn't coming through.
|
|
|
+*/
|
|
|
+.wp-block-column .wp-block-image {
|
|
|
+ margin: 0 0 1em 0;
|
|
|
+}
|
|
|
+
|
|
|
+ul,
|
|
|
+ol {
|
|
|
+ font-family: var(--wp--custom--list--font-family);
|
|
|
+ padding-left: var(--wp--custom--list--padding--left);
|
|
|
+}
|
|
|
+
|
|
|
p.has-background {
|
|
|
padding: var(--wp--custom--margin--vertical) var(--wp--custom--margin--horizontal);
|
|
|
}
|
|
@@ -300,6 +344,13 @@ p.has-text-color a {
|
|
|
color: var(--wp--style--color--link, var(--wp--custom--color--primary));
|
|
|
}
|
|
|
|
|
|
+p.has-drop-cap:not(:focus):first-letter {
|
|
|
+ font-size: var(--wp--custom--paragraph--dropcap--typography--font-size);
|
|
|
+ font-family: var(--wp--custom--paragraph--dropcap--typography--font-family);
|
|
|
+ font-weight: var(--wp--custom--paragraph--dropcap--typography--font-weight);
|
|
|
+ margin: var(--wp--custom--paragraph--dropcap--margin);
|
|
|
+}
|
|
|
+
|
|
|
.wp-block-navigation a {
|
|
|
border-bottom: none;
|
|
|
}
|
|
@@ -355,6 +406,10 @@ p.has-text-color a {
|
|
|
font-style: var(--wp--custom--quote--citation--typography--font-style);
|
|
|
}
|
|
|
|
|
|
+.wp-block-group.has-background {
|
|
|
+ padding: unset;
|
|
|
+}
|
|
|
+
|
|
|
.wp-block-group.has-background .wp-block-group__inner-container {
|
|
|
padding: var(--wp--custom--margin--vertical) var(--wp--custom--margin--horizontal);
|
|
|
}
|