Skip to content

Add the ability to replace declaration values #2

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from

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.

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

Successfully merging this pull request may close these issues.

2 participants