Skip to content

Commit bbdb2b7

Browse files
committed
opt: use superellipse corner-shape
1 parent 1f27d69 commit bbdb2b7

19 files changed

Lines changed: 33 additions & 1 deletion

File tree

source/css/_common/highlight.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ p>code:not([class]),li>code:not([class])
1414
--theme: var(--text-p3)
1515
margin: var(--gap-p) 0
1616
border-radius: $border-card
17+
corner-shape: superellipse(1.2)
1718
overflow: hidden
1819
background: var(--block)
1920
font-family: $ff-codeblock
@@ -79,6 +80,7 @@ p>code:not([class]),li>code:not([class])
7980
.gist-file
8081
border: 1px solid var(--block-border)
8182
border-radius: $border-card
83+
corner-shape: superellipse(1.2)
8284
overflow: hidden
8385
.gist-data
8486
--bgColor-default: var(--block)

source/css/_common/loading.styl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ svg.loading
3131
font-size: 14px
3232
&.error
3333
&:after
34-
content: hexo-config('style.loading.error')
34+
content: hexo-config('style.loading.error')
35+
36+
.article-footer
37+
.loading-wrap
38+
background: none

source/css/_components/md.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
.md-text.content
8383
p>img, .tag-plugin.image .image-bg
8484
border-radius: $border-image
85+
corner-shape: superellipse(1.2)
8586

8687
// 链接样式
8788
li:not([class]) a:not([class])

source/css/_components/pages/article-story.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@
9191

9292
p>img, .tag-plugin.image .image-bg
9393
border-radius: $border-image-l
94+
corner-shape: superellipse(1.2)
9495
>img
9596
border-radius: $border-image-l
97+
corner-shape: superellipse(1.2)
9698

9799

98100
.l_body[type=story] .md-text.content>blockquote, .md-text.content .tag-plugin.blockquote

source/css/_components/partial/article-footer.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
padding: 1rem
44
background: var(--block)
55
border-radius: $border-card-l
6+
corner-shape: superellipse(1.2)
67
border: 1px solid var(--block-border)
78
font-size: $fs-15
89
line-height: 1.6

source/css/_components/sidebar/menu.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
width: 100%
1717
min-height: 40px
1818
border-radius: $border-bar
19+
corner-shape: superellipse(1.2)
1920
font-size: $fs-15
2021
font-weight: 500
2122
color: var(--text-p3)

source/css/_components/tag-plugins/folding.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ details.folding
33
padding: 1rem
44
margin: 1rem 0
55
border-radius: $border-card
6+
corner-shape: superellipse(1.2)
67
background: var(--theme-block)
78
border: 1px solid var(--theme-border)
89
summary

source/css/_components/tag-plugins/gallery.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
// 网格布局
5050
.tag-plugin.gallery.grid-box
5151
display: grid
52+
.grid-cell
53+
corner-shape: superellipse(1.2)
5254
&[size='xs']
5355
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr))
5456
grid-gap: 2px

source/css/_components/tag-plugins/grid.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
&[bg]>.cell
1818
padding: 1rem
1919
border-radius: $border-card
20+
corner-shape: superellipse(1.2)
2021
&[bg='box']>.cell
2122
background: var(--block)
2223
&[bg='card']>.cell

source/css/_components/tag-plugins/image.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.image-bg
66
text-align: center
77
border-radius: $border-image
8+
corner-shape: superellipse(1.2)
89
position: relative
910
overflow: hidden
1011
display: flex
@@ -23,6 +24,7 @@
2324
display: block
2425
object-fit: cover
2526
border-radius: $border-image
27+
corner-shape: superellipse(1.2)
2628
.image-download
2729
z-index: 2
2830
position: absolute

0 commit comments

Comments
 (0)