some styles fixes

This commit is contained in:
Mivinci 2021-11-06 15:28:56 +08:00
parent 1e8d1ff994
commit 991bc2f116
6 changed files with 36 additions and 8 deletions

View file

@ -4,7 +4,7 @@ themeDir=../..
.PHONY: dev, build, clean
dev:
rm -r exampleSite/resources
-rm -r exampleSite/resources
hugo server -D -s $(source) --themesDir $(themeDir) --disableFastRender
build:

View file

@ -1,6 +1,9 @@
// This file contains some codes to fix style of elements under `.md`
// fix style of checkboxes in posts.
document.querySelectorAll('.md ul').forEach(v => {
if (/<li><input .+>.+<\/li>/.test(v.innerHTML)) {
v.classList.add('ul-checkbox');
}
});
});
// use custom font family
document.querySelector('body').style.setProperty('--global-font-family', '{{ .Site.Params.globalFontFamily }}');

View file

@ -4,6 +4,10 @@
outline: none;
}
header nav a {
line-height: 1.8;
}
$unit: 0.25rem;
$scales: 0, 1, 2, 3, 4, 5, 6, 7, 8, 1.5;
$screens: (

View file

@ -10,6 +10,8 @@
--tag: #333;
--w-mobile: 640px;
--global-font-family: Verdana, Geneva, Tahoma, sans-serif;
}
html.dark {
@ -26,7 +28,7 @@ html.dark {
}
body {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-family: var(--global-font-family);
max-width: var(--w-mobile);
margin: 3rem auto 0;
font-size: 16px;

View file

@ -1,8 +1,8 @@
baseURL = "http://h.xjj.pub"
languageCode = "en-us"
title = "Hi Folks"
copyright = Copyright notice"
paginate = 5
copyright = XJJ 2021"
paginate = 6
googleAnalytics = ""
disqusShortname = "hugo-minima"
@ -33,9 +33,12 @@ timeformat = "Jan 2, 2006"
# switch for turning on/off lights.
switch = ["🌚", "🌝"]
# if true, date of posts will be displayed in the homepage.
displayDate = false
displayDate = true
# if true, users can select text from your post.
selectable = false
selectable = true
# custom global font. notice: `globalFontFamily` won't be working
# on texts in some special positions. e.g. title
globalFontFamily = 'Helvatica, sans-serif'
# OvO is a comment plugin written by the author of Minima.

View file

@ -0,0 +1,16 @@
---
author: XJJ
title: 中文测试
date: 2021-07-17T10:52:59+08:00
description:
---
## 二级标题
这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文
### 三级标题
这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文这是测试正文
#### 四级标题