Skip to content

Commit

Permalink
Merge pull request #6 from vektor-inc/fix--bg&text-css
Browse files Browse the repository at this point in the history
【確認待ち】コアの色だと効いて独自の色だと効かない場合があったのを修正
  • Loading branch information
kurudrive authored Oct 19, 2021
2 parents 7970c53 + 44ce8a3 commit 632463f
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 632463f

Please sign in to comment.