font size unification w/ defining root font size in px

This commit is contained in:
Kaz Saita(WSL2) 2024-02-12 12:32:55 +09:00
parent b07dbedc4c
commit 5d0cb1233e
2 changed files with 8 additions and 6 deletions

View file

@ -15,6 +15,7 @@ const config: QuartzConfig = {
ignorePatterns: ["private", "templates", ".obsidian", "obsidian_templates_"],
defaultDateType: "modified",
theme: {
cdnCaching: true,
typography: {
header: "Noto Serif JP",
body: "Noto Serif JP",

View file

@ -1,12 +1,16 @@
@use "./base.scss";
$default-font-size: 0.8rem;
$root-font-size: 18px;
$default-font-size: 1rem;
$default-line-height: 1.3rem;
$header-font-size-base : $default-font-size * 1.2;
$header-font-size-h6 : $default-font-size * 1.2;
$header-line-height : 120%;
$header_font: sans-serif;
// put your custom CSS here!
html {
font-size: $root-font-size !important;
}
h1 {
font-size: 1.75rem !important;
@ -29,9 +33,6 @@ div.left.sidebar {
h2 {
font-size: 1rem !important;
font-family: $header_font !important;
@ -72,9 +73,9 @@ h6 {
p {
font-size: 0.8rem;
font-size: 1rem;
line-height: $default-line-height;
letter-spacing: .05rem !important;
letter-spacing: .025rem !important;
margin-left: 1rem !important;
}