mirror of
https://github.com/zopiya/blog.git
synced 2025-11-03 20:16:47 +08:00
Add initial theme assets, layouts, and configuration for Hugo site
This commit is contained in:
27
themes/typo/wiki/features/custom-css.md
Normal file
27
themes/typo/wiki/features/custom-css.md
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
title: "Custom CSS"
|
||||
date: "2024-10-07"
|
||||
summary: "Custom CSS parameters"
|
||||
description: "Custom CSS parameters"
|
||||
toc: false
|
||||
readTime: false
|
||||
autonumber: true
|
||||
math: false
|
||||
showTags: false
|
||||
hideBackToTop: true
|
||||
---
|
||||
|
||||
The theme supports custom css, you can override anything you want by redefining classes in the `assets/css/custom.css` file.
|
||||
|
||||
For instance, changing the main width can be done as follows:
|
||||
|
||||
```css
|
||||
:root {
|
||||
--main-width: 1024px; /* overrides default of 780px */
|
||||
}
|
||||
```
|
||||
|
||||
Note that backward incompatible changes in the CSS will likely not happen, but there might be cases in the future where
|
||||
backward compatibility is not possible. If you are overriding a huge amount of CSS I suggest you forking the project instead of
|
||||
defining it here.
|
||||
|
||||
Reference in New Issue
Block a user