diff --git a/tt1-blocks/assets/css/blocks.css b/tt1-blocks/assets/css/blocks.css index 45a0d057..04e17d22 100644 --- a/tt1-blocks/assets/css/blocks.css +++ b/tt1-blocks/assets/css/blocks.css @@ -184,23 +184,6 @@ hr[style*="text-align: right"], border-right-color: var(--wp--preset--color--dark-gray); } -hr:not(.is-style-wide):not(.is-style-dots), -.wp-block-separator:not(.is-style-wide):not(.is-style-dots) { - max-width: var(--wp--custom--responsive--aligndefault-width); -} - -.wp-block[data-align="wide"] .wp-block-separator:not(.is-style-wide):not(.is-style-dots), -hr.alignwide:not(.is-style-wide):not(.is-style-dots), -.wp-block-separator.alignwide:not(.is-style-wide):not(.is-style-dots) { - max-width: 100%; -} - -.wp-block[data-align="full"] .wp-block-separator:not(.is-style-wide):not(.is-style-dots), -hr.alignfull:not(.is-style-wide):not(.is-style-dots), -.wp-block-separator.alignfull:not(.is-style-wide):not(.is-style-dots) { - max-width: inherit; -} - hr.is-style-twentytwentyone-separator-thick, .wp-block-separator.is-style-twentytwentyone-separator-thick { border-bottom-width: 3px; @@ -210,10 +193,6 @@ hr.is-style-twentytwentyone-separator-thick, border-bottom: none; } -.wp-block-separator.is-style-dots.alignwide { - width: 100%; -} - .wp-block-separator.is-style-dots > hr { display: none; } diff --git a/tt1-blocks/assets/css/style-editor.css b/tt1-blocks/assets/css/style-editor.css deleted file mode 100644 index c1fb096e..00000000 --- a/tt1-blocks/assets/css/style-editor.css +++ /dev/null @@ -1,15 +0,0 @@ -/*-------------------------------------------------------------- -# Editor Alignment Widths ---------------------------------------------------------------*/ - -.wp-block { - max-width: var(--wp--custom--responsive--aligndefault-width); -} - -.wp-block[data-align="wide"] { - max-width: var(--wp--custom--responsive--alignwide-width); -} - -.wp-block[data-align="full"] { - max-width: inherit; -} \ No newline at end of file diff --git a/tt1-blocks/block-template-parts/footer.html b/tt1-blocks/block-template-parts/footer.html index 297b9922..7ed9e2e7 100644 --- a/tt1-blocks/block-template-parts/footer.html +++ b/tt1-blocks/block-template-parts/footer.html @@ -41,4 +41,4 @@

Proudly powered by WordPress.

- \ No newline at end of file + diff --git a/tt1-blocks/block-templates/404.html b/tt1-blocks/block-templates/404.html index 7abdd5dd..2e384736 100644 --- a/tt1-blocks/block-templates/404.html +++ b/tt1-blocks/block-templates/404.html @@ -1,31 +1,29 @@ - + - -
-
- -

Nothing Here

- + +
+ +

Nothing Here

+ - -
- + +
+ - - - + + + - -

It looks like nothing was found at this location. Maybe try a search?

- + +

It looks like nothing was found at this location. Maybe try a search?

