-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TT1-blocks: Update theme json #29
base: trunk
Are you sure you want to change the base?
Changes from 10 commits
f636c34
d04760a
c22ec9d
3148678
de3c61f
00c46aa
baecc1c
ea6cd3d
7b75166
4999dac
6adab89
fd4acba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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,36 +128,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 +144,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%; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, it will alter people's websites There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think breaking some backward compatibility is OK because the users still gain more features that did not exist when the theme was released.... |
||
} | ||
|
||
/*-------------------------------------------------------------- | ||
# Site Title | ||
--------------------------------------------------------------*/ | ||
|
||
h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) { | ||
text-decoration: none; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,24 @@ | |
*/ | ||
|
||
?> | ||
<!-- wp:cover {"overlayColor":"green","contentPosition":"center center","align":"wide","className":"is-style-twentytwentyone-border"} --> | ||
<div class="wp-block-cover alignwide has-green-background-color has-background-dim is-style-twentytwentyone-border"> | ||
<div class="wp-block-cover__inner-container"> | ||
<!-- wp:spacer {"height":20} --><div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --> | ||
<!-- wp:paragraph {"fontSize":"huge"} --><p class="has-huge-font-size"><?php echo wp_kses_post( __( 'Let’s Connect.', 'tt1-blocks' ) ); ?></p><!-- /wp:paragraph --> | ||
<!-- wp:spacer {"height":75} --><div style="height:75px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --> | ||
<!-- wp:columns --> | ||
<div class="wp-block-columns"> | ||
<!-- wp:column --> | ||
<div class="wp-block-column"> | ||
<!-- wp:paragraph --><p><a href="#" data-type="URL"><?php esc_html_e( 'Twitter', 'tt1-blocks' ); ?></a> / <a href="#" data-type="URL"><?php esc_html_e( 'Instagram', 'tt1-blocks' )?> </a> / <a href="#" data-type="URL"> <?php esc_html_e( 'Dribbble', 'tt1-blocks' ); ?></a></p><!-- /wp:paragraph --> | ||
</div><!-- /wp:column --> | ||
<!-- wp:column --> | ||
<div class="wp-block-column"> | ||
<!-- wp:paragraph --><p><a href="#"><?php esc_html_e( '[email protected]', 'tt1-blocks' ); ?></a></p><!-- /wp:paragraph --> | ||
</div> | ||
<!-- /wp:column --> | ||
<!-- wp:group {"align":"wide","style":{"border":{"top":{"color":"var:preset|color|gray","style":"solid"},"right":{"color":"var:preset|color|gray","style":"solid"},"bottom":{"color":"var:preset|color|gray","style":"solid"},"left":{"color":"var:preset|color|gray","style":"solid"}},"spacing":{"padding":{"top":"20px","right":"20px","bottom":"20px","left":"20px"}}},"backgroundColor":"green"} --> | ||
<div class="wp-block-group alignwide has-green-background-color has-background" style="border-top-color:var(--wp--preset--color--gray);border-top-style:solid;border-right-color:var(--wp--preset--color--gray);border-right-style:solid;border-bottom-color:var(--wp--preset--color--gray);border-bottom-style:solid;border-left-color:var(--wp--preset--color--gray);border-left-style:solid;padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px"> | ||
<!-- wp:spacer {"height":20} --><div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --> | ||
<!-- wp:paragraph {"fontSize":"huge"} --><p class="has-huge-font-size"><?php echo wp_kses_post( __( 'Let’s Connect.', 'tt1-blocks' ) ); ?></p><!-- /wp:paragraph --> | ||
<!-- wp:spacer {"height":75} --><div style="height:75px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --> | ||
<!-- wp:columns --> | ||
<div class="wp-block-columns"> | ||
<!-- wp:column --> | ||
<div class="wp-block-column"> | ||
<!-- wp:paragraph --><p><a href="#" data-type="URL"><?php esc_html_e( 'Twitter', 'tt1-blocks' ); ?></a> / <a href="#" data-type="URL"><?php esc_html_e( 'Instagram', 'tt1-blocks' )?> </a> / <a href="#" data-type="URL"> <?php esc_html_e( 'Dribbble', 'tt1-blocks' ); ?></a></p><!-- /wp:paragraph --> | ||
</div><!-- /wp:column --> | ||
<!-- wp:column --> | ||
<div class="wp-block-column"> | ||
<!-- wp:paragraph --><p><a href="#"><?php esc_html_e( '[email protected]', 'tt1-blocks' ); ?></a></p><!-- /wp:paragraph --> | ||
</div> | ||
<!-- /wp:columns --> | ||
<!-- wp:spacer {"height":20} --><div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --> | ||
<!-- /wp:column --> | ||
</div> | ||
<!-- /wp:columns --> | ||
<!-- wp:spacer {"height":20} --><div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div><!-- /wp:spacer --> | ||
</div> | ||
<!-- /wp:cover --> | ||
<!-- /wp:group --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can remove this, can we?