0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-28 10:24:19 +01: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",
"stroke"
],
"property-blacklist": ["transition"],
"property-no-vendor-prefix": true,
"rule-empty-line-before": null,
"scss/at-function-named-arguments": "never",

View File

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

View File

@ -1,7 +1,7 @@
.anchorjs-link {
font-weight: 400;
color: rgba($link-color, .5);
transition: color .16s linear;
@include transition(color .16s linear);
&:hover {
color: $link-color;

View File

@ -4,6 +4,7 @@
"at-rule-no-vendor-prefix": null,
"comment-empty-line-before": null,
"media-feature-name-no-vendor-prefix": null,
"property-blacklist": null,
"property-no-vendor-prefix": null,
"selector-no-qualifying-type": null,
"selector-no-vendor-prefix": null,