Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 6 additions & 47 deletions tt1-blocks/assets/css/blocks.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

/*--------------------------------------------------------------
# Cover
# Border, for backwards compatibility
--------------------------------------------------------------*/

.wp-block-cover.is-style-twentytwentyone-border {
.is-style-twentytwentyone-border,
.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);
}

Expand Down Expand Up @@ -50,15 +53,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);
}
Expand Down Expand Up @@ -137,14 +131,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
--------------------------------------------------------------*/
Expand All @@ -160,42 +146,15 @@
# Separator
--------------------------------------------------------------*/

hr,
.wp-block-separator {
.wp-block-separator:not(.has-text-color) {
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"],
.wp-block-separator[style*="text-align: right"] {
border-right-color: var(--wp--preset--color--dark-gray);
}

hr.is-style-twentytwentyone-separator-thick,
.wp-block-separator.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;
}
7 changes: 0 additions & 7 deletions tt1-blocks/assets/css/style-shared.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ a:hover {
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
Expand Down
46 changes: 0 additions & 46 deletions tt1-blocks/block-template-parts/footer.html

This file was deleted.

25 changes: 0 additions & 25 deletions tt1-blocks/block-template-parts/header.html

This file was deleted.

63 changes: 0 additions & 63 deletions tt1-blocks/block-templates/index.html

This file was deleted.

29 changes: 0 additions & 29 deletions tt1-blocks/block-templates/page.html

This file was deleted.

55 changes: 0 additions & 55 deletions tt1-blocks/block-templates/single.html

This file was deleted.

10 changes: 0 additions & 10 deletions tt1-blocks/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ function tt1_blocks_setup() {
* to change 'tt1-blocks' to the name of your theme in all the template files.
*/
load_theme_textdomain( 'tt1-blocks', get_template_directory() . '/languages' );

// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );

/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 1568, 9999 );

// Add support for Block Styles.
Expand Down
Loading