简体   繁体   中英

Foundation - Understanding why commenting out doesnt work

I've just started using Foundation.

I'm currently looking at customising the input fields and have noticed something I dont understand.

For things like the input transition:

$input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;

If i simply comment it out it continues to show that transition on my page. What i have to do in order to remove it is:

$input-transition: none !important;

Could someone please tell me why this is? Why doesnt commenting it out just stop it being applied, why do i need to add none and !important ?

Thanks.

I am pretty sure, that you are trying to modify *.scss file and don't compile it using SASS compiler to output CSS file. If you want to adjust Foundation special classes - read more info of how to use scss compiler: http://foundation.zurb.com/sites/docs/v/5.5.3/sass.html . Either way, you can modify output *.css file and check if that worked.

More info about file structure here: http://foundation.zurb.com/sites/docs/v/5.5.3/sass-files.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM