mirror of
https://github.com/picocss/pico.git
synced 2025-04-27 11:36:14 -04:00
Support web components/shadow DOM.
Add :host to all uses of :root
This commit is contained in:
parent
6dc6489e69
commit
02c9fb69da
6 changed files with 14 additions and 7 deletions
|
@ -9,7 +9,8 @@
|
|||
$css-var-color-prefix: #{settings.$css-var-prefix}#{$color-property-name};
|
||||
|
||||
@if $enable-css-vars {
|
||||
:root {
|
||||
:root,
|
||||
:host {
|
||||
// Loop through color families
|
||||
@each $family, $colors in colors.$colors {
|
||||
@if index(map.get(settings.$palette, "color-families"), $family) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue