From 9dd8a99a721e43e7b926eafadb4a072fe726b565 Mon Sep 17 00:00:00 2001 From: kjroelke Date: Mon, 5 Aug 2024 09:34:34 -0500 Subject: [PATCH] bug fixes --- README.md | 5 +++++ src/styles/_layout.scss | 5 +++++ src/styles/_typography.scss | 20 ++++++++++++++++---- style.css | 2 +- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b30c297..2ac9348 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,11 @@ If you're looking to make changes and you're not a developer with Kingdom One, ` # Changelog +## 1.0.2 + +- Define the `alignwide` class to match the `wide size` WP variable set in `theme.json` +- Define font families for the site. + ## 1.0.1 - Update the Tour Dates block to render shortened date diff --git a/src/styles/_layout.scss b/src/styles/_layout.scss index 962d238..1f9c39e 100644 --- a/src/styles/_layout.scss +++ b/src/styles/_layout.scss @@ -24,3 +24,8 @@ margin-inline: calc((var(--wp--custom--gutters) / 2) * -1); } } + +.alignwide { + max-width: var(--wp--style--global--wide-size); + margin-inline: auto; +} diff --git a/src/styles/_typography.scss b/src/styles/_typography.scss index ed24140..f5830fb 100644 --- a/src/styles/_typography.scss +++ b/src/styles/_typography.scss @@ -36,10 +36,23 @@ $utilities: ( } } -%base-text { +%headings { text-wrap: pretty; - font-size: var(--wp--preset--font-size--base); line-height: var(--wp--custom--line-height); + font-family: "Cormorant", sans-serif; +} + +@each $heading, $size in $headings { + #{$heading}, + .#{$heading} { + @extend %headings; + font-size: var($size); + } +} + +%base-text { + @extend %headings; + font-size: var(--wp--preset--font-size--base); } p, @@ -51,9 +64,8 @@ li { .x-text-headline { @each $heading, $size in $headings { #{$heading} { + @extend %headings; font-size: var($size); - line-height: var(--wp--custom--line-height); - text-wrap: pretty; } } } diff --git a/style.css b/style.css index 8455c22..fbafdb7 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: https://github.com/kingdom-one/faith-based-expeditions Author: Kingdom One Author URI: https://wwww.kingdomone.co Description: A custom Wordpress theme for Faith Based Expeditions, built on the back of Pro Theme (by Themeco) by Kingdom One. -Version: 1.0.1 +Version: 1.0.2 License: GNU General Public License v2 or later Template: pro */