Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CSS cleanup: (re)moved some IE-specific hacks

* moved all occurrences of zoom to the IE6-only styles
* except one style was also for IE7: changed '.ui-menu .ui-menu-item a' to use min-height instead
* moved workaround for .ui-autocomplete to IE6-only styles
* moved star hack for .ui-button to non-latest styles and changed invalid hack into valid hack
  • Loading branch information...
commit 1d1a07868fa1fb850e76ea9ea8deee7931bc4356 1 parent 0060a7a
@selfthinker authored
View
2  themes/base/jquery.ui.accordion.css
@@ -15,7 +15,6 @@
cursor: pointer;
position: relative;
margin-top: 1px;
- zoom: 1;
}
.ui-accordion .ui-accordion-header-active {
border-bottom: 0 !important;
@@ -43,7 +42,6 @@
margin-bottom: 2px;
overflow: auto;
display: none;
- zoom: 1;
}
.ui-accordion .ui-accordion-content-active {
display: block;
View
19 themes/base/jquery.ui.ancient.css
@@ -28,3 +28,22 @@
width: 200px; /*must have*/
height: 200px; /*must have*/
}
+
+.ui-accordion .ui-accordion-header,
+.ui-accordion .ui-accordion-content,
+.ui-button,
+.ui-dialog .ui-dialog-content,
+.ui-menu .ui-menu-item,
+.ui-menu .ui-menu-item a,
+.ui-tabs {
+ zoom: 1;
+}
+
+* html .ui-autocomplete {
+ width: 1px;
+} /* without this, the menu expands to 100% in IE6 */
+
+/* Fades and background-images don't work well together in IE6, drop the image */
+* html .ui-tooltip {
+ background-image: none;
+}
View
5 themes/base/jquery.ui.autocomplete.css
@@ -11,8 +11,3 @@
position: absolute;
cursor: default;
}
-
-/* workarounds */
-* html .ui-autocomplete {
- width: 1px;
-} /* without this, the menu expands to 100% in IE6 */
View
4 themes/base/jquery.ui.button.css
@@ -15,10 +15,8 @@
text-decoration: none !important;
cursor: pointer;
text-align: center;
- zoom: 1;
overflow: hidden;
- *overflow: visible;
-} /* the overflow property removes extra width in IE */
+}
.ui-button-icon-only {
width: 2.2em;
} /* to make room for the icon, a width needs to be set here */
View
1  themes/base/jquery.ui.dialog.css
@@ -44,7 +44,6 @@
padding: .5em 1em;
background: none;
overflow: auto;
- zoom: 1;
}
.ui-dialog .ui-dialog-buttonpane {
text-align: left;
View
6 themes/base/jquery.ui.legacy.css
@@ -22,3 +22,9 @@
.ui-widget-shadow {
filter: Alpha(Opacity=30)/*{opacityShadow}*/;
}
+
+* html .ui-button,
+*+html .ui-button {
+ overflow: visible;
+ /* the overflow property removes extra width in IE */
+}
View
3  themes/base/jquery.ui.menu.css
@@ -21,7 +21,6 @@
.ui-menu .ui-menu-item {
margin: 0;
padding: 0;
- zoom: 1;
width: 100%;
}
.ui-menu .ui-menu-item a {
@@ -29,7 +28,7 @@
display: block;
padding: 2px .4em;
line-height: 1.5;
- zoom: 1;
+ min-height: 1px; /* for IE7 */
font-weight: normal;
}
.ui-menu .ui-menu-item a.ui-state-focus,
View
1  themes/base/jquery.ui.tabs.css
@@ -10,7 +10,6 @@
.ui-tabs {
position: relative;
padding: .2em;
- zoom: 1;
} /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
.ui-tabs .ui-tabs-nav {
margin: 0;
View
4 themes/base/jquery.ui.tooltip.css
@@ -16,10 +16,6 @@
-webkit-box-shadow: 0 0 5px #aaa;
box-shadow: 0 0 5px #aaa;
}
-/* Fades and background-images don't work well together in IE6, drop the image */
-* html .ui-tooltip {
- background-image: none;
-}
body .ui-tooltip {
border-width: 2px;
}
Please sign in to comment.
Something went wrong with that request. Please try again.