diff --git a/chuck-theme/.gitignore b/chuck-theme/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/chuck-theme/assets/css/blocks/post-title.css b/chuck-theme/assets/css/blocks/post-title.css new file mode 100644 index 0000000..fbcc9a4 --- /dev/null +++ b/chuck-theme/assets/css/blocks/post-title.css @@ -0,0 +1,17 @@ +/* .wp-block-post-title { + position: relative; +} +.wp-block-post-title::after { + background-image: var(--accent-gradient); + background-size: 100%; + background-position: 0%; + + content: ''; + position: absolute; + z-index: -10; + bottom: 5px; + left: -2px; + right: -2px; + height: 10px; + border-radius: 5px; +} */ \ No newline at end of file diff --git a/chuck-theme/functions.php b/chuck-theme/functions.php new file mode 100644 index 0000000..b2c920a --- /dev/null +++ b/chuck-theme/functions.php @@ -0,0 +1,95 @@ +<?php + +/** + * chucktheme's functions and definitions + * + * @package chucktheme + * @since chucktheme 1.0 + */ + +/** + * First, let's set the maximum content width based on the theme's + * design and stylesheet. + * This will limit the width of all uploaded images and embeds. + */ +if (!isset($content_width)) { + $content_width = 800; /* pixels */ +} + + +if (!function_exists('chucktheme_setup')) : + + /** + * Sets up theme defaults and registers support for various + * WordPress features. + * + * Note that this function is hooked into the after_setup_theme + * hook, which runs before the init hook. The init hook is too late + * for some features, such as indicating support post thumbnails. + */ + function chucktheme_setup() + { + + // /** + // * Make theme available for translation. + // * Translations can be placed in the /languages/ directory. + // */ + // load_theme_textdomain( 'chucktheme', 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 and featured images. + // */ + // add_theme_support( 'post-thumbnails' ); + + // /** + // * Add support for two custom navigation menus. + // */ + // register_nav_menus( array( + // 'primary' => __( 'Primary Menu', 'chucktheme' ), + // 'secondary' => __( 'Secondary Menu', 'chucktheme' ), + // ) ); + + // /** + // * Enable support for the following post formats: + // * aside, gallery, quote, image, and video + // */ + // add_theme_support( 'post-formats', array( 'aside', 'gallery', 'quote', 'image', 'video' ) ); + + $styled_blocks = ['post-title']; + foreach ($styled_blocks as $block_name) { + $args = array( + 'handle' => "myfirsttheme-$block_name", + 'src' => get_theme_file_uri("assets/css/blocks/$block_name.css"), + $args['path'] = get_theme_file_path("assets/css/blocks/$block_name.css"), + ); + wp_enqueue_block_style("core/$block_name", $args); + } + + add_theme_support('align-wide'); + + // add_filter('render_block', function ($blockContent, $block) { + + // if ($block['blockName'] !== 'core/post-title') { + // return $blockContent; + // } + + // $pattern = '/(<h[^>]*>)(.*)(<\/h[1-7]{1}>)/i'; + // $replacement = '$1<span>$2</span>$3'; + // return preg_replace($pattern, $replacement, $blockContent); + // }, 10, 2); + } +endif; // chucktheme_setup +add_action('after_setup_theme', 'chucktheme_setup'); + +if (!function_exists('chucktheme_enqueue')) : + function chucktheme_enqueue() + { + wp_enqueue_style('style', get_stylesheet_uri()); + } +endif; +add_action('wp_enqueue_scripts', 'chucktheme_enqueue'); diff --git a/chuck-theme/parts/comments.html b/chuck-theme/parts/comments.html new file mode 100644 index 0000000..54536f8 --- /dev/null +++ b/chuck-theme/parts/comments.html @@ -0,0 +1,44 @@ +<!-- wp:heading {"className":"comments-title"} --> +<h2 class="comments-title">Comments</h2> +<!-- /wp:heading --> +<!-- wp:comments-query-loop --> +<div class="wp-block-comments-query-loop"> + <!-- wp:comment-template --> + <!-- wp:columns --> + <div class="wp-block-columns"> + <!-- wp:column {"width":"40px"} --> + <div class="wp-block-column" style="flex-basis: 40px"> + <!-- wp:avatar {"size":40,"style":{"border":{"radius":"20px"}}} /--> + </div> + <!-- /wp:column --> + + <!-- wp:column --> + <div class="wp-block-column"> + <!-- wp:comment-author-name /--> + + <!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"flex"}} --> + <div class="wp-block-group" style="margin-top: 0px; margin-bottom: 0px"> + <!-- wp:comment-date /--> + <!-- wp:comment-edit-link /--> + </div> + <!-- /wp:group --> + + <!-- wp:comment-content /--> + <!-- wp:comment-reply-link /--> + </div> + <!-- /wp:column --> + </div> + <!-- /wp:columns --> + <!-- /wp:comment-template --> + + <!-- wp:comments-pagination --> + <!-- wp:comments-pagination-previous /--> + + <!-- wp:comments-pagination-numbers /--> + + <!-- wp:comments-pagination-next /--> + <!-- /wp:comments-pagination --> +</div> +<!-- /wp:comments-query-loop --> + +<!-- wp:post-comments-form /--> \ No newline at end of file diff --git a/chuck-theme/parts/footer.html b/chuck-theme/parts/footer.html new file mode 100644 index 0000000..1fd95f9 --- /dev/null +++ b/chuck-theme/parts/footer.html @@ -0,0 +1,33 @@ +<!-- wp:group {"gradient":"trans-pride","layout":{"type":"constrained"}} --> +<div class="wp-block-group has-trans-pride-gradient-background has-background"><!-- wp:group {"align":"full","className":"white-bg-overlay","layout":{"type":"constrained"}} --> +<div class="wp-block-group alignfull white-bg-overlay"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30","margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> +<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> +<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0","margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","verticalAlignment":"space-between"}} --> +<div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:heading {"level":4} --> +<h4 class="wp-block-heading">Contact</h4> +<!-- /wp:heading --> + +<!-- wp:paragraph --> +<p>(954)-667-2916</p> +<!-- /wp:paragraph --> + +<!-- wp:paragraph --> +<p><a href="mailto:info@transsocial.org">info@transsocial.org</a></p> +<!-- /wp:paragraph --> + +<!-- wp:social-links {"style":{"spacing":{"blockGap":{"top":"0","left":"var:preset|spacing|20"}}},"className":"is-style-logos-only"} --> +<ul class="wp-block-social-links is-style-logos-only"><!-- wp:social-link {"service":"instagram"} /--> + +<!-- wp:social-link {"service":"facebook"} /--></ul> +<!-- /wp:social-links --></div> +<!-- /wp:group --></div> +<!-- /wp:group --> + +<!-- wp:paragraph {"align":"center"} --> +<p class="has-text-align-center"> + Proudly powered by <a href="https://wordpress.org/">WordPress</a>. + </p> +<!-- /wp:paragraph --></div> +<!-- /wp:group --></div> +<!-- /wp:group --></div> +<!-- /wp:group --> \ No newline at end of file diff --git a/chuck-theme/parts/header.html b/chuck-theme/parts/header.html new file mode 100644 index 0000000..009b198 --- /dev/null +++ b/chuck-theme/parts/header.html @@ -0,0 +1,15 @@ +<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"0","right":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> +<div + class="wp-block-group" + style=" + padding-top: var(--wp--preset--spacing--40); + padding-right: 0; + padding-bottom: var(--wp--preset--spacing--40); + padding-left: 0; + " +> + <!-- wp:site-logo {"shouldSyncIcon":true} /--> + + <!-- wp:navigation {"ref":20,"icon":"menu","layout":{"type":"flex","justifyContent":"right"}} /--> +</div> +<!-- /wp:group --> diff --git a/chuck-theme/patterns/footer.php b/chuck-theme/patterns/footer.php new file mode 100644 index 0000000..8bbc07f --- /dev/null +++ b/chuck-theme/patterns/footer.php @@ -0,0 +1,49 @@ +<?php + +/** + * Title: footer + * Slug: chucktheme/footer + * Categories: hidden + * Inserter: no + */ +?> +<!-- wp:group {"gradient":"trans-pride","layout":{"type":"constrained"}} --> +<div class="wp-block-group has-trans-pride-gradient-background has-background"><!-- wp:group {"align":"full","className":"white-bg-overlay","layout":{"type":"constrained"}} --> + <div class="wp-block-group alignfull white-bg-overlay"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30","margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} --> + <div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30)"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> + <div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"0","margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"left","verticalAlignment":"space-between"}} --> + <div class="wp-block-group" style="margin-top:0;margin-bottom:0"><!-- wp:heading {"level":4} --> + <h4 class="wp-block-heading">Contact</h4> + <!-- /wp:heading --> + + <!-- wp:paragraph --> + <p>(954)-667-2916</p> + <!-- /wp:paragraph --> + + <!-- wp:paragraph --> + <p><a href="mailto:info@transsocial.org">info@transsocial.org</a></p> + <!-- /wp:paragraph --> + + <!-- wp:social-links {"style":{"spacing":{"blockGap":{"top":"0","left":"var:preset|spacing|20"}}},"className":"is-style-logos-only"} --> + <ul class="wp-block-social-links is-style-logos-only"><!-- wp:social-link {"service":"instagram"} /--> + + <!-- wp:social-link {"service":"facebook"} /--> + </ul> + <!-- /wp:social-links --> + </div> + <!-- /wp:group --> + + </div> + <!-- /wp:group --> + + <!-- wp:paragraph {"align":"center"} --> + <p class="has-text-align-center"> + Proudly powered by <a href="https://wordpress.org/">WordPress</a>. + </p> + <!-- /wp:paragraph --> + </div> + <!-- /wp:group --> + </div> + <!-- /wp:group --> +</div> +<!-- /wp:group --> \ No newline at end of file diff --git a/chuck-theme/style.css b/chuck-theme/style.css new file mode 100644 index 0000000..8ebc5d4 --- /dev/null +++ b/chuck-theme/style.css @@ -0,0 +1,48 @@ +/* +Theme Name: chucktheme +Author: Chuck Dries <chuck@chuckdries.com> +Description: A short description of the theme. +Version: The version, written in X.X or X.X.X format. +Requires at least: The oldest main WordPress version supported, written in X.X format. +Tested up to: The last main WordPress version the theme has been tested up to, i.e. 6.0. Write only the number. +Requires PHP: The oldest PHP version supported, in X.X format, only the number. +License: The license of the theme. +License URI: The URL of the theme license. +Text Domain: chucktheme +*/ +:root { + --accent: 91 206 250; + --accent-text: hsl(197deg 52% 55%); + --accent-pink: hsl(348deg 29% 61%); + --accent-gradient: linear-gradient( + 45deg, + hsl(348deg 79% 81%) 0%, /*#F5A8B8*/ + hsl(336deg 73% 81%) 21%, + hsl(321deg 61% 80%) 30%, + hsl(296deg 47% 79%) 39%, + hsl(269deg 64% 82%) 46%, + hsl(244deg 82% 85%) 54%, + hsl(224deg 99% 83%) 61%, + hsl(211deg 100% 78%) 69%, + hsl(203deg 100% 73%) 79%, + hsl(197deg 94% 67%) 100% /*#5CCDFA*/ + ); + --accent-gradient-reverse: linear-gradient( + 225deg, + hsl(348deg 79% 81%) 0%, + hsl(336deg 73% 81%) 21%, + hsl(321deg 61% 80%) 30%, + hsl(296deg 47% 79%) 39%, + hsl(269deg 64% 82%) 46%, + hsl(244deg 82% 85%) 54%, + hsl(224deg 99% 83%) 61%, + hsl(211deg 100% 78%) 69%, + hsl(203deg 100% 73%) 79%, + hsl(197deg 94% 67%) 100% + ); + --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); +} + +.white-bg-overlay { + background: hsla(0, 0%, 100%, 0.7) +} diff --git a/chuck-theme/templates/404.html b/chuck-theme/templates/404.html new file mode 100644 index 0000000..c9bb02c --- /dev/null +++ b/chuck-theme/templates/404.html @@ -0,0 +1 @@ +<!-- wp:template-part {"slug":"header"} /--> \ No newline at end of file diff --git a/chuck-theme/templates/home.html b/chuck-theme/templates/home.html new file mode 100644 index 0000000..49bc7f9 --- /dev/null +++ b/chuck-theme/templates/home.html @@ -0,0 +1 @@ +<div><h1>hello world!</h1></div> \ No newline at end of file diff --git a/chuck-theme/templates/index.html b/chuck-theme/templates/index.html new file mode 100644 index 0000000..a021a2d --- /dev/null +++ b/chuck-theme/templates/index.html @@ -0,0 +1,25 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> +<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> +<main class="wp-block-group"> + <!-- wp:query --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:post-featured-image /--> + <!-- wp:post-title {"isLink":true} /--> + <!-- wp:post-author {"showAvatar":false} /--> + <!-- wp:post-date /--> + <!-- wp:post-terms {"term":"category"} /--> + <!-- wp:post-excerpt /--> + <!-- /wp:post-template --> + + <!-- wp:query-pagination --> + <div class="wp-block-query-pagination"> + <!-- wp:query-pagination-previous /--> + <!-- wp:query-pagination-next /--> + </div> + <!-- /wp:query-pagination --> + </div> + <!-- /wp:query --> +</main> +<!-- /wp:group --> +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/chuck-theme/templates/no-title.html b/chuck-theme/templates/no-title.html new file mode 100644 index 0000000..1df77bf --- /dev/null +++ b/chuck-theme/templates/no-title.html @@ -0,0 +1,19 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main + class="wp-block-group" + style=" + padding-top: var(--wp--preset--spacing--50); + padding-bottom: var(--wp--preset--spacing--50); + " +> + <!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height: 20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/chuck-theme/templates/page.html b/chuck-theme/templates/page.html new file mode 100644 index 0000000..60ce3ad --- /dev/null +++ b/chuck-theme/templates/page.html @@ -0,0 +1,15 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> +<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> +<main class="wp-block-group"> + <!-- wp:post-featured-image /--> + <!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> + <!-- wp:spacer {"height":"40px"} --> + <div style="height: 40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:spacer --> + <div style="height: 100px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> +</main> +<!-- /wp:group --> +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/chuck-theme/templates/search.html b/chuck-theme/templates/search.html new file mode 100644 index 0000000..9b1e326 --- /dev/null +++ b/chuck-theme/templates/search.html @@ -0,0 +1,55 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> +<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> +<main class="wp-block-group"> + <!-- wp:query-title {"type":"search","level":2} /--> + <!-- wp:query --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:post-featured-image /--> + <!-- wp:post-title {"isLink":true} /--> + <!-- wp:post-author {"showAvatar":false} /--> + <!-- wp:post-date /--> + <!-- wp:post-terms {"term":"category"} /--> + <!-- wp:post-excerpt /--> + <!-- /wp:post-template --> + <!-- wp:query-pagination --> + <div class="wp-block-query-pagination"> + <!-- wp:query-pagination-previous /--> + <!-- wp:query-pagination-next /--> + </div> + <!-- /wp:query-pagination --> + + <!-- ****** NO RESULTS --> + <!-- wp:query-no-results --> + <!-- wp:heading {"textAlign":"left","level":3} --> + <h3 class="has-text-align-left">No results found</h3> + <!-- /wp:heading --> + + <!-- wp:paragraph {"align":"left"} --> + <p class="has-text-align-left"> + Sorry, but nothing matched your search terms. Please try again with some + different keywords. + </p> + <!-- /wp:paragraph --> + + <!-- wp:spacer {"height":"50px"} --> + <div style="height: 50px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search"} /--> + + <!-- wp:spacer {"height":"50px"} --> + <div style="height: 50px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:heading {"level":3} --> + <h3>Looking for a specific topic?</h3> + <!-- /wp:heading --> + + <!-- wp:categories /--> + <!-- /wp:query-no-results --> + </div> + <!-- /wp:query --> +</main> +<!-- /wp:group --> +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/chuck-theme/templates/single.html b/chuck-theme/templates/single.html new file mode 100644 index 0000000..2e60ed7 --- /dev/null +++ b/chuck-theme/templates/single.html @@ -0,0 +1,28 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> +<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> +<main class="wp-block-group"> + <!-- wp:post-featured-image /--> + <!-- wp:post-title /--> + <!-- wp:spacer {"height":40} --> + <div style="height: 40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- wp:post-content /--> + <!-- wp:spacer {"height":"40px"} --> + <div style="height: 40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- wp:post-terms {"term":"post_tag"} /--> + <!-- wp:spacer {"height":"40px"} --> + <div style="height: 40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- wp:post-navigation-link {"type":"previous"} /--> + <!-- wp:post-navigation-link /--> + + <!-- wp:spacer --> + <div style="height: 100px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:template-part {"slug":"comments"} --> +</main> +<!-- /wp:template-part --> +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> +<!-- /wp:group --> \ No newline at end of file diff --git a/chuck-theme/theme.json b/chuck-theme/theme.json new file mode 100644 index 0000000..8111a82 --- /dev/null +++ b/chuck-theme/theme.json @@ -0,0 +1,182 @@ +{ + "customTemplates": [ + { + "name": "no-title", + "postTypes": [ + "post", + "page" + ], + "title": "No title" + } + ], + "settings": { + "appearanceTools": true, + "color": { + "duotone": [ + { + "colors": [ + "#00a0d2", + "#0073aa" + ], + "name": "Secondary and primary", + "slug": "secondary-primary" + }, + { + "colors": [ + "#0073aa", + "#f0f0f0" + ], + "name": "Primary and Contrast", + "slug": "primary-contrast" + } + ], + "gradients": [ + { + "gradient": "linear-gradient(45deg, hsl(348deg 79% 81%) 0%, hsl(336deg 73% 81%) 21%, hsl(321deg 61% 80%) 30%, hsl(296deg 47% 79%) 39%, hsl(269deg 64% 82%) 46%, hsl(244deg 82% 85%) 54%, hsl(224deg 99% 83%) 61%, hsl(211deg 100% 78%) 69%, hsl(203deg 100% 73%) 79%, hsl(197deg 94% 67%) 100%)", + "name": "Trans pride", + "slug": "trans-pride" + }, + { + "gradient": "linear-gradient(225deg, hsl(348deg 79% 81%) 0%, hsl(336deg 73% 81%) 21%, hsl(321deg 61% 80%) 30%, hsl(296deg 47% 79%) 39%, hsl(269deg 64% 82%) 46%, hsl(244deg 82% 85%) 54%, hsl(224deg 99% 83%) 61%, hsl(211deg 100% 78%) 69%, hsl(203deg 100% 73%) 79%, hsl(197deg 94% 67%) 100%)", + "name": "Trans pride reverse", + "slug": "trans-pride-reverse" + } + ], + "palette": [ + { + "color": "#1e1e1e", + "name": "Base", + "slug": "base" + }, + { + "color": "#f6f6f6", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#0073aa", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#00a0d2", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "transparent", + "name": "Transparent", + "slug": "transparent" + } + ] + }, + "layout": { + "contentSize": "700px", + "wideSize": "920px" + }, + "spacing": { + "units": [ + "px", + "em", + "rem", + "vh", + "vw", + "%" + ] + }, + "typography": { + "dropCap": false, + "fluid": true, + "fontFamilies": [ + { + "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", + "name": "System", + "slug": "system" + }, + { + "fontFamily": "system-ui,sans-serif", + "name": "Sans", + "slug": "sans" + }, + { + "fontFamily": "Consolas,Menlo,Monaco,\"SF Mono\",\"DejaVu Sans Mono\",\"Roboto Mono\",\"Courier New\",Courier,monospace", + "name": "Monospace", + "slug": "monospace" + } + ], + "fontSizes": [ + { + "fluid": false, + "name": "Extra small", + "size": "1rem", + "slug": "extra-small" + }, + { + "fluid": false, + "name": "Small", + "size": "1.125rem", + "slug": "small" + }, + { + "fluid": { + "max": "1.5rem", + "min": "1.25rem" + }, + "name": "Medium", + "size": "1.25rem", + "slug": "medium" + }, + { + "fluid": { + "max": "2rem", + "min": "1.75rem" + }, + "name": "Large", + "size": "2rem", + "slug": "large" + }, + { + "fluid": { + "max": "2.75rem", + "min": "2.5rem" + }, + "name": "XL", + "size": "2.75rem", + "slug": "x-large" + }, + { + "fluid": { + "max": "3.75rem", + "min": "3rem" + }, + "name": "XXL", + "size": "3.75rem", + "slug": "xx-large" + } + ] + }, + "useRootPaddingAwareAlignments": true + }, + "styles": { + "color": { + "background": "var(--wp--preset--color--contrast)" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--sans)" + } + }, + "templateParts": [ + { + "area": "header", + "name": "header", + "title": "Header" + }, + { + "area": "footer", + "name": "footer", + "title": "Footer" + } + ], + "version": 2, + "$schema": "https://schemas.wp.org/trunk/theme.json" +} \ No newline at end of file diff --git a/transsocial-theme/assets/css/blocks/quote.css b/transsocial-theme/assets/css/blocks/quote.css new file mode 100644 index 0000000..db879c9 --- /dev/null +++ b/transsocial-theme/assets/css/blocks/quote.css @@ -0,0 +1,25 @@ + +.wp-block-quote p, +.wp-block-quote cite { + margin-left: 4rem; +} + +.wp-block-quote::before, +.wp-block-quote.has-text-align-right p::before { + content: "\201C"; + position: absolute; + font-size: 4rem; + line-height: 1; + font-family: "Times New Roman", Times, serif; + font-weight: 700; + color: var(--wp--preset--color--primary); +} + +.wp-block-quote.has-text-align-center::before, +.wp-block-quote.has-text-align-right::before { + content: " "; +} + +.wp-block-quote.has-text-align-right p::before { + margin-left: -4rem; +} diff --git a/transsocial-theme/assets/images/woman-curls.jpg b/transsocial-theme/assets/images/woman-curls.jpg new file mode 100644 index 0000000..0e0730f Binary files /dev/null and b/transsocial-theme/assets/images/woman-curls.jpg differ diff --git a/transsocial-theme/assets/images/woman-headphones.jpg b/transsocial-theme/assets/images/woman-headphones.jpg new file mode 100644 index 0000000..6275731 Binary files /dev/null and b/transsocial-theme/assets/images/woman-headphones.jpg differ diff --git a/transsocial-theme/assets/images/woman-tshirt.jpg b/transsocial-theme/assets/images/woman-tshirt.jpg new file mode 100644 index 0000000..e6c798b Binary files /dev/null and b/transsocial-theme/assets/images/woman-tshirt.jpg differ diff --git a/transsocial-theme/functions.php b/transsocial-theme/functions.php new file mode 100644 index 0000000..794355e --- /dev/null +++ b/transsocial-theme/functions.php @@ -0,0 +1,46 @@ +<?php +/** + * Functions and definitions + * + * @link https://developer.wordpress.org/themes/basics/theme-functions/ + * + * @package transsocial-theme + * @since 1.0.0 + */ + +/** + * Add theme support. + */ +function transsocial_theme_setup() { + /* + * Load additional block styles. + */ + $styled_blocks = [ 'quote' ]; + foreach ( $styled_blocks as $block_name ) { + $args = array( + 'handle' => "transsocial-theme-$block_name", + 'src' => get_theme_file_uri( "assets/css/blocks/$block_name.css" ), + 'path' => get_theme_file_path( "assets/css/blocks/$block_name.css" ), + ); + // Replace the "core" prefix if you are styling blocks from plugins. + wp_enqueue_block_style( "core/$block_name", $args ); + } +} +add_action( 'after_setup_theme', 'transsocial_theme_setup' ); + +/** + * Enqueue the CSS files. + * + * @since 1.0.0 + * + * @return void + */ +function transsocial_theme_styles() { + wp_enqueue_style( + 'transsocial-theme-style', + get_stylesheet_uri(), + [], + wp_get_theme()->get( 'Version' ) + ); +} +add_action( 'wp_enqueue_scripts', 'transsocial_theme_styles' ); diff --git a/transsocial-theme/index.php b/transsocial-theme/index.php new file mode 100644 index 0000000..67c5fa5 --- /dev/null +++ b/transsocial-theme/index.php @@ -0,0 +1,9 @@ +<?php +/** + * This file has been left empty on purpose. + * + * @link https://core.trac.wordpress.org/ticket/54272 + * + * @package transsocial-theme + * @since 1.0.0 + */ diff --git a/transsocial-theme/license.txt b/transsocial-theme/license.txt new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/transsocial-theme/license.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/transsocial-theme/parts/footer.html b/transsocial-theme/parts/footer.html new file mode 100644 index 0000000..98c728b --- /dev/null +++ b/transsocial-theme/parts/footer.html @@ -0,0 +1,5 @@ +<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","right":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"backgroundColor":"primary","layout":{"type":"default"}} --> +<div class="wp-block-group has-primary-background-color has-background" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> + <!-- wp:pattern {"slug":"transsocial-theme/footer-links"} /--> +</div> +<!-- /wp:group --> diff --git a/transsocial-theme/parts/header.html b/transsocial-theme/parts/header.html new file mode 100644 index 0000000..ed12e31 --- /dev/null +++ b/transsocial-theme/parts/header.html @@ -0,0 +1,15 @@ +<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","right":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"backgroundColor":"primary","layout":{"type":"constrained"}} --> +<div class="wp-block-group has-primary-background-color has-background" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> + <!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} --> + <div class="wp-block-group alignwide"> + <!-- wp:group {"layout":{"type":"flex"}} --> + <div class="wp-block-group"> + <!-- wp:site-logo {"width":40} /--> + <!-- wp:site-title /--> + </div> + <!-- /wp:group --> + <!-- wp:navigation {"overlayBackgroundColor":"base","overlayTextColor":"contrast"} /--> + </div> + <!-- /wp:group --> +</div> +<!-- /wp:group --> diff --git a/transsocial-theme/patterns/columns-with-images.php b/transsocial-theme/patterns/columns-with-images.php new file mode 100644 index 0000000..edb9cc1 --- /dev/null +++ b/transsocial-theme/patterns/columns-with-images.php @@ -0,0 +1,42 @@ +<?php +/** + * Title: Columns with circular images + * Slug: transsocial-theme/columns-with-images + * Categories: featured + * Block Types: core/image, core/columns + * + * @package transsocial-theme + * @since 1.0.0 + */ + +?> +<!-- wp:columns {"align":"wide"} --> +<div class="wp-block-columns alignwide"> + <!-- wp:column --> + <div class="wp-block-column"> + <!-- wp:image {"align":"center","width":200,"height":200,"sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} --> + <figure class="wp-block-image aligncenter size-large is-resized is-style-rounded"><img src="<?php echo esc_url( get_theme_file_uri( 'assets/images/woman-tshirt.jpg' ) ); ?>" alt="" width="200" height="200"/></figure> + <!-- /wp:image --> + <!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center"><?php echo esc_html_x( 'Sample content. Replace the text with your own content.', 'sample content', 'transsocial-theme' ); ?></p><!-- /wp:paragraph --> + </div> + <!-- /wp:column --> + <!-- wp:column --> + <div class="wp-block-column"> + <!-- wp:paragraph {"align":"center"} --> + <p class="has-text-align-center"><?php echo esc_html_x( 'Sample content. Replace the text with your own content.', 'sample content', 'transsocial-theme' ); ?></p> + <!-- /wp:paragraph --> + <!-- wp:image {"align":"center","width":200,"height":200,"sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} --> + <figure class="wp-block-image aligncenter size-large is-resized is-style-rounded"><img src="<?php echo esc_url( get_theme_file_uri( 'assets/images/woman-curls.jpg' ) ); ?>" alt="" width="200" height="200"/></figure> + <!-- /wp:image --> + </div> + <!-- /wp:column --> + <!-- wp:column --> + <div class="wp-block-column"> + <!-- wp:image {"align":"center","width":200,"height":200,"sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} --> + <div class="wp-block-image is-style-rounded"><figure class="aligncenter size-large is-resized"><img src="<?php echo esc_url( get_theme_file_uri( 'assets/images/woman-headphones.jpg' ) ); ?>" alt="" width="200" height="200"/></figure></div> + <!-- /wp:image --> + <!-- wp:paragraph {"align":"center"} --><p class="has-text-align-center"><?php echo esc_html_x( 'Sample content. Replace the text with your own content.', 'sample content', 'transsocial-theme' ); ?></p><!-- /wp:paragraph --> + </div> + <!-- /wp:column --> +</div> +<!-- /wp:columns --> diff --git a/transsocial-theme/patterns/hidden-404.php b/transsocial-theme/patterns/hidden-404.php new file mode 100644 index 0000000..99e4f4c --- /dev/null +++ b/transsocial-theme/patterns/hidden-404.php @@ -0,0 +1,20 @@ +<?php +/** + * Title: 404 + * Slug: transsocial-theme/404 + * Categories: text + * inserter: no + * + * @package transsocial-theme + * @since 1.0.0 + */ + +?> +<!-- wp:heading {"textAlign":"center","fontSize":"x-large"} --> +<h2 class="has-text-align-center has-x-large-font-size"><?php esc_html_e( 'Page not found', 'transsocial-theme' ); ?></h2> +<!-- /wp:heading --> +<!-- wp:paragraph --> +<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'transsocial-theme' ); ?></p> +<!-- /wp:paragraph --> +<!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search"} /--> +<!-- /wp:group --> diff --git a/transsocial-theme/patterns/hidden-footer-links.php b/transsocial-theme/patterns/hidden-footer-links.php new file mode 100644 index 0000000..3111947 --- /dev/null +++ b/transsocial-theme/patterns/hidden-footer-links.php @@ -0,0 +1,23 @@ +<?php +/** + * Title: Footer links + * Slug: transsocial-theme/footer-links + * Categories: text + * Inserter: no + * + * @package transsocial-theme + * @since 1.0.0 + */ +?> + +<!-- wp:group {"layout":{"type":"flex","justifyContent":"center"}} --> +<div class="wp-block-group"> + <!-- wp:paragraph {"fontSize":"extra-small"} --> + <p class="has-extra-small-font-size"><?php echo esc_html__( 'Copyright', 'transsocial-theme' ) . ' ' . date_i18n( _x( 'Y', 'copyright date format', 'transsocial-theme' ) ); ?></p> + <!-- /wp:paragraph --> + <!-- wp:site-title {"level":0,"isLink":false,"fontSize":"extra-small"} /--> + <!-- wp:social-links {"iconColor":"contrast","iconColorValue":"var(--wp--preset--color--contrast)","className":"has-icon-color is-style-logos-only"} --> + <ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"https://wordpress.org","service":"wordpress"} /--></ul> + <!-- /wp:social-links --> +</div> +<!-- /wp:group --> diff --git a/transsocial-theme/readme.txt b/transsocial-theme/readme.txt new file mode 100644 index 0000000..fafd014 --- /dev/null +++ b/transsocial-theme/readme.txt @@ -0,0 +1,67 @@ +=== transsocial-theme === +Contributors: Chuck Dries +Tested up to: 6.2 +Requires at least: 6.1 +Requires PHP: 7.4 +Version: 1.0.0 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Copyright: Chuck Dries + +A full site editing theme. Basic version. + +== Guide == + +=== Folder structure === + +- Assets. Images and CSS files. +- Parts. HTML template parts. +- Patterns. Block patterns. +- Templates. HTML block templates. + +functions.php -Used to enqueue styles and add theme support. +index.php -"Silence is golden". +style.css -Required to activate the theme. +theme.json -Settings and default styles. +license.txt -GPL v2 +readme.txt -Information about the theme. +screenshot.png + +== Changelog == +For changelogs please see the Github repository. + +1.0.0 Initial release + +== Licence == +transsocial-theme is distributed under the terms of the GNU GPL. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +== Resources used to build this theme == + +* Twenty Twenty-Two WordPress theme (C) WordPress.org +License: GNU General Public License v2.0 or later +License URI: https://www.gnu.org/licenses/gpl-2.0.html + +* Q WordPress theme (C) Ari Stathopoulos +License: GNU General Public License v2.0 or later +License URI: https://www.gnu.org/licenses/gpl-2.0.html + +* Full site editing starter theme by Carolina Nymark +https://fullsiteediting.com +License: GNU General Public License v2 or later +License URI: https://www.gnu.org/licenses/gpl-2.0.html + +Images +Images from pxhere.com. Public domain: +https://pxhere.com/en/photo/927190 -woman with curly hair +https://pxhere.com/en/photo/1049910 -woman with t-shirt +https://pxhere.com/en/photo/1604358 -woman with headphones diff --git a/transsocial-theme/screenshot.png b/transsocial-theme/screenshot.png new file mode 100644 index 0000000..5bddc87 Binary files /dev/null and b/transsocial-theme/screenshot.png differ diff --git a/transsocial-theme/style.css b/transsocial-theme/style.css new file mode 100644 index 0000000..a043e96 --- /dev/null +++ b/transsocial-theme/style.css @@ -0,0 +1,32 @@ +/* +Theme Name: transsocial-theme +Author: Chuck Dries +Author URI: https://chuckdries.com +Theme URI: +Tags: full-site-editing, block-patterns +Text Domain: transsocial-theme +Requires at least: 6.1 +Requires PHP: 7.4 +Tested up to: 6.2 +Version: 1.0.0 + +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +*/ + +/* Styles intended only for the front.*/ +html { + scroll-behavior: smooth; +} + +@media screen and (prefers-reduced-motion: reduce) { + + html { + scroll-behavior: auto; + } +} + +body { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; +} diff --git a/transsocial-theme/templates/404.html b/transsocial-theme/templates/404.html new file mode 100644 index 0000000..fb9f9cd --- /dev/null +++ b/transsocial-theme/templates/404.html @@ -0,0 +1,15 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + + <!-- wp:pattern {"slug":"transsocial-theme/404"} /--> + + <!-- wp:spacer {"height":"40px"} --> + <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/templates/archive.html b/transsocial-theme/templates/archive.html new file mode 100644 index 0000000..2441343 --- /dev/null +++ b/transsocial-theme/templates/archive.html @@ -0,0 +1,40 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + <!-- wp:query-title {"type":"archive","level":2} /--> + <!-- wp:term-description /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:post-title {"level":3,"isLink":true} /--> + <!-- wp:post-featured-image {"isLink":true} /--> + <!-- wp:group {"layout":{"type":"flex"}} --> + <div class="wp-block-group"> + <!-- wp:post-author {"showAvatar":false} /--> + <!-- wp:post-date /--> + <!-- wp:post-terms {"term":"category","prefix":"Categories: "} /--> + </div> + <!-- /wp:group --> + <!-- wp:post-excerpt {"moreText":"Read more","showMoreOnNewLine":false} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- /wp:post-template --> + + <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} --> + <!-- wp:query-pagination-previous {"label":"Previous"} /--> + <!-- wp:query-pagination-next {"label":"Next"} /--> + <!-- /wp:query-pagination --> + </div><!-- /wp:query --> + +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/templates/index.html b/transsocial-theme/templates/index.html new file mode 100644 index 0000000..eb96322 --- /dev/null +++ b/transsocial-theme/templates/index.html @@ -0,0 +1,32 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:post-title {"isLink":true} /--> + <!-- wp:post-featured-image {"isLink":true} /--> + <!-- wp:group {"layout":{"type":"flex"}} --> + <div class="wp-block-group"> + <!-- wp:post-author {"showAvatar":false} /--> + <!-- wp:post-date /--> + <!-- wp:post-terms {"term":"category","prefix":"Categories: "} /--> + </div> + <!-- /wp:group --> + <!-- wp:post-excerpt {"moreText":"Read more","showMoreOnNewLine":false} /--> + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- /wp:post-template --> + <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} --> + <!-- wp:query-pagination-previous {"label":"Previous"} /--> + <!-- wp:query-pagination-next {"label":"Next"} /--> + <!-- /wp:query-pagination --> + </div> + <!-- /wp:query --> + +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/templates/no-title.html b/transsocial-theme/templates/no-title.html new file mode 100644 index 0000000..0b2163b --- /dev/null +++ b/transsocial-theme/templates/no-title.html @@ -0,0 +1,14 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + <!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/templates/page.html b/transsocial-theme/templates/page.html new file mode 100644 index 0000000..1140448 --- /dev/null +++ b/transsocial-theme/templates/page.html @@ -0,0 +1,17 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + + <!-- wp:post-title /--> + + <!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> + + <!-- wp:spacer {"height":"40px"} --> + <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/templates/search.html b/transsocial-theme/templates/search.html new file mode 100644 index 0000000..d1385fd --- /dev/null +++ b/transsocial-theme/templates/search.html @@ -0,0 +1,59 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + + <!-- wp:query-title {"type":"search","level":2} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}} --> + <div class="wp-block-query"> + <!-- wp:post-template --> + <!-- wp:post-title {"level":3,"isLink":true} /--> + <!-- wp:post-featured-image {"isLink":true} /--> + <!-- wp:group {"layout":{"type":"flex"}} --> + <div class="wp-block-group"> + <!-- wp:post-author {"showAvatar":false} /--> + <!-- wp:post-date /--> + <!-- wp:post-terms {"term":"category","prefix":"Categories: "} /--> + </div> + <!-- /wp:group --> + + <!-- wp:post-excerpt {"moreText":"Read more","showMoreOnNewLine":false} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + <!-- /wp:post-template --> + + <!-- wp:query-no-results --> + <!-- wp:paragraph --><p>Sorry, but nothing matched your search terms. Please try again with some different keywords.</p><!-- /wp:paragraph --> + <!-- /wp:query-no-results --> + + <!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} --> + <!-- wp:query-pagination-previous {"label":"Previous"} /--> + <!-- wp:query-pagination-next {"label":"Next"} /--> + <!-- /wp:query-pagination --> + + <!-- wp:separator {"color":"secondary","className":"is-style-wide"} --> + <hr class="wp-block-separator has-text-color has-background has-secondary-background-color has-secondary-color is-style-wide" /> + <!-- /wp:separator --> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search"} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + </div><!-- /wp:query --> +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/templates/single.html b/transsocial-theme/templates/single.html new file mode 100644 index 0000000..f55778b --- /dev/null +++ b/transsocial-theme/templates/single.html @@ -0,0 +1,85 @@ +<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /--> + +<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} --> +<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);"> + + <!-- wp:post-title /--> + + <!-- wp:group {"layout":{"type":"flex"}} --> + <div class="wp-block-group"> + <!-- wp:post-author {"showAvatar":false} /--> + <!-- wp:post-date /--> + <!-- wp:post-terms {"term":"category","prefix":"Categories: "} /--> + <!-- wp:post-terms {"term":"post_tag","prefix":"Tags: "} /--> + </div> + <!-- /wp:group --> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:separator {"color":"secondary","className":"is-style-wide"} --> + <hr class="wp-block-separator has-text-color has-background has-secondary-background-color has-secondary-color is-style-wide" /> + <!-- /wp:separator --> + + <!-- wp:comments-query-loop --> + <div class="wp-block-comments-query-loop"><!-- wp:comments-title /--> + + <!-- wp:comment-template --> + <!-- wp:columns --> + <div class="wp-block-columns"> + <!-- wp:column {"width":"40px"} --> + <div class="wp-block-column" style="flex-basis:40px"> + <!-- wp:avatar {"size":40,"style":{"border":{"radius":"20px"}}} /--></div> + <!-- /wp:column --> + <!-- wp:column --> + <div class="wp-block-column"> + <!-- wp:comment-author-name /--> + <!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"flex"}} --> + <div class="wp-block-group" style="margin-top:0px;margin-bottom:0px"> + <!-- wp:comment-date /--> + <!-- wp:comment-edit-link /--> + </div> + <!-- /wp:group --> + <!-- wp:comment-content /--> + <!-- wp:comment-reply-link /--> + </div> + <!-- /wp:column --> + </div> + <!-- /wp:columns --> + <!-- /wp:comment-template --> + + <!-- wp:comments-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} --> + <!-- wp:comments-pagination-previous /--> + <!-- wp:comments-pagination-numbers /--> + <!-- wp:comments-pagination-next /--> + <!-- /wp:comments-pagination --> + <!-- wp:post-comments-form /--> + </div> + <!-- /wp:comments-query-loop --> + + <!-- wp:spacer {"height":"40px"} --> + <div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + + <!-- wp:group {"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} --> + <div class="wp-block-group"> + <!-- wp:post-navigation-link {"type":"previous","showTitle":true,"linkLabel":true,"arrow":"arrow"} /--> + <!-- wp:post-navigation-link {"showTitle":true,"linkLabel":true,"arrow":"arrow"} /--> + </div> + <!-- /wp:group --> + + <!-- wp:spacer {"height":"20px"} --> + <div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div> + <!-- /wp:spacer --> + +</main> +<!-- /wp:group --> + +<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /--> diff --git a/transsocial-theme/theme.json b/transsocial-theme/theme.json new file mode 100644 index 0000000..bc5c28a --- /dev/null +++ b/transsocial-theme/theme.json @@ -0,0 +1,333 @@ +{ + "version": 2, + "$schema": "https://schemas.wp.org/trunk/theme.json", + "settings": { + "appearanceTools": true, + "color": { + "palette": [ + { + "slug": "base", + "color": "#1e1e1e", + "name": "Base" + }, + { + "slug": "contrast", + "color": "#f0f0f0", + "name": "Contrast" + }, + { + "slug": "primary", + "color": "#0073aa", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#00a0d2", + "name": "Secondary" + }, + { + "slug": "transparent", + "color": "transparent", + "name": "Transparent" + } + ], + "gradients": [ + { + "slug": "primary-white", + "gradient": "linear-gradient(#0073aa 49.9%,#fff 50%)", + "name": "Primary color to white" + }, + { + "slug": "white-primary", + "gradient": "linear-gradient(#fff 49.9%,#0073aa 50%)", + "name": "Horizontal white to Primary color" + } + ], + "duotone": [ + { + "colors": [ "#00a0d2", "#0073aa"], + "slug": "secondary-primary", + "name": "Secondary and primary" + }, + { + "colors": ["#0073aa", "#f0f0f0"], + "slug": "primary-contrast", + "name": "Primary and Contrast" + } + ] + }, + "layout": { + "contentSize": "700px", + "wideSize": "1100px" + }, + "spacing": { + "units": [ "px", "em", "rem", "vh", "vw", "%" ] + }, + "typography": { + "dropCap": false, + "fluid": true, + "fontFamilies": [ + { + "name": "System", + "slug": "system", + "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif" + }, + { + "name": "Serif", + "slug": "serif", + "fontFamily": "\"Times New Roman\",\"New York\",Times,\"Noto Serif\",serif" + }, + { + "name": "Monospace", + "slug": "monospace", + "fontFamily": "Consolas,Menlo,Monaco,\"SF Mono\",\"DejaVu Sans Mono\",\"Roboto Mono\",\"Courier New\",Courier,monospace" + } + ], + "fontSizes": [ + { + "slug": "extra-small", + "size": "1rem", + "name": "Extra small", + "fluid": false + }, + { + "slug": "small", + "size": "1.125rem", + "name": "Small", + "fluid": false + }, + { + "slug": "medium", + "size": "1.25rem", + "name": "Medium", + "fluid": { + "min": "1.25rem", + "max": "1.5rem" + } + }, + { + "slug": "large", + "size": "2rem", + "name": "Large", + "fluid": { + "min": "1.75rem", + "max": "2rem" + } + }, + { + "slug": "x-large", + "size": "2.75rem", + "name": "XL", + "fluid": { + "min": "2.5rem", + "max": "2.75rem" + } + }, + { + "slug": "xx-large", + "size": "3.75rem", + "name": "XXL", + "fluid": { + "min": "3rem", + "max": "3.75rem" + } + } + ] + }, + "useRootPaddingAwareAlignments": true + }, + "styles": { + "blocks": { + "core/code": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + }, + "core/comment-author-name": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comment-date": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comment-edit-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comment-reply-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontWeight": "700" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "textDecoration": "underline" + }, + ":hover": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + } + }, + "core/post-author": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-small)" + } + }, + "core/post-date": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-small)" + } + }, + "core/post-navigation-link": { + "typography": { + "fontWeight": "700" + } + }, + "core/post-terms": { + "typography": { + "fontSize": "var(--wp--preset--font-size--extra-small)" + } + }, + "core/post-title": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, + "core/query-pagination": { + "typography": { + "fontWeight": "700" + } + }, + "core/query-title": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, + "core/site-title": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" + } + } + }, + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "button": { + "border": { + "color": "var(--wp--preset--color--transparent)", + "width": "4px", + "style": "solid", + "radius": "4px" + }, + "color": { + "background": "var(--wp--preset--color--primary)", + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "700" + }, + "shadow": "var(--wp--preset--shadow--natural)", + ":hover": { + "border": { + "color": "var(--wp--preset--color--secondary)" + } + } + }, + "caption": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "cite": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + ":hover": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "spacing": { + "padding": { + "right": "var(--wp--preset--spacing--50)", + "left": "var(--wp--preset--spacing--50)" + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontFamily": "var(--wp--preset--font-family--system)", + "lineHeight": "1.75" + } + }, + "templateParts": [ + { + "name": "header", + "title": "Header", + "area": "header" + }, + { + "name": "footer", + "title": "Footer", + "area": "footer" + } + ], + "customTemplates": [ + { + "name": "no-title", + "title": "No title", + "postTypes": [ "post","page" ] + } + ] +}