css - sass how to instantiate an empty variable to be set by @if -
I think that the code speaks for itself so I have:
@ Micsin BtnNoBackgr30 ($ divName, $ icon name, $ xtype yesOrNo) {$ xtypebtn: zero; @if xtypeYesOrNo == 'yes' {$ xtypeBtn: x-button - # {$ divName}; } @if xtypeYesOrNo == 'No' {$ xtypeBtn: # {$ divName}; }. # {$ XtypeBtn} {Quality: Value; } I am getting into CSS all this
.nil {properties: values; } How can instantize the variable outside the @ variable? If I can help it within @if'm so normal programming and marked ans 'undefined' such scope will not be searched out
Please make false bumps and taps giving me errors
$ xx_btn anything to random default value because it will be reset anyway? If $ xtype yesOrNo can be undefined, then give it a default value too?
@mixin btnNoBackgr30 ($ divName, $ iconName, $ xtype yesOrNo: default) {$ xtypebtn: default; @if $ xtyYesOrNo! = Default {// do anything} @if xtype yesOrNo == Yes {$ xtypeBtn: x-button - # {$ divName}; } @if xtypeYesOrNo == no {$ xtypeBtn: # {$ divName}; }. # {$ XtypeBtn} {Quality: Value; }}
Comments
Post a Comment