Skip to content

Commit 1b15431

Browse files
committed
ui: optimize tools display position
1 parent b57a656 commit 1b15431

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

layout/_partial/side-tools.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="side-tools-container border-box side-tools-show-handle">
1+
<div class="side-tools-container border-box <%= is_home() ? 'side-tools-show-handle' : '' %>">
22
<ul class="side-tools-list side-tools-show-handle border-box">
33
<li class="tools-item tool-font-adjust-plus flex-center">
44
<i class="fas fa-search-plus"></i>

source/css/layout/_partial/post-tools.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $li-margin-bottom = 0.8rem
22
$post-tool-button-width = 2.5rem
33

44
.post-tools-container {
5-
padding-top 2rem
5+
padding-top $component-spacing-value
66

77
.tools-list {
88

source/css/layout/_partial/side-tools.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $tools-item-border-radius = 0.2rem
1717
.tools-item {
1818
width $tools-item-width
1919
height $tools-item-width
20-
margin-bottom 0.22rem
20+
margin-bottom 0.25rem
2121
color var(--text-color-3)
2222
font-size $tools-item-font-size
2323
background var(--background-color-1)

source/css/layout/page.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $post-tools-offset = 'calc((100vw - %s / 2) - 5rem)' % $content-max-width
159159
right 0
160160
bottom 1.6rem
161161
box-sizing border-box
162-
padding-right 0.8rem
162+
padding-right 1rem
163163

164164
+keep-tablet() {
165165
padding-right 0

0 commit comments

Comments
 (0)