Commit Graph

62 Commits

Author SHA1 Message Date
Cell e23a50d755 refactor(assets): refactors the SCSS file structure and adds styles for new components. 2026-01-23 16:07:55 +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 3c7babb5ea fix(i): some minor style updates 2025-12-22 00:13:24 +08:00
Cell aad75044e9 feat: implement TOC drawer feature (#657)
* feat: add toc drawer button

* feat: add TOC dialog functionality and related styles

* feat: change back-to-top button with scroll progress indicator

* feat: update color-scheme handling in theme switcher

* fix: code review for checking mistakes and optimization

* fix: the issue where the TOC was still clickable even when it was hidden.
2025-11-18 12:35:34 +08:00
Cell 56836eb077 feat: add tabs and tab shortcodes support (#634)
* feat: add tabs and tab shortcodes support

Powered by https://github.com/github/tab-container-element

* fix: adjust tab-container styles for improved layout and responsiveness

- [x] Underline Style (Default)
- [x] Pill Style
- [x] Card Style
- [x] Segment Style

* test: add tabs comprehensive test cases

* style: code optimization

* fix: add tabs support in home scope

* docs: add `<tab-container>` element reference to README files

* feat: enhance tab-container with loading mixin and simplify code

* refactor: update variable references to use root prefix in styles

* docs: add tabs shortcode support to README files

* fix: ensure shortcode is enclosed within a tabs block

* feat: add responsive design for tab-container on smaller screens

* test: remove unnecessary placement attribute for segment tabs

* refactor: remove unused vertical attribute from tabs shortcode

* fix: set default tab type to 'underline' for consistency

* refactor: update tab-button and tab-panel selectors for improved specificity
2025-09-11 22:59:33 +08:00
Cell e9366b5ab2 feat: add height transitions for detail content and code block content (#628)
- [interpolate-size](https://developer.mozilla.org/en-US/docs/Web/CSS/interpolate-size)
- [calc-size()](https://developer.mozilla.org/en-US/docs/Web/CSS/calc-size)
2025-08-24 16:08:06 +08:00
ych817 7788eded58 💄 Style: update code element style for headings and toc items 2025-05-25 22:04:41 +08:00
Cell 8212d6fd02 ♻️ Refactor: image rendering aaa~again (#575) 2025-03-07 12:18:40 +08:00
Cell c36d87fd84 ♻️ Refactor: color scheme checking and move data-theme to document element 2024-09-27 12:52:29 +08:00
Cell ca73ca2066 💄 Style: scrollbar styles compatible with modern and legacy browsers 2024-06-25 12:23:21 +08:00
Cell d90b51c02d 🎨 Perf: optimize the scroll bar style of body and toc-auto elements 2023-03-11 14:46:01 +08:00
Cell ad93d92043 💄 Style: refactor css style 2022-11-14 12:26:42 +08:00
Cell fd5ea5b7ab 💄 Style: add some base reboot styles 2022-09-18 14:53:40 +08:00
Cell af2b4a1951 💄 Style: fix language and theme switch cursor style (#193) 2022-09-10 14:44:06 +08:00
Cell 8265db32bc ♻️ Refactor: scss directory (#185) 2022-09-09 16:04:47 +08:00
Cell 0edd185b39 🐛 Fix: use data attributes or class replace for custom attributes 2022-08-26 16:48:11 +08:00
Cell c3689a50fe Feat: add GitHub Corners support (#106) 2022-04-16 12:51:11 +08:00
Cell 759402b4a9 💄 Style: add global border radius for theme components (#40) 2022-03-12 02:01:08 +08:00
Cell 13f00582c3 🎨 Style: code style typesetting 2022-03-11 22:02:07 +08:00
Cell 7ae8fa7104 🎨 Style: add github highlight style (#43) 2022-02-28 21:52:26 +08:00
Cell 0323e22d83 💄 Style: add radius of the scrollbar 2022-02-19 13:56:40 +08:00
Cell 8bcd9af913 💄 Style: adjust toc style (#65) 2022-02-17 18:01:22 +08:00
Cell 231cfc31cf 🔧 Chore: replace theme logo icon 2022-02-16 10:15:26 +08:00
Cell 45e19dd3ed 💄 Style: beautify link shortcode card style 2022-01-20 23:28:59 +08:00
Cell 8a5777d3fe ♻️ Refactor: header title DOM and add subtitle option (#26) 2022-01-11 00:45:27 +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
Cell 28229c03b8 💄 Style: change scroll-behavior to smooth 2021-12-28 20:38:59 +08:00
Cell 36d38599c6 🔥 Feat: remove lib smooth-scroll (#1) 2021-12-23 20:48:48 +08:00
Dillon 0a9ec97450 feat(cookies): add Cookie consent banner (#355) 2020-05-13 21:19:39 +08:00
Dillon 3040ffa107 feat: improve browser compatibility for TypeIt and object-fit (#293)
* object-fit polyfill
* TypeIt 7.0.3 -> 6.5.1
2020-04-30 23:21:52 +08:00
Dillon 286bf7003c chore(style): improve lightgallery style code 2020-04-29 23:54:27 +08:00
Dillon 9e54504360 fix(style): lightgallery icons color 2020-04-29 23:48:00 +08:00
Dillon 072b9624cd fix(code): inline code overflow-wrap (#280) 2020-04-29 02:41:07 +08:00
Dillon 6805d695f6 chore: update docs and style (#269) 2020-04-28 01:38:22 +08:00
Dillon bcbc4268ea feat(code): add support for code block folding (#259) 2020-04-26 03:25:10 +08:00
Dillon c2197b7411 feat(social): improve social links (#254)
* replace forkawesome and iconfont with simple icons
* add more configs for social
2020-04-24 19:04:37 +08:00
Dillon 8a0e61085c feat(code): add copy button for code (#239) 2020-04-18 20:54:54 +08:00
Dillon 90184ca3e7 feat(search): add local search (#231)
* feat(search): add local search

* docs: add docs for search
2020-04-15 15:46:50 +08:00
Dillon aed8734d83 feat(shortcode): add mapbox shortcode (#190)
* feat(shortcode): add mapbox shortcode

* docs: split shortcodes into built-in shortcodes and extended shortcodes

* docs(shortcodes): add docs for mapbox shortcode

* docs(shortcodes): fix an error in shortcodes docs
2020-03-21 16:59:23 +08:00
Dillon 6b03c711ac feat(shortcode): add link shortcode (#179)
* feat(shortcode): add link shortcode

* docs: add docs for link shortcode

* docs: fix 'mailto' in link shortcode docs error
2020-03-17 21:16:04 +08:00
Dillon 6e091b6fad feat(button): add 'comment' fixed button (#169) 2020-03-16 15:01:51 +08:00
Dillon 212e67c2a5 feat(style): improve toc style (#167) 2020-03-16 10:59:51 +08:00
Dillon ca0996ab11 fix(style): style conflict between 'strong' and 'a' tag (#156) 2020-03-15 00:56:57 +08:00
Dillon 61d76c54b4 docs: update theme preview image and fix some docs error (#151) 2020-03-14 21:47:51 +08:00
Dillon 3d9aad3205 feat(style): adjust style of header, tags and dynamic-to-top button 2020-03-14 14:42:12 +08:00
Dillon 9ed9db5ba3 Merge branch 'develop' into feature/document
# Conflicts:
#	assets/css/_core/_base.scss
#	resources/_gen/assets/scss/css/style.template.scss_40942e46c3aa444eabf479d066570690.content
#	resources/_gen/assets/scss/css/style.template.scss_40942e46c3aa444eabf479d066570690.json
2020-03-04 01:34:29 +08:00
Dillon c7e389c25a feat(style): add some custom styles 2020-03-03 21:57:30 +08:00
Dillon 54a99205d7 chore(doc): add English "Theme Documentation - Basics" 2020-03-03 21:35:14 +08:00
Dillon ae81e3767e fix(srcatch): fix srcatch bugs 2020-02-27 20:14:40 +08:00