Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only relative font sizes #894

Merged
merged 2 commits into from Oct 27, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/theme/css/chrome.css
Expand Up @@ -85,8 +85,8 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta
.menu-title {
display: inline-block;
font-weight: 200;
font-size: 20px;
line-height: 50px;
font-size: 2rem;
line-height: 5rem;
text-align: center;
margin: 0;
flex: 1;
Expand Down
7 changes: 6 additions & 1 deletion src/theme/css/general.css
Expand Up @@ -2,6 +2,11 @@

@import 'variables.css';

:root {
/* Browser default font-size is 16px, this way 1 rem = 10px */
font-size: 62.5%;
}

html {
font-family: "Open Sans", sans-serif;
color: var(--fg);
Expand All @@ -11,7 +16,7 @@ html {

body {
margin: 0;
font-size: 1rem;
font-size: 1.6rem;
overflow-x: hidden;
}

Expand Down