Remove CSS style function
This function had overlap with skooma.js and was thus removed. Use skooma instead.
This commit is contained in:
parent
46220c927b
commit
b5ab9fafdb
1 changed files with 0 additions and 6 deletions
6
css.js
6
css.js
|
@ -32,12 +32,6 @@ const walkStyles = (styles, trail=[], buffer=[]) => {
|
|||
|
||||
export const css = (styles) => walkStyles(styles).filter(e=>e).join("\n")
|
||||
|
||||
export const style = styles => {
|
||||
const style = document.createElement("style")
|
||||
style.innerHTML = css(styles)
|
||||
return style
|
||||
}
|
||||
|
||||
const mkVar = name => {
|
||||
const v = (def) => `var(--${name}, ${def})`
|
||||
v.toString = () => `var(--${name})`
|
||||
|
|
Loading…
Reference in a new issue