summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-15 11:57:26 +0300
committerAndrew Dolgov <[email protected]>2019-12-15 11:57:26 +0300
commit07f4878d59a7459472e66a2ba0c1c0413232107e (patch)
tree872efda8bd355b8c200a75fea485b859b3b5c143 /index.php
parent0d6add5d7f9475d60330f233a6b62f9bb81d01c0 (diff)
workaround for a race condition between dojo.parse() and tt-rss loading proper day/night css on startup because of firefox async CSS loader
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/index.php b/index.php
index 8fb76bc2a..f7ea6178a 100644
--- a/index.php
+++ b/index.php
@@ -48,8 +48,6 @@
$theme = get_pref("USER_CSS_THEME", false, false);
if ($theme && theme_exists("$theme")) {
echo stylesheet_tag(get_theme_path($theme), 'theme_css');
- } else {
- echo stylesheet_tag("css/default.css", 'theme_css');
}
}
?>
@@ -116,11 +114,23 @@
?>
</script>
+ <style type="text/css">
+ @media (prefers-color-scheme: dark) {
+ body {
+ background : #303030;
+ }
+ }
+
+ body.css_loading * {
+ display : none;
+ }
+ </style>
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="referrer" content="no-referrer"/>
</head>
-<body class="flat ttrss_main ttrss_index">
+<body class="flat ttrss_main ttrss_index css_loading">
<div id="overlay" style="display : block">
<div id="overlay_inner">