1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Disallow transition property (use mixin instead)

This commit is contained in:
Martijn Cuppens 2018-10-21 21:40:13 +02:00 committed by XhmikosR
parent 09aca3fb9a
commit 00860f02d4
4 changed files with 4 additions and 1 deletions

View file

@ -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",

View file

@ -1,3 +1,4 @@
// stylelint-disable property-blacklist
@mixin transition($transition...) { @mixin transition($transition...) {
@if $enable-transitions { @if $enable-transitions {
@if length($transition) == 0 { @if length($transition) == 0 {

View file

@ -1,7 +1,7 @@
.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;

View file

@ -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,