Skip to content

Commit

Permalink
add styles for dark mode toggle block
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Aug 27, 2024
1 parent c18cdf2 commit 93f1350
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Description: Kanso is a simple and intuitive blog block theme designed with a fo
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.0.3
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kanso
Expand Down Expand Up @@ -265,7 +265,18 @@ input:not([type=submit]):focus-visible {
padding: 12px 8px;
}

/* Third party blocks */
/* Dark mode toggle block */

.wp-block-tabor-dark-mode-toggle__track:not(.has-background) {
background: var(--wp--preset--color--theme-3);
}

.wp-block-tabor-dark-mode-toggle__track:not(.has-background):hover {
background-color: var(--wp--preset--color--theme-4);
color: var(--wp--preset--color--theme-6);
}

/* Other third party blocks */

.wp-block-tabor-card:not(.is-style-dark) .wp-block-tabor-card__description {
/* CSS in theme.json for third party blocks is not supported yet; related — https://github.com/WordPress/gutenberg/issues/48439 */
Expand Down

0 comments on commit 93f1350

Please sign in to comment.