mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-28 08:53:42 +01:00
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:
parent
705240da72
commit
461d7a6883
|
|
@ -59,8 +59,10 @@ Custom SCSS for the Matrix spec
|
||||||
|
|
||||||
/* As these styles are only applied by JavaScript, PurgeCSS doesn't see them
|
/* 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.
|
* 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 {
|
ul#version-selector li.selected a {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
@ -68,7 +70,7 @@ Custom SCSS for the Matrix spec
|
||||||
ul#version-selector li.latest a {
|
ul#version-selector li.latest a {
|
||||||
color: $secondary;
|
color: $secondary;
|
||||||
}
|
}
|
||||||
/* purgecss end ignore */
|
/*! purgecss end ignore */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for the sidebar nav */
|
/* Styles for the sidebar nav */
|
||||||
|
|
|
||||||
1
changelogs/internal/newsfragments/2263.clarification
Normal file
1
changelogs/internal/newsfragments/2263.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Add version picker in the navbar.
|
||||||
Loading…
Reference in a new issue