Skip to content

Commit 165d97d

Browse files
committed
Fix selector for version warnings
When deployed on GitHub Pages, the URL is no longer a relative path, meaning that the "starts with" selector no longer cuts it. This hopefully should fix the issue.
1 parent dac07ef commit 165d97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/daux/themes/rsp/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ a[href*="archive/index" i] + ul.Nav {
262262
}
263263

264264
/* Mark all entries in archive as "outdated" */
265-
.Page__header:has(h1 a[href^="/archive/v" i]) + .s-content::before {
265+
.Page__header:has(h1 a[href*="/archive/v" i]) + .s-content::before {
266266
content: 'WARNING: You are viewing documentation for an outdated version. It is no longer supported!';
267267

268268
font-weight: bold;
@@ -278,7 +278,7 @@ a[href*="archive/index" i] + ul.Nav {
278278
}
279279

280280
/* Mark "next" entry in archive as "not yet released" */
281-
.Page__header:has(h1 a[href^="/archive/v_next" i]) + .s-content::before {
281+
.Page__header:has(h1 a[href*="/archive/v_next" i]) + .s-content::before {
282282
content: 'INFO: You are viewing documentation for an upcoming version. It has not yet been released!';
283283

284284
font-weight: bold;

0 commit comments

Comments
 (0)