Commit Graph

93 Commits

Author SHA1 Message Date
Cell 423a7ddbf7 fix(CSS): restore the definition of the $global-font-secondary-color variable; third-party components may reference it 2026-03-04 16:02:10 +08:00
Cell 93d0b52cd7 feat(UI): adjust border and separator colors to improve visual hierarchy 2026-02-28 20:11:20 +08:00
Cell 3926cc0220 refactor: reorganize CSS structure and standardize CSS variable usage for improved maintainability (#690)
* refactor: CSS variables to use fixit-var for consistency across styles

* refactor: reorganize CSS structure and consolidate imports for improved maintainability

* refactor: unify CSS variable usage and improve structure across stylesheets

* refactor: standardize CSS variable usage for layout

* refactor: standardize CSS variable usage for archive and special pages

* refactor: standardize CSS variable usage for single page

* refactor: standardize CSS variable usage for widgets

* refactor(css): refactors the border-radius mixin and adds the .rounded-full utility class

* refactor: standardize z-index usage across components

* refactor(css): removes deprecated compatibility mixins and replaces them with native CSS properties

* feat: unify color variable naming and update theme color values

- Rename `global-font-secondary-color` to `global-placeholder-color` for more accurate description of its purpose
- Update multiple style references to use the new `secondary` theme color variable
- Update theme color mapping to the new color values ​​for improved visual consistency
- Fixed the use of search box placeholder colors and removed hard-coded transparency values
- Added color preview test documentation for easier verification of color rendering
- Cleaned up some duplicate dark mode styles and replaced them with unified CSS variables

* refactor: remove the `hr-background-color` variable and uses `global-border-color` uniformly

* feat(CSE): add dark theme style to Google CSE search box and results container

* fix(task-lists): fixed styling and rendering issues with nested task lists
2026-02-28 17:24:10 +08:00
Cell e23a50d755 refactor(assets): refactors the SCSS file structure and adds styles for new components. 2026-01-23 16:07:55 +08:00
Cell fdfd772100 feat(File Tree): add file-tree shortcode support (#685)
* feat(File Tree): add `file-tree` shortcode support

* feat(file-tree): add ignoreList parameter to file-tree shortcode

* feat(file-tree): enhance file-tree shortcode with ignoreList and folderSlash options

* feat(file-tree): enhance file-tree shortcode to support data mode

* feat(file-tree): enhance file-tree shortcode to support file mode

* feat(file-tree): improve content parsing in file-tree shortcode

* feat(file-tree): improve root path validation and error handling in filesystem mode

* test(file-tree): add unit tests for `file-tree` shortcode

* feat(file-tree): add file-tree code block rendering support

* refactor(file-tree): extract filesystem scanning to get-file-tree partial

Move directory traversal and root path validation to a separate partial function,
consolidating all filesystem-related logic in one place. This simplifies the
shortcode implementation and ensures a unified data format for rendering.

* docs(readme): extend code fence and shortcode support for file tree in documentation

* feat(file-tree): add fullRootName parameter for root path display in file tree

* feat(file-tree): add language parameter to get-file-tree function

* feat(file-tree): add highlightList parameter for file-tree shortcode

* perf(file-tree): add level param for get-file-tree function to descend only level directories deep
2026-01-14 16:01:22 +08:00
Cell 37a799b2cb refactor: use CSS variables for global colors and improve theme support (#668) 2025-12-26 14:16:59 +08:00
Cell 93478b47e1 refactor: code block wrapper (#665)
* feat: optimize code highlighting for diff language

* refactor: update codeblock configuration and enhance code wrapper functionality

* fix: extra blank lines would appear when copying lines containing code highlighting

* refactor: enhance code block wrapper functionality and add new styles (mac style)

* refactor: enhance code block normal mode

* feat: do noting for code block simple mode

* feat: add copy btn for code block modes mac and simple

* refactor: add code-related variables and update styles for code blocks and gist layout

* feat: update code copy button visibility on hover for larger screens

* feat: update code block mode attribute and remove mac wrapper

* feat!: code block parameters accurate to a single

Remove the `data-open` attribute and use `.open` instead.

* refactor: enhance initCopyCode method to accept optional button parameter

* feat: improve code/diagram copy button styles and transitions for better visibility

* fix: disable copy buttons for simple/mac mode code blocks when copyable set to false

* chore: rename normal partial to code-header

* feat: add preview and expand feature for code blocks (close #312)

* fix: adjust transition timing for code header and fade-out animation

* test: update code block test case

* docs: update comments for code highlight and markup configurations

* feat: adjust code header background color darkening for light and dark themes

* fix: hide aside and breadcrumb pseudo-elements on small screens

* perf: change the code copy button and code expand button to server-side rendering

* fix: the code expand button obscured the code content

* fix: update code background and header colors for improved visibility

* fix: ensure code copy button is only added for copyable code blocks

* feat(code block): add lineNosToggler and lineWrapToggler params and feature for code blocks

* refactor: code syntax highlighting styles

* fix: update background color for line numbers and ensure proper sticky effect

* feat(code block): add support for code file names in code blocks

* fix: code review for PR #665

* feat(i18n): add Japanese and Korean translations; update toggle options in multiple languages

* docs: update configurations and comments
2025-12-17 16:56:52 +08:00
Cell 6f99565f0d feat: adjust header styles for improved layout and accessibility (close #471) 2025-11-21 20:43:15 +08:00
Cell 59bea1e518 ♻️ Refactor: update CSS variable prefixes to use rootPrefix for consistency 2025-08-13 12:58:59 +08:00
ych817 7788eded58 💄 Style: update code element style for headings and toc items 2025-05-25 22:04:41 +08:00
Cell d41e53bba4 Feat: add related content list in aside (#591) 2025-04-25 17:15:58 +08:00
Cell 9913731705 💄 Style: update summary delimiter style 2024-11-15 19:51:18 +08:00
Cell e2cf5fe31d 💄 Style: add alert stylesheet 2024-08-29 22:30:06 +08:00
Cell 66b86d97cf 💄 Style: change font size of the Collection List and TOC 2024-07-28 17:11:45 +08:00
Cell f9a09e4610 Feat: add submenu param divided and change submenu border color 2024-07-11 22:06:45 +08:00
Cell ca73ca2066 💄 Style: scrollbar styles compatible with modern and legacy browsers 2024-06-25 12:23:21 +08:00
Cell 443abcf784 💄 Style: update collection active item color (#359) 2023-12-13 14:18:43 +08:00
Cell 0f5e60274a 🎉 Feat: add breadcrumb navigation (#309)
⬆️ Required Hugo versions above 0.109.0
2023-03-24 17:02:38 +08:00
Cell 7e2ae88187 Feat: add parameter params.footer.order to order footer lines 2022-12-18 23:13:27 +08:00
Cell ad93d92043 💄 Style: refactor css style 2022-11-14 12:26:42 +08:00
Cell 6df88b0283 Feat: add TagCloud config support for tags page, see parameter params.tagcloud (#235) 2022-11-05 03:44:21 +08:00
Cell ffbdc5ba98 Feat: add feature post reward support (#216) 2022-10-27 17:06:49 +08:00
Cell 17cb4e6a86 🎨 Style: change scss varible $prefix 2022-09-13 16:39:39 +08:00
Cell 0659a175ad 🎨 Style: add dark theme colors support (#185) 2022-09-09 16:36:35 +08:00
Cell 8265db32bc ♻️ Refactor: scss directory (#185) 2022-09-09 16:04:47 +08:00
Cell b0d29bffe1 🎨 Style(format): use single quote 2022-08-29 20:53:05 +08:00
Cell eb345cd9ea ♻️ Refactor(scss): create scss map dir 2022-08-29 17:21:43 +08:00
Cell 9fc37b36eb Feat(highlight): add full support for Chroma highlighting languages in the [list](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages)
tool: https://github.com/hugo-fixit/.tools/blob/main/tampermonkey/code-type-map-fetcher.user.js
2022-08-29 16:55:12 +08:00
Cell 4608f96ad3 💄 Style: modify single-title and single-subtitle styles 2022-08-27 14:28:30 +08:00
Cell 38314a5d0f 🎨 Style: add theme colors variables and add common color styles 2022-07-10 16:24:38 +08:00
Cell 08d95cb578 Perf: add GitHub Corners full support (#106) 2022-04-30 14:30:42 +08:00
Cell 04a34c5788 💄 Style: modify blockquote CSS 2022-04-20 17:44:00 +08:00
Cell 3745713738 🎉 Feat: add sub menu (nested menu) support (#31)
TODO: compatibly support mobile header
2022-04-07 14:48:03 +08:00
Cell 8f3f22577b 💄 Style: modify detail style (#40) 2022-03-14 15:09:24 +08:00
Cell dd0fb4c16b 💄 Style: add Chinese style color (#40) 2022-03-12 16:15:52 +08:00
Cell 13f00582c3 🎨 Style: code style typesetting 2022-03-11 22:02:07 +08:00
Cell d056c9b16a 💄 Style: refined blockquote style (#40) 2022-03-07 23:34:22 +08:00
Cell ae23c42e7d 🎨 Style: perfect highlight style details (#43)
TODO:
1. gist highlight style
2. inline code style of github dark dimmed
2022-03-01 14:21:57 +08:00
Cell fd65f4fbd9 🎨 Style: add github dark dimmed highlight style (#43) 2022-03-01 12:13:01 +08:00
Cell 7ae8fa7104 🎨 Style: add github highlight style (#43) 2022-02-28 21:52:26 +08:00
Cell 8cae970b03 Perf: enhance highlight feature and fix some css bugs (#43) 2022-02-27 23:26:28 +08:00
Cell 5436358f3a 💄 Style: delete system variable $MAX_LENGTH 2022-02-25 11:46:50 +08:00
Cell 0323e22d83 💄 Style: add radius of the scrollbar 2022-02-19 13:56:40 +08:00
Cell 231cfc31cf 🔧 Chore: replace theme logo icon 2022-02-16 10:15:26 +08:00
Cell b7d79b5127 ✏️ Docs: fix typo 2022-01-09 18:16:56 +08:00
Cell 3c4c0da5db 🎨 Style: modify global logo icon color 2022-01-09 05:38:49 +08:00
Cell 96d551ffd3 🎨 Style: add global logo color 2022-01-09 04:46:57 +08:00
Dillon cded7145ac fix(style): remove Google Font (#394) 2020-05-29 11:19:33 +08:00
Dillon da9df3b0ce feat(style): change custom style file path (#360) 2020-05-15 19:05:16 +08:00
Dillon 762a7e538d feat(compatibility): improve compatibility for Hugo basic version (#352) 2020-05-13 00:45:19 +08:00