This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//** | |
//* Put CSS combinator between current selector and subj -- in direct and reversed order | |
//* Apply CSS rules block to resulting selector | |
//* Example output: .parent .curr + .subj, .parent .subj + .curr { color: red; } | |
//* Limitation: current selector must have a separent level in selector tree (e.g. & > .curr) | |
//* @param {string} subj Another selector to combinate with | |
//* @param {string='+'} comb CSS combinator (can be: '+', '~', '>' or ' ') | |
//*/ | |
combinate(subj, comb='+') | |
scurr = selectors()[-1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! bool, null */ | |
typeof() // -> "null" | |
typeof(null) // -> "null" | |
typeof(undefined) // -> "ident" | |
typeof(false) // -> "boolean" | |
typeof(no) // -> "ident" | |
/*! color */ | |
typeof(#ff0000) // -> "rgba" | |
typeof(#f00) // -> "rgba" |
NewerOlder