Skip to content

Commit

Permalink
CSS cleanup: removed invalid CSS from core styles
Browse files Browse the repository at this point in the history
Used cleaner alternatives for .ui-helper-hidden-accessible and .ui-helper-clearfix and moved .ui-helper-zfix over to a new css file (jquery.ui.ancient.css) to separate IE6-only fixes from the rest to make it easier to remove them.
  • Loading branch information
selfthinker committed Dec 28, 2011
1 parent cfea325 commit 24de1b9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
1 change: 1 addition & 0 deletions themes/base/jquery.ui.all.css
Expand Up @@ -9,3 +9,4 @@
*/ */
@import "jquery.ui.base.css"; @import "jquery.ui.base.css";
@import "jquery.ui.theme.css"; @import "jquery.ui.theme.css";
@import "jquery.ui.ancient.css";
17 changes: 17 additions & 0 deletions themes/base/jquery.ui.ancient.css
@@ -0,0 +1,17 @@
/*
* jQuery UI CSS for IE6 @VERSION
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/

.ui-helper-zfix {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
opacity: 0;
filter: Alpha(Opacity=0);
}
25 changes: 11 additions & 14 deletions themes/base/jquery.ui.core.css
Expand Up @@ -15,8 +15,11 @@
} }
.ui-helper-hidden-accessible { .ui-helper-hidden-accessible {
position: absolute !important; position: absolute !important;
clip: rect(1px 1px 1px 1px); left: -99999em;
clip: rect(1px,1px,1px,1px); top: auto;
width: 1px;
height: 1px;
overflow: hidden;
} }
.ui-helper-reset { .ui-helper-reset {
margin: 0; margin: 0;
Expand All @@ -28,6 +31,12 @@
font-size: 100%; font-size: 100%;
list-style: none; list-style: none;
} }
.ui-helper-clearfix {
display: inline-block;
}
.ui-helper-clearfix {
display: block;
}
.ui-helper-clearfix:before, .ui-helper-clearfix:before,
.ui-helper-clearfix:after { .ui-helper-clearfix:after {
content: ""; content: "";
Expand All @@ -36,18 +45,6 @@
.ui-helper-clearfix:after { .ui-helper-clearfix:after {
clear: both; clear: both;
} }
.ui-helper-clearfix {
zoom: 1;
}
.ui-helper-zfix {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
opacity: 0;
filter: Alpha(Opacity=0);
}




/* Interaction Cues /* Interaction Cues
Expand Down

0 comments on commit 24de1b9

Please sign in to comment.