Skip to content

Commit cfe32d5

Browse files
committed
Style tweaks, add external icons
1 parent d16103c commit cfe32d5

File tree

5 files changed

+47
-12
lines changed

5 files changed

+47
-12
lines changed

src/css/custom.css

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,52 @@
55
* work well for content-centric websites.
66
*/
77

8-
/* You can override the default Infima variables here. */
98
:root {
109
--ifm-color-primary: #0069d9;
11-
--ifm-color-primary-dark: rgb(33, 175, 144);
12-
--ifm-color-primary-darker: rgb(31, 165, 136);
13-
--ifm-color-primary-darkest: rgb(26, 136, 112);
14-
--ifm-color-primary-light: rgb(70, 203, 174);
15-
--ifm-color-primary-lighter: rgb(102, 212, 189);
16-
--ifm-color-primary-lightest: rgb(146, 224, 208);
17-
--ifm-code-font-size: 95%;
1810
}
1911

20-
.docusaurus-highlight-code-line {
21-
background-color: rgb(72, 77, 91);
12+
[data-theme="dark"]:root {
13+
--ifm-toc-border-color: #373737;
14+
--ifm-color-primary: #55a7ff;
15+
}
16+
17+
.main-wrapper {
18+
display: flex;
19+
flex-direction: column;
20+
}
21+
22+
.main-wrapper > div:first-child {
23+
flex: 1 0 0;
24+
}
25+
26+
.navbar__toggle,
27+
.navbar__logo {
28+
margin-right: 1rem;
29+
}
30+
31+
.header-github-link::before {
32+
content: "";
33+
width: 24px;
34+
height: 24px;
35+
display: flex;
36+
background-repeat: no-repeat;
37+
background-image: url("/experimenter-docs/img/github.svg");
38+
}
39+
40+
[data-theme="dark"] .header-github-link::before {
41+
background-image: url("/experimenter-docs/img/github-dark.svg");
42+
}
43+
44+
.menu__list a[href^="http://"]:not([href*="localhost:3000"]):after,
45+
.menu__list a[href^="https://"]:not([href*="mozilla.github.io/experimenter-docs"]):after
46+
{
47+
content: "";
48+
background-repeat: no-repeat;
49+
background-image: url("/experimenter-docs/img/external.svg");
2250
display: block;
23-
margin: 0 calc(-1 * var(--ifm-pre-padding));
24-
padding: 0 var(--ifm-pre-padding);
51+
min-width: 15px;
52+
height: 15px;
53+
top: 2px;
54+
position: relative;
55+
margin-left: 10px;
2556
}

static/img/external.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/github-dark.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/github.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/logo-dark.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)