improve style

This commit is contained in:
Mivinci 2022-01-26 23:20:50 +08:00
parent 33083ec377
commit e7997a933b
5 changed files with 26 additions and 19 deletions

View file

@ -46,17 +46,17 @@ Follow [exampleSite/config.toml](https://github.com/Mivinci/hugo-theme-minima/bl
### Supported Front Matters
| Field | Type | Explanation |
| ----------- | ------ | ------------------------------------------------------ |
| title | string | Title of the post, will be rendered in a `h1` tag |
| description | string | Description of the post, will be rendered in a `p` tag |
| date | string | Datetime that the post is written |
|:----------- |:------ |:------------------------------------------------------ |
| title | string | Title of the post |
| description | string | Description of the post |
| date | string | Datetime when the post is written |
| categories | array | Array of categories the posts belongs to |
| series | array | Array of series the post belongs to |
| tags | array | Array of tags the posts is related to |
| math | bool | True if the post needs to render math formulas |
| mermaid | bool | True if the post needs to render mermaid graphs |
| mermaid | bool | True if the post needs to render mermaid diagrams |
| comment | bool | True if the post allows people to make comments |
| draft | bool | True if the post isn't already to production |
| draft | bool | True if the post isn't already for publishing |
| toc | bool | True if the post needs a ToC |
### Feedback

View file

@ -12,7 +12,7 @@
--w-mobile: 640px;
--global-font-family: Verdana, Geneva, Tahoma, sans-serif;
--global-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
html.dark {
@ -29,9 +29,9 @@ html.dark {
}
body {
font-family: var(--global-font-family);
max-width: var(--w-mobile);
margin: 3rem auto 0;
font-family: var(--global-font-family);
font-size: 16px;
font-weight: 400;
color: var(--ft);

View file

@ -1,7 +1,7 @@
.md blockquote {
background-color: rgba(148, 148, 149, 0.08) ;
padding: 1px 1rem;
border-left: 8px solid var(--pm);
border-left: 4px solid var(--pm);
font-style: italic;
}
@ -58,6 +58,12 @@
margin: .75rem 0;
}
.md blockquote p {
margin: .5rem 0;
line-height: 1.5;
font-size: .9rem;
}
.md hr {
margin: 1.5rem 0;
}

View file

@ -41,7 +41,7 @@ displayDate = true
selectable = true
# Custom global font. notice: `globalFontFamily` won't be working
# on texts in some special positions like on titles
globalFontFamily = 'LXGW WenKai'
globalFontFamily = ""
# If set true, all your posts will use the chosen comment plugin
# except those with a `comment: false` in their front-matter
commentOnAllPosts = true

View file

@ -11,12 +11,13 @@ comment: true
## Features
- [x] Clean
- [x] Light/dark mode
- [x] VSCode-style code hightlighting
- [x] VSCode-style code hightlighting (the most alike among all Hugo themes)
- [x] KaTeX
- [x] Mermaid
- [x] Mermaid diagrams
- [x] Google analytics
- [x] Disqus/Utterances comments
- [x] Disqus/Utterances
- [x] Optional ToC
## Usage
@ -49,16 +50,16 @@ Follow [exampleSite/config.toml](https://github.com/Mivinci/hugo-theme-minima/bl
| Field | Type | Explanation |
|:----------- |:------ |:------------------------------------------------------ |
| title | string | Title of the post, <br> will be rendered in a `h1` tag |
| description | string | Description of the post, will be rendered in a `p` tag |
| date | string | Datetime that the post is written |
| title | string | Title of the post |
| description | string | Description of the post |
| date | string | Datetime when the post is written |
| categories | array | Array of categories the posts belongs to |
| series | array | Array of series the post belongs to |
| tags | array | Array of tags the posts is related to |
| math | bool | True if the post needs to render math formulas |
| mermaid | bool | True if the post needs to render mermaid graphs |
| mermaid | bool | True if the post needs to render mermaid diagrams |
| comment | bool | True if the post allows people to make comments |
| draft | bool | True if the post isn't already to production |
| draft | bool | True if the post isn't already for publishing |
| toc | bool | True if the post needs a ToC |
### Feedback