|
3 | 3 | Segoe UI Emoji !important; |
4 | 4 | } |
5 | 5 |
|
| 6 | +/* Disable header disappearing */ |
6 | 7 | .tsd-page-toolbar { |
7 | 8 | transform: none !important; |
8 | 9 | } |
9 | | - |
10 | | -.tsd-navigation { |
11 | | - top: 40px !important; |
| 10 | +.tsd-navigation.secondary { |
| 11 | + top: calc(40px) !important; |
12 | 12 | max-height: calc(100vh - 40px) !important; |
13 | | - padding-top: 2rem !important; |
14 | 13 | } |
15 | 14 |
|
16 | | -.tsd-navigation > ul > li:first-child { |
17 | | - margin-top: 0 !important; |
| 15 | +/* Adjust spacings */ |
| 16 | +.tsd-navigation.primary { |
| 17 | + padding-bottom: 0 !important; |
| 18 | +} |
| 19 | +.tsd-navigation.secondary > ul > li.tsd-kind-class:first-child:not(.current) { |
| 20 | + margin-top: 20px; |
18 | 21 | } |
19 | 22 |
|
| 23 | +/* Hide unnecessary filter */ |
20 | 24 | #tsd-filter-visibility { |
21 | 25 | display: none !important; |
22 | 26 | } |
23 | 27 |
|
24 | | -#tsd-filter-only-exported, |
25 | | -[for='tsd-filter-only-exported'] { |
26 | | - display: none !important; |
| 28 | +/* Hide "Class" text */ |
| 29 | +.tsd-page-title .tsd-breadcrumb + h1 { |
| 30 | + overflow: hidden; |
| 31 | + text-indent: -90px; |
27 | 32 | } |
28 | 33 |
|
| 34 | +/* Easier to read line-height */ |
29 | 35 | .tsd-typography p { |
30 | 36 | line-height: 1.7; |
31 | 37 | } |
32 | 38 |
|
33 | | -.tsd-typography p a { |
34 | | - color: #0366d6; |
35 | | -} |
36 | | - |
37 | | -pre { |
38 | | - background: #f6f8fa !important; |
39 | | -} |
| 39 | +/* GitHub styles for <pre> blocks */ |
| 40 | +:root { |
| 41 | + --light-hl-0: #d73a49; /* declarations */ |
| 42 | + --light-hl-1: #000000; |
| 43 | + --light-hl-2: #0070c1; |
| 44 | + --light-hl-3: #6442c1; /* names */ |
| 45 | + --light-hl-4: #24292e; /* variable names */ |
| 46 | + --light-hl-5: #098658; |
| 47 | + --light-hl-6: #6a737d; /* comments */ |
| 48 | + --light-hl-7: #af00db; |
| 49 | + --light-hl-8: #267f99; |
| 50 | + --light-hl-9: #a31515; |
| 51 | + --light-hl-10: #000000ff; |
40 | 52 |
|
41 | | -/* comments */ |
42 | | -pre span[style='color: #008000'] { |
43 | | - color: #6a737d !important; |
44 | | -} |
45 | | - |
46 | | -/* names */ |
47 | | -pre span[style='color: #795E26'] { |
48 | | - color: #6442c1 !important; |
49 | | -} |
50 | | - |
51 | | -/* declarations */ |
52 | | -pre span[style='color: #0000FF'] { |
53 | | - color: #d73a49 !important; |
54 | | -} |
| 53 | + --light-code-background: #f6f8fa; |
55 | 54 |
|
56 | | -/* variable names */ |
57 | | -pre span[style='color: #001080'] { |
58 | | - color: #24292e !important; |
| 55 | + --light-color-link: #0366d6; |
59 | 56 | } |
0 commit comments