mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-23 17:48:37 +01:00
Prevent PurgeCSS from deleting dynamically-added version picker CSS classes (#2260)
This commit is contained in:
parent
4dbe080570
commit
705240da72
|
|
@ -51,12 +51,16 @@ Custom SCSS for the Matrix spec
|
||||||
color: $black;
|
color: $black;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make the version dropdown scroll if its too large */
|
/* Make the version dropdown scroll if it's too large */
|
||||||
ul#version-selector {
|
ul#version-selector {
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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.
|
||||||
|
*/
|
||||||
|
/* purgecss start ignore */
|
||||||
ul#version-selector li.selected a {
|
ul#version-selector li.selected a {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
@ -64,6 +68,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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for the sidebar nav */
|
/* Styles for the sidebar nav */
|
||||||
|
|
|
||||||
1
changelogs/internal/newsfragments/2260.clarification
Normal file
1
changelogs/internal/newsfragments/2260.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Add version picker in the navbar.
|
||||||
Loading…
Reference in a new issue