|
1 | 1 | /* |
2 | 2 | Force the light theme |
3 | 3 | */ |
4 | | -:root { |
5 | | - color-scheme: light; |
| 4 | +:root body { |
| 5 | + /* Light - Datadog Theme */ |
| 6 | + --color-background: #faf9fc; |
| 7 | + --color-background-secondary: #f5f4f7; |
| 8 | + /* Not to be confused with [:active](https://developer.mozilla.org/en-US/docs/Web/CSS/:active) */ |
| 9 | + --color-background-active: #e8e6ec; |
| 10 | + --color-background-warning: #fff3cd; |
| 11 | + --color-warning-text: #856404; |
| 12 | + --color-accent: #d1c7dd; |
| 13 | + --color-active-menu-item: transparent; |
| 14 | + --color-text: #2d2d2d; |
| 15 | + --color-contrast-text: #632ca6; |
| 16 | + --color-text-aside: #6c6c6c; |
| 17 | + |
| 18 | + --color-icon-background: var(--color-background); |
| 19 | + --color-icon-text: var(--color-text); |
| 20 | + |
| 21 | + --color-comment-tag-text: var(--color-text); |
| 22 | + --color-comment-tag: var(--color-background); |
| 23 | + |
| 24 | + --color-link: #632ca6; |
| 25 | + --color-focus-outline: #632ca6; |
| 26 | + |
| 27 | + --color-ts-keyword: #632ca6; |
| 28 | + --color-ts-project: #8e44ad; |
| 29 | + --color-ts-module: var(--color-ts-project); |
| 30 | + --color-ts-namespace: var(--color-ts-project); |
| 31 | + --color-ts-enum: #9b59b6; |
| 32 | + --color-ts-enum-member: var(--color-ts-enum); |
| 33 | + --color-ts-variable: #3498db; |
| 34 | + --color-ts-function: #632ca6; |
| 35 | + --color-ts-class: #e74c3c; |
| 36 | + --color-ts-interface: #27ae60; |
| 37 | + --color-ts-constructor: var(--color-ts-class); |
| 38 | + --color-ts-property: #8e44ad; |
| 39 | + --color-ts-method: #8e44ad; |
| 40 | + --color-ts-reference: #e91e63; |
| 41 | + --color-ts-call-signature: var(--color-ts-method); |
| 42 | + --color-ts-index-signature: var(--color-ts-property); |
| 43 | + --color-ts-constructor-signature: var(--color-ts-constructor); |
| 44 | + --color-ts-parameter: var(--color-ts-variable); |
| 45 | + |
| 46 | + /* type literal not included as links will never be generated to it */ |
| 47 | + --color-ts-type-parameter: #d35400; |
| 48 | + --color-ts-accessor: #c0392b; |
| 49 | + --color-ts-get-signature: var(--color-ts-accessor); |
| 50 | + --color-ts-set-signature: var(--color-ts-accessor); |
| 51 | + --color-ts-type-alias: #632ca6; |
| 52 | + /* reference not included as links will be colored with the kind that it points to */ |
| 53 | + --color-document: #2d2d2d; |
| 54 | + |
| 55 | + --color-alert-note: #632ca6; |
| 56 | + --color-alert-tip: #27ae60; |
| 57 | + --color-alert-important: #8e44ad; |
| 58 | + --color-alert-warning: #f39c12; |
| 59 | + --color-alert-caution: #e74c3c; |
| 60 | + |
| 61 | + --external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23632ca6' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>"); |
| 62 | + --color-scheme: light; |
| 63 | + |
| 64 | + /* |
| 65 | + Highlight colors |
| 66 | + */ |
| 67 | + --hl-0: var(--light-hl-0); |
| 68 | + --hl-1: var(--light-hl-1); |
| 69 | + --hl-2: var(--light-hl-2); |
| 70 | + --hl-3: var(--light-hl-3); |
| 71 | + --hl-4: var(--light-hl-4); |
| 72 | + --hl-5: var(--light-hl-5); |
| 73 | + --hl-6: var(--light-hl-6); |
| 74 | + --hl-7: var(--light-hl-7); |
| 75 | + --hl-8: var(--light-hl-8); |
| 76 | + --hl-9: var(--light-hl-9); |
| 77 | + --hl-10: var(--light-hl-10); |
| 78 | + --hl-11: var(--light-hl-11); |
| 79 | + --hl-12: var(--light-hl-12); |
| 80 | + --code-background: var(--light-code-background); |
| 81 | +} |
| 82 | + |
| 83 | +body { |
| 84 | + font-family: nationalweb, Helvetica, Arial, sans-serif; |
| 85 | + font-weight: 200; |
| 86 | +} |
| 87 | + |
| 88 | +h1 { |
| 89 | + font-size: 2.25rem; |
| 90 | + font-weight: 600; |
| 91 | +} |
| 92 | +h2 { |
| 93 | + font-size: 2rem; |
| 94 | + font-weight: 200; |
6 | 95 | } |
7 | 96 |
|
8 | 97 | /* |
|
19 | 108 | display: none; |
20 | 109 | } |
21 | 110 |
|
| 111 | +/* |
| 112 | + Hide the settings button |
| 113 | +*/ |
| 114 | +.tsd-navigation.settings { |
| 115 | + display: none; |
| 116 | +} |
| 117 | + |
22 | 118 | /* |
23 | 119 | Remove bullet points from the Type declaration |
24 | 120 | */ |
|
73 | 169 | max-width: 100%; |
74 | 170 | margin-bottom: 1rem; |
75 | 171 | } |
| 172 | + |
| 173 | +/* |
| 174 | + Active link in the left menu |
| 175 | +*/ |
| 176 | +.tsd-navigation a.current, |
| 177 | +.tsd-page-navigation a.current { |
| 178 | + .tsd-kind-icon ~ span { |
| 179 | + color: var(--color-contrast-text); |
| 180 | + } |
| 181 | +} |
0 commit comments