diff --git a/tt1-blocks/assets/css/blocks.css b/tt1-blocks/assets/css/blocks.css index acd1a506..2bb25aff 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); } @@ -67,10 +58,6 @@ # Latest Posts --------------------------------------------------------------*/ -.wp-block-latest-posts { - padding-left: 0; -} - .wp-block-latest-posts.is-style-twentytwentyone-latest-posts-dividers { border-top: 3px solid var(--wp--preset--color--dark-gray); border-bottom: 3px solid var(--wp--preset--color--dark-gray); @@ -137,36 +124,10 @@ 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 ---------------------------------------------------------------*/ - -.wp-block-navigation .wp-block-navigation-link a:hover { - text-decoration: underline; - text-underline-offset: 3px; - text-decoration-style: dotted; - text-decoration-skip-ink: none; -} - /*-------------------------------------------------------------- # Separator --------------------------------------------------------------*/ -hr, -.wp-block-separator { - border-bottom: 1px solid var(--wp--preset--color--dark-gray); - clear: both; - opacity: 1; -} - hr[style*="text-align:right"], hr[style*="text-align: right"], .wp-block-separator[style*="text-align:right"], @@ -179,23 +140,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..087f5de3 100644 --- a/tt1-blocks/assets/css/style-shared.css +++ b/tt1-blocks/assets/css/style-shared.css @@ -3,7 +3,6 @@ --------------------------------------------------------------*/ body { - font-family: var(--wp--custom--font-primary); -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } @@ -20,52 +19,5 @@ a { } 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 @@ */ ?> - -
(French, 1841-1895)', 'tt1-blocks' ) ); ?>
-(French, 1841-1895)', 'tt1-blocks' ) ); ?>
+