Removed fixed *px sizes in favor or *rem

This commit is contained in:
t1enne
2022-09-14 08:37:45 +02:00
parent 408b21c626
commit 683399c340
6 changed files with 17 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
.root { .root {
position: relative; position: relative;
display: grid; display: grid;
padding: 20px; padding: 1.4rem;
} }
.row { .row {
@@ -15,8 +15,8 @@
.logo { .logo {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
margin-bottom: 10px; margin-bottom: 0.6rem;
margin-top: 10px; margin-top: 0.6rem;
} }
} }
} }
@@ -24,18 +24,18 @@
.titleSection { .titleSection {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-left: 10px; margin-left: 0.6rem;
.title { .title {
font-family: var(--theme-text-display-font-family); font-family: var(--theme-text-display-font-family);
color: var(--theme-color-palette-0); color: var(--theme-color-palette-0);
font-size: 32px; font-size: 2rem;
font-weight: bold; font-weight: bold;
line-height: 30px; line-height: 30px;
} }
.subtitle { .subtitle {
font-size: 22px; font-size: 1.5rem;
font-weight: 300; font-weight: 300;
line-height: 1.3; line-height: 1.3;
color: var(--theme-color-background-header); color: var(--theme-color-background-header);
@@ -48,8 +48,8 @@
span { span {
display: inline-block; display: inline-block;
margin-right: 8px; margin-right: 0.5rem;
font-size: 14px; font-size: 0.9rem;
font-weight: 500; font-weight: 500;
} }
} }

View File

@@ -27,7 +27,7 @@
} }
div.summary { div.summary {
font-size: 18px; font-size: 1.1rem;
} }
p { p {

View File

@@ -11,7 +11,7 @@
top: 10px; top: 10px;
background-color: transparent; background-color: transparent;
border: none; border: none;
font-size: 20px; font-size: 1.3rem;
cursor: pointer; cursor: pointer;
} }
@@ -19,4 +19,4 @@
border-bottom: none; border-bottom: none;
font-weight: bold; font-weight: bold;
padding-left: 5px; padding-left: 5px;
} }

View File

@@ -8,7 +8,7 @@
} }
&.toggle-col { &.toggle-col {
label { label {
font-size: 11px; font-size: 0.7rem;
} }
} }

View File

@@ -14,9 +14,12 @@
background-color: var(--theme-color-palette-12); background-color: var(--theme-color-palette-12);
} }
html {
font-size: clamp(14px, 1.35vw, 16px);
}
body { body {
font-family: var(--theme-text-body-font-family); font-family: var(--theme-text-body-font-family);
font-size: 16px;
line-height: 1.5em; line-height: 1.5em;
margin: 0; margin: 0;

View File

@@ -99,7 +99,7 @@
} }
article { article {
padding: 1em 0.25em; padding: 1em 0.25em;
font-size: 14px; font-size: 0.9rem;
color: var(--white-75); color: var(--white-75);
border-bottom: 1px solid var(--gray); border-bottom: 1px solid var(--gray);