diff options
Diffstat (limited to 'subprojects/docs/src/css/custom.css')
-rw-r--r-- | subprojects/docs/src/css/custom.css | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/subprojects/docs/src/css/custom.css b/subprojects/docs/src/css/custom.css new file mode 100644 index 00000000..30384369 --- /dev/null +++ b/subprojects/docs/src/css/custom.css | |||
@@ -0,0 +1,142 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2024 The Refinery Authors | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
6 | |||
7 | @import '@fontsource-variable/open-sans/wdth.css'; | ||
8 | @import '@fontsource-variable/open-sans/wdth-italic.css'; | ||
9 | @import '@fontsource-variable/jetbrains-mono/wght.css'; | ||
10 | @import '@fontsource-variable/jetbrains-mono/wght-italic.css'; | ||
11 | |||
12 | @import './sr-only.css'; | ||
13 | |||
14 | :root { | ||
15 | --ifm-font-family-base: 'Open Sans Variable', | ||
16 | 'Open Sans', | ||
17 | 'Roboto', | ||
18 | 'Helvetica', | ||
19 | 'Arial', | ||
20 | sans-serif; | ||
21 | --ifm-font-family-monospace: 'JetBrains Mono Variable', | ||
22 | 'JetBrains Mono', | ||
23 | 'Cascadia Code', | ||
24 | 'Fira Code', | ||
25 | monospace; | ||
26 | --ifm-code-font-size: 95%; | ||
27 | --ifm-background-surface-color: #f5f5f5; | ||
28 | --refinery-outer-border-color: rgb(0 0 0 / 0.21); | ||
29 | --ifm-font-color-base: #19202b; | ||
30 | --ifm-color-content-secondary: #696c77; | ||
31 | --ifm-color-primary: #038a99; | ||
32 | --ifm-color-primary-dark: #037c8a; | ||
33 | --ifm-color-primary-darker: #037582; | ||
34 | --ifm-color-primary-darkest: #02616b; | ||
35 | --ifm-color-primary-light: #0398a8; | ||
36 | --ifm-color-primary-lighter: #039fb0; | ||
37 | --ifm-color-primary-lightest: #04b3c7; | ||
38 | --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); | ||
39 | --ifm-blockquote-color: var(--ifm-color-content-secondary); | ||
40 | --ifm-card-background-color: #fff; | ||
41 | /* elevation=4 shadow from Material UI. */ | ||
42 | --ifm-global-shadow-md: 0px 2px 4px -1px rgba(0,0,0,0.2), | ||
43 | 0px 4px 5px 0px rgba(0,0,0,0.14), | ||
44 | 0px 1px 10px 0px rgba(0,0,0,0.12) !important; | ||
45 | /* elevation=8 shadow from Material UI. */ | ||
46 | --ifm-global-shadow-tl: 0px 5px 5px -3px rgba(0,0,0,0.2), | ||
47 | 0px 8px 10px 1px rgba(0,0,0,0.14), | ||
48 | 0px 3px 14px 2px rgba(0,0,0,0.12) !important; | ||
49 | --refinery-highlight: #ca1243; | ||
50 | } | ||
51 | |||
52 | [data-theme='dark'] { | ||
53 | --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); | ||
54 | --ifm-background-color: #21252b !important; | ||
55 | --ifm-background-surface-color: #282c34 !important; | ||
56 | --refinery-outer-border-color: transparent; | ||
57 | --ifm-font-color-base: #ebebff !important; | ||
58 | --ifm-color-content-secondary: #abb2bf !important; | ||
59 | --ifm-color-primary: #56b6c2; | ||
60 | --ifm-color-primary-dark: #43acb9; | ||
61 | --ifm-color-primary-darker: #3fa2af; | ||
62 | --ifm-color-primary-darkest: #348690; | ||
63 | --ifm-color-primary-light: #6bbfc9; | ||
64 | --ifm-color-primary-lighter: #75c3cd; | ||
65 | --ifm-color-primary-lightest: #94d1d8; | ||
66 | --ifm-card-background-color: var(--ifm-background-surface-color) !important; | ||
67 | --refinery-highlight: #e06c75; | ||
68 | } | ||
69 | |||
70 | code { | ||
71 | font-feature-settings: 'liga', 'calt'; | ||
72 | } | ||
73 | |||
74 | .navbar { | ||
75 | --ifm-navbar-background-color: var(--ifm-background-surface-color) !important; | ||
76 | --ifm-navbar-shadow: 0 1px var(--refinery-outer-border-color) !important; | ||
77 | } | ||
78 | |||
79 | [data-theme='dark'] .navbar { | ||
80 | --ifm-navbar-shadow: var(--ifm-global-shadow-lw) !important; | ||
81 | } | ||
82 | |||
83 | .button, .navbar__link, .footer__link-item { | ||
84 | text-transform: uppercase; | ||
85 | font-variation-settings: 'wdth' 87.5; | ||
86 | } | ||
87 | |||
88 | .button--play::before { | ||
89 | content: '▶'; | ||
90 | display: inline-block; | ||
91 | transform: translatey(-0.1em); | ||
92 | padding-right: 1ch; | ||
93 | } | ||
94 | |||
95 | .button, .navbar__link { | ||
96 | font-weight: 600; | ||
97 | } | ||
98 | |||
99 | .navbar__link--try-now { | ||
100 | color: var(--ifm-color-primary); | ||
101 | background: rgb(3 138 153 / 12%); | ||
102 | transition: background var(--ifm-button-transition-duration) var(--ifm-transition-timing-default); | ||
103 | } | ||
104 | |||
105 | .navbar__inner .navbar__link--try-now { | ||
106 | margin: 0 0.75rem 0 0.5rem; | ||
107 | padding: 0.25rem 1.25rem; | ||
108 | border-radius: 50em; | ||
109 | } | ||
110 | |||
111 | .navbar__link--try-now:hover, | ||
112 | .navbar__link--try-now:active { | ||
113 | color: var(--ifm-color-primary); | ||
114 | background: rgb(3 138 153 / 16%); | ||
115 | } | ||
116 | |||
117 | [data-theme="dark"] .navbar__link--try-now { | ||
118 | background: rgb(86 182 194 / 16%); | ||
119 | } | ||
120 | |||
121 | [data-theme="dark"] .navbar__link--try-now:hover, | ||
122 | [data-theme="dark"] .navbar__link--try-now:active { | ||
123 | background: rgb(86 182 194 / 24%); | ||
124 | } | ||
125 | |||
126 | .menu { | ||
127 | --ifm-menu-color: var(--ifm-color-content-secondary) !important; | ||
128 | } | ||
129 | |||
130 | .footer { | ||
131 | --ifm-footer-background-color: var(--ifm-background-surface-color) !important; | ||
132 | --ifm-footer-link-color: var(--ifm-color-content-secondary) !important; | ||
133 | box-shadow: 0 -1px var(--refinery-outer-border-color); | ||
134 | } | ||
135 | |||
136 | .hero__title { | ||
137 | font-weight: 800; | ||
138 | } | ||
139 | |||
140 | .markdown svg { | ||
141 | max-width: 100%; | ||
142 | } | ||