Skip to content

Commit 33e50b8

Browse files
minijacksonfricklerhandwerk
authored andcommitted
update build to latest nixpkgs version, fixing theme changes
Also, since the primary/secondary colors changed with the theme upgrade, I took the liberty to choose some Nix-specific colors, taken from the Nix branding guide.
1 parent c6ae096 commit 33e50b8

File tree

2 files changed

+13
-35
lines changed

2 files changed

+13
-35
lines changed

default.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
let
1212
lib = pkgs.lib;
1313
releases = import ./nix/releases.nix { inherit lib inputs system; };
14-
# Sphinx skin got very ugly in 24.05, let's not bump it without fixing that
15-
pkgs-pinned = import inputs.nixpkgs."23.11" {
16-
config = { };
17-
inherit system;
18-
};
19-
nix-dev-python-pkgs = with pkgs-pinned.python3.pkgs; [
14+
nix-dev-python-pkgs = with pkgs.python3.pkgs; [
2015
linkify-it-py
2116
myst-parser
2217
sphinx

source/_static/css/custom.css

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
:root {
2-
--sd-color-card-border-hover: var(--pst-color-primary) !important;
1+
html[data-theme="light"] {
2+
/* NixOS branding's Argentinian Blue L55 */
3+
--pst-color-primary: #2579ab !important;
4+
/* NixOS branding's Afghani Blue L55 */
5+
--pst-color-secondary: #506fb2 !important;
36
}
47

5-
div.highlight-shell-session + div.highlight-none pre {
6-
background-color: var(--pst-color-preformatted-text),1 !important;
7-
color: var(--pst-color-preformatted-background),1 !important;
8+
html[data-theme="dark"] {
9+
/* NixOS branding's Argentinian Blue L65 */
10+
--pst-color-primary: #3d98d1 !important;
11+
/* NixOS branding's Afghani Blue L65 */
12+
--pst-color-secondary: #698dd8 !important;
813
}
914

1015
div.expression > div.highlight > pre::before {
@@ -64,10 +69,6 @@ html[data-theme="dark"] .highlight .gd {
6469
color: inherit !important;
6570
}
6671

67-
.topic {
68-
padding: 30px;
69-
}
70-
7172
.bd-links {
7273
padding-bottom: 0 !important;
7374
}
@@ -96,32 +97,14 @@ html[data-theme="dark"] .highlight .gd {
9697
margin-bottom: 0.5rem;
9798
}
9899

99-
.navbar-nav li.toctree-l1 > .toctree-toggle {
100+
.navbar-nav li.toctree-l1 > details > summary > .toctree-toggle {
100101
display: none;
101102
}
102103

103104
.navbar-nav li.toctree-l1 > a {
104105
font-weight: 600;
105106
}
106107

107-
.navbar-nav li.toctree-l1 > ul {
108+
.navbar-nav li.toctree-l1 > details > ul {
108109
padding: 0;
109110
}
110-
111-
html[data-theme="dark"] details {
112-
background-color: #323c537d;
113-
border: 1px solid #323c537d;
114-
}
115-
116-
html[data-theme="light"] details {
117-
background-color: #abc8debf;
118-
border: 1px solid #abc8debf;
119-
}
120-
121-
tml[data-theme="dark"] details a {
122-
color: #6097c1;
123-
}
124-
125-
html[data-theme="light"] details a {
126-
color: #0042aa;
127-
}

0 commit comments

Comments
 (0)