Commit Graph

31 Commits

Author SHA1 Message Date
Andrew Nacin fe14a22e31 Introduce a new, cross-browser HiDPI CSS @media rule to be used everywhere.
{{{
@media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) {
}}}

Serve HiDPI graphics for printing, regardless of screen resolution.

Specify Opera's vendor-prefixed device pixel ratio property, for Opera desktop.

Specify a minimum Webkit device pixel ratio of 1.25 instead of 1.5, to serve
2x images to Android devices that are between 1 and 1.5x (like the Nexus 7).
Firefox and Opera will respond to 1.5x on these devices, but Chrome will not.

Specify min-resolution, which covers Firefox 19. Opera on Android also supports
min-resolution, but Opera Mini does not support dppx, so the dpi unit is used.

props iammattthomas for the exhaustive research.
props lessbloat for patching.

fixes #22238.



git-svn-id: https://develop.svn.wordpress.org/trunk@22629 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:50:08 +00:00
Mark Jaquith 504b94b1b3 Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith
git-svn-id: https://develop.svn.wordpress.org/trunk@22425 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 18:49:10 +00:00
Andrew Nacin a23e6ae4ec Update Thickbox images for HiDPI. props lessbloat. see #21019.
git-svn-id: https://develop.svn.wordpress.org/trunk@22378 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-05 21:00:15 +00:00
Andrew Nacin b0bcbe0b01 Switch to sans-serif for the font stack in Thickbox as we have done elsewhere. props wet, fixes #20268.
git-svn-id: https://develop.svn.wordpress.org/trunk@21834 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:08:01 +00:00
Andrew Ozz d2e0a6feab Rename the problematic "unload" event in Thickbox to "tb_unload", making it a true custom event, fixes #19189
git-svn-id: https://develop.svn.wordpress.org/trunk@19456 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-26 17:49:50 +00:00
Andrew Ozz 6f06a70ecc Revert [19264] to keep back-compat. Any improperly fired window.unload will have to be dealt with on a case by case basis.
git-svn-id: https://develop.svn.wordpress.org/trunk@19451 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-25 17:33:31 +00:00
Andrew Ozz 38ddbaca4e Thickbox: do .triggerHandler() instead of .trigger(), props duck_, fixes #19189
git-svn-id: https://develop.svn.wordpress.org/trunk@19264 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-12 06:48:04 +00:00
Andrew Ozz 6840264a43 Fix thickbox (again!), props SergeyBiryukov, fixes #18796
git-svn-id: https://develop.svn.wordpress.org/trunk@18848 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-30 22:24:34 +00:00
Andrew Ozz 12a7d989e0 Pluploader take 1, props jacobwg, see #18206
git-svn-id: https://develop.svn.wordpress.org/trunk@18482 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-29 08:59:35 +00:00
Andrew Ozz 25431a16bb s/Colse/Close/, props nacin, fixes #17399
git-svn-id: https://develop.svn.wordpress.org/trunk@18070 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-29 05:07:32 +00:00
Andrew Ozz 1596867751 Don't close DFW when closing modal dialogs with Escape key, fixes #17399
git-svn-id: https://develop.svn.wordpress.org/trunk@18069 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-29 02:04:52 +00:00
Dion Hulse 6549a0aa0e Revert [17608] adding back [17596] and actually include the dummy function this time. See #17057 Fixes #17050
git-svn-id: https://develop.svn.wordpress.org/trunk@17609 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-06 00:42:07 +00:00
Andrew Nacin f9a44bc328 Revert [17596] for now. props kawauso, see #17057, see #17050.
git-svn-id: https://develop.svn.wordpress.org/trunk@17608 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-05 23:17:10 +00:00
Dion Hulse bf777d1369 Pass image URL's to thickbox via L10n in script-loader.php. Allows thickbox to be used on any page in the install without defining the image URL variables. Fixes #17050
git-svn-id: https://develop.svn.wordpress.org/trunk@17596 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-05 03:58:25 +00:00
Mark Jaquith e12a085938 TB_iframe fixes for stuff that broke in r14015. props scribu. fixes #12878. see #12792
git-svn-id: https://develop.svn.wordpress.org/trunk@14030 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 13:52:12 +00:00
Mark Jaquith 7c6b7b0a91 Make thumbnail work for custom post types even if the editor is not being displayed. props scribu. fixes #12792
git-svn-id: https://develop.svn.wordpress.org/trunk@14015 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 11:20:47 +00:00
Dion Hulse fd04241472 JQuery.noConflict() fix for thickbox.js. Props Michael. Fixes #12382
git-svn-id: https://develop.svn.wordpress.org/trunk@13864 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 04:48:20 +00:00
Andrew Ozz abb39f0c99 Show error message in TB when iframes support is turned off in the browser, props nacin, fixes #10939
git-svn-id: https://develop.svn.wordpress.org/trunk@12677 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-09 01:17:45 +00:00
Andrew Ozz 70435662a6 l10n for thickbox.js, props nbachiyski, fixes #10278
git-svn-id: https://develop.svn.wordpress.org/trunk@12276 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-25 11:08:39 +00:00
Andrew Ozz 557d414f70 Let plugins predefine thickbox image vars, props aaroncampbell, fixes #6453
git-svn-id: https://develop.svn.wordpress.org/trunk@12205 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 00:19:55 +00:00
Andrew Ozz 9fd8865512 Fix Thickbox positioning for browsers pretending to be IE6, props Denis-de-Bernardy, fixes #8933 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10428 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-24 11:58:21 +00:00
Andrew Ozz ee334aaf40 jQuery 1.3b2 and related changes (jquery.js is not minified to aid testing)
git-svn-id: https://develop.svn.wordpress.org/trunk@10326 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-07 05:02:40 +00:00
Andrew Ozz 416baab11a Minify all js and add the non-minified files as .dev.js
git-svn-id: https://develop.svn.wordpress.org/trunk@10291 602fd350-edb4-49c9-b593-d223f7449a82
2009-01-02 15:08:58 +00:00
Andrew Ozz 55281f0d8e Visual design fixes from iammattthomas, fixes #8313
git-svn-id: https://develop.svn.wordpress.org/trunk@9842 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-22 08:03:25 +00:00
Ryan Boren c798e2041d Add macFFBgHack.png. fixes #6573 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8457 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-25 22:42:31 +00:00
Ryan Boren 761c8cef28 Image popup improvements from azaozz. Added translation strings, RTL support, several layout improvements, image border, hspace and vspace can be used as shortcuts to add css styles, the preview is visible on both tabs, etc. see #6811
git-svn-id: https://develop.svn.wordpress.org/trunk@8083 602fd350-edb4-49c9-b593-d223f7449a82
2008-06-14 16:38:08 +00:00
Ryan Boren 58a9595df2 Theme preview and thickbox CSS cleanup. Props azaozz. see #5486
git-svn-id: https://develop.svn.wordpress.org/trunk@7961 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-20 17:19:33 +00:00
Ryan Boren 2335a57b06 thickbox and media upload fixes from azaozz. fixes #6843
git-svn-id: https://develop.svn.wordpress.org/trunk@7862 602fd350-edb4-49c9-b593-d223f7449a82
2008-04-30 20:21:09 +00:00
Peter Westwood 2d7ba950bc Switch from addLoadEvent to jQuery(document).ready. Fixes #6241 props azaozz.
git-svn-id: https://develop.svn.wordpress.org/trunk@7325 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-15 22:57:47 +00:00
Matt Mullenweg e4b2fa59dc Have the bottom boxes be closed by default. Remove the global padding kill from thickbox CSS.
git-svn-id: https://develop.svn.wordpress.org/trunk@6604 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-14 00:20:52 +00:00
Ryan Boren fd80901dcf New image uploader from tellyworth. see #5609
git-svn-id: https://develop.svn.wordpress.org/trunk@6579 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-09 08:14:29 +00:00