aboutsummaryrefslogtreecommitdiffstats
path: root/app/css.js
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-01-20 23:15:14 +0000
committers-ol <s+removethis@s-ol.nu>2021-01-22 13:45:11 +0000
commit61a9215b410686ed587c6681fe86d181d895beac (patch)
tree5118631f517c909480b7bd4217c77fd877c7f8ff /app/css.js
parentadd shell.nix (diff)
downloadisomorphic-kb-explorer-61a9215b410686ed587c6681fe86d181d895beac.tar.gz
isomorphic-kb-explorer-61a9215b410686ed587c6681fe86d181d895beac.zip
add different layouts
Diffstat (limited to 'app/css.js')
-rw-r--r--app/css.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/css.js b/app/css.js
index 842214a..8b13789 100644
--- a/app/css.js
+++ b/app/css.js
@@ -1,13 +1 @@
-export default (code) => {
- const style = document.createElement('style');
- document.head.appendChild(style);
- style.appendChild(document.createTextNode(''));
- let i = 0;
- for (const v of code.split('}')) {
- if (v.indexOf('{') < 0) continue;
- style.sheet.insertRule(v + '}', i++);
- }
-
- return style;
-};