From 291f8e570dbead6d41959b83a2aea3cd94b8cf95 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Thu, 18 Nov 2021 15:28:39 +0530 Subject: [PATCH] styles: Rename night_mode.css to dark_theme.css. Fixes part of #20228. --- postcss.config.js | 2 +- static/js/bundles/app.js | 2 +- static/styles/{night_mode.css => dark_theme.css} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename static/styles/{night_mode.css => dark_theme.css} (100%) diff --git a/postcss.config.js b/postcss.config.js index d7f53cc6d2..40a1f9f70d 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -6,7 +6,7 @@ const {media_breakpoints} = require("./static/js/css_variables"); module.exports = ({file}) => ({ plugins: [ - (file.basename ?? path.basename(file)) === "night_mode.css" && + (file.basename ?? path.basename(file)) === "dark_theme.css" && // Add postcss-import plugin with postcss-prefixwrap to handle // the flatpickr dark theme. We do this because flatpickr themes // are not scoped. See https://github.com/flatpickr/flatpickr/issues/2168. diff --git a/static/js/bundles/app.js b/static/js/bundles/app.js index 411310509e..ff1ec73e24 100644 --- a/static/js/bundles/app.js +++ b/static/js/bundles/app.js @@ -51,7 +51,7 @@ import "../../styles/popovers.css"; import "../../styles/recent_topics.css"; import "../../styles/typing_notifications.css"; import "../../styles/hotspots.css"; -import "../../styles/night_mode.css"; +import "../../styles/dark_theme.css"; import "../../styles/user_status.css"; import "../../styles/widgets.css"; diff --git a/static/styles/night_mode.css b/static/styles/dark_theme.css similarity index 100% rename from static/styles/night_mode.css rename to static/styles/dark_theme.css