diff --git a/tt1-blocks/assets/css/blocks.css b/tt1-blocks/assets/css/blocks.css index acd1a506..7796af84 100644 --- a/tt1-blocks/assets/css/blocks.css +++ b/tt1-blocks/assets/css/blocks.css @@ -1,8 +1,8 @@ /*-------------------------------------------------------------- -# Cover +# Border, for backwards compatibility --------------------------------------------------------------*/ -.wp-block-cover.is-style-twentytwentyone-border { +.is-style-twentytwentyone-border { border: 3px solid var(--wp--preset--color--dark-gray); } @@ -50,15 +50,6 @@ # Image --------------------------------------------------------------*/ -.wp-block-image img { - height: auto; -} - -.wp-block-image.is-style-twentytwentyone-border img, -.wp-block-image.is-style-twentytwentyone-image-frame img { - border: 3px solid var(--wp--preset--color--dark-gray); -} - .wp-block-image.is-style-twentytwentyone-image-frame img { padding: var(--wp--custom--spacing--unit); } @@ -137,14 +128,6 @@ margin-bottom: var(--wp--custom--spacing--horizontal); } -/*-------------------------------------------------------------- -# Media & Text ---------------------------------------------------------------*/ - -.wp-block-media-text.is-style-twentytwentyone-border { - border: 3px solid var(--wp--preset--color--dark-gray); -} - /*-------------------------------------------------------------- # Navigation --------------------------------------------------------------*/ @@ -179,23 +162,7 @@ hr.is-style-twentytwentyone-separator-thick, border-bottom-width: 3px; } -.wp-block-separator.is-style-dots { - border-bottom: none; -} - -.wp-block-separator.is-style-dots > hr { - display: none; -} - /* In Twenty Twenty-One, separators are 100% wide. This replicates that approach */ .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: 100%; } - -/*-------------------------------------------------------------- -# Site Title ---------------------------------------------------------------*/ - -h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) { - text-decoration: none; -} diff --git a/tt1-blocks/assets/css/style-shared.css b/tt1-blocks/assets/css/style-shared.css index 1649321b..889e3bd5 100644 --- a/tt1-blocks/assets/css/style-shared.css +++ b/tt1-blocks/assets/css/style-shared.css @@ -23,49 +23,3 @@ a:hover { text-decoration-style: dotted; text-decoration-skip-ink: none; } - -/* - * Gutenberg remotes this underline, but Twenty Twenty-One uses it. - */ -.site-header h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) { - text-decoration: underline; -} - -/* - * Alignment styles. - * These rules are temporary, and should not be relied on or - * modified too heavily by themes or plugins that build on - * Twenty Twenty-Two. These are meant to be a precursor to - * a global solution provided by the Block Editor. - * - * Relevant issues: - * https://github.com/WordPress/gutenberg/issues/35607 - * https://github.com/WordPress/gutenberg/issues/35884 - */ - -.wp-site-blocks, -body > .is-root-container, -.edit-post-visual-editor__post-title-wrapper, -.wp-block-group.alignfull, -.is-root-container .wp-block[data-align="full"] > .wp-block-group { - padding-left: var(--wp--custom--spacing--outer); - padding-right: var(--wp--custom--spacing--outer); -} - -.wp-site-blocks .alignfull, -.is-root-container .wp-block[data-align="full"] { - margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important; - margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important; - width: unset; -} - -/* Blocks inside columns don't have negative margins. */ -.wp-site-blocks .wp-block-columns .wp-block-column .alignfull, -.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"], -/* We also want to avoid stacking negative margins. */ -.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull, -.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] { - margin-left: auto !important; - margin-right: auto !important; - width: inherit; -} diff --git a/tt1-blocks/patterns/links-area.php b/tt1-blocks/patterns/links-area.php index a6a6fb80..856cc7bd 100644 --- a/tt1-blocks/patterns/links-area.php +++ b/tt1-blocks/patterns/links-area.php @@ -13,26 +13,24 @@ */ ?> - -
 ); ?>/assets/images/playing-in-the-sand.jpg)
(French, 1841-1895)', 'tt1-blocks' ) ); ?>
- ); ?>/assets/images/playing-in-the-sand.jpg)
(French, 1841-1895)', 'tt1-blocks' ) ); ?>
+