-
Notifications
You must be signed in to change notification settings - Fork 140
Add lens hover effect to target #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,22 @@ | |
| background: #FFF; | ||
| } | ||
|
|
||
| .easyzoom-lens { | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| background-color: #FFF; | ||
| background-color: rgba(255, 255, 255, 0.35); | ||
| border: 1px solid #CCC; | ||
| border-color: rgba(0, 0, 0, 0.35); | ||
| width: auto; | ||
| height: auto; | ||
| cursor: pointer; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should maintain the crosshair cursor, I think the pointer gives the wrong signals - IE. you can click when you can't.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I actually had been pondering that, however, I ended up needing to be able to click through the lens so as to open a modal, which I was able to accomplish in the How I used onShow: function(){
if(this.opts.showLens){
$(this.$lens).on('click', {'link': this.$link}, function(ev){
ev.data.link.trigger('click');
});
}
} |
||
| -webkit-box-sizing: border-box; | ||
| -moz-box-sizing: border-box; | ||
| box-sizing: border-box; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't worry about the prefixes these days http://caniuse.com/#search=box-sizing |
||
| } | ||
|
|
||
| /** | ||
| * EasyZoom layout variations | ||
| */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
topandleftproperties can be removed as they're specified in the JS anyway