From b5ab9fafdb0f9ccf22a52722a48e29e92fe6d56e Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 19 Oct 2021 20:01:53 +0200 Subject: [PATCH] Remove CSS style function This function had overlap with skooma.js and was thus removed. Use skooma instead. --- css.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/css.js b/css.js index 671437b..d97adb3 100644 --- a/css.js +++ b/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})`