From a6e9b4f97bfd60bb58dd06dc48c629541149c377 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 31 Jul 2014 14:28:31 +0200 Subject: Support the 'no-close' class feature for hiding close buttons in jQuery UI dialogs --- .../themes/classic/jquery-ui-1.10.4.custom.css | 3 +++ .../jqueryui/themes/classic/roundcube-custom.diff | 26 ++++++++++++------ .../themes/larry/jquery-ui-1.10.4.custom.css | 3 +++ plugins/jqueryui/themes/larry/jquery-ui-css.diff | 31 ++++++++++++---------- 4 files changed, 41 insertions(+), 22 deletions(-) diff --git a/plugins/jqueryui/themes/classic/jquery-ui-1.10.4.custom.css b/plugins/jqueryui/themes/classic/jquery-ui-1.10.4.custom.css index 318cc7ebf..4ead5aaf2 100755 --- a/plugins/jqueryui/themes/classic/jquery-ui-1.10.4.custom.css +++ b/plugins/jqueryui/themes/classic/jquery-ui-1.10.4.custom.css @@ -507,6 +507,9 @@ button.ui-button::-moz-focus-inner { padding: 1px; height: 20px; } +.no-close .ui-dialog-titlebar-close { + display: none !important; +} .ui-dialog .ui-dialog-content { position: relative; border: 0; diff --git a/plugins/jqueryui/themes/classic/roundcube-custom.diff b/plugins/jqueryui/themes/classic/roundcube-custom.diff index 3e5091492..8e99e1879 100644 --- a/plugins/jqueryui/themes/classic/roundcube-custom.diff +++ b/plugins/jqueryui/themes/classic/roundcube-custom.diff @@ -1,5 +1,5 @@ --- jquery-ui-1.10.4.custom.orig.css 2014-06-17 00:44:04.000000000 +0200 -+++ jquery-ui-1.10.4.custom.css 2014-06-17 13:16:34.000000000 +0200 ++++ jquery-ui-1.10.4.custom.css 2014-07-31 08:55:11.000000000 +0200 @@ -226,13 +226,18 @@ width: 3.7em; } @@ -61,7 +61,17 @@ } .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; -@@ -510,7 +526,7 @@ +@@ -491,6 +507,9 @@ + padding: 1px; + height: 20px; + } ++.no-close .ui-dialog-titlebar-close { ++ display: none !important; ++} + .ui-dialog .ui-dialog-content { + position: relative; + border: 0; +@@ -510,7 +529,7 @@ } .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; @@ -70,7 +80,7 @@ } .ui-dialog .ui-resizable-se { width: 12px; -@@ -528,6 +544,9 @@ +@@ -528,6 +547,9 @@ margin: 0; display: block; outline: none; @@ -80,7 +90,7 @@ } .ui-menu .ui-menu { margin-top: -3px; -@@ -559,6 +578,9 @@ +@@ -559,6 +581,9 @@ .ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; @@ -90,7 +100,7 @@ } .ui-menu .ui-state-disabled { -@@ -740,20 +762,29 @@ +@@ -740,20 +765,29 @@ float: left; position: relative; top: 0; @@ -122,7 +132,7 @@ .ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor, .ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor, .ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor { -@@ -806,9 +837,11 @@ +@@ -806,9 +840,11 @@ } .ui-widget-header { border: 1px solid #999999; @@ -135,7 +145,7 @@ } .ui-widget-header a { color: #333333; -@@ -841,6 +874,15 @@ +@@ -841,6 +877,15 @@ font-weight: normal; color: #000000; } @@ -151,7 +161,7 @@ .ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, -@@ -906,8 +948,8 @@ +@@ -906,8 +951,8 @@ .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { diff --git a/plugins/jqueryui/themes/larry/jquery-ui-1.10.4.custom.css b/plugins/jqueryui/themes/larry/jquery-ui-1.10.4.custom.css index 2311d3ed0..b399d3eaf 100755 --- a/plugins/jqueryui/themes/larry/jquery-ui-1.10.4.custom.css +++ b/plugins/jqueryui/themes/larry/jquery-ui-1.10.4.custom.css @@ -521,6 +521,9 @@ button.ui-button::-moz-focus-inner { height: 30px; background: url("images/ui-dialog-close.png") 0 0 no-repeat; } +.no-close .ui-dialog-titlebar-close { + display: none !important; +} .ui-dialog .ui-dialog-content { position: relative; border: 0; diff --git a/plugins/jqueryui/themes/larry/jquery-ui-css.diff b/plugins/jqueryui/themes/larry/jquery-ui-css.diff index f494d15d9..cce990679 100644 --- a/plugins/jqueryui/themes/larry/jquery-ui-css.diff +++ b/plugins/jqueryui/themes/larry/jquery-ui-css.diff @@ -1,5 +1,5 @@ --- jquery-ui-1.10.4.custom.orig.css 2014-06-17 00:47:00.000000000 +0200 -+++ jquery-ui-1.10.4.custom.css 2014-07-09 10:42:44.000000000 +0200 ++++ jquery-ui-1.10.4.custom.css 2014-07-31 08:54:40.000000000 +0200 @@ -238,6 +238,8 @@ .ui-button-icons-only .ui-button-text { padding: .4em; @@ -43,7 +43,7 @@ white-space: nowrap; width: 90%; overflow: hidden; -@@ -484,50 +495,81 @@ +@@ -484,50 +495,84 @@ } .ui-dialog .ui-dialog-titlebar-close { position: absolute; @@ -78,6 +78,9 @@ + width: 30px; + height: 30px; + background: url("images/ui-dialog-close.png") 0 0 no-repeat; ++} ++.no-close .ui-dialog-titlebar-close { ++ display: none !important; } .ui-dialog .ui-dialog-content { position: relative; @@ -141,7 +144,7 @@ } .ui-menu .ui-menu { margin-top: -3px; -@@ -539,6 +581,16 @@ +@@ -539,6 +584,16 @@ width: 100%; /* support: IE10, see #8844 */ list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); @@ -158,7 +161,7 @@ } .ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; -@@ -550,15 +602,26 @@ +@@ -550,15 +605,26 @@ .ui-menu .ui-menu-item a { text-decoration: none; display: block; @@ -187,7 +190,7 @@ } .ui-menu .ui-state-disabled { -@@ -626,7 +689,13 @@ +@@ -626,7 +692,13 @@ font-size: .7em; display: block; border: 0; @@ -202,7 +205,7 @@ } /* For IE8 - See #6727 */ -@@ -732,23 +801,41 @@ +@@ -732,23 +804,41 @@ padding: .2em; } .ui-tabs .ui-tabs-nav { @@ -252,7 +255,7 @@ } .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; -@@ -759,14 +846,26 @@ +@@ -759,14 +849,26 @@ .ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor { cursor: text; } @@ -281,7 +284,7 @@ } .ui-tooltip { padding: 8px; -@@ -798,15 +897,21 @@ +@@ -798,15 +900,21 @@ } .ui-widget-content { border: 1px solid #aaaaaa; @@ -307,7 +310,7 @@ color: #666666; font-weight: bold; } -@@ -820,7 +925,7 @@ +@@ -820,7 +928,7 @@ .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; @@ -316,7 +319,7 @@ font-weight: bold; color: #666666; } -@@ -837,7 +942,7 @@ +@@ -837,7 +945,7 @@ .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #aaaaaa; @@ -325,7 +328,7 @@ font-weight: bold; color: #333333; } -@@ -856,7 +961,7 @@ +@@ -856,7 +964,7 @@ .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; @@ -334,7 +337,7 @@ font-weight: bold; color: #333333; } -@@ -873,7 +978,7 @@ +@@ -873,7 +981,7 @@ .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight { border: 1px solid #a3a3a3; @@ -343,7 +346,7 @@ color: #004458; } .ui-state-highlight a, -@@ -885,7 +990,7 @@ +@@ -885,7 +993,7 @@ .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error { border: 1px solid #d7211e; @@ -352,7 +355,7 @@ color: #d64040; } .ui-state-error a, -@@ -1164,15 +1269,240 @@ +@@ -1164,15 +1272,240 @@ /* Overlays */ .ui-widget-overlay { -- cgit v1.2.3