feat(font): Define font size

This commit is contained in:
Hactarus 2023-03-16 13:04:56 +01:00
parent 3dc405f213
commit 6780fbd95f
3 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,5 @@
:root {
--text-h2: 25pt
--text-guide: 20pt;
--text-default: 16pt;
}

View file

@ -2,6 +2,7 @@
body {
margin: 0;
padding: 0;
font-size: var(--text-default);
}
menu {
@ -40,11 +41,24 @@ header {
section {
padding-top: 5vh;
text-align: justify;
}
section > figure {
margin: auto;
text-align: center;
}
h2 {
padding: 1vh 2vw;
background-color: var(--color-bg);
color: var(--color-txt);
font-size: var(--text-h2);
}
p {
padding: 1vh 2vw;
color: var(--color-bg);
}
/* Decorations */
@ -98,4 +112,8 @@ h2 {
img {
max-width: 100vw;
}
.guide__el {
font-size: var(--text-guide);
}

View file

@ -34,10 +34,12 @@
<link rel="stylesheet" href="assets/css/style_hactarus.css">
<link rel="stylesheet" media='(prefers-color-scheme: dark)' href="assets/css/dark_theme.css" />
<link rel="stylesheet" media='(prefers-color-scheme: light)' href="assets/css/light_theme.css" />
<link rel="stylesheet" media='screen and (min-width: 1024px)' href="assets/css/1024_default.css" />
<!--
<link rel="stylesheet" media='screen and (min-width: 750px)' href="assets/css/750_phone.css" />
<link rel="stylesheet" media='screen and (min-width: 800px)' href="assets/css/800_tablet.css" />
<link rel="stylesheet" media='screen and (max-width: 1024px)' href="assets/css/1024_pc.css" /> -->
<link rel="stylesheet" media='screen and (max-width: 1024px)' href="assets/css/1024_pc.css" />
//-->
<script src="assets/js/app.js" defer></script>
<script src="assets/js/theme.js" defer></script>