diff options
author | Bachrul uluum <49960993+uluumbch@users.noreply.github.com> | 2021-07-23 19:37:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 19:37:30 +0300 |
commit | dcfc7b55895146380eabb511b5aaf9835f1f5e36 (patch) | |
tree | 8e1711fe795cc50bdfdbdbdfc0e469aef4032306 /assets/scss | |
parent | a25e6463bdc9900e5f999d276a0e5d92ee1f8d9a (diff) |
feat(article): reading time (#204)
* add reading time feature
* Revert change in jsconfig.json
* feat: add article.readingTime param, and improve style
* Revert change in jsconfig.json x2
* Remove reading time in compact layout
It doesn't look right to me for now
* feat: add i18n support to reading time string
* Hide footer.article-time when there's not content
Co-authored-by: Jimmy Cai <github@jimmycai.com>
Diffstat (limited to 'assets/scss')
-rw-r--r-- | assets/scss/partials/article.scss | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index c71cab4..459c22f 100644 --- a/assets/scss/partials/article.scss +++ b/assets/scss/partials/article.scss @@ -95,7 +95,9 @@ display: flex; align-items: center; color: var(--card-text-color-tertiary); + gap: 15px; margin-top: 10px; + flex-wrap: wrap; svg { vertical-align: middle; @@ -108,6 +110,11 @@ time { font-size: 1.4rem; } + + & > div { + display: inline-flex; + align-items: center; + } } .article-category, |