Trellick: Submission Preps (#7570)

This commit is contained in:
Takashi Irie 2023-12-20 20:42:52 +01:00 committed by GitHub
parent 46fb21803d
commit 7de21f40b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 154 additions and 85 deletions

View file

@ -7,7 +7,7 @@
* @package trellick
* @since trellick 1.0
*/
declare( strict_types = 1 );
if ( ! function_exists( 'trellick_support' ) ) :

View file

@ -4,7 +4,9 @@
* Slug: trellick/404
* Inserter: no
*/
declare( strict_types = 1 );
?>
<!-- wp:heading {"level":1,"fontSize":"medium","anchor":"oops-that-page-can-t-be-found"} -->
<h1 class="wp-block-heading has-medium-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Nothing found. Maybe try a search?', 'trellick' ); ?></h1>
<!-- /wp:heading -->

View file

@ -6,7 +6,9 @@
* Block Types: core/template-part/footer
* Inserter: no
*/
declare( strict_types = 1 );
?>
<!-- wp:paragraph {"style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"fontSize":"x-small"} -->
<p class="has-x-small-font-size" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><?php
/* Translators: WordPress link. */

View file

@ -4,7 +4,9 @@
* Slug: trellick/no-results-content
* Inserter: no
*/
declare( strict_types = 1 );
?>
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'Nothing found. Try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'trellick' ); ?></p>
<!-- /wp:paragraph -->

View file

@ -4,6 +4,7 @@
* Slug: trellick/post-list
* Categories: featured
*/
declare( strict_types = 1 );
?>
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"layout":{"type":"default"}} -->

View file

@ -4,6 +4,7 @@
* Slug: trellick/search
* Inserter: no
*/
declare( strict_types = 1 );
?>
<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html_x( 'Search...', 'This is a placeholder text in a search field', 'trellick' ); ?>","buttonText":"Search","buttonUseIcon":true} /-->

View file

@ -4,6 +4,7 @@
* Slug: trellick/sidebar
* Categories: featured
*/
declare( strict_types = 1 );
?>
<!-- wp:group {"layout":{"type":"default"}} -->

View file

@ -1,7 +1,7 @@
=== Trellick ===
Contributors: Automattic
Requires at least: 5.8
Tested up to: 6.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -41,4 +41,36 @@ This theme bundles the following third-party resources:
Public Sans Font
Licensed under SIL Open Font License, 1.1 (http://scripts.sil.org/OFL)
Source: https://fonts.google.com/specimen/Public+Sans
Source: https://fonts.google.com/specimen/Public+Sans
"Bumblebee drawing, vintage insect illustration."
Public Domain
https://www.rawpixel.com/image/6327280/image-public-domain-vintage-illustrations-bee
"Plate (ca.1936) by Margaret Stottlemeyer. Original from The National Gallery of Art. Digitally enhanced by rawpixel."
Public Domain
https://www.rawpixel.com/image/3340417/free-illustration-image-vintage-antique-art
"Irises (18901900) by Kogyo Tsukioka. Original from The Rijksmuseum. Digitally enhanced by rawpixel."
Public Domain
https://www.rawpixel.com/image/3320287/free-illustration-image-artwork-public-domain-print-cc0
"Roman head with helmet (18761924) drawing in high resolution by Gerrit Willem Dijsselhof. Original from the Rijksmuseum. Digitally enhanced by rawpixel."
Public Domain
https://www.rawpixel.com/image/3077149/free-illustration-image-antique-drawing-sculpture
"Space story. Original public domain image from Wikimedia Commons"
Public Domain
https://www.rawpixel.com/image/3283859/free-photo-image-pattern-fractal-space
"Hand drawn rufous milkcap mushroom. Original from Biodiversity Heritage Library. Digitally enhanced by rawpixel."
Public Domain
https://www.rawpixel.com/image/2880233/free-illustration-image-mushroom-watercolor-vintage
"Menselijk oog met een afwijking (18361912) print in high resolution by Isaac Weissenbruch. Original from The Rijksmuseum. Digitally enhanced by rawpixel."
Public Domain
https://www.rawpixel.com/image/2742839/free-illustration-image-vintage-eye
"Edgar Degas's Orchestra Musicians (1872) famous painting. Original from Wikimedia Commons."
Public Domain
https://www.rawpixel.com/image/7726921/image-art-public-domain-edgar-degas

View file

@ -4,15 +4,17 @@ Theme URI: https://wordpress.com/theme/trellick/
Author: Automattic
Author URI: https://automattic.com/
Description: Trellick is a raw, brutalist blog theme that strips away the polished veneer of the samey web design to show the untamed essence of the digital realm.
Requires at least: 5.8
Tested up to: 6.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 5.7
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trellick
Tags: blog, three-columns, wide-blocks, block-patterns, block-styles, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, theme-options, threaded-comments, translation-ready, one-column, news
*//*
Tags: blog, three-columns, block-patterns, block-styles, featured-images, full-site-editing, rtl-language-support, style-variations, template-editing, translation-ready, one-column, news
*/
/*
* Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json
* https://github.com/WordPress/gutenberg/issues/42794
@ -33,13 +35,12 @@ a {
}
/*
* Avatar Block
* Fix border radius setting for the avatar block
* https://github.com/WordPress/gutenberg/issues/48253
* Navigation Block
* Reset the padding from List block
* https://github.com/WordPress/gutenberg/issues/50486
*/
.wp-block-avatar a,
.wp-block-avatar img {
border-radius: inherit;
.wp-block-navigation ul {
padding: unset;
}
/*

View file

@ -40,11 +40,7 @@
"spacing": {
"customSpacingSize": true,
"spacingScale": {
"increment": 1.5,
"mediumStep": 1.5,
"operator": "*",
"steps": 0,
"unit": "rem"
"steps": 0
},
"spacingSizes": [
{
@ -292,7 +288,7 @@
"styles": {
"blocks": {
"core/archives": {
"css": "{list-style-type:none}",
"css": "& {list-style-type:none;}",
"spacing": {
"padding": {
"left": "0"
@ -302,9 +298,6 @@
"core/avatar": {
"border": {
"radius": "0"
},
"typography": {
"lineHeight": "0"
}
},
"core/button": {
@ -315,10 +308,10 @@
},
"spacing": {
"padding": {
"bottom": "14px",
"left": "26px",
"right": "26px",
"top": "14px"
"bottom": "calc(1rem - 2px)",
"left": "calc(1.625rem - 2px)",
"right": "calc(1.625rem - 2px)",
"top": "calc(1rem - 2px)"
}
}
}
@ -326,14 +319,14 @@
},
"core/buttons": {
"spacing": {
"blockGap": "var:preset|spacing|40"
"blockGap": "var(--wp--preset--spacing--40)"
}
},
"core/calendar": {
"css": ".wp-block-calendar table:where(:not(.has-text-color)) {color: var(--wp--preset--color--contrast);} .wp-block-calendar table:where(:not(.has-text-color)) td,.wp-block-calendar table:where(:not(.has-text-color)) th {border-color: var(--wp--preset--color--contrast);}:where(.wp-block-calendar table:not(.has-background) th) {background-color: var(--wp--preset--color--contrast);color: var(--wp--preset--color--base);}"
"css": ".wp-block-calendar table:where(:not(.has-text-color)) {color: var(--wp--preset--color--contrast);} &.wp-block-calendar table:where(:not(.has-text-color)) td {border-color: var(--wp--preset--color--secondary);} &.wp-block-calendar table:where(:not(.has-text-color)) th {border-color: var(--wp--preset--color--secondary);} & :where(.wp-block-calendar table:not(.has-background) th) {background-color: var(--wp--preset--color--contrast);color: var(--wp--preset--color--base);}}"
},
"core/categories": {
"css": "{list-style-type:none}",
"css": "& {list-style-type:none}",
"spacing": {
"padding": {
"left": "0"
@ -342,10 +335,12 @@
},
"core/code": {
"border": {
"width": "0"
"color": "var(--wp--preset--color--contrast)",
"style": "solid",
"width": "1"
},
"color": {
"background": "rgba(0,0,0,0.2)"
"background": "rgba(0,0,0,0.1)"
},
"spacing": {
"padding": {
@ -359,6 +354,9 @@
"fontFamily": "monospace"
}
},
"core/comment-content": {
"css": "& p{margin-bottom:0;} & p+p{margin-top:var(--wp--preset--spacing--50)}"
},
"core/comment-reply-link": {
"elements": {
"link": {
@ -379,7 +377,12 @@
"text": "var(--wp--preset--color--base)"
},
"spacing": {
"padding": "6px 14px"
"padding": {
"bottom": "0.375rem",
"left": "0.875rem",
"right": "0.875rem",
"top": "0.375rem"
}
},
"typography": {
"textDecoration": "none"
@ -393,8 +396,8 @@
"core/comments-title": {
"spacing": {
"margin": {
"bottom": "var(--wp--preset--spacing--50)",
"top": "0px"
"bottom": "0",
"top": "var(--wp--preset--spacing--50)"
}
},
"typography": {
@ -415,15 +418,15 @@
"css": " .wp-element-caption{text-align:center;}"
},
"core/latest-comments": {
"css": " .wp-block-latest-comments__comment-date {font-size: var(--wp--preset--font-size--medium);}.wp-block-latest-comments__comment-excerpt p{font-size: var(--wp--preset--font-size--medium);} :where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:inherit;} .wp-block-latest-comments__comment-excerpt p{margin:var(--wp--preset--spacing--50) 0;}",
"css": "& .wp-block-latest-comments__comment-meta{font-size: inherit;} & .wp-block-latest-comments__comment-date{font-size: inherit;} & .wp-block-latest-comments__comment-excerpt p{font-size: inherit;} & .wp-block-latest-comments__comment-excerpt p{margin:0 0 var(--wp--style--block-gap)} &:where(.wp-block-latest-comments:not([style*=line-height] .wp-block-latest-comments__comment-excerpt p)){line-height:inherit;} & .avatar, .wp-block-latest-comments__comment-avatar{border-radius:0;}",
"spacing": {
"padding": {
"left": "0px"
"left": "0"
}
}
},
"core/latest-posts": {
"css": " .wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date {font-size: var(--wp--preset--font-size--medium);}.wp-block-latest-posts__post-excerpt{margin:var(--wp--preset--spacing--50) 0;)}"
"css": " .wp-block-latest-posts__post-author{font-size: inherit;} & .wp-block-latest-posts__post-date{font-size: inherit;} & .wp-block-latest-posts__post-excerpt{margin:0 0 var(--wp--style--block-gap)}"
},
"core/list": {
"spacing": {
@ -433,21 +436,41 @@
}
},
"core/navigation": {
"css": ".wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {border-color:var(--wp--preset--color--contrast);} .wp-block-navigation__submenu-container.has-background {padding:0;}",
"spacing": {
"css": ".wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {border-color:var(--wp--preset--color--contrast);",
"spacing": {
"blockGap": "0"
}
},
"core/page-list": {
"css": "& {list-style-type:none}",
"spacing": {
"padding": {
"left": "0"
}
}
},
"core/paragraph": {
"typography": {
"lineHeight": "calc(1em + 0.5rem)"
}
},
"core/post-author": {
"css": ".wp-block-post-author .wp-block-post-author__byline{font-size:0.7em;} .wp-block-post-author .wp-block-post-author__bio {font-size:inherit;} .wp-block-post-author__avatar img {vertical-align:middle;} .wp-block-post-author__bio {margin:0;} .wp-block-post-author__avatar img {border-radius: 0;}"
"css": ".wp-block-post-author .wp-block-post-author__byline{font-size:inherit;}&.wp-block-post-author .wp-block-post-author__name a{text-decoration:none;}&.wp-block-post-author .wp-block-post-author__bio{font-size:inherit;margin:0;}& .wp-block-post-author__avatar img{border-radius: 0;margin-top:4px;vertical-align:middle;}"
},
"core/post-comments-form": {
"css": ".wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]), .wp-block-post-comments-form .comment-form textarea {line-height: inherit;} .wp-block-post-comments-form .form-submit {margin-bottom: 0;}"
"css": ".wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]){line-height: inherit;} & .comment-form textarea{line-height: inherit;} & .comment-form > *{margin-top:var(--wp--style--block-gap);margin-bottom:0} & .form-submit {margin-bottom: 0; & input[type=submit]{box-shadow:var( --wp--preset--shadow--buttons );}"
},
"core/post-content": {
"elements": {
"heading": {
"spacing": {
"margin": {
"bottom": "var(--wp--preset--spacing--50)",
"top": "var(--wp--preset--spacing--60)"
}
}
}
}
},
"core/post-excerpt": {
"css": ".wp-block-post-excerpt .wp-block-post-excerpt__excerpt{line-height: inherit;}"
@ -455,11 +478,6 @@
"core/post-template": {
"css": ".wp-block-post-template > * + * { margin-top: var(--wp--preset--spacing--40);}"
},
"core/post-time-to-read": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"core/post-title": {
"elements": {
"link": {
@ -469,7 +487,7 @@
}
},
"color": {
"text": "var:preset|color|contrast"
"text": "var(--wp--preset--color--contrast)"
},
"typography": {
"textDecoration": "none"
@ -489,15 +507,26 @@
},
"css": ".wp-block-pullquote cite {display:block;margin-top: var(--wp--preset--spacing--50)}",
"spacing": {
"padding": "var(--wp--preset--spacing--50)"
"padding": {
"bottom": "var(--wp--preset--spacing--50)",
"left": "var(--wp--preset--spacing--50)",
"right": "var(--wp--preset--spacing--50)",
"top": "var(--wp--preset--spacing--50)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)",
"fontStyle": "italic"
}
},
"core/query-pagination": {
"css": ".wp-block-query-pagination .wp-block-query-pagination-next, .wp-block-query-pagination .wp-block-query-pagination-previous, .wp-block-query-pagination .wp-block-query-pagination-numbers {margin-bottom:0;}"
"core/query-pagination-next": {
"css": ".wp-block-query-pagination-next{margin:0;}"
},
"core/query-pagination-numbers": {
"css": ".wp-block-query-pagination-numbers{margin:0;}"
},
"core/query-pagination-previous": {
"css": ".wp-block-query-pagination-previous{margin:0;}"
},
"core/query-title": {
"typography": {
@ -535,11 +564,6 @@
}
}
},
"core/read-more": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"core/search": {
"typography": {
"fontSize": "var(--wp--preset--font-size--small)",
@ -556,15 +580,7 @@
"text": "var(--wp--preset--color--contrast)"
}
},
"core/site-tagline": {
"typography": {
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"core/site-title": {
"color": {
"text": "var:preset|color|contrast"
},
"elements": {
"link": {
":hover": {
@ -573,7 +589,7 @@
}
},
"color": {
"text": "var:preset|color|contrast"
"text": "var(--wp--preset--color--contrast)"
},
"typography": {
"textDecoration": "none"
@ -595,13 +611,20 @@
}
},
"core/table": {
"css": " + .wp-element-caption {text-align:center;}"
"css": "& thead{border-bottom-width: 1px;} & tfoot{border-top-width: 1px;} & + .wp-element-caption{text-align:center;}"
},
"core/table-of-contents": {
"spacing": {
"padding": {
"left": "var(--wp--preset--spacing--50)"
}
}
},
"core/tag-cloud": {
"css": ".wp-block-tag-cloud.is-style-outline a {border-radius: 999px; padding: 0 1rem;} .wp-block-tag-cloud.is-style-outline a:hover {color: var(--wp--preset--color--base); background-color: var(--wp--preset--color--contrast);}"
"css": "&.wp-block-tag-cloud.is-style-outline a {border-radius: 999px; padding: 1px 10px;}"
},
"core/term-description": {
"css": ".wp-block-term-description p:first-child {margin-top: 0;} .wp-block-term-description p:last-child {margin-bottom: 0;}"
"css": "& p+p {margin-top:calc(1em + 0.375rem);}"
}
},
"color": {
@ -637,10 +660,10 @@
},
"spacing": {
"padding": {
"bottom": "16px",
"left": "28px",
"right": "28px",
"top": "16px"
"bottom": "1rem",
"left": "1.75rem",
"right": "1.75rem",
"top": "1rem"
}
},
"typography": {
@ -650,7 +673,7 @@
},
"caption": {
"color": {
"text": "var:preset|color|contrast"
"text": "var(--wp--preset--color--contrast)"
},
"spacing": {
"margin": {
@ -717,37 +740,41 @@
}
},
"spacing": {
"blockGap": "var:preset|spacing|50",
"blockGap": "var(--wp--preset--spacing--50)",
"padding": {
"bottom": "var:preset|spacing|50",
"left": "var:preset|spacing|50",
"right": "var:preset|spacing|50",
"bottom": "var(--wp--preset--spacing--50)",
"left": "var(--wp--preset--spacing--50)",
"right": "var(--wp--preset--spacing--50)",
"top": "0"
}
},
"typography": {
"fontFamily": "var:preset|font-family|public-sans",
"fontSize": "var:preset|font-size|medium",
"fontFamily": "var(--wp--preset--font-family--public-sans)",
"fontSize": "var(--wp--preset--font-size--medium)",
"fontWeight": "400",
"lineHeight": "1.285714286"
}
},
"templateParts": [
{
"area": "comments",
"name": "comments"
"area": "uncategorized",
"name": "comments",
"title": "Comments"
},
{
"area": "header",
"name": "header"
"name": "header",
"title": "Header"
},
{
"area": "footer",
"name": "footer"
"name": "footer",
"title": "Footer"
},
{
"area": "sidebar",
"name": "sidebar"
"area": "uncategorized",
"name": "sidebar",
"title": "Sidebar"
}
],
"version": 2,