+ - + - - - -
+ + +
- \ No newline at end of file + diff --git a/tt1-blocks/block-templates/index.html b/tt1-blocks/block-templates/index.html index f4ed6348..25938dc8 100644 --- a/tt1-blocks/block-templates/index.html +++ b/tt1-blocks/block-templates/index.html @@ -1,16 +1,20 @@ - + - -
-
+ +
+ + - - - + +
+
+ - + + +
@@ -36,23 +40,23 @@ +
+ + - - + +
-
- +
- + - -
+
- - -
+ +
- + diff --git a/tt1-blocks/block-templates/page-home.html b/tt1-blocks/block-templates/page-home.html index 1e7efbf1..29feb58f 100644 --- a/tt1-blocks/block-templates/page-home.html +++ b/tt1-blocks/block-templates/page-home.html @@ -1,10 +1,9 @@ - + - -
-
- -
+ +
+
- + + diff --git a/tt1-blocks/block-templates/page.html b/tt1-blocks/block-templates/page.html index a9aae45d..a48cc737 100644 --- a/tt1-blocks/block-templates/page.html +++ b/tt1-blocks/block-templates/page.html @@ -1,8 +1,9 @@ - + - -
-
+ +
+ +
@@ -12,11 +13,17 @@ +
+ + + - + +
+
- \ No newline at end of file + diff --git a/tt1-blocks/block-templates/single.html b/tt1-blocks/block-templates/single.html index b6d6fb97..dd6c2cb3 100644 --- a/tt1-blocks/block-templates/single.html +++ b/tt1-blocks/block-templates/single.html @@ -1,8 +1,9 @@ - + - -
-
+ +
+ +
@@ -12,9 +13,13 @@ +
+ - + + +
@@ -40,9 +45,11 @@ +
-
+ +
- \ No newline at end of file + diff --git a/tt1-blocks/experimental-theme.json b/tt1-blocks/experimental-theme.json index e0c7190a..323b27ca 100644 --- a/tt1-blocks/experimental-theme.json +++ b/tt1-blocks/experimental-theme.json @@ -105,6 +105,10 @@ } ] }, + "layout": { + "contentSize": "610px", + "wideSize": "1240px" + }, "typography": { "customLineHeight": true, "fontSizes": [ @@ -178,10 +182,6 @@ "heading": 1.3, "page-title": 1.1 }, - "responsive": { - "aligndefault-width": "610px", - "alignwide-width": "1240px" - }, "spacing": { "unit": "20px", "horizontal": "25px", diff --git a/tt1-blocks/functions.php b/tt1-blocks/functions.php index e06a784a..fb9c6353 100644 --- a/tt1-blocks/functions.php +++ b/tt1-blocks/functions.php @@ -44,17 +44,13 @@ function tt1_blocks_setup() { // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); - // Add support for full and wide align images. - add_theme_support( 'align-wide' ); - // Add support for editor styles. add_theme_support( 'editor-styles' ); // Enqueue editor styles. add_editor_style( array( './assets/css/blocks.css', - './assets/css/style-shared.css', - './assets/css/style-editor.css', + './assets/css/style-shared.css' ) ); // Add support for responsive embedded content. diff --git a/tt1-blocks/style.css b/tt1-blocks/style.css index 4c38072b..a770ba53 100644 --- a/tt1-blocks/style.css +++ b/tt1-blocks/style.css @@ -31,51 +31,3 @@ TT1 Blocks is distributed under the terms of the GNU GPL. body { margin: 0; } - -/*-------------------------------------------------------------- -# Alignments ---------------------------------------------------------------*/ - -* { - box-sizing: border-box; -} - -.wp-site-blocks, -.wp-block-template-part.alignfull { - padding: 0 var(--wp--custom--spacing--horizontal); -} - -.wp-site-blocks * { - margin-left: auto; - margin-right: auto; -} - -.wp-site-blocks *:not(.wp-block-post-content):not(.alignfull):not(.alignwide):not([class$="__inner-container"]):not(img) { - max-width: var(--wp--custom--responsive--aligndefault-width); -} - -.wp-site-blocks .alignwide { - width: var(--wp--custom--responsive--alignwide-width); - max-width: 100%; -} - -.aligncenter { - text-align: center; -} - -.wp-site-blocks .alignleft { - float: left; - margin-right: 2em; - max-width: 360px; -} - -.wp-site-blocks .alignright { - float: right; - margin-left: 2em; - max-width: 360px; -} - -.wp-site-blocks .alignfull { - margin: 0 calc(0px - var(--wp--custom--spacing--horizontal)); - width: calc(100% + (2 - var(--wp--custom--spacing--horizontal))); -}