1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:25:55 +00:00

add support for an override stylesheet which applies to all users

This commit is contained in:
Andrew Dolgov
2020-11-30 15:53:32 +03:00
parent 8089fcc762
commit 81c52b4b1e
5 changed files with 21 additions and 4 deletions

View File

@@ -7,6 +7,10 @@
define('COOKIE_LIFETIME_LONG', 86400*365);
// this CSS file is included for everyone (if it exists in themes.local)
// on login, registration, and main (index and prefs) pages
define('LOCAL_OVERRIDE_STYLESHEET', '.local-overrides.css');
$fetch_last_error = false;
$fetch_last_error_code = false;
$fetch_last_content_type = false;

View File

@@ -18,6 +18,10 @@
} ?>
<?php if (theme_exists(LOCAL_OVERRIDE_STYLESHEET)) {
echo stylesheet_tag(get_theme_path(LOCAL_OVERRIDE_STYLESHEET));
} ?>
<style type="text/css">
@media (prefers-color-scheme: dark) {
body {