Skip to content

Commit

Permalink
chore: change conditional extension style syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Dec 9, 2021
1 parent 7f8d3c7 commit dd11c51
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions less/common/mixins/extension-styles.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.if-extension-enabled(@extension) {
// Placeholder mixin
.when-extension-enabled(@extension, @code) {
@found-extension: true;

.for(@extensions-enabled, {
& when (@value = @extension) {
@code();
}
});
}

.for(@extensions-enabled, {
Expand Down

0 comments on commit dd11c51

Please sign in to comment.