mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-19 05:43:43 +01:00
Color the unstable version differently
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
This commit is contained in:
parent
eea13b0ff2
commit
9170eacfcd
|
|
@ -32,6 +32,9 @@ function appendVersion(parent, name, url) {
|
||||||
if (name === currentVersion) {
|
if (name === currentVersion) {
|
||||||
li.classList.add("selected")
|
li.classList.add("selected")
|
||||||
}
|
}
|
||||||
|
if (name === "unstable") {
|
||||||
|
li.classList.add("unstable")
|
||||||
|
}
|
||||||
parent.appendChild(li);
|
parent.appendChild(li);
|
||||||
|
|
||||||
// The link
|
// The link
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,10 @@ Custom SCSS for the Matrix spec
|
||||||
ul#version-selector li.selected a {
|
ul#version-selector li.selected a {
|
||||||
color: $secondary;
|
color: $secondary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul#version-selector li.unstable:not(.selected) a {
|
||||||
|
color: $warning;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for the sidebar nav */
|
/* Styles for the sidebar nav */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue