Skip to content

Conversation

dan-gamble
Copy link
Contributor

This adds the replaceValues option to the plugin

replaceValues

Type boolean
Default: false

If this is true then this plugin will look through your declaration values for the placeholder symbol and replace them with the desired selector.

i.e.

.foo {
    background-color: red;

    &:hover {
        background-color: blue;

        &::before {
            content: '^&';
        }
    }
}
.foo {
  background-color: red;
}

.foo:hover {
 background-color: blue;
}

.foo:hover::before {
 content: '.foo'
}

@dan-gamble
Copy link
Contributor Author

Quick note, i still need to write a test for this, missed that :)

@toomuchdesign
Copy link
Owner

Merged with #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants