mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-01 06:34:09 +02:00
Compare commits
4 commits
6920c3ecb6
...
ff1c3b57b0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff1c3b57b0 | ||
|
|
13aa6e83ae | ||
|
|
70f6749c92 | ||
|
|
1583a12cec |
|
|
@ -44,10 +44,10 @@ function appendVersion(parent, name, segment, url) {
|
||||||
// The list item
|
// The list item
|
||||||
const li = document.createElement("li");
|
const li = document.createElement("li");
|
||||||
if (segment === selected) {
|
if (segment === selected) {
|
||||||
li.classList.add("selected");
|
li.classList.add("version-picker-selected");
|
||||||
}
|
}
|
||||||
if (segment === "latest") {
|
if (segment === "latest") {
|
||||||
li.classList.add("latest");
|
li.classList.add("version-picker-latest");
|
||||||
}
|
}
|
||||||
parent.appendChild(li);
|
parent.appendChild(li);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,18 +57,13 @@ Custom SCSS for the Matrix spec
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* As these styles are only applied by JavaScript, PurgeCSS doesn't see them
|
ul#version-selector li.version-picker-selected a {
|
||||||
* in the source code and removes them unless we explicitly tell it not to.
|
|
||||||
*/
|
|
||||||
/* purgecss start ignore */
|
|
||||||
ul#version-selector li.selected a {
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#version-selector li.latest a {
|
ul#version-selector li.version-picker-latest a {
|
||||||
color: $secondary;
|
color: $secondary;
|
||||||
}
|
}
|
||||||
/* purgecss end ignore */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for the sidebar nav */
|
/* Styles for the sidebar nav */
|
||||||
|
|
|
||||||
1
changelogs/internal/newsfragments/2264.clarification
Normal file
1
changelogs/internal/newsfragments/2264.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Add version picker in the navbar.
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify what the minimum_valid_until_ts field means when it is set in key queries.
|
||||||
|
|
@ -34,8 +34,8 @@ paths:
|
||||||
- in: query
|
- in: query
|
||||||
name: minimum_valid_until_ts
|
name: minimum_valid_until_ts
|
||||||
description: |-
|
description: |-
|
||||||
A millisecond POSIX timestamp in milliseconds indicating when the returned
|
A millisecond POSIX timestamp. The returned keys MUST be valid
|
||||||
certificates will need to be valid until to be useful to the requesting server.
|
until at least this timestamp.
|
||||||
|
|
||||||
If not supplied, the current time as determined by the notary server is used.
|
If not supplied, the current time as determined by the notary server is used.
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -98,9 +98,8 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
description: |-
|
description: |-
|
||||||
A millisecond POSIX timestamp in milliseconds indicating when
|
A millisecond POSIX timestamp. The returned keys
|
||||||
the returned certificates will need to be valid until to be
|
MUST be valid until at least this timestamp.
|
||||||
useful to the requesting server.
|
|
||||||
|
|
||||||
If not supplied, the current time as determined by the notary
|
If not supplied, the current time as determined by the notary
|
||||||
server is used.
|
server is used.
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@ const purgecss = require('@fullhuman/postcss-purgecss')({
|
||||||
extensions: ["json"],
|
extensions: ["json"],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
// As these classes are only applied by JavaScript, PurgeCSS doesn't see them
|
||||||
|
// in the source code and removes them unless we explicitly tell it not to.
|
||||||
|
safelist: ['version-picker-selected', 'version-picker-latest']
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue