Ticket #3493: 3493.patch
File 3493.patch, 9.3 KB (added by , 15 years ago) |
---|
-
_source/skins/office2003/toolbar.css
134 134 _margin: 3px 1px 1px 1px; 135 135 } 136 136 137 .cke_skin_office2003 .cke_highcontrast .cke_button a, 138 .cke_skin_office2003 .cke_highcontrast .cke_button a.cke_off 139 { 140 opacity: 1.0; 141 filter: alpha(opacity=100); 142 } 143 137 144 .cke_skin_office2003 .cke_button a.cke_on 138 145 { 139 146 border: solid 1px #316ac5; … … 144 151 _margin: 2px 0 0 0; 145 152 } 146 153 154 .cke_skin_office2003 .cke_highcontrast .cke_button a.cke_on .cke_label 155 { 156 font-weight: bolder; 157 text-decoration: underline; 158 } 159 147 160 .cke_skin_office2003 .cke_button a.cke_disabled, 148 161 .cke_skin_office2003 .cke_button a:hover.cke_disabled, 149 162 .cke_skin_office2003 .cke_button a:focus.cke_disabled, … … 158 171 _margin: 3px 1px 1px 1px; 159 172 } 160 173 174 .cke_skin_office2003 .cke_highcontrast .cke_button a.cke_disabled, 175 .cke_skin_office2003 .cke_browser_ie.cke_highcontrast a:hover.cke_button .cke_disabled 176 { 177 filter: alpha(opacity=60); 178 opacity: 0.6; 179 } 180 161 181 .cke_skin_office2003 .cke_button a:hover.cke_on, 162 182 .cke_skin_office2003 .cke_button a:focus.cke_on, 163 183 .cke_skin_office2003 .cke_button a:active.cke_on, /* IE */ … … 196 216 _background-repeat: repeat-x; 197 217 } 198 218 219 .cke_skin_office2003 .cke_highcontrast .cke_button .cke_label 220 { 221 display: inline-block; 222 } 223 224 .cke_skin_office2003 .cke_highcontrast .cke_button .cke_icon 225 { 226 display: none; 227 } 228 229 .cke_skin_office2003 .cke_accessibility 230 { 231 position: absolute; 232 top: -1000000px; 233 } 234 199 235 .cke_skin_office2003 .cke_button a:hover .cke_label 200 236 { 201 237 _background-color: #dff1ff; … … 287 323 float: left; 288 324 } 289 325 326 .cke_skin_office2003 .cke_browser_gecko.cke_highcontrast .cke_button .cke_icon 327 { 328 display: none; 329 } 330 290 331 .cke_skin_office2003 .cke_rtl.cke_browser_gecko .cke_toolbar, 291 332 .cke_skin_office2003 .cke_rtl.cke_browser_gecko .cke_button a, 292 333 .cke_skin_office2003 .cke_rtl.cke_browser_gecko .cke_button a.cke_off, -
_source/skins/office2003/richcombo.css
23 23 opacity: 0.70; /* Safari, Opera and Mozilla */ 24 24 } 25 25 26 .cke_skin_office2003 .cke_highcontrast .cke_rcombo a 27 { 28 filter: alpha(opacity=100); /* IE */ 29 opacity: 1.0; /* Safari, Opera and Mozilla */ 30 } 31 26 32 .cke_skin_office2003 .cke_rcombo .cke_label 27 33 { 28 34 display: inline-block; … … 38 44 _background-repeat: repeat-x; 39 45 } 40 46 47 .cke_skin_office2003 .cke_highcontrast .cke_rcombo .cke_label 48 { 49 filter: alpha(opacity=100); 50 opacity: 1.0; 51 } 52 41 53 .cke_skin_office2003 .cke_rtl .cke_rcombo .cke_label 42 54 { 43 55 padding-right: 4px; … … 171 183 opacity: 0.3; /* Safari, Opera and Mozilla */ 172 184 } 173 185 186 .cke_skin_office2003 .cke_highcontrast .cke_rcombo .cke_disabled .cke_label 187 { 188 filter: alpha(opacity=70); 189 opacity: 0.7; 190 } 191 174 192 .cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text, 175 193 .cke_skin_office2003 .cke_rcombo .cke_disabled .cke_openbutton 176 194 { … … 178 196 opacity: 0.5; /* Safari, Opera and Mozilla */ 179 197 } 180 198 199 .cke_skin_office2003 .cke_highcontrast .cke_rcombo .cke_disabled .cke_text, 200 .cke_skin_office2003 .cke_highcontrast .cke_rcombo .cke_disabled .cke_openbutton 201 { 202 filter: alpha(opacity=80); 203 opacity: 0.8; 204 } 205 181 206 .cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text 182 207 { 183 208 color: #fff; -
_source/skins/v2/toolbar.css
110 110 height: 18px; 111 111 } 112 112 113 .cke_skin_v2 .cke_highcontrast .cke_button a, 114 .cke_skin_v2 .cke_highcontrast .cke_button a.cke_off 115 { 116 opacity: 1.0; 117 filter: alpha(opacity=100); 118 } 119 113 120 .cke_skin_v2 .cke_button a.cke_on 114 121 { 115 122 border: solid 1px #316ac5; … … 118 125 opacity: 1; /* Safari, Opera and Mozilla */ 119 126 } 120 127 128 .cke_skin_v2 .cke_highcontrast .cke_button a.cke_on .cke_label 129 { 130 font-weight: bolder; 131 text-decoration: underline; 132 } 133 121 134 .cke_skin_v2 .cke_button a.cke_disabled, 122 135 .cke_skin_v2 .cke_browser_ie a:hover.cke_button .cke_disabled 123 136 { … … 127 140 opacity : 0.3; /* Safari, Opera and Mozilla */ 128 141 } 129 142 143 .cke_skin_v2 .cke_highcontrast .cke_button a.cke_disabled, 144 .cke_skin_v2 .cke_browser_ie.cke_highcontrast a:hover.cke_button .cke_disabled 145 { 146 filter: alpha(opacity=60); 147 opacity: 0.6; 148 } 149 130 150 .cke_skin_v2 .cke_button a:hover.cke_on, 131 151 .cke_skin_v2 .cke_button a:focus.cke_on, 132 152 .cke_skin_v2 .cke_button a:active.cke_on, /* IE */ … … 158 178 vertical-align: 3px; 159 179 } 160 180 181 .cke_skin_v2 .cke_highcontrast .cke_button .cke_label 182 { 183 display: inline-block; 184 } 185 186 .cke_skin_v2 .cke_highcontrast .cke_button .cke_icon 187 { 188 display: none; 189 } 190 161 191 .cke_skin_v2 .cke_accessibility 162 192 { 163 193 position: absolute; … … 242 272 float: left; 243 273 } 244 274 275 .cke_skin_v2 .cke_browser_gecko.cke_highcontrast .cke_button .cke_icon 276 { 277 display: none; 278 } 279 245 280 .cke_skin_v2 .cke_rtl.cke_browser_gecko .cke_toolbar, 246 281 .cke_skin_v2 .cke_rtl.cke_browser_gecko .cke_button a, 247 282 .cke_skin_v2 .cke_rtl.cke_browser_gecko .cke_button a.cke_off, -
_source/skins/v2/richcombo.css
21 21 opacity: 0.70; /* Safari, Opera and Mozilla */ 22 22 } 23 23 24 .cke_skin_v2 .cke_highcontrast .cke_rcombo a 25 { 26 filter: alpha(opacity=100); /* IE */ 27 opacity: 1.0; /* Safari, Opera and Mozilla */ 28 } 29 24 30 .cke_skin_v2 .cke_rcombo .cke_label 25 31 { 26 32 display: inline-block; … … 33 39 background-color: #f1f1e3; /* Because of IE6+ClearType */ 34 40 } 35 41 42 .cke_skin_v2 .cke_highcontrast .cke_rcombo .cke_label 43 { 44 filter: alpha(opacity=100); 45 opacity: 1.0; 46 } 47 36 48 .cke_skin_v2 .cke_rtl .cke_rcombo .cke_label 37 49 { 38 50 padding-right: 4px; … … 166 178 opacity: 0.3; /* Safari, Opera and Mozilla */ 167 179 } 168 180 181 .cke_skin_v2 .cke_highcontrast .cke_rcombo .cke_disabled .cke_label 182 { 183 filter: alpha(opacity=70); 184 opacity: 0.7; 185 } 186 169 187 .cke_skin_v2 .cke_rcombo .cke_disabled .cke_text, 170 188 .cke_skin_v2 .cke_rcombo .cke_disabled .cke_openbutton 171 189 { … … 173 191 opacity: 0.5; /* Safari, Opera and Mozilla */ 174 192 } 175 193 194 .cke_skin_v2 .cke_highcontrast .cke_rcombo .cke_disabled .cke_text, 195 .cke_skin_v2 .cke_highcontrast .cke_rcombo .cke_disabled .cke_openbutton 196 { 197 filter: alpha(opacity=80); 198 opacity: 0.8; 199 } 200 176 201 .cke_skin_v2 .cke_rcombo .cke_disabled .cke_text 177 202 { 178 203 color: #fff; -
_source/core/editor.js
270 270 271 271 if ( editor.config.autoUpdateElement ) 272 272 attachToForm( editor ); 273 274 if ( typeof( CKEDITOR.highContrast ) == 'function' && CKEDITOR.highContrast() ) 275 editor.container.getFirst().$.className = CKEDITOR.env.cssClass; 273 276 }); 274 277 }; 275 278 -
_source/core/loader.js
50 50 'core/env' : [], 51 51 'core/event' : [], 52 52 'core/focusmanager' : [], 53 'core/highcontrast' : [ 'core/dom/element' ], 53 54 'core/htmlparser' : [], 54 55 'core/htmlparser/comment' : [ 'core/htmlparser' ], 55 56 'core/htmlparser/element' : [ 'core/htmlparser', 'core/htmlparser/fragment' ], … … 64 65 'core/resourcemanager' : [ 'core/scriptloader', 'core/tools' ], 65 66 'core/scriptloader' : [ 'core/dom/element', 'core/env' ], 66 67 'core/skins' : [ 'core/imagecacher', 'core/scriptloader' ], 67 'core/themes' : [ 'core/resourcemanager' ],68 'core/themes' : [ 'core/resourcemanager', 'core/highcontrast' ], 68 69 'core/tools' : [ 'core/env' ], 69 70 'core/ui' : [], 70 71 'core/xml' : [ 'core/env' ] -
_source/core/highcontrast.js
1 /* 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 */ 5 6 /** 7 * @fileOverview Detects whether the editor is in high contrast mode. 8 */ 9 10 (function() 11 { 12 var imagePath = CKEDITOR.basePath + 'images/spacer.gif'; 13 var hcDetect; 14 15 CKEDITOR.highContrast = function() 16 { 17 if ( !hcDetect ) 18 { 19 hcDetect = CKEDITOR.dom.element.createFromHtml( '<div style="width:0px;height:0px' 20 + ';position:absolute;top:-1000000px;left:-1000000px' 21 + ';background-image:url(' + imagePath + ')"></div>', CKEDITOR.document ); 22 hcDetect.appendTo( CKEDITOR.document.getBody() ); 23 } 24 25 var retval = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ); 26 27 if ( retval ) 28 CKEDITOR.env.cssClass += ' cke_highcontrast'; 29 30 return ( CKEDITOR.highContrast = retval ); 31 }; 32 })();