Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
0ff1cdc2c717ba7690cb8baaae66345df7686b2a
1 parent
e2ed1118
搜索框调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
static/js/index/search.js
static/sass/index/_search.scss
static/js/index/search.js
View file @
0ff1cdc
...
...
@@ -11,6 +11,8 @@ var $input = $('#search-input input');
var
$clear
=
$
(
'#search-input .clear-input'
);
var
$icon
=
$
(
'.search-icon'
);
var
$form
=
$
(
'#search-form'
);
var
$history
=
$
(
'.history'
);
...
...
@@ -32,8 +34,10 @@ chHammer.on('tap', function() {
$input
.
on
(
'input'
,
function
()
{
if
(
$input
.
val
()
===
''
)
{
$icon
.
css
(
'color'
,
'#b2b2b2'
);
$clear
.
addClass
(
'hide'
);
}
else
{
$icon
.
css
(
'color'
,
'#000'
);
$clear
.
removeClass
(
'hide'
);
}
});
...
...
static/sass/index/_search.scss
View file @
0ff1cdc
...
...
@@ -38,7 +38,7 @@
left
:
515rem
/
$pxConvertRem
;
border
:
none
;
background
:
transparent
;
color
:
#
000
;
color
:
#
b2b2b2
;
font-size
:
32rem
/
$pxConvertRem
;
line-height
:
56rem
/
$pxConvertRem
;
}
...
...
Please
register
or
login
to post a comment