diff options
| author | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2020-11-17 22:53:45 +0100 |
|---|---|---|
| committer | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2020-11-17 22:53:45 +0100 |
| commit | ff46c1816483472c2b478a570dceb3b75be6e783 (patch) | |
| tree | d3982ffa63881e6ad6c9b8e651be1d55258a2372 /src | |
| parent | de777907f2835dc79cb1955fa623928ae3a47aaa (diff) | |
| download | invidious-ff46c1816483472c2b478a570dceb3b75be6e783.tar.gz invidious-ff46c1816483472c2b478a570dceb3b75be6e783.tar.bz2 invidious-ff46c1816483472c2b478a570dceb3b75be6e783.zip | |
Move themes into default.css
Now that themes are controlled with a class instead of setting
media="none" on the stylesheet link and both themes already being
duplicated in default.css for the automatic themeing it makes sense
to have all theme related CSS in the same place.
This commit also fixes the missing dark theme on embeds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/embed.ecr | 3 | ||||
| -rw-r--r-- | src/invidious/views/template.ecr | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr index 48dbc55f..dbb86009 100644 --- a/src/invidious/views/embed.ecr +++ b/src/invidious/views/embed.ecr @@ -9,12 +9,11 @@ <link rel="stylesheet" href="/css/videojs-overlay.css?v=<%= ASSET_COMMIT %>"> <script src="/js/videojs-overlay.min.js?v=<%= ASSET_COMMIT %>"></script> <link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>"> - <link rel="stylesheet" href="/css/darktheme.css?v=<%= ASSET_COMMIT %>"> <link rel="stylesheet" href="/css/embed.css?v=<%= ASSET_COMMIT %>"> <title><%= HTML.escape(video.title) %> - Invidious</title> </head> -<body> +<body class="dark-theme"> <script id="video_data" type="application/json"> <%= { diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index 558f896e..42067bb4 100644 --- a/src/invidious/views/template.ecr +++ b/src/invidious/views/template.ecr @@ -18,8 +18,6 @@ <link rel="stylesheet" href="/css/grids-responsive-min.css?v=<%= ASSET_COMMIT %>"> <link rel="stylesheet" href="/css/ionicons.min.css?v=<%= ASSET_COMMIT %>"> <link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>"> - <link rel="stylesheet" href="/css/darktheme.css?v=<%= ASSET_COMMIT %>"> - <link rel="stylesheet" href="/css/lighttheme.css?v=<%= ASSET_COMMIT %>"> </head> <% locale = LOCALES[env.get("preferences").as(Preferences).locale]? %> |
