Max-width: 75% for image hover. Close #76

This commit is contained in:
Nicolas Stepien 2011-12-29 05:03:28 +01:00
parent 39d7e45261
commit b1256e1754
3 changed files with 9 additions and 6 deletions

View File

@ -2899,7 +2899,7 @@
}, },
mouseover: function() { mouseover: function() {
ui.el = $.el('img', { ui.el = $.el('img', {
id: 'iHover', id: 'ihover',
src: this.parentNode.href src: this.parentNode.href
}); });
return $.add(d.body, ui.el); return $.add(d.body, ui.el);
@ -3272,12 +3272,13 @@
width: 100%;\ width: 100%;\
}\ }\
\ \
#qp, #iHover {\ #qp, #ihover {\
position: fixed;\ position: fixed;\
}\ }\
\ \
#iHover {\ #ihover {\
max-height: 100%;\ max-height: 100%;\
max-width: 75%;\
}\ }\
\ \
#navlinks {\ #navlinks {\

View File

@ -5,6 +5,7 @@ master
the report button can open multiple popups again the report button can open multiple popups again
add omploader to the list of optional flavors (http://ompldr.org/upload?url1=) add omploader to the list of optional flavors (http://ompldr.org/upload?url1=)
update archive redirections, add /lit/ and /u/ update archive redirections, add /lit/ and /u/
fit horizontally for Image Hover
2.23.7 2.23.7
- mayhem - mayhem

View File

@ -2255,7 +2255,7 @@ imgHover =
$.on thumb, 'mouseout', ui.hoverend $.on thumb, 'mouseout', ui.hoverend
mouseover: -> mouseover: ->
ui.el = $.el 'img' ui.el = $.el 'img'
id: 'iHover' id: 'ihover'
src: @parentNode.href src: @parentNode.href
$.add d.body, ui.el $.add d.body, ui.el
@ -2624,12 +2624,13 @@ Main =
width: 100%; width: 100%;
} }
#qp, #iHover { #qp, #ihover {
position: fixed; position: fixed;
} }
#iHover { #ihover {
max-height: 100%; max-height: 100%;
max-width: 75%;
} }
#navlinks { #navlinks {