From 461d7a6883abee3ee413154566b8a2ac5acaf899 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Fri, 5 Dec 2025 18:04:41 +0100 Subject: [PATCH] Try to prevent PostCSS from stripping comments that are meant to prevent PurgeCSS from stripping our version picker CSS Signed-off-by: Johannes Marbach --- assets/scss/_styles_project.scss | 6 ++++-- changelogs/internal/newsfragments/2263.clarification | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 changelogs/internal/newsfragments/2263.clarification diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index f1054945..275c5c0d 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -59,8 +59,10 @@ Custom SCSS for the Matrix spec /* As these styles are only applied by JavaScript, PurgeCSS doesn't see them * in the source code and removes them unless we explicitly tell it not to. + * We use /*! so that PostCSS doesn't strip the comments before PurgeCSS can + * see them. */ - /* purgecss start ignore */ + /*! purgecss start ignore */ ul#version-selector li.selected a { font-weight: bold; } @@ -68,7 +70,7 @@ Custom SCSS for the Matrix spec ul#version-selector li.latest a { color: $secondary; } - /* purgecss end ignore */ + /*! purgecss end ignore */ } /* Styles for the sidebar nav */ diff --git a/changelogs/internal/newsfragments/2263.clarification b/changelogs/internal/newsfragments/2263.clarification new file mode 100644 index 00000000..468f55d5 --- /dev/null +++ b/changelogs/internal/newsfragments/2263.clarification @@ -0,0 +1 @@ +Add version picker in the navbar.