Remove CSS style function

This function had overlap with skooma.js and was thus removed.
Use skooma instead.
This commit is contained in:
Talia 2021-10-19 20:01:53 +02:00
parent 46220c927b
commit b5ab9fafdb
No known key found for this signature in database
GPG key ID: AD727AD22802D0D6

6
css.js
View file

@ -32,12 +32,6 @@ const walkStyles = (styles, trail=[], buffer=[]) => {
export const css = (styles) => walkStyles(styles).filter(e=>e).join("\n") 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 mkVar = name => {
const v = (def) => `var(--${name}, ${def})` const v = (def) => `var(--${name}, ${def})`
v.toString = () => `var(--${name})` v.toString = () => `var(--${name})`