Skip to content

Commit 95ac9c1

Browse files
committedFeb 18, 2024
ui: use css variable to control the display of post author name (#302)
1 parent 0943611 commit 95ac9c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎source/css/common/css-variables.styl

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
// ==============================================================================================
6969
--post-title-align left // Option values: left | center | right
7070
--post-author-avatar block // Option values: none | block
71+
--post-author-name flex // Option values: none | flex
7172
--post-create-datetime flex // Option values: none | flex
7273
--post-update-datetime flex // Option values: none | flex
7374
--post-img-align 0 auto 0 0 // Option values: 0 auto 0 0 (left) | 0 auto (center) | 0 0 0 auto (right)

‎source/css/layout/post-content.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ $spacer-padding = 2rem
191191
padding 0.2rem 0
192192

193193
.author {
194-
display flex
194+
display var(--post-author-name)
195195
align-items center
196196
font-weight 600
197197
font-size 1.18rem

0 commit comments

Comments
 (0)