Skip to content

Commit

Permalink
fix: CSS を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
drill-lancer committed Oct 14, 2021
1 parent 7970c53 commit 44ce8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VkColorPaletteManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public static function inline_css() {
if ( ! empty( $color['color'] ) ) {
// 色はこのクラスでだけの利用なら直接指定でも良いが、他のクラス名で応用できるように一旦css変数に格納している.
$dynamic_css .= ':root{ --' . $color['slug'] . ':' . $color['color'] . '}';
$dynamic_css .= '.has-' . $color['slug'] . '-color { color:var(--' . $color['slug'] . '); }';
$dynamic_css .= '.has-' . $color['slug'] . '-background-color { background-color:var(--' . $color['slug'] . '); }';
$dynamic_css .= ':root .has-' . $color['slug'] . '-color { color:var(--' . $color['slug'] . '); }';
$dynamic_css .= ':root .has-' . $color['slug'] . '-background-color { background-color:var(--' . $color['slug'] . '); }';
}
}

Expand Down

0 comments on commit 44ce8a3

Please sign in to comment.