From dbc320916004736d6868a529fc0b14dff118f64e Mon Sep 17 00:00:00 2001 From: Tyrrrz Date: Mon, 21 Jun 2021 20:44:36 +0300 Subject: [PATCH] [HTML] Merge all static stylesheets into a single dynamic stylesheet --- .../Writers/Html/StylesheetTemplate.cshtml | 396 +++--------------- 1 file changed, 68 insertions(+), 328 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/StylesheetTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/StylesheetTemplate.cshtml index 18a974ae..003c4041 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/StylesheetTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/StylesheetTemplate.cshtml @@ -4,11 +4,11 @@ @{ var isDarkTheme = string.Equals(Model.ThemeName, "Dark", StringComparison.OrdinalIgnoreCase); + + string Themed(string darkVariant, string lightVariant) => isDarkTheme ? darkVariant : lightVariant; } -@if (isDarkTheme) -{ - -} -else -{ - -} \ No newline at end of file + .postamble__entry { + color: @Themed("#ffffff", "#2f3136"); + } + \ No newline at end of file