Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kjroelke committed Jul 29, 2024
1 parent 5d69752 commit 4ff1572
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 13 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ A Template repo to help spin up custom child themes for clients quickly.

# Changelog

## 0.2.1

- bug fixes

## 0.2.0

- Added reduced Bootstrap Utility classes (opt-in) CSS file
Expand Down
23 changes: 12 additions & 11 deletions src/styles/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ $utilities: (
& :is(h1, h2, h3, h4, h5, h6) {
font-size: var($size) !important;
line-height: var(--wp--custom--line-height);
text-wrap: pretty;
}
}
}

%base-text {
text-wrap: pretty;
font-size: var(--wp--preset--font-size--base);
line-height: var(--wp--custom--line-height);
}
Expand All @@ -51,27 +53,26 @@ li {
#{$heading} {
font-size: var($size);
line-height: var(--wp--custom--line-height);
text-wrap: pretty;
}
}
}

.x-content {
:where(.x-content) {
@extend %base-text;
}
.x-text-content-text {
.x-text-content-text-primary {
&:where(:not(h1, h2, h3, h4, h5, h6)) {
@extend %base-text;
}
}
}

.x-anchor {
&:not(.x-anchor-button) {
:where(.x-text-content-text) {
:where(.x-text-content-text-primary:not(h1, h2, h3, h4, h5, h6)) {
@extend %base-text;
}
}
.x-anchor-content {

:where(.x-anchor:not(.x-anchor-button)) {
@extend %base-text;
}

:where(.x-anchor-content) {
.x-anchor-text-primary {
@extend %base-text;
}
Expand Down
16 changes: 15 additions & 1 deletion src/styles/utilities/bootstrap-utilities.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
// Custom.scss

@import "bootstrap/scss/functions";

$grid-breakpoints: (
xs: 0,
sm: 480px,
md: 767px,
lg: 979px,
xl: 1200px,
);

// Options:
$enable-dark-mode: false;
$enable-deprecation-messages: false;
$enable-validation-icons: false;

@import "bootstrap/scss/variables";
@import "bootstrap/scss/variables-dark";
// @import "bootstrap/scss/variables-dark";
@import "bootstrap/scss/maps";
@import "bootstrap/scss/mixins";
@import "bootstrap/scss/utilities";
Expand Down
5 changes: 4 additions & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@
]
},
"custom": {
"lineHeight": "calc(2px + 2ex + 2px)"
"lineHeight": "calc(2px + 2ex + 2px)",
"transitionTiming": ".15s",
"transitionEasing": "ease-in-out",
"transition": "var(--wp--custom--transition-timing) var(--wp--custom--transition-easing)"
}
},
"styles": {
Expand Down

0 comments on commit 4ff1572

Please sign in to comment.