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

Commit 3672698

Browse files
committed
Improve esdoc styles
1 parent dcddef7 commit 3672698

1 file changed

Lines changed: 59 additions & 11 deletions

File tree

esdocs/styles.css

Lines changed: 59 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
body, html {
44
background-color: #0f1419;
5-
color: #c5c5c5;
5+
/*color: #c5c5c5;*/
6+
color: #adadad;
67
}
78

89
.layout-container > header {
@@ -19,15 +20,14 @@ body, html {
1920
}
2021

2122
a {
22-
color: #0096cf;
23+
color: #68afca;
2324
}
2425

2526
a:hover {
2627
text-decoration: underline;
2728
}
2829

2930
code, pre {
30-
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
3131
white-space: pre-wrap;
3232
}
3333

@@ -58,6 +58,18 @@ pre.source-code.line-number li.active {
5858
position: relative;
5959
}
6060

61+
code, pre,
62+
.search-input,
63+
.header-notice,
64+
.version, .since,
65+
.content .detail > h3,
66+
.search-result li.search-separator,
67+
table.params tbody tr td:nth-child(1), table.params tbody tr td:nth-child(2),
68+
table.summary [data-ice="name"], table.summary [data-ice="signature"], table.summary span.access
69+
{
70+
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
71+
}
72+
6173
.raw-source-code code {
6274
color: #5a5977;
6375
}
@@ -77,15 +89,24 @@ pre.source-code.line-number li.active {
7789
padding: 2px 4px;
7890
font-size: 13px;
7991
}
92+
.import-path .typ:before, .import-path .typ:after {
93+
content: ' '
94+
}
8095

8196
.kwd { color: #ffa0a5 }
8297
.pun { color: #d2abea }
83-
.pln { color: #e6e1cf }
98+
/*.pln { color: #e6e1cf }*/
99+
.pln { color: #c5bb98 }
84100
.str { color: #b8cc52 }
85101
.typ { color: #99e0c9 }
86102
.com { color: #5f694f }
87103
/*.com { color: #4D4D4C }*/
88104

105+
.version, .since {
106+
color: #d2abea;
107+
font-size: 14px;
108+
}
109+
89110
code, kbd, pre, samp {
90111
}
91112

@@ -116,15 +137,27 @@ h3 .right-info {
116137
line-height: 24px;
117138
}
118139

140+
.header-notice [data-ice="access"] {
141+
color: #ffa0a5;
142+
}
143+
.header-notice [data-ice="kind"] {
144+
color: #fdd687;
145+
}
146+
147+
.content .detail + .detail {
148+
margin-top: 50px;
149+
}
150+
119151
.content .detail > h3 {
120152
color: inherit;
121-
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
122153
}
123154

124-
.content .detail > h3 .access {
155+
.content .detail > h3 .access,
156+
table.summary span.access {
125157
color: #ffa0a5;
126158
}
127159

160+
128161
.content .detail > h3 [data-ice="name"] {
129162
color: #fdd687;
130163
}
@@ -144,6 +177,7 @@ h3 .right-info {
144177

145178
.navigation {
146179
border: none;
180+
box-shadow: none;
147181
}
148182

149183
.navigation li {
@@ -188,21 +222,38 @@ table,
188222
table.params td, table.summary td, table.files-summary td,
189223
table.params th, table.summary th, table.files-summary th
190224
{
191-
border-color: #4E4C4C;
225+
/*border-color: #4E4C4C;*/
226+
/*border-color: transparent;*/
227+
border: none;
192228
}
193229

194230
table.params thead td, table.summary thead td, table.files-summary thead td {
195231
background-color: #28282d;
196232
color: #e6e1cf;
197233
}
198234

235+
table.params tbody tr:hover td {
236+
background-color: #191f26;
237+
}
238+
239+
table.summary tbody td {
240+
padding: 10px 5px;
241+
padding-bottom: 20px;
242+
}
243+
table.params tbody tr td:nth-child(1), table.params tbody tr td:nth-child(2) {
244+
font-size: 14px;
245+
}
246+
247+
table.summary span.access {
248+
line-height: 24px;
249+
}
250+
199251
.footer, .file-footer {
200252
border-top: 1px solid #5c6773;
201253
}
202254

203255
.search-input {
204256
color: #e6e1cf;
205-
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
206257
}
207258

208259
.search-result {
@@ -213,11 +264,8 @@ table.params thead td, table.summary thead td, table.files-summary thead td {
213264
.search-result li.search-separator {
214265
background-color: transparent;
215266
margin-top: 10px;
216-
font-family: "Source Code Pro", Menlo, Monaco, Consolas, Inconsolata, monospace;
217267
}
218268

219-
.search-result li.search-separator
220-
221269
.search-result li.selected {
222270
background: rgba(255, 52, 52, 0.33);
223271
}

0 commit comments

Comments
 (0)