Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBI-Framework
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ebiwd
EBI-Framework
Commits
3b94cf57
Commit
3b94cf57
authored
8 years ago
by
Ken Hawkins
Browse files
Options
Downloads
Patches
Plain Diff
Clearinput: visual tweaks
parent
422e0369
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
css/ebi-global.css
+2
-4
2 additions, 4 deletions
css/ebi-global.css
js/foundationExtendEBI.js
+1
-1
1 addition, 1 deletion
js/foundationExtendEBI.js
with
3 additions
and
5 deletions
css/ebi-global.css
+
2
−
4
View file @
3b94cf57
...
...
@@ -722,12 +722,10 @@ h6 a span.link-pdf { display:none; }
Also need JS, via: http://stackoverflow.com/questions/6258521/clear-icon-inside-input-text */
input
.clearable
{
background
:
#fff
url('data:image/gif;base64,R0lGODlhBwAHAIAAAP///5KSkiH5BAAAAAAALAAAAAAHAAcAAAIMTICmsGrIXnLxuDMLADs=')
no-repeat
right
-10px
center
;
border
:
1px
solid
#999
;
padding
:
3px
18px
3px
4px
;
border-radius
:
3px
;
padding
:
3px
25px
3px
4px
;
transition
:
background
0.4s
;
}
input
.clearable.x
{
background-position
:
right
5
px
center
;
}
/* (jQ) Show icon */
input
.clearable.x
{
background-position
:
right
12
px
center
;
}
/* (jQ) Show icon */
input
.clearable.onX
{
cursor
:
pointer
;
}
/* (jQ) hover cursor style */
input
.clearable
::-ms-clear
{
display
:
none
;
width
:
0
;
height
:
0
;}
/* Remove IE default X */
...
...
This diff is collapsed.
Click to expand it.
js/foundationExtendEBI.js
+
1
−
1
View file @
3b94cf57
...
...
@@ -16,7 +16,7 @@
$
(
document
).
on
(
'
input
'
,
'
.clearable
'
,
function
(){
$
(
this
)[
tog
(
this
.
value
)](
'
x
'
);
}).
on
(
'
mousemove
'
,
'
.x
'
,
function
(
e
){
$
(
this
)[
tog
(
this
.
offsetWidth
-
18
<
e
.
clientX
-
this
.
getBoundingClientRect
().
left
)](
'
onX
'
);
$
(
this
)[
tog
(
this
.
offsetWidth
-
25
<
e
.
clientX
-
this
.
getBoundingClientRect
().
left
)](
'
onX
'
);
}).
on
(
'
touchstart click
'
,
'
.onX
'
,
function
(
ev
){
ev
.
preventDefault
();
$
(
this
).
removeClass
(
'
x onX
'
).
val
(
''
).
change
().
keyup
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment