Commit 00860f02 authored by Martijn Cuppens's avatar Martijn Cuppens Committed by XhmikosR
Browse files

Disallow transition property (use mixin instead)

parent 09aca3fb
Showing with 4 additions and 1 deletion
+4 -1
...@@ -261,6 +261,7 @@ ...@@ -261,6 +261,7 @@
"fill", "fill",
"stroke" "stroke"
], ],
"property-blacklist": ["transition"],
"property-no-vendor-prefix": true, "property-no-vendor-prefix": true,
"rule-empty-line-before": null, "rule-empty-line-before": null,
"scss/at-function-named-arguments": "never", "scss/at-function-named-arguments": "never",
......
// stylelint-disable property-blacklist
@mixin transition($transition...) { @mixin transition($transition...) {
@if $enable-transitions { @if $enable-transitions {
@if length($transition) == 0 { @if length($transition) == 0 {
......
.anchorjs-link { .anchorjs-link {
font-weight: 400; font-weight: 400;
color: rgba($link-color, .5); color: rgba($link-color, .5);
transition: color .16s linear; @include transition(color .16s linear);
&:hover { &:hover {
color: $link-color; color: $link-color;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"at-rule-no-vendor-prefix": null, "at-rule-no-vendor-prefix": null,
"comment-empty-line-before": null, "comment-empty-line-before": null,
"media-feature-name-no-vendor-prefix": null, "media-feature-name-no-vendor-prefix": null,
"property-blacklist": null,
"property-no-vendor-prefix": null, "property-no-vendor-prefix": null,
"selector-no-qualifying-type": null, "selector-no-qualifying-type": null,
"selector-no-vendor-prefix": null, "selector-no-vendor-prefix": null,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment