Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Elastic.Documentation.Site/Assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
@import './api-docs.css';
@import 'tippy.js/dist/tippy.css';

html {
/* We need to use 14px because EUI works best with a 14px base */
font-size: 14px;
}

body {
/* This is still needed because of some usages of ch units and to maintain the previous behavior */
font-size: 16px;
}

:root {
--outline-size: max(2px, 0.08em);
--outline-style: auto;
Expand Down
10 changes: 10 additions & 0 deletions src/Elastic.Documentation.Site/Assets/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,14 @@
--color-poppy: #fa744e; /* == --color-poppy-90 */

--spacing: 4px;

/* Typography scale based on a 14px base but to maintain the behaviour of 16px */
--text-xs: 0.857rem; /* 12px */
--text-sm: 1rem; /* 14px */
--text-base: 1.143rem; /* 16px */
--text-xl: 1.429rem; /* 20px */
--text-2xl: 1.714rem; /* 24px */
--text-3xl: 2.143rem; /* 30px */
--text-4xl: 2.571rem; /* 36px */
--text-5xl: 3.429rem; /* 48px */
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const VersionDropdown = ({
<EuiText
css={css`
font-weight: ${euiTheme.font.weight.bold};
font-size: ${useEuiFontSize('xs').fontSize};
font-size: ${useEuiFontSize('s').fontSize};
`}
>
Current version ({currentVersion})
Expand Down
Loading