From b6b2639373c71e9e5f205d83fffd3d26e71b50ca Mon Sep 17 00:00:00 2001 From: daudix Date: Mon, 2 Sep 2024 01:53:02 +0300 Subject: [PATCH] Make --color-opacity variable "private", tweak switch style --- CHANGELOG.md | 4 ++- content/demo/index.md | 52 +--------------------------------- content/tricks/index.md | 54 ++++++++++++++++++++---------------- sass/_footer.scss | 1 + sass/_general.scss | 2 +- sass/_input.scss | 10 +++---- sass/_variables.scss | 5 ++-- templates/partials/head.html | 13 --------- 8 files changed, 44 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97cb32b..94a08a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Add `--color-opacity` CSS variable for setting global color opacity. - Add `--disabled` CSS variable for setting opacity of disabled elements. - Add `--hover` CSS variable for setting zoom on hover. -- Add `config.extra.color_opacity` and `config.extra.color_opacity_dark` config variables to set global color opacity used by `-bg` colors and `--primary-color-alpha`. - Add `external` class to comment timestamp. - Add active state to footer's "Powered by" links. - Add active state to footnotes' go back button. @@ -24,7 +24,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - **[BREAKING]** Change the `--active` CSS variable to include `scale()` as well. +- **[BREAKING]** Change the way `--bg-color` works. See [Tricks](https://duckquill.daudix.one/tricks/#background-image) page to see how to make background images work. - Add margin between comment author name and timestamp. +- Add missing edge highlight to active footer navbar links. - Make comment timestamp more subtle. - Reduce the target heading transition time. - Reduce top margin of the target heading. diff --git a/content/demo/index.md b/content/demo/index.md index 4930e65..36fa58c 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -586,16 +586,6 @@ Blah blah Inline Quote hmm.
- Color opacity: -
- 0.1 - - -
- 0.1 - - -
Fix contrast:
@@ -645,23 +635,9 @@ Blah blah Inline Quote hmm. #color-picker-light, #color-picker-dark, #contrast-color-light, - #contrast-color-dark, - #opacity-light-value, - #opacity-dark-value, - #opacity-light, - #opacity-dark { + #contrast-color-dark { margin-inline-end: 0.25rem; } - - #opacity-light, - #opacity-dark { - width: 8rem; - } - - #opacity-light-value, - #opacity-dark-value { - font-variant-numeric: tabular-nums; - }