Try to prevent PostCSS from stripping comments that are meant to prevent PurgeCSS from stripping our version picker CSS

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
Johannes Marbach 2025-12-05 18:04:41 +01:00
parent 705240da72
commit 461d7a6883
2 changed files with 5 additions and 2 deletions

View file

@ -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 */

View file

@ -0,0 +1 @@
Add version picker in the navbar.