Skip to content

Commit e4b92f2

Browse files
committed
修改搜索宽长度
1 parent d2e3ee5 commit e4b92f2

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

layout/_partial/after-footer.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<%- js('duoshuo/embed') %>
2222
<% } %>
2323

24-
<%- js('jquery/jquery.min.js') %>
2524
<%- js('js/is.js') %>
2625

2726
<% if (theme.fancybox){ %>

layout/_partial/article.ejs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,3 @@
5858
</div>
5959
</section>
6060
<% } %>
61-
<% if (!index){%>
62-
<%- partial('partials/back2top', {
63-
64-
}) %>
65-
<% } %>

layout/_partial/footer.ejs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
<%= __('contact') %>&nbsp;|&nbsp;<%= config.email || theme.email || config.url %>
1212
</div>
1313
</div>
14-
</footer>
14+
</footer>
15+
<%- js('jquery/jquery.min.js') %>

layout/layout.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
1111
</div>
1212
<%- partial('_partial/mobile-nav', null, {cache: !config.relative_link}) %>
13+
<%- partial('partials/back2top', {}) %>
1314
<%- partial('_partial/after-footer') %>
1415
</div>
1516
</body>

source/css/_partial/header.styl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ $nav-link
115115
position: absolute
116116
z-index: 100
117117
top: 15px
118-
width: 150px
118+
width: 290px
119119
height: 30px
120-
right: -150px
120+
right: -290px
121121
opacity: 0
122122
transition: 0.2s ease-out
123123
&.on
@@ -141,7 +141,7 @@ $nav-link
141141
border: none
142142
background: none
143143
color: color-default
144-
width: 100%
144+
width: 200%
145145
font: 13px font-sans
146146
outline: none
147147
&::-webkit-search-results-decoration

source/css/_partial/other.styl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66
display: none
77
right:30px
88
bottom: 100px
9-
// background-image: url(../../images/fly-to-top.png)
109
z-index:200px
1110
cursor: pointer
1211
&:hover{
1312
border: 0.5px dashed color-grey5
14-
}
13+
}
14+
@media mq-mobile
15+
width: auto
16+
height: 60px
17+
&:hover{
18+
border: none
19+
}

0 commit comments

Comments
 (0)