Commit Graph

41 Commits

Author SHA1 Message Date
zhixuan
7ebe7e1af8
fix(article): add white-space: nowrap to back button text (#245) 2021-06-25 20:09:35 +02:00
Jimmy Cai
41fa65cbf5
feat: Table of Contents (#232)
Currently, the new table of contents is disabled by default. I will change that after several versions.

-------------

* feat: Table of Content (WIP)

* fix: set scratch inside define block

* fix(toc): darkmode text color

* feat: unify page layout, and add config to disable toc

* feat: add scroll-behavior: smooth to html

* fix: use <ol> for TOC. And Disable TOC by default for now

* refactor: use css flexbox for article page with toc

enable toc for example site

* feat(i18n): add i18n entry for "Back" and "Table of Contents"

* style: remove unused `keep-sidebar` class

* doc: add table of contents as feature
2021-06-21 18:44:54 +02:00
Jimmy Cai
495a3b0289
refactor: rewrite grid system & style changes (#231)
* refactor(WIP): add new SCSS mixin `respond`

Theme's stylesheet mixes the use of max-width and min-width for responsive design, and it's horrible.

* refactor: update variable.scss to use @mixin respond

* refactor(grid): adjust sidebar max-width

* refactor(partials/article.scss): use `@include respond`

* refactor(layout/article.scss): delete unused SCSS and migrate to `@include respond`

* Adjust left sidebar max-width on xl screen

* fix: right sidebar not sticky

* refactor(breakpoint): simplify `@mixin respond`

* refactor(breakpoints): improve warning message

* fix(breakpoint): return only the requested breakpoint

* fix: add missing padding to .article-details
2021-06-20 12:53:10 +02:00
Jimmy Cai
d5268a41e0
refactor(article): add default padding (#166)
* refactor(article): add default padding

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/165

* fix(article): video iframe margin

* fix: remove youtube iframe border
2021-03-07 12:51:47 +01:00
Yihui Xie
38eb9c4eaf
fix(article): also define the padding for div under .article-content (#162)
Fixes rstudio/blogdown#591: not only `<p>` but also `<div>` could be the direct child of `.article-content`, so we also need the padding for `<div>`. The `div`s are generated by Pandoc, instead of Hugo's Markdown renderer. I think it will be great to support both ways.
2021-03-06 20:41:46 +01:00
Jimmy Cai
0429678d57
fix(scss): remove unnecessary import (#146) 2021-02-17 10:29:40 +01:00
Junwoo Hwang
9914bba42c
fix: remove word-wrap property for Safari (#131) 2021-02-11 19:05:12 +01:00
Jimmy Cai
80be1b2435
fix(article): twitter_simple shortcode text color (#90)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/85
2020-12-24 11:24:26 +01:00
Jimmy Cai
0c5e6af9d3
refactor(article): remove uppercase style of tags 2020-10-10 09:14:27 +02:00
Jimmy Cai
5a7c9b6783
feat(article): style improvement 2020-09-25 11:07:49 +02:00
Jimmy Cai
96897be941
feat(article list): article clickable and equal height 2020-09-24 23:59:00 +02:00
Jimmy Cai
02f2badffc
refactor(scss): rename --content-padding to --card-padding
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/16
2020-09-20 19:03:41 +02:00
Jimmy Cai
ed91cb7629
refactor(layouts): move layout HTML to baseof.html
For better maintainability
2020-09-12 10:33:53 +02:00
Jimmy Cai
da112157cf
feat(scss): make hyperlink style available outside .article-content 2020-09-09 17:22:19 +02:00
Jimmy Cai
9e42d8cd35
refactor(scss): remove helper/shadow. Expose shadow style in CSS variables 2020-09-09 16:14:30 +02:00
Jimmy Cai
44dadd7893
fix(article): add margin for ordered list 2020-09-08 13:31:18 +02:00
Jimmy Cai
18cd83125d
feat(scss): improve blockquote style 2020-09-08 13:01:27 +02:00
Jimmy Cai
0e0f5edbec
feat(scss): add table style
Style taken from: https://github.com/lepture/yue.css

closes: https://github.com/CaiJimmy/hugo-theme-stack/issues/3
2020-09-08 12:48:34 +02:00
Jimmy Cai
fd816ca9ef
fix(article): fix article tag overflow
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/4
2020-09-08 12:09:03 +02:00
Jimmy Cai
334e918bc3
fix(article): fix top padding 2020-09-07 11:49:33 +02:00
Jimmy Cai
634e6ce96b
feat: improve top padding and article toolbar style 2020-09-07 11:34:28 +02:00
Jimmy Cai
829678936b
feat(article): change article toolbar style 2020-09-07 11:27:40 +02:00
Jimmy Cai
17b2224b1f
refactor(scss): remove some unused style 2020-09-06 21:14:10 +02:00
Jimmy Cai
0cac2218e3
feat(article): display last updated time of a post 2020-09-06 20:26:18 +02:00
Jimmy Cai
99eb6cdfd0
feat(article/related contents): style change 2020-09-05 00:50:08 +02:00
Jimmy Cai
4bf9d82961
feat: style improvement 2020-09-03 11:42:01 +02:00
Jimmy Cai
ffcb975e82 refactor(css): rename --pre-background to --pre-background-color 2020-08-25 23:19:57 +02:00
Jimmy Cai
f5e0b098c1 feat(article content): improve code tag style 2020-08-25 23:18:40 +02:00
Jimmy Cai
39eb9bdfb3 feat(css): add --pre-background and --pre-text-color variables 2020-08-24 23:32:24 +02:00
Jimmy Cai
3c803ebd5c feat(scss); add --article-font-size and --article-line-height variables 2020-08-24 20:45:26 +02:00
Jimmy Cai
4e9a6f1421 refactor(scss): add --section-separation and --small-card-padding variables 2020-08-24 20:28:17 +02:00
Jimmy Cai
28e4e01fae fix(article): fix ul and footer style 2020-08-24 13:28:32 +02:00
Jimmy Cai
6028eb5c2d feat(article): improve link style 2020-08-24 13:09:20 +02:00
Jimmy Cai
dedb859ecc refactor(article): --content-side-padding -> --content-padding 2020-08-24 12:26:27 +02:00
Jimmy Cai
36f53f592b refactor(article): use var(--content-side-padding) in more places 2020-08-24 12:17:43 +02:00
Jimmy Cai
a1250ee75f feat(article): add render-link hook 2020-08-24 12:07:58 +02:00
Jimmy Cai
a4d388c0f0 feat(article): improve article content style 2020-08-24 12:05:15 +02:00
Jimmy Cai
2ec4cd3f69 refactor(scss): add css variables for font families 2020-08-24 11:52:12 +02:00
Jimmy Cai
6f5093a93d style(article content): improve link styling 2020-08-22 23:11:34 +02:00
Jimmy Cai
35ce4cb0ce style(article): change figcaption style 2020-08-22 20:44:27 +02:00
Jimmy Cai
c698d944e6 🎉 Initial commit 2020-08-22 13:20:08 +02:00