Skip to content

Commit

Permalink
ui: copy copyright info icon change to always display
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Sep 8, 2023
1 parent fb33a9e commit dda328a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
35 changes: 13 additions & 22 deletions source/css/layout/_partial/article-copyright-info.styl
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
.article-copyright-info-container {
width 100%
background var(--background-color-2)
border-radius calc(var(--box-border-radius) / 2)

&:hover {
.copy-copyright-info {
visibility visible
}
}

border-radius calc(var(--box-border-radius) * 0.6)

.copyright-info-content {
width 100%
padding 1.2rem
padding 1.3rem
overflow hidden
font-size 1rem

Expand Down Expand Up @@ -61,30 +54,28 @@
}
}
}

.copyright-bg {
position absolute
top 50%
right 2rem
color var(--copyright-icon-bg-color)
font-size 14rem
transform translateY(-50%)
}
}


.copy-copyright-info {
position absolute
top 0.6rem
right 0.6rem
top 0.5rem
right 0.5rem
box-sizing border-box
padding 0.3rem
visibility hidden
cursor pointer
transition-t("visibility", "0", "0.2", "ease-in-out")

i {
color var(--text-color-3)
}
}

.copyright-bg {
position absolute
top 50%
right 2rem
color var(--copyright-icon-bg-color)
font-size 14rem
transform translateY(-50%)
}
}
14 changes: 8 additions & 6 deletions source/css/layout/article-content.styl
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,18 @@ $spacer-padding = 2rem


.article-content {
margin-top $component-spacing-value
padding-bottom 2rem
margin-top $component-spacing-value * 0.8
padding-bottom $component-spacing-value * 0.8
color var(--text-color-3)
text-align justify
word-wrap break-word

+keep-tablet() {
margin-top $component-spacing-value * 0.9
margin-top $component-spacing-value * 0.6
padding-bottom $component-spacing-value * 0.6
}


.article-aging-tips {
position relative
display none
Expand All @@ -254,7 +256,7 @@ $spacer-padding = 2rem


if (hexo-config('post') && hexo-config('post.copyright_info') == true) {
border-bottom 0.1rem dashed var(--border-color)
border-bottom 2px dashed var(--border-color)
}
}

Expand Down Expand Up @@ -297,10 +299,10 @@ $spacer-padding = 2rem

.post-copyright-info {
width 100%
margin-top $component-spacing-value
margin-top $component-spacing-value * 0.6

+keep-tablet() {
margin-top $component-spacing-value * 0.8
margin-top $component-spacing-value * 0.3
}
}

Expand Down

0 comments on commit dda328a

Please sign in to comment.