File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
src/Elastic.Documentation.Site/Assets Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 24
24
@import './api-docs.css' ;
25
25
@import 'tippy.js/dist/tippy.css' ;
26
26
27
+ html {
28
+ /* We need to use 14px because EUI works best with a 14px base */
29
+ font-size : 14px ;
30
+ }
31
+
32
+ body {
33
+ /* This is still needed because of some usages of ch units and to maintain the previous behavior */
34
+ font-size : 16px ;
35
+ }
36
+
27
37
: root {
28
38
--outline-size : max (2px , 0.08em );
29
39
--outline-style : auto;
Original file line number Diff line number Diff line change 175
175
--color-poppy : # fa744e ; /* == --color-poppy-90 */
176
176
177
177
--spacing : 4px ;
178
+
179
+ /* Typography scale based on a 14px base but to maintain the behaviour of 16px */
180
+ --text-xs : 0.857rem ; /* 12px */
181
+ --text-sm : 1rem ; /* 14px */
182
+ --text-base : 1.143rem ; /* 16px */
183
+ --text-xl : 1.429rem ; /* 20px */
184
+ --text-2xl : 1.714rem ; /* 24px */
185
+ --text-3xl : 2.143rem ; /* 30px */
186
+ --text-4xl : 2.571rem ; /* 36px */
187
+ --text-5xl : 3.429rem ; /* 48px */
178
188
}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ const VersionDropdown = ({
197
197
< EuiText
198
198
css = { css `
199
199
font-weight : ${ euiTheme . font . weight . bold } ;
200
- font-size : ${ useEuiFontSize ( 'xs ' ) . fontSize } ;
200
+ font-size : ${ useEuiFontSize ( 's ' ) . fontSize } ;
201
201
` }
202
202
>
203
203
Current version ({ currentVersion } )
You can’t perform that action at this time.
0 commit comments