This is the code:
<ul>
<li></li>
<li></li>
<ul>
<li></li>
<li></li>
</ul>
</ul>
And this is the LESS style:
ul li { .box-shadow(0 1px 3px rgba(0,0,0,.25)); }
I want to override/cancel the mixin on the sub-list, so I tried this:
ul ul li { .box-shadow(none); }
...but it didn't work. The only way I got it to work was by explicitly overriding each line on the mixin:
ul ul li {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
So wha'ts wrong with ul ul li { .box-shadow(none); }
?
Use the . shadow-none class in Bootstrap to remove shadow.
While shadows on components are disabled by default in Bootstrap and can be enabled via $enable-shadows , you can also quickly add or remove a shadow with our box-shadow utility classes. Includes support for . shadow-none and three default sizes (which have associated variables to match).
You can add shadow to the element by adding . shadow class within the <div> element.
Too bad I didn't check the bad output when it broke the whole compilation, but
ul ul li { .box-shadow(none); }
...is working just fine. :P
If you use twitter bootstrap with SCSS/SASS, I would use the builtin mixins, which handels browser specific flags:
ul ul li { @include box-shadow(none); }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With