Geologist Variations + Variation Creation Script (#5179)
* WIP variations script * add some initial code to copy theme variants * Add more variations * Fix blue and slate variations * Remove commas breaking theme.json * Refactored script to exclude unnecessary elements, copy additional resources and merge theme.json data * Added npm script target to variations build. Added readme files to variation destination. * Removed unused 'foreground' palette color from geologist variations. Mapped 'secondary' palette color to 'secondary' custom color in base Geologist theme. * Removed unused 'foreground' palette color from geologist variations. Mapped 'secondary' palette color to 'secondary' custom color in base Geologist theme. * Made the variations script smart * Made site title adjustments per design request * Update the header to use the standard blockbase header * Refactored the usage of default header out of a change to template part and instead introduced the concept of 'mods' that will change templates to suit * Removed header modifications to Geologist variations * Added Google font URL information to geologist-blue * Add IBM Plex Mono to our list of cusotmization fonts Co-authored-by: Ben Dwyer <ben@scruffian.com>
|
@ -17,4 +17,5 @@ vendor
|
|||
node_modules
|
||||
theme-utils.mjs
|
||||
deploy-dotorg.sh
|
||||
**/*.zip
|
||||
**/*.zip
|
||||
variations/
|
||||
|
|
|
@ -74,6 +74,12 @@ class GlobalStylesFontsCustomizer {
|
|||
'name' => 'Fira Sans',
|
||||
'google' => 'family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900',
|
||||
),
|
||||
'ibm-plex-mono' => array(
|
||||
'fontFamily' => '"IBM Plex Mono", monospace',
|
||||
'slug' => 'ibm-plex-mono',
|
||||
'name' => 'IBM Plex Mono',
|
||||
'google' => 'family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700',
|
||||
),
|
||||
'inter' => array(
|
||||
'fontFamily' => '"Inter", sans-serif',
|
||||
'slug' => 'inter',
|
||||
|
@ -345,7 +351,7 @@ class GlobalStylesFontsCustomizer {
|
|||
} );
|
||||
$heading_font_selected = array_shift( $heading_font_selected_array );
|
||||
// End Gutenberg < 12.1 compatibility patch
|
||||
|
||||
|
||||
} else {
|
||||
$body_font_selected = $body_font_default;
|
||||
$heading_font_selected = $heading_font_default;
|
||||
|
|
BIN
geologist-blue/assets/images/gem.jpeg
Normal file
After Width: | Height: | Size: 407 KiB |
251
geologist-blue/assets/theme.css
Normal file
|
@ -0,0 +1,251 @@
|
|||
@charset "UTF-8";
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:hover, .wp-block-file .wp-block-file__button:focus, .wp-block-file .wp-block-file__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:hover, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:focus, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button.has-focus,
|
||||
.wp-block-search .wp-block-search__button:hover,
|
||||
.wp-block-search .wp-block-search__button:focus,
|
||||
.wp-block-search .wp-block-search__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
color: var(--wp--custom--button--color--background);
|
||||
background-color: var(--wp--custom--button--color--text);
|
||||
}
|
||||
|
||||
ul ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
@media (max-width: 599px) {
|
||||
.wp-block-media-text:not(.has-background) .wp-block-media-text__content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-post-comments form input:not([type=submit]):not([type=checkbox]),
|
||||
.wp-block-post-comments form textarea {
|
||||
font-size: var(--wp--preset--font-size--normal);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a,
|
||||
.wp-block-post-comments .comment-edit-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a:hover,
|
||||
.wp-block-post-comments .comment-edit-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-post-navigation-link {
|
||||
border-top: 1px solid;
|
||||
display: flex;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.post-navigation-link-next {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.post-navigation-link-next a {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.post-navigation-link-previous a {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column,
|
||||
.next-prev-links .wp-block-column:not(:only-child) {
|
||||
flex-basis: 40% !important;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column:not(:first-child),
|
||||
.next-prev-links .wp-block-column:not(:only-child):not(:first-child) {
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
.wp-block-post-template .wp-block-post-excerpt__more-text,
|
||||
.wp-block-query .wp-block-post-excerpt__more-text {
|
||||
font-size: var(--wp--custom--font-sizes--tiny) !important;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination {
|
||||
border-top: 1px solid var(--wp--custom--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
|
||||
content: "←";
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
content: "→";
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before,
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .page-numbers {
|
||||
padding: 0 0.1em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large p {
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large cite {
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes th,
|
||||
.wp-block-table th {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tbody td,
|
||||
.wp-block-table tbody td {
|
||||
border-bottom-width: 0;
|
||||
border-top-width: 0;
|
||||
vertical-align: top;
|
||||
border-color: var(--wp--preset--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:first-child td,
|
||||
.wp-block-table tr:first-child td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:last-child td,
|
||||
.wp-block-table tr:last-child td {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
text-indent: -0.5ch;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
text-indent: 0.5ch;
|
||||
}
|
||||
|
||||
.has-primary-background-color {
|
||||
color: var(--wp--preset--color--background);
|
||||
}
|
||||
|
||||
.wp-block-post-content p a {
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-content p a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:not(.ab-item):not(.screen-reader-shortcut):active, a:not(.ab-item):not(.screen-reader-shortcut):focus {
|
||||
outline: 1px dotted currentColor;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="range"]:focus,
|
||||
input[type="date"]:focus,
|
||||
input[type="month"]:focus,
|
||||
input[type="week"]:focus,
|
||||
input[type="time"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="datetime"]:focus,
|
||||
input[type="datetime-local"]:focus,
|
||||
input[type="color"]:focus,
|
||||
textarea:focus {
|
||||
outline: 1px dotted currentColor;
|
||||
}
|
||||
|
||||
.wp-block-post-featured-image {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Add some extra space if there's no post title present. */
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-featured-image,
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-excerpt {
|
||||
margin-top: calc(2 * var( --wp--style--block-gap ));
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=theme.css.map */
|
9
geologist-blue/block-template-parts/footer.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!-- wp:group {"className":"site-footer","style":{"spacing":{"padding":{"top":"150px","bottom":"150px"}}}} -->
|
||||
<div class="wp-block-group site-footer" style="padding-top:150px;padding-bottom: 150px">
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
</div>
|
||||
<!-- /wp:group -->
|
3
geologist-blue/block-template-parts/header-spacer.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
27
geologist-blue/block-templates/archive.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"bottom":"160px"}}}} /-->
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons","layout":{"inherit":true}} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
26
geologist-blue/block-templates/index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
13
geologist-blue/block-templates/page-without-title.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
20
geologist-blue/block-templates/page.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group"><!-- wp:post-comments /--></div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
18
geologist-blue/block-templates/search.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}, "tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
|
||||
<!-- wp:post-template -->
|
||||
|
||||
<!-- wp:post-title {"level":5,"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- /wp:post-template -->
|
||||
<!-- /wp:query -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
47
geologist-blue/block-templates/single.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true},"style":{"spacing":{"padding":{"top":"30px","right":"20px","bottom":"0px","left":"20px"}}}} -->
|
||||
<div class="wp-block-group" style="padding-top:30px;padding-right:20px;padding-bottom:0px;padding-left:20px">
|
||||
<!-- wp:columns {"align":"wide","className":"next-prev-links"} -->
|
||||
<div class="wp-block-columns alignwide next-prev-links">
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"type":"previous","label":"←","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"textAlign":"right","label":"→","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
<!-- wp:post-comments /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
6
geologist-blue/functions.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Block Patterns.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-patterns.php';
|
44
geologist-blue/inc/block-patterns.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Geologist Theme: Block Patterns
|
||||
*
|
||||
* @package Geologist
|
||||
* @since 1.0.0
|
||||
*/
|
||||
if ( ! function_exists( 'geologist_register_block_patterns' ) ) :
|
||||
|
||||
function geologist_register_block_patterns() {
|
||||
|
||||
if ( function_exists( 'register_block_pattern_category' ) ) {
|
||||
register_block_pattern_category(
|
||||
'geologist',
|
||||
array( 'label' => __( 'Geologist', 'geologist' ) )
|
||||
);
|
||||
}
|
||||
|
||||
if ( function_exists( 'register_block_pattern' ) ) {
|
||||
$block_patterns = array(
|
||||
'authors',
|
||||
'header-with-rounded-site-logo',
|
||||
'image-feature',
|
||||
'introduction',
|
||||
'quote',
|
||||
'two-featured-posts',
|
||||
);
|
||||
|
||||
if ( class_exists( 'WP_Block_Type_Registry' ) && \WP_Block_Type_Registry::get_instance()->is_registered( 'jetpack/subscriptions' ) ) {
|
||||
$block_patterns[] = 'email-updates-large';
|
||||
$block_patterns[] = 'email-updates-small';
|
||||
}
|
||||
|
||||
foreach ( $block_patterns as $block_pattern ) {
|
||||
register_block_pattern(
|
||||
'geologist/' . $block_pattern,
|
||||
require __DIR__ . '/patterns/' . $block_pattern . '.php'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'init', 'geologist_register_block_patterns', 9 );
|
48
geologist-blue/inc/patterns/authors.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Authors', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'About the Authors:', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Sarah is a geologist at Anthem State University. Her love for all things underground was sparked in Kindergarten when she unearthed a toy that someone left buried in the sandbox.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"wordpress.com","service":"wordpress"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"instagram.com","service":"instagram"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Angelo Ortiz', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Angelo is an independent researcher and hobbyist. His collection of gemstones rivals that of some museums. Angelo is always on the lookout for a new discovery, and carries his toolkit everywhere.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"instagram.com","service":"instagram"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"twitter.com","service":"twitter"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
18
geologist-blue/inc/patterns/email-updates-large.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Large)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (Large)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Our newsletter rocks! Sign up here to receive every post in your inbox.', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
15
geologist-blue/inc/patterns/email-updates-small.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Small)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (small)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph --><p>' . esc_html__( 'Receive every post in your inbox.', 'geologist' ) . '</p><!-- /wp:paragraph -->
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Header with Rounded Site Logo and Title', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"90px"}}},"className":"site-header","layout":{"type":"flex"}} -->
|
||||
<header class="wp-block-group site-header" style="padding-bottom:90px">
|
||||
<!-- wp:site-logo {"className":"is-style-rounded"} /-->
|
||||
<!-- wp:site-title /-->
|
||||
<!-- wp:navigation {"__unstableLocation":"primary","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /-->
|
||||
</header>
|
||||
<!-- /wp:group -->',
|
||||
);
|
28
geologist-blue/inc/patterns/image-feature.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Image feature', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:image {"align":"wide","sizeSlug":"large"} -->
|
||||
<figure class="wp-block-image alignwide size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/gem.jpeg" alt=""/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:columns {"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Geologist', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:paragraph -->
|
||||
<p>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
14
geologist-blue/inc/patterns/introduction.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Introduction', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->',
|
||||
);
|
15
geologist-blue/inc/patterns/quote.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Quote', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/pullquote' ),
|
||||
'content' => '<!-- wp:pullquote {"textColor":"background","className":"has-background-color has-primary-background-color has-text-color has-background"} -->
|
||||
<figure class="wp-block-pullquote has-background-color has-primary-background-color has-text-color has-background"><blockquote class="has-text-color has-background-color"><p>“' . esc_html__( 'Amazonite, Ametrine, Beryl, Dioptase, Howlite, Jade, and Ruby.', 'geologist' ) . '”</p><cite>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</cite></blockquote></figure>
|
||||
<!-- /wp:pullquote -->'
|
||||
);
|
23
geologist-blue/inc/patterns/two-featured-posts.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Two featured posts', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/query' ),
|
||||
'content' => '<!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":2}} -->
|
||||
<div class="wp-block-query"><!-- wp:post-template -->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
|
||||
<!-- wp:post-title {"isLink":true} /-->
|
||||
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- wp:post-date /-->
|
||||
<!-- /wp:post-template --></div>
|
||||
<!-- /wp:query -->',
|
||||
);
|
3267
geologist-blue/package-lock.json
generated
Normal file
20
geologist-blue/package.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "geologist",
|
||||
"version": "1.0.18",
|
||||
"description": "",
|
||||
"main": "style.css",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@wordpress/base-styles": "^3.4.0",
|
||||
"chokidar-cli": "^2.1.0",
|
||||
"node-sass": "^5.0.0",
|
||||
"node-sass-package-importer": "^5.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
|
||||
"build": "npm run build:scss",
|
||||
"build:scss": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js sass/theme.scss assets/theme.css --output-style expanded --indent-type tab --indent-width 1 --source-map true"
|
||||
},
|
||||
"author": "",
|
||||
"license": "GPLv2"
|
||||
}
|
39
geologist-blue/readme.txt
Normal file
|
@ -0,0 +1,39 @@
|
|||
=== Geologist ===
|
||||
Contributors: Automattic
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.7.2
|
||||
Requires PHP: 5.6.2
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
== Description ==
|
||||
|
||||
Geologist is a streamlined theme for modern bloggers. It consists of a simple single column of posts, paired with a sophisticated color palette and beautiful sans-serif typography.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.0 =
|
||||
* Initial release
|
||||
|
||||
== Copyright ==
|
||||
|
||||
Geologist WordPress Theme, (C) 2021 Automattic, Inc.
|
||||
Geologist 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.
|
||||
|
||||
Geologist uses the following resource created by Emil Hochdanz:
|
||||
|
||||
License: CC0
|
||||
Source:
|
||||
https://www.rawpixel.com/image/428201/free-illustration-image-crystal-rock-mineral
|
||||
|
||||
Used in block patterns.
|
BIN
geologist-blue/screenshot.png
Normal file
After Width: | Height: | Size: 115 KiB |
19
geologist-blue/style.css
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
Theme Name: Geologist - Blue
|
||||
Theme URI: https://github.com/Automattic/themes/tree/trunk/geologist
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: Geologist-blue is a streamlined theme for modern bloggers. It consists of a simple single column of posts, paired with a sophisticated color palette and beautiful sans-serif typography.
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.8
|
||||
Requires PHP: 5.7
|
||||
Version: 1.0.18
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Template: blockbase
|
||||
Text Domain: geologist-blue
|
||||
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, auto-loading-homepage
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
*/
|
378
geologist-blue/theme.json
Normal file
|
@ -0,0 +1,378 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/theme-v1.json",
|
||||
"version": 1,
|
||||
"customTemplates": [
|
||||
{
|
||||
"name": "blank",
|
||||
"title": "Blank",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "header-footer-only",
|
||||
"title": "Header and Footer Only",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "page-without-title",
|
||||
"title": "Page without title",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "primary",
|
||||
"color": "#F5F0E5",
|
||||
"name": "Primary"
|
||||
},
|
||||
{
|
||||
"slug": "secondary",
|
||||
"color": "#FFFFFF",
|
||||
"name": "Secondary"
|
||||
},
|
||||
{
|
||||
"slug": "background",
|
||||
"color": "#424CBF",
|
||||
"name": "Background"
|
||||
},
|
||||
{
|
||||
"slug": "tertiary",
|
||||
"color": "#383E89",
|
||||
"name": "Tertiary"
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"button": {
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)",
|
||||
"radius": "0",
|
||||
"width": "3px"
|
||||
},
|
||||
"color": {
|
||||
"background": "var(--wp--custom--color--foreground)",
|
||||
"text": "var(--wp--custom--color--background)"
|
||||
},
|
||||
"hover": {
|
||||
"color": {
|
||||
"text": "var(--wp--custom--color--foreground)",
|
||||
"background": "var(--wp--custom--color--background)"
|
||||
},
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"foreground": "var(--wp--preset--color--primary)",
|
||||
"background": "var(--wp--preset--color--background)",
|
||||
"primary": "var(--wp--preset--color--primary)",
|
||||
"secondary": "var(--wp--preset--color--secondary)",
|
||||
"tertiary": "var(--wp--preset--color--tertiary)"
|
||||
},
|
||||
"colorPalettes": [
|
||||
{
|
||||
"label": "White",
|
||||
"slug": "white",
|
||||
"colors": {
|
||||
"primary": "#000000",
|
||||
"secondary": "#000000",
|
||||
"tertiary": "#f1f1f1",
|
||||
"background": "#ffffff"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Black",
|
||||
"slug": "black",
|
||||
"colors": {
|
||||
"primary": "#ffffff",
|
||||
"secondary": "#ffffff",
|
||||
"tertiary": "#313131",
|
||||
"background": "#000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"form": {
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)",
|
||||
"style": "solid",
|
||||
"width": "2px"
|
||||
},
|
||||
"padding": "20px"
|
||||
},
|
||||
"fontSizes": {
|
||||
"tiny": "16px"
|
||||
},
|
||||
"body": {
|
||||
"typography": {
|
||||
"lineHeight": 1.7
|
||||
}
|
||||
},
|
||||
"heading": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "664px"
|
||||
},
|
||||
"line-height": {
|
||||
"body": 1.7
|
||||
},
|
||||
"gap": {
|
||||
"baseline": "10px",
|
||||
"horizontal": "min(30px, 5vw)",
|
||||
"vertical": "min(30px, 5vw)"
|
||||
},
|
||||
"paragraph": {
|
||||
"dropcap": {
|
||||
"margin": "0 .2em .2em 0",
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--huge)",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pullquote": {
|
||||
"citation": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": 400
|
||||
}
|
||||
}
|
||||
},
|
||||
"quote": {
|
||||
"citation": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "664px",
|
||||
"wideSize": "1128px"
|
||||
},
|
||||
"typography": {
|
||||
"customFontSize": true,
|
||||
"customLineHeight": true,
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "'IBM Plex Mono', 'Courier New', 'Courier', monospace",
|
||||
"fontSlug": "ibm-plex-mono",
|
||||
"slug": "body-font",
|
||||
"name": "Body (IBM Plex Mono)",
|
||||
"google": "family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"
|
||||
},
|
||||
{
|
||||
"fontFamily": "'IBM Plex Mono', 'Courier New', 'Courier', monospace",
|
||||
"fontSlug": "ibm-plex-mono",
|
||||
"slug": "heading-font",
|
||||
"name": "Headings (IBM Plex Mono)",
|
||||
"google": "family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"
|
||||
}
|
||||
],
|
||||
"fontSizes": [
|
||||
{
|
||||
"name": "Small",
|
||||
"size": "18px",
|
||||
"slug": "small"
|
||||
},
|
||||
{
|
||||
"name": "Normal",
|
||||
"size": "20px",
|
||||
"slug": "normal"
|
||||
},
|
||||
{
|
||||
"name": "Medium",
|
||||
"size": "22px",
|
||||
"slug": "medium"
|
||||
},
|
||||
{
|
||||
"name": "Large",
|
||||
"size": "min(max(28px, 5vw), 38px)",
|
||||
"slug": "large"
|
||||
},
|
||||
{
|
||||
"name": "Huge",
|
||||
"size": "min(max(36px, 5vw), 48px)",
|
||||
"slug": "huge"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"blocks": {
|
||||
"core/button": {
|
||||
"color": {
|
||||
"background": "var(--wp--custom--button--color--background)",
|
||||
"text": "var(--wp--custom--button--color--text)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--custom--button--typography--font-size)",
|
||||
"fontWeight": "var(--wp--custom--button--typography--font-weight)"
|
||||
}
|
||||
},
|
||||
"core/code": {
|
||||
"border": {
|
||||
"width": "0px"
|
||||
},
|
||||
"color": {
|
||||
"background": "var(--wp--custom--color--tertiary)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "400",
|
||||
"lineHeight": "1.6"
|
||||
}
|
||||
},
|
||||
"core/navigation-link": {
|
||||
"color": {
|
||||
"background": "transparent",
|
||||
"text": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
},
|
||||
"core/post-title": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(48px, 7vw), 64px)",
|
||||
"fontWeight": "normal",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
"core/quote": {
|
||||
"border": {
|
||||
"width": "0px"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"left": "calc( var(--wp--custom--gap--horizontal) * 3 )"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "25px",
|
||||
"fontWeight": "normal",
|
||||
"lineHeight": "40px"
|
||||
}
|
||||
},
|
||||
"core/pullquote": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"fontWeight": "500",
|
||||
"lineHeight": "1.4"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"bottom": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"left": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"right": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"top": "calc( var(--wp--custom--gap--horizontal) * 3 )"
|
||||
}
|
||||
},
|
||||
"border": {
|
||||
"width": "1px 0 0 0"
|
||||
}
|
||||
},
|
||||
"core/post-template": {
|
||||
"elements": {
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/query-pagination": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "500"
|
||||
}
|
||||
},
|
||||
"core/site-title": {
|
||||
"color": {
|
||||
"link": "var(--wp--custom--color--primary)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "700",
|
||||
"textTransform": "none",
|
||||
"fontStyle": "normal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(48px, 7vw), 80px)",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(36px, 6vw), 65px)",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h4": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"lineHeight": "1.4",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"lineHeight": "1.4",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h6": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--small)",
|
||||
"lineHeight": "1.4",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"link": {
|
||||
"color": {
|
||||
"text": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
}
|
43
geologist-blue/variation-readme.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
|
||||
### THIS THEME IS A GENERATED VARIATION THEME! DO NOT MODIFY THE CONTENTS.
|
||||
|
||||
In order to make changes to this theme change the details in the /varations folder that coorisponds to this theme.
|
||||
|
||||
Then re-run the `build-variations.mjs` script via the command `npm run build:variations` in the root of the /themes project.
|
||||
|
||||
### Variations
|
||||
|
||||
The first level of folders coorispond to the Blockbase theme that will be used as the SOURCE of the variation.
|
||||
|
||||
The second level of folders coorispond to the Blockbase theme that will be created as the variation.
|
||||
|
||||
For example:
|
||||
|
||||
/variations
|
||||
/geologist
|
||||
/geologist-banana
|
||||
|
||||
For a variation in that folder `/variations/geologist/geologist-banana`
|
||||
|
||||
* First the relevant portions of the theme `/geologist` will be copied to `/geologist-banana`.
|
||||
* Next the contents of `/variations/geologist/geologist-banana` will be copied to `/geologist-banana`
|
||||
* Lastly the theme.json files in `/geologist` and `/variations/geologist/geologist-banana` will be merged.
|
||||
|
||||
Any resource in the /variations folder will replace the resources in the source theme (with the exception of theme.json);
|
||||
|
||||
### Template Mods
|
||||
|
||||
A variation can have a `template-mods.json` file that lists strings in the templates to replace. The use-case this mechanism was build
|
||||
for was so that the variation theme could have a different header by defining that in one place. There are plenty of gaps in this
|
||||
implementation but should cover the basic use-cases we need.
|
||||
|
||||
The format for this file is:
|
||||
|
||||
```
|
||||
[
|
||||
{
|
||||
"from": "STRING TO REPLACE",
|
||||
"to": "STRING TO BE USED AS REPLACEMENT"
|
||||
}
|
||||
]
|
||||
```
|
BIN
geologist-cream/assets/images/gem.jpeg
Normal file
After Width: | Height: | Size: 407 KiB |
251
geologist-cream/assets/theme.css
Normal file
|
@ -0,0 +1,251 @@
|
|||
@charset "UTF-8";
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:hover, .wp-block-file .wp-block-file__button:focus, .wp-block-file .wp-block-file__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:hover, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:focus, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button.has-focus,
|
||||
.wp-block-search .wp-block-search__button:hover,
|
||||
.wp-block-search .wp-block-search__button:focus,
|
||||
.wp-block-search .wp-block-search__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
color: var(--wp--custom--button--color--background);
|
||||
background-color: var(--wp--custom--button--color--text);
|
||||
}
|
||||
|
||||
ul ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
@media (max-width: 599px) {
|
||||
.wp-block-media-text:not(.has-background) .wp-block-media-text__content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-post-comments form input:not([type=submit]):not([type=checkbox]),
|
||||
.wp-block-post-comments form textarea {
|
||||
font-size: var(--wp--preset--font-size--normal);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a,
|
||||
.wp-block-post-comments .comment-edit-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a:hover,
|
||||
.wp-block-post-comments .comment-edit-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-post-navigation-link {
|
||||
border-top: 1px solid;
|
||||
display: flex;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.post-navigation-link-next {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.post-navigation-link-next a {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.post-navigation-link-previous a {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column,
|
||||
.next-prev-links .wp-block-column:not(:only-child) {
|
||||
flex-basis: 40% !important;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column:not(:first-child),
|
||||
.next-prev-links .wp-block-column:not(:only-child):not(:first-child) {
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
.wp-block-post-template .wp-block-post-excerpt__more-text,
|
||||
.wp-block-query .wp-block-post-excerpt__more-text {
|
||||
font-size: var(--wp--custom--font-sizes--tiny) !important;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination {
|
||||
border-top: 1px solid var(--wp--custom--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
|
||||
content: "←";
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
content: "→";
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before,
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .page-numbers {
|
||||
padding: 0 0.1em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large p {
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large cite {
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes th,
|
||||
.wp-block-table th {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tbody td,
|
||||
.wp-block-table tbody td {
|
||||
border-bottom-width: 0;
|
||||
border-top-width: 0;
|
||||
vertical-align: top;
|
||||
border-color: var(--wp--preset--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:first-child td,
|
||||
.wp-block-table tr:first-child td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:last-child td,
|
||||
.wp-block-table tr:last-child td {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
text-indent: -0.5ch;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
text-indent: 0.5ch;
|
||||
}
|
||||
|
||||
.has-primary-background-color {
|
||||
color: var(--wp--preset--color--background);
|
||||
}
|
||||
|
||||
.wp-block-post-content p a {
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-content p a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:not(.ab-item):not(.screen-reader-shortcut):active, a:not(.ab-item):not(.screen-reader-shortcut):focus {
|
||||
outline: 1px dotted currentColor;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="range"]:focus,
|
||||
input[type="date"]:focus,
|
||||
input[type="month"]:focus,
|
||||
input[type="week"]:focus,
|
||||
input[type="time"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="datetime"]:focus,
|
||||
input[type="datetime-local"]:focus,
|
||||
input[type="color"]:focus,
|
||||
textarea:focus {
|
||||
outline: 1px dotted currentColor;
|
||||
}
|
||||
|
||||
.wp-block-post-featured-image {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Add some extra space if there's no post title present. */
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-featured-image,
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-excerpt {
|
||||
margin-top: calc(2 * var( --wp--style--block-gap ));
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=theme.css.map */
|
9
geologist-cream/block-template-parts/footer.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!-- wp:group {"className":"site-footer","style":{"spacing":{"padding":{"top":"150px","bottom":"150px"}}}} -->
|
||||
<div class="wp-block-group site-footer" style="padding-top:150px;padding-bottom: 150px">
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
</div>
|
||||
<!-- /wp:group -->
|
3
geologist-cream/block-template-parts/header-spacer.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
27
geologist-cream/block-templates/archive.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"bottom":"160px"}}}} /-->
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons","layout":{"inherit":true}} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
26
geologist-cream/block-templates/index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
13
geologist-cream/block-templates/page-without-title.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
20
geologist-cream/block-templates/page.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group"><!-- wp:post-comments /--></div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
18
geologist-cream/block-templates/search.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}, "tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
|
||||
<!-- wp:post-template -->
|
||||
|
||||
<!-- wp:post-title {"level":5,"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- /wp:post-template -->
|
||||
<!-- /wp:query -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
47
geologist-cream/block-templates/single.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true},"style":{"spacing":{"padding":{"top":"30px","right":"20px","bottom":"0px","left":"20px"}}}} -->
|
||||
<div class="wp-block-group" style="padding-top:30px;padding-right:20px;padding-bottom:0px;padding-left:20px">
|
||||
<!-- wp:columns {"align":"wide","className":"next-prev-links"} -->
|
||||
<div class="wp-block-columns alignwide next-prev-links">
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"type":"previous","label":"←","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"textAlign":"right","label":"→","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
<!-- wp:post-comments /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
6
geologist-cream/functions.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Block Patterns.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-patterns.php';
|
44
geologist-cream/inc/block-patterns.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Geologist Theme: Block Patterns
|
||||
*
|
||||
* @package Geologist
|
||||
* @since 1.0.0
|
||||
*/
|
||||
if ( ! function_exists( 'geologist_register_block_patterns' ) ) :
|
||||
|
||||
function geologist_register_block_patterns() {
|
||||
|
||||
if ( function_exists( 'register_block_pattern_category' ) ) {
|
||||
register_block_pattern_category(
|
||||
'geologist',
|
||||
array( 'label' => __( 'Geologist', 'geologist' ) )
|
||||
);
|
||||
}
|
||||
|
||||
if ( function_exists( 'register_block_pattern' ) ) {
|
||||
$block_patterns = array(
|
||||
'authors',
|
||||
'header-with-rounded-site-logo',
|
||||
'image-feature',
|
||||
'introduction',
|
||||
'quote',
|
||||
'two-featured-posts',
|
||||
);
|
||||
|
||||
if ( class_exists( 'WP_Block_Type_Registry' ) && \WP_Block_Type_Registry::get_instance()->is_registered( 'jetpack/subscriptions' ) ) {
|
||||
$block_patterns[] = 'email-updates-large';
|
||||
$block_patterns[] = 'email-updates-small';
|
||||
}
|
||||
|
||||
foreach ( $block_patterns as $block_pattern ) {
|
||||
register_block_pattern(
|
||||
'geologist/' . $block_pattern,
|
||||
require __DIR__ . '/patterns/' . $block_pattern . '.php'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'init', 'geologist_register_block_patterns', 9 );
|
48
geologist-cream/inc/patterns/authors.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Authors', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'About the Authors:', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Sarah is a geologist at Anthem State University. Her love for all things underground was sparked in Kindergarten when she unearthed a toy that someone left buried in the sandbox.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"wordpress.com","service":"wordpress"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"instagram.com","service":"instagram"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Angelo Ortiz', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Angelo is an independent researcher and hobbyist. His collection of gemstones rivals that of some museums. Angelo is always on the lookout for a new discovery, and carries his toolkit everywhere.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"instagram.com","service":"instagram"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"twitter.com","service":"twitter"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
18
geologist-cream/inc/patterns/email-updates-large.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Large)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (Large)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Our newsletter rocks! Sign up here to receive every post in your inbox.', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
15
geologist-cream/inc/patterns/email-updates-small.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Small)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (small)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph --><p>' . esc_html__( 'Receive every post in your inbox.', 'geologist' ) . '</p><!-- /wp:paragraph -->
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Header with Rounded Site Logo and Title', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"90px"}}},"className":"site-header","layout":{"type":"flex"}} -->
|
||||
<header class="wp-block-group site-header" style="padding-bottom:90px">
|
||||
<!-- wp:site-logo {"className":"is-style-rounded"} /-->
|
||||
<!-- wp:site-title /-->
|
||||
<!-- wp:navigation {"__unstableLocation":"primary","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /-->
|
||||
</header>
|
||||
<!-- /wp:group -->',
|
||||
);
|
28
geologist-cream/inc/patterns/image-feature.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Image feature', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:image {"align":"wide","sizeSlug":"large"} -->
|
||||
<figure class="wp-block-image alignwide size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/gem.jpeg" alt=""/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:columns {"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Geologist', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:paragraph -->
|
||||
<p>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
14
geologist-cream/inc/patterns/introduction.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Introduction', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->',
|
||||
);
|
15
geologist-cream/inc/patterns/quote.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Quote', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/pullquote' ),
|
||||
'content' => '<!-- wp:pullquote {"textColor":"background","className":"has-background-color has-primary-background-color has-text-color has-background"} -->
|
||||
<figure class="wp-block-pullquote has-background-color has-primary-background-color has-text-color has-background"><blockquote class="has-text-color has-background-color"><p>“' . esc_html__( 'Amazonite, Ametrine, Beryl, Dioptase, Howlite, Jade, and Ruby.', 'geologist' ) . '”</p><cite>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</cite></blockquote></figure>
|
||||
<!-- /wp:pullquote -->'
|
||||
);
|
23
geologist-cream/inc/patterns/two-featured-posts.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Two featured posts', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/query' ),
|
||||
'content' => '<!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":2}} -->
|
||||
<div class="wp-block-query"><!-- wp:post-template -->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
|
||||
<!-- wp:post-title {"isLink":true} /-->
|
||||
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- wp:post-date /-->
|
||||
<!-- /wp:post-template --></div>
|
||||
<!-- /wp:query -->',
|
||||
);
|
3267
geologist-cream/package-lock.json
generated
Normal file
20
geologist-cream/package.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "geologist",
|
||||
"version": "1.0.18",
|
||||
"description": "",
|
||||
"main": "style.css",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@wordpress/base-styles": "^3.4.0",
|
||||
"chokidar-cli": "^2.1.0",
|
||||
"node-sass": "^5.0.0",
|
||||
"node-sass-package-importer": "^5.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
|
||||
"build": "npm run build:scss",
|
||||
"build:scss": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js sass/theme.scss assets/theme.css --output-style expanded --indent-type tab --indent-width 1 --source-map true"
|
||||
},
|
||||
"author": "",
|
||||
"license": "GPLv2"
|
||||
}
|
39
geologist-cream/readme.txt
Normal file
|
@ -0,0 +1,39 @@
|
|||
=== Geologist ===
|
||||
Contributors: Automattic
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.7.2
|
||||
Requires PHP: 5.6.2
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
== Description ==
|
||||
|
||||
Geologist is a streamlined theme for modern bloggers. It consists of a simple single column of posts, paired with a sophisticated color palette and beautiful sans-serif typography.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.0 =
|
||||
* Initial release
|
||||
|
||||
== Copyright ==
|
||||
|
||||
Geologist WordPress Theme, (C) 2021 Automattic, Inc.
|
||||
Geologist 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.
|
||||
|
||||
Geologist uses the following resource created by Emil Hochdanz:
|
||||
|
||||
License: CC0
|
||||
Source:
|
||||
https://www.rawpixel.com/image/428201/free-illustration-image-crystal-rock-mineral
|
||||
|
||||
Used in block patterns.
|
BIN
geologist-cream/screenshot.png
Normal file
After Width: | Height: | Size: 121 KiB |
19
geologist-cream/style.css
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
Theme Name: Geologist - Cream
|
||||
Theme URI: https://github.com/Automattic/themes/tree/trunk/geologist
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: Geologist-cream is a streamlined theme for modern bloggers. It consists of a simple single column of posts, paired with a sophisticated color palette and beautiful sans-serif typography.
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.8
|
||||
Requires PHP: 5.7
|
||||
Version: 1.0.18
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Template: blockbase
|
||||
Text Domain: geologist-cream
|
||||
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, auto-loading-homepage
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
*/
|
378
geologist-cream/theme.json
Normal file
|
@ -0,0 +1,378 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/theme-v1.json",
|
||||
"version": 1,
|
||||
"customTemplates": [
|
||||
{
|
||||
"name": "blank",
|
||||
"title": "Blank",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "header-footer-only",
|
||||
"title": "Header and Footer Only",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "page-without-title",
|
||||
"title": "Page without title",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "primary",
|
||||
"color": "#000000",
|
||||
"name": "Primary"
|
||||
},
|
||||
{
|
||||
"slug": "secondary",
|
||||
"color": "#333333",
|
||||
"name": "Secondary"
|
||||
},
|
||||
{
|
||||
"slug": "background",
|
||||
"color": "#FFFAED",
|
||||
"name": "Background"
|
||||
},
|
||||
{
|
||||
"slug": "tertiary",
|
||||
"color": "#FFFFFF",
|
||||
"name": "Tertiary"
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"button": {
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)",
|
||||
"radius": "0",
|
||||
"width": "3px"
|
||||
},
|
||||
"color": {
|
||||
"background": "var(--wp--custom--color--foreground)",
|
||||
"text": "var(--wp--custom--color--background)"
|
||||
},
|
||||
"hover": {
|
||||
"color": {
|
||||
"text": "var(--wp--custom--color--foreground)",
|
||||
"background": "var(--wp--custom--color--background)"
|
||||
},
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"foreground": "var(--wp--preset--color--primary)",
|
||||
"background": "var(--wp--preset--color--background)",
|
||||
"primary": "var(--wp--preset--color--primary)",
|
||||
"secondary": "var(--wp--preset--color--secondary)",
|
||||
"tertiary": "var(--wp--preset--color--tertiary)"
|
||||
},
|
||||
"colorPalettes": [
|
||||
{
|
||||
"label": "White",
|
||||
"slug": "white",
|
||||
"colors": {
|
||||
"primary": "#000000",
|
||||
"secondary": "#000000",
|
||||
"tertiary": "#f1f1f1",
|
||||
"background": "#ffffff"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Black",
|
||||
"slug": "black",
|
||||
"colors": {
|
||||
"primary": "#ffffff",
|
||||
"secondary": "#ffffff",
|
||||
"tertiary": "#313131",
|
||||
"background": "#000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"form": {
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)",
|
||||
"style": "solid",
|
||||
"width": "2px"
|
||||
},
|
||||
"padding": "20px"
|
||||
},
|
||||
"fontSizes": {
|
||||
"tiny": "16px"
|
||||
},
|
||||
"body": {
|
||||
"typography": {
|
||||
"lineHeight": 1.7
|
||||
}
|
||||
},
|
||||
"heading": {
|
||||
"typography": {
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "664px"
|
||||
},
|
||||
"line-height": {
|
||||
"body": 1.7
|
||||
},
|
||||
"gap": {
|
||||
"baseline": "10px",
|
||||
"horizontal": "min(30px, 5vw)",
|
||||
"vertical": "min(30px, 5vw)"
|
||||
},
|
||||
"paragraph": {
|
||||
"dropcap": {
|
||||
"margin": "0 .2em .2em 0",
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--huge)",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pullquote": {
|
||||
"citation": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": 400
|
||||
}
|
||||
}
|
||||
},
|
||||
"quote": {
|
||||
"citation": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "664px",
|
||||
"wideSize": "1128px"
|
||||
},
|
||||
"typography": {
|
||||
"customFontSize": true,
|
||||
"customLineHeight": true,
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "'Source Serif Pro', serif",
|
||||
"fontSlug": "source-serif-pro",
|
||||
"slug": "body-font",
|
||||
"name": "Body (Source Serif Pro)",
|
||||
"google": "family=Source+Serif+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900"
|
||||
},
|
||||
{
|
||||
"fontFamily": "'Source Serif Pro', serif",
|
||||
"fontSlug": "source-serif-pro",
|
||||
"slug": "heading-font",
|
||||
"name": "Headings (Source Serif Pro)",
|
||||
"google": "family=Source+Serif+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900"
|
||||
}
|
||||
],
|
||||
"fontSizes": [
|
||||
{
|
||||
"name": "Small",
|
||||
"size": "18px",
|
||||
"slug": "small"
|
||||
},
|
||||
{
|
||||
"name": "Normal",
|
||||
"size": "20px",
|
||||
"slug": "normal"
|
||||
},
|
||||
{
|
||||
"name": "Medium",
|
||||
"size": "22px",
|
||||
"slug": "medium"
|
||||
},
|
||||
{
|
||||
"name": "Large",
|
||||
"size": "min(max(28px, 5vw), 38px)",
|
||||
"slug": "large"
|
||||
},
|
||||
{
|
||||
"name": "Huge",
|
||||
"size": "min(max(36px, 5vw), 48px)",
|
||||
"slug": "huge"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"blocks": {
|
||||
"core/button": {
|
||||
"color": {
|
||||
"background": "var(--wp--custom--button--color--background)",
|
||||
"text": "var(--wp--custom--button--color--text)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--custom--button--typography--font-size)",
|
||||
"fontWeight": "var(--wp--custom--button--typography--font-weight)"
|
||||
}
|
||||
},
|
||||
"core/code": {
|
||||
"border": {
|
||||
"width": "0px"
|
||||
},
|
||||
"color": {
|
||||
"background": "var(--wp--custom--color--tertiary)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "400",
|
||||
"lineHeight": "1.6"
|
||||
}
|
||||
},
|
||||
"core/navigation-link": {
|
||||
"color": {
|
||||
"background": "transparent",
|
||||
"text": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
},
|
||||
"core/post-title": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(48px, 7vw), 64px)",
|
||||
"fontWeight": "normal",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
"core/quote": {
|
||||
"border": {
|
||||
"width": "0px"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"left": "calc( var(--wp--custom--gap--horizontal) * 3 )"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "25px",
|
||||
"fontWeight": "normal",
|
||||
"lineHeight": "40px"
|
||||
}
|
||||
},
|
||||
"core/pullquote": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"fontWeight": "500",
|
||||
"lineHeight": "1.4"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"bottom": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"left": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"right": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"top": "calc( var(--wp--custom--gap--horizontal) * 3 )"
|
||||
}
|
||||
},
|
||||
"border": {
|
||||
"width": "1px 0 0 0"
|
||||
}
|
||||
},
|
||||
"core/post-template": {
|
||||
"elements": {
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/query-pagination": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "500"
|
||||
}
|
||||
},
|
||||
"core/site-title": {
|
||||
"color": {
|
||||
"link": "var(--wp--custom--color--primary)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "700",
|
||||
"textTransform": "none",
|
||||
"fontStyle": "normal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(48px, 7vw), 80px)",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(36px, 6vw), 65px)",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"lineHeight": "1.2",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h4": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"lineHeight": "1.4",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"lineHeight": "1.4",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"h6": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--small)",
|
||||
"lineHeight": "1.4",
|
||||
"fontStyle": "italic",
|
||||
"fontWeight": "normal"
|
||||
}
|
||||
},
|
||||
"link": {
|
||||
"color": {
|
||||
"text": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
}
|
43
geologist-cream/variation-readme.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
|
||||
### THIS THEME IS A GENERATED VARIATION THEME! DO NOT MODIFY THE CONTENTS.
|
||||
|
||||
In order to make changes to this theme change the details in the /varations folder that coorisponds to this theme.
|
||||
|
||||
Then re-run the `build-variations.mjs` script via the command `npm run build:variations` in the root of the /themes project.
|
||||
|
||||
### Variations
|
||||
|
||||
The first level of folders coorispond to the Blockbase theme that will be used as the SOURCE of the variation.
|
||||
|
||||
The second level of folders coorispond to the Blockbase theme that will be created as the variation.
|
||||
|
||||
For example:
|
||||
|
||||
/variations
|
||||
/geologist
|
||||
/geologist-banana
|
||||
|
||||
For a variation in that folder `/variations/geologist/geologist-banana`
|
||||
|
||||
* First the relevant portions of the theme `/geologist` will be copied to `/geologist-banana`.
|
||||
* Next the contents of `/variations/geologist/geologist-banana` will be copied to `/geologist-banana`
|
||||
* Lastly the theme.json files in `/geologist` and `/variations/geologist/geologist-banana` will be merged.
|
||||
|
||||
Any resource in the /variations folder will replace the resources in the source theme (with the exception of theme.json);
|
||||
|
||||
### Template Mods
|
||||
|
||||
A variation can have a `template-mods.json` file that lists strings in the templates to replace. The use-case this mechanism was build
|
||||
for was so that the variation theme could have a different header by defining that in one place. There are plenty of gaps in this
|
||||
implementation but should cover the basic use-cases we need.
|
||||
|
||||
The format for this file is:
|
||||
|
||||
```
|
||||
[
|
||||
{
|
||||
"from": "STRING TO REPLACE",
|
||||
"to": "STRING TO BE USED AS REPLACEMENT"
|
||||
}
|
||||
]
|
||||
```
|
BIN
geologist-slate/assets/images/gem.jpeg
Normal file
After Width: | Height: | Size: 407 KiB |
251
geologist-slate/assets/theme.css
Normal file
|
@ -0,0 +1,251 @@
|
|||
@charset "UTF-8";
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:hover, .wp-block-file .wp-block-file__button:focus, .wp-block-file .wp-block-file__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:hover, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:focus, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button.has-focus,
|
||||
.wp-block-search .wp-block-search__button:hover,
|
||||
.wp-block-search .wp-block-search__button:focus,
|
||||
.wp-block-search .wp-block-search__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
color: var(--wp--custom--button--color--background);
|
||||
background-color: var(--wp--custom--button--color--text);
|
||||
}
|
||||
|
||||
ul ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
@media (max-width: 599px) {
|
||||
.wp-block-media-text:not(.has-background) .wp-block-media-text__content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-post-comments form input:not([type=submit]):not([type=checkbox]),
|
||||
.wp-block-post-comments form textarea {
|
||||
font-size: var(--wp--preset--font-size--normal);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a,
|
||||
.wp-block-post-comments .comment-edit-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a:hover,
|
||||
.wp-block-post-comments .comment-edit-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-post-navigation-link {
|
||||
border-top: 1px solid;
|
||||
display: flex;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.post-navigation-link-next {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.post-navigation-link-next a {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.post-navigation-link-previous a {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column,
|
||||
.next-prev-links .wp-block-column:not(:only-child) {
|
||||
flex-basis: 40% !important;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column:not(:first-child),
|
||||
.next-prev-links .wp-block-column:not(:only-child):not(:first-child) {
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
.wp-block-post-template .wp-block-post-excerpt__more-text,
|
||||
.wp-block-query .wp-block-post-excerpt__more-text {
|
||||
font-size: var(--wp--custom--font-sizes--tiny) !important;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination {
|
||||
border-top: 1px solid var(--wp--custom--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
|
||||
content: "←";
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
content: "→";
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before,
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .page-numbers {
|
||||
padding: 0 0.1em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large p {
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large cite {
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes th,
|
||||
.wp-block-table th {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tbody td,
|
||||
.wp-block-table tbody td {
|
||||
border-bottom-width: 0;
|
||||
border-top-width: 0;
|
||||
vertical-align: top;
|
||||
border-color: var(--wp--preset--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:first-child td,
|
||||
.wp-block-table tr:first-child td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:last-child td,
|
||||
.wp-block-table tr:last-child td {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
text-indent: -0.5ch;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
text-indent: 0.5ch;
|
||||
}
|
||||
|
||||
.has-primary-background-color {
|
||||
color: var(--wp--preset--color--background);
|
||||
}
|
||||
|
||||
.wp-block-post-content p a {
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-content p a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:not(.ab-item):not(.screen-reader-shortcut):active, a:not(.ab-item):not(.screen-reader-shortcut):focus {
|
||||
outline: 1px dotted currentColor;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="range"]:focus,
|
||||
input[type="date"]:focus,
|
||||
input[type="month"]:focus,
|
||||
input[type="week"]:focus,
|
||||
input[type="time"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="datetime"]:focus,
|
||||
input[type="datetime-local"]:focus,
|
||||
input[type="color"]:focus,
|
||||
textarea:focus {
|
||||
outline: 1px dotted currentColor;
|
||||
}
|
||||
|
||||
.wp-block-post-featured-image {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Add some extra space if there's no post title present. */
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-featured-image,
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-excerpt {
|
||||
margin-top: calc(2 * var( --wp--style--block-gap ));
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=theme.css.map */
|
9
geologist-slate/block-template-parts/footer.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!-- wp:group {"className":"site-footer","style":{"spacing":{"padding":{"top":"150px","bottom":"150px"}}}} -->
|
||||
<div class="wp-block-group site-footer" style="padding-top:150px;padding-bottom: 150px">
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
</div>
|
||||
<!-- /wp:group -->
|
3
geologist-slate/block-template-parts/header-spacer.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
27
geologist-slate/block-templates/archive.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"bottom":"160px"}}}} /-->
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons","layout":{"inherit":true}} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
26
geologist-slate/block-templates/index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
13
geologist-slate/block-templates/page-without-title.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
20
geologist-slate/block-templates/page.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group"><!-- wp:post-comments /--></div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
18
geologist-slate/block-templates/search.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}, "tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
|
||||
<!-- wp:post-template -->
|
||||
|
||||
<!-- wp:post-title {"level":5,"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- /wp:post-template -->
|
||||
<!-- /wp:query -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
47
geologist-slate/block-templates/single.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true},"style":{"spacing":{"padding":{"top":"30px","right":"20px","bottom":"0px","left":"20px"}}}} -->
|
||||
<div class="wp-block-group" style="padding-top:30px;padding-right:20px;padding-bottom:0px;padding-left:20px">
|
||||
<!-- wp:columns {"align":"wide","className":"next-prev-links"} -->
|
||||
<div class="wp-block-columns alignwide next-prev-links">
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"type":"previous","label":"←","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"textAlign":"right","label":"→","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
<!-- wp:post-comments /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
6
geologist-slate/functions.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Block Patterns.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-patterns.php';
|
44
geologist-slate/inc/block-patterns.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Geologist Theme: Block Patterns
|
||||
*
|
||||
* @package Geologist
|
||||
* @since 1.0.0
|
||||
*/
|
||||
if ( ! function_exists( 'geologist_register_block_patterns' ) ) :
|
||||
|
||||
function geologist_register_block_patterns() {
|
||||
|
||||
if ( function_exists( 'register_block_pattern_category' ) ) {
|
||||
register_block_pattern_category(
|
||||
'geologist',
|
||||
array( 'label' => __( 'Geologist', 'geologist' ) )
|
||||
);
|
||||
}
|
||||
|
||||
if ( function_exists( 'register_block_pattern' ) ) {
|
||||
$block_patterns = array(
|
||||
'authors',
|
||||
'header-with-rounded-site-logo',
|
||||
'image-feature',
|
||||
'introduction',
|
||||
'quote',
|
||||
'two-featured-posts',
|
||||
);
|
||||
|
||||
if ( class_exists( 'WP_Block_Type_Registry' ) && \WP_Block_Type_Registry::get_instance()->is_registered( 'jetpack/subscriptions' ) ) {
|
||||
$block_patterns[] = 'email-updates-large';
|
||||
$block_patterns[] = 'email-updates-small';
|
||||
}
|
||||
|
||||
foreach ( $block_patterns as $block_pattern ) {
|
||||
register_block_pattern(
|
||||
'geologist/' . $block_pattern,
|
||||
require __DIR__ . '/patterns/' . $block_pattern . '.php'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'init', 'geologist_register_block_patterns', 9 );
|
48
geologist-slate/inc/patterns/authors.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Authors', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'About the Authors:', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Sarah is a geologist at Anthem State University. Her love for all things underground was sparked in Kindergarten when she unearthed a toy that someone left buried in the sandbox.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"wordpress.com","service":"wordpress"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"instagram.com","service":"instagram"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Angelo Ortiz', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Angelo is an independent researcher and hobbyist. His collection of gemstones rivals that of some museums. Angelo is always on the lookout for a new discovery, and carries his toolkit everywhere.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"instagram.com","service":"instagram"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"twitter.com","service":"twitter"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
18
geologist-slate/inc/patterns/email-updates-large.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Large)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (Large)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Our newsletter rocks! Sign up here to receive every post in your inbox.', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
15
geologist-slate/inc/patterns/email-updates-small.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Small)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (small)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph --><p>' . esc_html__( 'Receive every post in your inbox.', 'geologist' ) . '</p><!-- /wp:paragraph -->
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Header with Rounded Site Logo and Title', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"90px"}}},"className":"site-header","layout":{"type":"flex"}} -->
|
||||
<header class="wp-block-group site-header" style="padding-bottom:90px">
|
||||
<!-- wp:site-logo {"className":"is-style-rounded"} /-->
|
||||
<!-- wp:site-title /-->
|
||||
<!-- wp:navigation {"__unstableLocation":"primary","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /-->
|
||||
</header>
|
||||
<!-- /wp:group -->',
|
||||
);
|
28
geologist-slate/inc/patterns/image-feature.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Image feature', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:image {"align":"wide","sizeSlug":"large"} -->
|
||||
<figure class="wp-block-image alignwide size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/gem.jpeg" alt=""/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:columns {"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Geologist', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:paragraph -->
|
||||
<p>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
14
geologist-slate/inc/patterns/introduction.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Introduction', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->',
|
||||
);
|
15
geologist-slate/inc/patterns/quote.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Quote', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/pullquote' ),
|
||||
'content' => '<!-- wp:pullquote {"textColor":"background","className":"has-background-color has-primary-background-color has-text-color has-background"} -->
|
||||
<figure class="wp-block-pullquote has-background-color has-primary-background-color has-text-color has-background"><blockquote class="has-text-color has-background-color"><p>“' . esc_html__( 'Amazonite, Ametrine, Beryl, Dioptase, Howlite, Jade, and Ruby.', 'geologist' ) . '”</p><cite>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</cite></blockquote></figure>
|
||||
<!-- /wp:pullquote -->'
|
||||
);
|
23
geologist-slate/inc/patterns/two-featured-posts.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Two featured posts', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/query' ),
|
||||
'content' => '<!-- wp:query {"query":{"perPage":2,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":2}} -->
|
||||
<div class="wp-block-query"><!-- wp:post-template -->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
|
||||
<!-- wp:post-title {"isLink":true} /-->
|
||||
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- wp:post-date /-->
|
||||
<!-- /wp:post-template --></div>
|
||||
<!-- /wp:query -->',
|
||||
);
|
3267
geologist-slate/package-lock.json
generated
Normal file
20
geologist-slate/package.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "geologist",
|
||||
"version": "1.0.18",
|
||||
"description": "",
|
||||
"main": "style.css",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@wordpress/base-styles": "^3.4.0",
|
||||
"chokidar-cli": "^2.1.0",
|
||||
"node-sass": "^5.0.0",
|
||||
"node-sass-package-importer": "^5.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
|
||||
"build": "npm run build:scss",
|
||||
"build:scss": "node-sass --importer node_modules/node-sass-package-importer/dist/cli.js sass/theme.scss assets/theme.css --output-style expanded --indent-type tab --indent-width 1 --source-map true"
|
||||
},
|
||||
"author": "",
|
||||
"license": "GPLv2"
|
||||
}
|
39
geologist-slate/readme.txt
Normal file
|
@ -0,0 +1,39 @@
|
|||
=== Geologist ===
|
||||
Contributors: Automattic
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.7.2
|
||||
Requires PHP: 5.6.2
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
== Description ==
|
||||
|
||||
Geologist is a streamlined theme for modern bloggers. It consists of a simple single column of posts, paired with a sophisticated color palette and beautiful sans-serif typography.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.0 =
|
||||
* Initial release
|
||||
|
||||
== Copyright ==
|
||||
|
||||
Geologist WordPress Theme, (C) 2021 Automattic, Inc.
|
||||
Geologist 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.
|
||||
|
||||
Geologist uses the following resource created by Emil Hochdanz:
|
||||
|
||||
License: CC0
|
||||
Source:
|
||||
https://www.rawpixel.com/image/428201/free-illustration-image-crystal-rock-mineral
|
||||
|
||||
Used in block patterns.
|
BIN
geologist-slate/screenshot.png
Normal file
After Width: | Height: | Size: 114 KiB |
19
geologist-slate/style.css
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
Theme Name: Geologist - Slate
|
||||
Theme URI: https://github.com/Automattic/themes/tree/trunk/geologist
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: Geologist-slate is a streamlined theme for modern bloggers. It consists of a simple single column of posts, paired with a sophisticated color palette and beautiful sans-serif typography.
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.8
|
||||
Requires PHP: 5.7
|
||||
Version: 1.0.18
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Template: blockbase
|
||||
Text Domain: geologist-slate
|
||||
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks, auto-loading-homepage
|
||||
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
*/
|
364
geologist-slate/theme.json
Normal file
|
@ -0,0 +1,364 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/theme-v1.json",
|
||||
"version": 1,
|
||||
"customTemplates": [
|
||||
{
|
||||
"name": "blank",
|
||||
"title": "Blank",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "header-footer-only",
|
||||
"title": "Header and Footer Only",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "page-without-title",
|
||||
"title": "Page without title",
|
||||
"postTypes": [
|
||||
"page",
|
||||
"post"
|
||||
]
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"color": {
|
||||
"palette": [
|
||||
{
|
||||
"slug": "primary",
|
||||
"color": "#FFFFFF",
|
||||
"name": "Primary"
|
||||
},
|
||||
{
|
||||
"slug": "secondary",
|
||||
"color": "#FEF6B2",
|
||||
"name": "Secondary"
|
||||
},
|
||||
{
|
||||
"slug": "background",
|
||||
"color": "#192833",
|
||||
"name": "Background"
|
||||
},
|
||||
{
|
||||
"slug": "tertiary",
|
||||
"color": "#000000",
|
||||
"name": "Tertiary"
|
||||
}
|
||||
]
|
||||
},
|
||||
"custom": {
|
||||
"button": {
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)",
|
||||
"radius": "0",
|
||||
"width": "3px"
|
||||
},
|
||||
"color": {
|
||||
"background": "var(--wp--custom--color--foreground)",
|
||||
"text": "var(--wp--custom--color--background)"
|
||||
},
|
||||
"hover": {
|
||||
"color": {
|
||||
"text": "var(--wp--custom--color--foreground)",
|
||||
"background": "var(--wp--custom--color--background)"
|
||||
},
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "700"
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"foreground": "var(--wp--preset--color--primary)",
|
||||
"background": "var(--wp--preset--color--background)",
|
||||
"primary": "var(--wp--preset--color--primary)",
|
||||
"secondary": "var(--wp--preset--color--secondary)",
|
||||
"tertiary": "var(--wp--preset--color--tertiary)"
|
||||
},
|
||||
"colorPalettes": [
|
||||
{
|
||||
"label": "White",
|
||||
"slug": "white",
|
||||
"colors": {
|
||||
"primary": "#000000",
|
||||
"secondary": "#000000",
|
||||
"tertiary": "#f1f1f1",
|
||||
"background": "#ffffff"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Black",
|
||||
"slug": "black",
|
||||
"colors": {
|
||||
"primary": "#ffffff",
|
||||
"secondary": "#ffffff",
|
||||
"tertiary": "#313131",
|
||||
"background": "#000000"
|
||||
}
|
||||
}
|
||||
],
|
||||
"form": {
|
||||
"border": {
|
||||
"color": "var(--wp--custom--color--foreground)",
|
||||
"style": "solid",
|
||||
"width": "2px"
|
||||
},
|
||||
"padding": "20px"
|
||||
},
|
||||
"fontSizes": {
|
||||
"tiny": "16px"
|
||||
},
|
||||
"body": {
|
||||
"typography": {
|
||||
"lineHeight": 1.7
|
||||
}
|
||||
},
|
||||
"heading": {
|
||||
"typography": {
|
||||
"fontWeight": "300"
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "664px"
|
||||
},
|
||||
"line-height": {
|
||||
"body": 1.7
|
||||
},
|
||||
"gap": {
|
||||
"baseline": "10px",
|
||||
"horizontal": "min(30px, 5vw)",
|
||||
"vertical": "min(30px, 5vw)"
|
||||
},
|
||||
"paragraph": {
|
||||
"dropcap": {
|
||||
"margin": "0 .2em .2em 0",
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--huge)",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pullquote": {
|
||||
"citation": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": 400
|
||||
}
|
||||
}
|
||||
},
|
||||
"quote": {
|
||||
"citation": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"contentSize": "664px",
|
||||
"wideSize": "1128px"
|
||||
},
|
||||
"typography": {
|
||||
"customFontSize": true,
|
||||
"customLineHeight": true,
|
||||
"fontFamilies": [
|
||||
{
|
||||
"fontFamily": "'Rubik', sans-serif",
|
||||
"fontSlug": "rubik",
|
||||
"slug": "body-font",
|
||||
"name": "Body (Rubik)",
|
||||
"google": "family=Rubik:ital,wght@0,300..900;1,300..900"
|
||||
},
|
||||
{
|
||||
"fontFamily": "'Rubik', sans-serif",
|
||||
"fontSlug": "rubik",
|
||||
"slug": "heading-font",
|
||||
"name": "Headings (Rubik)",
|
||||
"google": "family=Rubik:ital,wght@0,300..900;1,300..900"
|
||||
}
|
||||
],
|
||||
"fontSizes": [
|
||||
{
|
||||
"name": "Small",
|
||||
"size": "18px",
|
||||
"slug": "small"
|
||||
},
|
||||
{
|
||||
"name": "Normal",
|
||||
"size": "20px",
|
||||
"slug": "normal"
|
||||
},
|
||||
{
|
||||
"name": "Medium",
|
||||
"size": "22px",
|
||||
"slug": "medium"
|
||||
},
|
||||
{
|
||||
"name": "Large",
|
||||
"size": "min(max(28px, 5vw), 38px)",
|
||||
"slug": "large"
|
||||
},
|
||||
{
|
||||
"name": "Huge",
|
||||
"size": "min(max(36px, 5vw), 48px)",
|
||||
"slug": "huge"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"styles": {
|
||||
"blocks": {
|
||||
"core/button": {
|
||||
"color": {
|
||||
"background": "var(--wp--custom--button--color--background)",
|
||||
"text": "var(--wp--custom--button--color--text)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--custom--button--typography--font-size)",
|
||||
"fontWeight": "var(--wp--custom--button--typography--font-weight)"
|
||||
}
|
||||
},
|
||||
"core/code": {
|
||||
"border": {
|
||||
"width": "0px"
|
||||
},
|
||||
"color": {
|
||||
"background": "var(--wp--custom--color--tertiary)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "400",
|
||||
"lineHeight": "1.6"
|
||||
}
|
||||
},
|
||||
"core/navigation-link": {
|
||||
"color": {
|
||||
"background": "transparent",
|
||||
"text": "var(--wp--custom--color--foreground)"
|
||||
}
|
||||
},
|
||||
"core/post-title": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(48px, 7vw), 64px)",
|
||||
"fontWeight": "var(--wp--custom--heading--typography--font-weight)",
|
||||
"lineHeight": "1.2"
|
||||
}
|
||||
},
|
||||
"core/quote": {
|
||||
"border": {
|
||||
"width": "0px"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"left": "calc( var(--wp--custom--gap--horizontal) * 3 )"
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "25px",
|
||||
"fontWeight": "normal",
|
||||
"lineHeight": "40px"
|
||||
}
|
||||
},
|
||||
"core/pullquote": {
|
||||
"typography": {
|
||||
"fontStyle": "normal",
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"fontWeight": "500",
|
||||
"lineHeight": "1.4"
|
||||
},
|
||||
"spacing": {
|
||||
"padding": {
|
||||
"bottom": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"left": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"right": "calc( var(--wp--custom--gap--horizontal) * 3 )",
|
||||
"top": "calc( var(--wp--custom--gap--horizontal) * 3 )"
|
||||
}
|
||||
},
|
||||
"border": {
|
||||
"width": "1px 0 0 0"
|
||||
}
|
||||
},
|
||||
"core/post-template": {
|
||||
"elements": {
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"core/query-pagination": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "500"
|
||||
}
|
||||
},
|
||||
"core/site-title": {
|
||||
"color": {
|
||||
"link": "var(--wp--custom--color--primary)"
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"fontWeight": "normal",
|
||||
"textTransform": "uppercase"
|
||||
}
|
||||
}
|
||||
},
|
||||
"elements": {
|
||||
"h1": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(48px, 7vw), 80px)",
|
||||
"lineHeight": "1.2"
|
||||
}
|
||||
},
|
||||
"h2": {
|
||||
"typography": {
|
||||
"fontSize": "min(max(36px, 6vw), 65px)",
|
||||
"lineHeight": "1.2"
|
||||
}
|
||||
},
|
||||
"h3": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"lineHeight": "1.2"
|
||||
}
|
||||
},
|
||||
"h4": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--large)",
|
||||
"lineHeight": "1.4"
|
||||
}
|
||||
},
|
||||
"h5": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--normal)",
|
||||
"lineHeight": "1.4"
|
||||
}
|
||||
},
|
||||
"h6": {
|
||||
"typography": {
|
||||
"fontSize": "var(--wp--preset--font-size--small)",
|
||||
"lineHeight": "1.4"
|
||||
}
|
||||
},
|
||||
"link": {
|
||||
"color": {
|
||||
"text": "var(--wp--custom--color--secondary)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"fontWeight": "400"
|
||||
}
|
||||
}
|
||||
}
|
43
geologist-slate/variation-readme.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
|
||||
### THIS THEME IS A GENERATED VARIATION THEME! DO NOT MODIFY THE CONTENTS.
|
||||
|
||||
In order to make changes to this theme change the details in the /varations folder that coorisponds to this theme.
|
||||
|
||||
Then re-run the `build-variations.mjs` script via the command `npm run build:variations` in the root of the /themes project.
|
||||
|
||||
### Variations
|
||||
|
||||
The first level of folders coorispond to the Blockbase theme that will be used as the SOURCE of the variation.
|
||||
|
||||
The second level of folders coorispond to the Blockbase theme that will be created as the variation.
|
||||
|
||||
For example:
|
||||
|
||||
/variations
|
||||
/geologist
|
||||
/geologist-banana
|
||||
|
||||
For a variation in that folder `/variations/geologist/geologist-banana`
|
||||
|
||||
* First the relevant portions of the theme `/geologist` will be copied to `/geologist-banana`.
|
||||
* Next the contents of `/variations/geologist/geologist-banana` will be copied to `/geologist-banana`
|
||||
* Lastly the theme.json files in `/geologist` and `/variations/geologist/geologist-banana` will be merged.
|
||||
|
||||
Any resource in the /variations folder will replace the resources in the source theme (with the exception of theme.json);
|
||||
|
||||
### Template Mods
|
||||
|
||||
A variation can have a `template-mods.json` file that lists strings in the templates to replace. The use-case this mechanism was build
|
||||
for was so that the variation theme could have a different header by defining that in one place. There are plenty of gaps in this
|
||||
implementation but should cover the basic use-cases we need.
|
||||
|
||||
The format for this file is:
|
||||
|
||||
```
|
||||
[
|
||||
{
|
||||
"from": "STRING TO REPLACE",
|
||||
"to": "STRING TO BE USED AS REPLACEMENT"
|
||||
}
|
||||
]
|
||||
```
|
BIN
geologist-yellow/assets/images/gem.jpeg
Normal file
After Width: | Height: | Size: 407 KiB |
251
geologist-yellow/assets/theme.css
Normal file
|
@ -0,0 +1,251 @@
|
|||
@charset "UTF-8";
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
.wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-file .wp-block-file__button:hover, .wp-block-file .wp-block-file__button:focus, .wp-block-file .wp-block-file__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:hover, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button:focus, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button.has-focus,
|
||||
.wp-block-search .wp-block-search__button:hover,
|
||||
.wp-block-search .wp-block-search__button:focus,
|
||||
.wp-block-search .wp-block-search__button.has-focus {
|
||||
border-style: var(--wp--custom--button--border--style);
|
||||
border-color: currentColor;
|
||||
border-width: var(--wp--custom--button--border--width);
|
||||
padding-top: var(--wp--custom--button--spacing--padding--top);
|
||||
padding-bottom: var(--wp--custom--button--spacing--padding--bottom);
|
||||
padding-left: var(--wp--custom--button--spacing--padding--left);
|
||||
padding-right: var(--wp--custom--button--spacing--padding--right);
|
||||
}
|
||||
|
||||
.wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):hover, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color):focus, .wp-block-button.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background):not(.has-text-color).has-focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):hover,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color):focus,
|
||||
.wp-block-button.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):not(.has-text-color).has-focus {
|
||||
color: var(--wp--custom--button--color--background);
|
||||
background-color: var(--wp--custom--button--color--text);
|
||||
}
|
||||
|
||||
ul ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
@media (max-width: 599px) {
|
||||
.wp-block-media-text:not(.has-background) .wp-block-media-text__content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-post-comments form input:not([type=submit]):not([type=checkbox]),
|
||||
.wp-block-post-comments form textarea {
|
||||
font-size: var(--wp--preset--font-size--normal);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a,
|
||||
.wp-block-post-comments .comment-edit-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-comments .comment-body > p > a:hover,
|
||||
.wp-block-post-comments .comment-edit-link:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wp-block-post-navigation-link {
|
||||
border-top: 1px solid;
|
||||
display: flex;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.post-navigation-link-next {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.post-navigation-link-next a {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.post-navigation-link-previous a {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column,
|
||||
.next-prev-links .wp-block-column:not(:only-child) {
|
||||
flex-basis: 40% !important;
|
||||
}
|
||||
|
||||
.next-prev-links .wp-block-column:not(:first-child),
|
||||
.next-prev-links .wp-block-column:not(:only-child):not(:first-child) {
|
||||
margin-left: 20%;
|
||||
}
|
||||
|
||||
.wp-block-post-template .wp-block-post-excerpt__more-text,
|
||||
.wp-block-query .wp-block-post-excerpt__more-text {
|
||||
font-size: var(--wp--custom--font-sizes--tiny) !important;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination {
|
||||
border-top: 1px solid var(--wp--custom--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
|
||||
content: "←";
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
content: "→";
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .wp-block-query-pagination-previous::before,
|
||||
.wp-block-query-pagination .wp-block-query-pagination-next::after {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.wp-block-query-pagination .page-numbers {
|
||||
padding: 0 0.1em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large p {
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-style-large cite {
|
||||
text-align: unset;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes th,
|
||||
.wp-block-table th {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tbody td,
|
||||
.wp-block-table tbody td {
|
||||
border-bottom-width: 0;
|
||||
border-top-width: 0;
|
||||
vertical-align: top;
|
||||
border-color: var(--wp--preset--color--primary);
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:first-child td,
|
||||
.wp-block-table tr:first-child td {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-table.is-style-stripes tr:last-child td,
|
||||
.wp-block-table tr:last-child td {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.wp-block-pullquote {
|
||||
text-indent: -0.5ch;
|
||||
}
|
||||
|
||||
.wp-block-pullquote cite {
|
||||
text-indent: 0.5ch;
|
||||
}
|
||||
|
||||
.has-primary-background-color {
|
||||
color: var(--wp--preset--color--background);
|
||||
}
|
||||
|
||||
.wp-block-post-content p a {
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
|
||||
.wp-block-post-content p a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:not(.ab-item):not(.screen-reader-shortcut):active, a:not(.ab-item):not(.screen-reader-shortcut):focus {
|
||||
outline: 1px dotted currentColor;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="range"]:focus,
|
||||
input[type="date"]:focus,
|
||||
input[type="month"]:focus,
|
||||
input[type="week"]:focus,
|
||||
input[type="time"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="datetime"]:focus,
|
||||
input[type="datetime-local"]:focus,
|
||||
input[type="color"]:focus,
|
||||
textarea:focus {
|
||||
outline: 1px dotted currentColor;
|
||||
}
|
||||
|
||||
.wp-block-post-featured-image {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Add some extra space if there's no post title present. */
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-featured-image,
|
||||
.wp-block-post-date + .wp-block-group > .wp-block-post-excerpt {
|
||||
margin-top: calc(2 * var( --wp--style--block-gap ));
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=theme.css.map */
|
9
geologist-yellow/block-template-parts/footer.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!-- wp:group {"className":"site-footer","style":{"spacing":{"padding":{"top":"150px","bottom":"150px"}}}} -->
|
||||
<div class="wp-block-group site-footer" style="padding-top:150px;padding-bottom: 150px">
|
||||
|
||||
<!-- wp:paragraph {"align":"center"} -->
|
||||
<p class="has-text-align-center">Proudly Powered by <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
</div>
|
||||
<!-- /wp:group -->
|
3
geologist-yellow/block-template-parts/header-spacer.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
27
geologist-yellow/block-templates/archive.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"bottom":"160px"}}}} /-->
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons","layout":{"inherit":true}} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
26
geologist-yellow/block-templates/index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
||||
<main class="wp-block-query">
|
||||
<!-- wp:post-template -->
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"isLink":true, "level": 3, "textAlign":"left", "style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
<!-- wp:spacer {"height":120} -->
|
||||
<div style="height:120px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:post-template -->
|
||||
<!-- wp:query-pagination {"align":"wide"} -->
|
||||
<!-- wp:query-pagination-previous /-->
|
||||
<!-- wp:query-pagination-numbers /-->
|
||||
<!-- wp:query-pagination-next /-->
|
||||
<!-- /wp:query-pagination -->
|
||||
</main>
|
||||
<!-- /wp:query -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
13
geologist-yellow/block-templates/page-without-title.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":60} -->
|
||||
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
20
geologist-yellow/block-templates/page.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group"><!-- wp:post-comments /--></div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
18
geologist-yellow/block-templates/search.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}, "tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
|
||||
<!-- wp:post-template -->
|
||||
|
||||
<!-- wp:post-title {"level":5,"isLink":true} /-->
|
||||
<!-- wp:post-excerpt /-->
|
||||
|
||||
<!-- /wp:post-template -->
|
||||
<!-- /wp:query -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
47
geologist-yellow/block-templates/single.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<!-- wp:template-part {"slug":"header-linear"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main"} -->
|
||||
<main class="wp-block-group">
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||
<div class="wp-block-group">
|
||||
<!-- wp:post-title {"textAlign":"left","level":1,"style":{"spacing":{"margin":{"bottom":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"calc(2 * var(--wp--style--block-gap))"}}}} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:post-content {"layout":{"inherit":true}} /-->
|
||||
|
||||
<!-- wp:template-part {"slug":"post-meta-icons"} /-->
|
||||
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
|
||||
<!-- wp:group {"layout":{"inherit":true},"style":{"spacing":{"padding":{"top":"30px","right":"20px","bottom":"0px","left":"20px"}}}} -->
|
||||
<div class="wp-block-group" style="padding-top:30px;padding-right:20px;padding-bottom:0px;padding-left:20px">
|
||||
<!-- wp:columns {"align":"wide","className":"next-prev-links"} -->
|
||||
<div class="wp-block-columns alignwide next-prev-links">
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"type":"previous","label":"←","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:post-navigation-link {"textAlign":"right","label":"→","showTitle":true} /-->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
<!-- wp:spacer {"height":150} -->
|
||||
<div style="height:150px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||
<!-- /wp:spacer -->
|
||||
<!-- wp:post-comments /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
|
6
geologist-yellow/functions.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Block Patterns.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-patterns.php';
|
44
geologist-yellow/inc/block-patterns.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Geologist Theme: Block Patterns
|
||||
*
|
||||
* @package Geologist
|
||||
* @since 1.0.0
|
||||
*/
|
||||
if ( ! function_exists( 'geologist_register_block_patterns' ) ) :
|
||||
|
||||
function geologist_register_block_patterns() {
|
||||
|
||||
if ( function_exists( 'register_block_pattern_category' ) ) {
|
||||
register_block_pattern_category(
|
||||
'geologist',
|
||||
array( 'label' => __( 'Geologist', 'geologist' ) )
|
||||
);
|
||||
}
|
||||
|
||||
if ( function_exists( 'register_block_pattern' ) ) {
|
||||
$block_patterns = array(
|
||||
'authors',
|
||||
'header-with-rounded-site-logo',
|
||||
'image-feature',
|
||||
'introduction',
|
||||
'quote',
|
||||
'two-featured-posts',
|
||||
);
|
||||
|
||||
if ( class_exists( 'WP_Block_Type_Registry' ) && \WP_Block_Type_Registry::get_instance()->is_registered( 'jetpack/subscriptions' ) ) {
|
||||
$block_patterns[] = 'email-updates-large';
|
||||
$block_patterns[] = 'email-updates-small';
|
||||
}
|
||||
|
||||
foreach ( $block_patterns as $block_pattern ) {
|
||||
register_block_pattern(
|
||||
'geologist/' . $block_pattern,
|
||||
require __DIR__ . '/patterns/' . $block_pattern . '.php'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'init', 'geologist_register_block_patterns', 9 );
|
48
geologist-yellow/inc/patterns/authors.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Authors', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'About the Authors:', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:columns -->
|
||||
<div class="wp-block-columns"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Sarah Edwards', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Sarah is a geologist at Anthem State University. Her love for all things underground was sparked in Kindergarten when she unearthed a toy that someone left buried in the sandbox.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"wordpress.com","service":"wordpress"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"instagram.com","service":"instagram"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading -->
|
||||
<h2>' . esc_html__( 'Angelo Ortiz', 'geologist' ) . '</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>' . esc_html__( 'Angelo is an independent researcher and hobbyist. His collection of gemstones rivals that of some museums. Angelo is always on the lookout for a new discovery, and carries his toolkit everywhere.', 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:social-links {"iconColor":"primary","iconColorValue":"#F5F0E5","className":"is-style-logos-only"} -->
|
||||
<ul class="wp-block-social-links has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"instagram.com","service":"instagram"} /-->
|
||||
|
||||
<!-- wp:social-link {"url":"twitter.com","service":"twitter"} /--></ul>
|
||||
<!-- /wp:social-links --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|
18
geologist-yellow/inc/patterns/email-updates-large.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Large)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (Large)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Our newsletter rocks! Sign up here to receive every post in your inbox.', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
15
geologist-yellow/inc/patterns/email-updates-small.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* Email Updates (Small)
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Email Updates (small)', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:paragraph --><p>' . esc_html__( 'Receive every post in your inbox.', 'geologist' ) . '</p><!-- /wp:paragraph -->
|
||||
<!-- wp:jetpack/subscriptions -->
|
||||
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline">[jetpack_subscription_form show_subscribers_total="false" button_on_newline="false" custom_font_size="16px" custom_border_radius="0" custom_border_weight="1" custom_padding="15" custom_spacing="10" submit_button_classes="" email_field_classes="" show_only_email_and_button="true"]</div>
|
||||
<!-- /wp:jetpack/subscriptions -->',
|
||||
);
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Authors
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Header with Rounded Site Logo and Title', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'blockTypes' => array( 'core/template-part/header' ),
|
||||
'content' => '<!-- wp:group {"tagName":"header","style":{"spacing":{"padding":{"bottom":"90px"}}},"className":"site-header","layout":{"type":"flex"}} -->
|
||||
<header class="wp-block-group site-header" style="padding-bottom:90px">
|
||||
<!-- wp:site-logo {"className":"is-style-rounded"} /-->
|
||||
<!-- wp:site-title /-->
|
||||
<!-- wp:navigation {"__unstableLocation":"primary","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /-->
|
||||
</header>
|
||||
<!-- /wp:group -->',
|
||||
);
|
28
geologist-yellow/inc/patterns/image-feature.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Two posts with features images in a query block.
|
||||
*
|
||||
* @package Geologist
|
||||
*/
|
||||
|
||||
return array(
|
||||
'title' => __( 'Image feature', 'geologist' ),
|
||||
'categories' => array( 'geologist' ),
|
||||
'content' => '<!-- wp:image {"align":"wide","sizeSlug":"large"} -->
|
||||
<figure class="wp-block-image alignwide size-large"><img src="' . get_stylesheet_directory_uri() . '/assets/images/gem.jpeg" alt=""/></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:columns {"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:heading {"level":3} -->
|
||||
<h3>' . esc_html__( 'Geologist', 'geologist' ) . '</h3>
|
||||
<!-- /wp:heading --></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:paragraph -->
|
||||
<p>' . esc_html__( "Geologist is a blog dedicated to everything buried under the earth's surface.", 'geologist' ) . '</p>
|
||||
<!-- /wp:paragraph --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:columns -->',
|
||||
);
|