Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 702b6e4

Browse files
committed
Add dark theme
1 parent 4b09891 commit 702b6e4

3 files changed

Lines changed: 197 additions & 2 deletions

File tree

.esdoc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"classProperties": true,
77
"objectRestSpread": true,
88
"exportExtensions": true
9-
}
9+
},
10+
"styles": ["./esdocs/styles.css"]
1011
}

esdocs/styles.css

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
2+
3+
body, html {
4+
background-color: #0f1419;
5+
color: #c5c5c5;
6+
}
7+
8+
.layout-container > header {
9+
background-color: #0f1419;
10+
border-color: #5c6773;
11+
}
12+
13+
.layout-container > header > a {
14+
color: #ff7733;
15+
}
16+
17+
.layout-container > header > a.repo-url-github {
18+
filter: invert();
19+
}
20+
21+
a {
22+
color: #0096cf;
23+
}
24+
25+
a:hover {
26+
text-decoration: underline;
27+
}
28+
29+
code, pre {
30+
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
31+
white-space: pre-wrap;
32+
}
33+
34+
pre {
35+
background-color: #191f26;
36+
border-radius: 4px;
37+
color: #e6e1cf;
38+
}
39+
40+
code {
41+
color: #ffb454;
42+
}
43+
44+
pre > code {
45+
background: none;
46+
}
47+
48+
pre.source-code {
49+
background: none;
50+
background-color: #191f26;
51+
}
52+
53+
.import-path pre.prettyprint,
54+
.import-path pre.prettyprint code {
55+
background-color: #191f26;
56+
padding: 2px 4px;
57+
font-size: 13px;
58+
}
59+
60+
code, kbd, pre, samp {
61+
}
62+
63+
h1 {
64+
border-bottom: 1px dashed #D5D5D5;
65+
font-size: 24px;
66+
}
67+
68+
h2 {
69+
border-bottom: 1px solid #5c6773;
70+
font-size: 22px;
71+
}
72+
73+
h1, h2 {
74+
color: white;
75+
margin: 20px 0 15px 0;
76+
padding-bottom: 6px;
77+
}
78+
79+
h3 {
80+
font-weight: 600;
81+
font-size: 20px;
82+
background-color: transparent;
83+
color: inherit;
84+
}
85+
86+
h3 .right-info {
87+
line-height: 24px;
88+
}
89+
90+
.content .detail > h3 {
91+
color: inherit;
92+
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
93+
}
94+
95+
.content .detail > h3 .access {
96+
color: #ffa0a5;
97+
}
98+
99+
.content .detail > h3 [data-ice="name"] {
100+
color: #fdd687;
101+
}
102+
103+
.content .detail > h3 [data-ice="source"]::before { content: "[" }
104+
.content .detail > h3 [data-ice="source"]::after { content: "]" }
105+
106+
.content .detail h4 {
107+
color: #6a6b75;
108+
font-size: 16px;
109+
}
110+
111+
.inner-link-active, :target {
112+
background: rgba(255, 52, 52, 0.33);
113+
border-right: 3px solid #ffb44c;
114+
}
115+
116+
.navigation {
117+
border: none;
118+
}
119+
120+
.navigation li {
121+
margin: 0;
122+
text-overflow: ellipsis;
123+
overflow: hidden;
124+
display: block;
125+
padding: 7px 5px;
126+
}
127+
128+
.navigation li:hover {
129+
background-color: rgba(70, 70, 70, 0.33);
130+
}
131+
132+
.navigation li a {
133+
display: inline-block;
134+
color: #5c6773 !important;
135+
font-size: 14px;
136+
font-weight: 400;
137+
line-height: 20px;
138+
padding: 0 5px;
139+
}
140+
141+
.kind-class,
142+
.kind-function,
143+
.kind-interface,
144+
.kind-typedef,
145+
.kind-variable,
146+
.kind-external {
147+
margin-left: 10px;
148+
width: 20px;
149+
height: 20px;
150+
background-color: transparent !important;
151+
margin-right: 0;
152+
}
153+
154+
table,
155+
table.params td, table.summary td,
156+
table.params th, table.summary th
157+
{
158+
border-color: #4E4C4C;
159+
}
160+
161+
table.params thead td, table.summary thead td {
162+
background-color: #28282d;
163+
color: #e6e1cf;
164+
}
165+
166+
.footer, .file-footer {
167+
border-top: 1px solid #5c6773;
168+
}
169+
170+
.kwd { color: #ffa0a5 }
171+
.pun { color: #8959a8 }
172+
.pln { color: #e6e1cf }
173+
.str { color: #b8cc52 }
174+
175+
.search-input {
176+
color: #e6e1cf;
177+
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
178+
}
179+
180+
.search-result {
181+
background-color: #141920;
182+
border: 1px solid #4E4C4C;
183+
}
184+
185+
.search-result li.search-separator {
186+
background-color: transparent;
187+
margin-top: 10px;
188+
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
189+
}
190+
191+
.search-result li.search-separator
192+
193+
.search-result li.selected {
194+
background: rgba(255, 52, 52, 0.33);
195+
}

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,3 @@ export function createRest(creator) {
415415

416416
export { flattenRoutes } from './flatten'
417417
export { printRoutes } from './printer'
418-

0 commit comments

Comments
 (0)