Вопрос

I have a function:

.box-shadow(@bxsh: none) {
    -moz-box-shadow: @bxsh;
    -webkit-box-shadow: @bxsh;
    box-shadow: @bxsh;
}

How to add !important to function parameter? I right this:

.box-shadow(inset 0 0 10px rgba(0,0,0,0.2), 0 1px 0 #fff !important;);

But it doesn't work.

Это было полезно?

Решение

You would want to call the !important keyword after the mixin itsef, as the documentation states.

.box-shadow(inset 0 0 10px rgba(0,0,0,0.2), 0 1px 0 #fff) !important;

Additionally, you are attempting to call a mixin with two parameters, when it only accepts one.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top