summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpyrex <57133330+SpyrexDE@users.noreply.github.com>2022-04-11 11:48:41 +0200
committerGitHub <noreply@github.com>2022-04-11 11:48:41 +0200
commit070d11154f0ec761fba938a6f27b4a9111988412 (patch)
tree3627b54deadc0e73efb3081f90ea0178d095da50
parent02f73b795d787f87069bbdf501c5658e8bbf96e3 (diff)
downloaddecky-loader-070d11154f0ec761fba938a6f27b4a9111988412.tar.gz
decky-loader-070d11154f0ec761fba938a6f27b4a9111988412.zip
Bundle stylesheets (#34)
-rw-r--r--plugin_loader/loader.py4
-rw-r--r--plugin_loader/static/styles.css3
-rw-r--r--plugin_loader/templates/plugin_view.html4
3 files changed, 5 insertions, 6 deletions
diff --git a/plugin_loader/loader.py b/plugin_loader/loader.py
index 948e1e0f..1461d1d0 100644
--- a/plugin_loader/loader.py
+++ b/plugin_loader/loader.py
@@ -172,9 +172,7 @@ class Loader:
ret = """
<html style="height: fit-content;">
<head>
- <link rel="stylesheet" href="/steam_resource/css/2.css">
- <link rel="stylesheet" href="/steam_resource/css/39.css">
- <link rel="stylesheet" href="/steam_resource/css/library.css">
+ <link rel="stylesheet" href="/static/styles.css">
<script src="/static/library.js"></script>
<script>const plugin_name = '{name}';</script>
</head>
diff --git a/plugin_loader/static/styles.css b/plugin_loader/static/styles.css
new file mode 100644
index 00000000..8d27a538
--- /dev/null
+++ b/plugin_loader/static/styles.css
@@ -0,0 +1,3 @@
+@import url("/steam_resource/css/2.css");
+@import url("/steam_resource/css/39.css");
+@import url("/steam_resource/css/library.css");
diff --git a/plugin_loader/templates/plugin_view.html b/plugin_loader/templates/plugin_view.html
index 8b1e4793..6016a7ae 100644
--- a/plugin_loader/templates/plugin_view.html
+++ b/plugin_loader/templates/plugin_view.html
@@ -1,6 +1,4 @@
-<link rel="stylesheet" href="/steam_resource/css/2.css">
-<link rel="stylesheet" href="/steam_resource/css/39.css">
-<link rel="stylesheet" href="/steam_resource/css/library.css">
+<link rel="stylesheet" href="/static/styles.css">
<script>
const tile_iframes = [];
window.addEventListener("message", function (evt) {