Skip to content

Commit 5163b14

Browse files
committed
Change navbar to use dark background and light text
This contrasts a lot better than what was there previously.
1 parent 42ff4e3 commit 5163b14

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

mopidy_api_explorer/static/css/app.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1+
:root {
2+
--mopidy-bg: #465158;
3+
--mopidy-fg: #e8ecef;
4+
}
5+
16
body {
27
position: relative;
38
}
49
pre {
510
margin-bottom: 0;
611
}
712

13+
.bg-mopidy {
14+
background-color: var(--mopidy-bg);
15+
}
16+
17+
.navbar-dark .navbar-brand,
18+
.navbar-dark .navbar-nav .nav-link,
19+
.navbar-dark .navbar-nav .nav-link:focus,
20+
.navbar-dark .navbar-nav .nav-link:hover {
21+
color: var(--mopidy-fg);
22+
}
23+
824
#toc-container {
925
position: sticky;
1026
top: 60px;

mopidy_api_explorer/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</head>
1010
<body data-bs-spy="scroll" data-bs-target="#toc-container" data-bs-offset="100">
1111

12-
<header class="navbar navbar-expand-lg navbar-light bg-primary sticky-top">
12+
<header class="navbar navbar-expand-lg navbar-dark bg-mopidy sticky-top">
1313
<nav class="container flex-wrap flex-lg-nowrap" aria-label="Navigation">
1414
<a class="navbar-brand" href="#">Mopidy API Explorer</a>
1515
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-contents" aria-controls="navbar-contents" aria-expanded="false" aria-label="Toggle navigation">

0 commit comments

Comments
 (0)