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 2424@import './api-docs.css' ;
2525@import 'tippy.js/dist/tippy.css' ;
2626
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+
2737: root {
2838 --outline-size : max (2px , 0.08em );
2939 --outline-style : auto;
Original file line number Diff line number Diff line change 175175 --color-poppy : # fa744e ; /* == --color-poppy-90 */
176176
177177 --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 */
178188}
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ const VersionDropdown = ({
197197 < EuiText
198198 css = { css `
199199 font-weight : ${ euiTheme . font . weight . bold } ;
200- font-size : ${ useEuiFontSize ( 'xs ' ) . fontSize } ;
200+ font-size : ${ useEuiFontSize ( 's ' ) . fontSize } ;
201201 ` }
202202 >
203203 Current version ({ currentVersion } )
You can’t perform that action at this time.
0 commit comments