Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove "px" from zero values in CSS

A zero is interpreted the same no matter the units. Saves space.
  • Loading branch information...
commit 042bfd8e0a5f104b8117cf14954616423c718139 1 parent 00579f8
@nschonni nschonni authored
View
4 css/structure/jquery.mobile.collapsible.css
@@ -13,10 +13,10 @@
.ui-collapsible-heading .ui-btn-icon-left.ui-mini .ui-btn-inner { padding-left: 30px; }
.ui-collapsible-heading .ui-btn-icon-right.ui-mini .ui-btn-inner { padding-right: 30px; }
-.ui-collapsible-heading .ui-btn span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
+.ui-collapsible-heading .ui-btn span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0 1px 2px; text-indent: -9999px; }
.ui-collapsible-heading .ui-btn span.ui-btn .ui-btn-inner { padding: 10px 0; }
.ui-collapsible-heading .ui-btn span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
-.ui-collapsible-heading-status { position: absolute; top: -9999px; left:0px; }
+.ui-collapsible-heading-status { position: absolute; top: -9999px; left: 0; }
.ui-collapsible-content {
display: block;
margin: 0 -15px;
View
2  css/structure/jquery.mobile.listview.css
@@ -78,7 +78,7 @@ ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid
.ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px; }
.ui-li-link-alt .ui-btn-icon-notext .ui-btn-inner .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
-.ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0px; }
+.ui-listview * .ui-btn-inner > .ui-btn > .ui-btn-inner { border-top: 0; }
.ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px; }
.ui-collapsible-content .ui-listview-filter { margin: -10px -15px 10px -15px; border-bottom: inherit; }
View
12 css/structure/jquery.mobile.panel.css
@@ -183,14 +183,14 @@
box-shadow: inset 5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-position-right.ui-panel-display-overlay {
- -webkit-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
- -moz-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
- box-shadow: -5px 0px 5px rgba(0,0,0,.15);
+ -webkit-box-shadow: -5px 0 5px rgba(0,0,0,.15);
+ -moz-box-shadow: -5px 0 5px rgba(0,0,0,.15);
+ box-shadow: -5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-position-left.ui-panel-display-overlay {
- -webkit-box-shadow: 5px 0px 5px rgba(0,0,0,.15);
- -moz-box-shadow: 5px 0px 5px rgba(0,0,0,.15);
- box-shadow: 5px 0px 5px rgba(0,0,0,.15);
+ -webkit-box-shadow: 5px 0 5px rgba(0,0,0,.15);
+ -moz-box-shadow: 5px 0 5px rgba(0,0,0,.15);
+ box-shadow: 5px 0 5px rgba(0,0,0,.15);
}
.ui-panel-display-push.ui-panel-open.ui-panel-position-left {
border-right-width: 1px;
View
6 css/structure/jquery.mobile.popup.css
@@ -4,9 +4,9 @@
}
.ui-popup-screen {
background-image: url(data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); /* Necessary to set some form of background to ensure element is clickable in IE6/7. While legacy IE won't understand the data-URI'd image, it ensures no additional requests occur in all other browsers with little overhead. */
- top: 0px;
- left: 0px;
- right: 0px;
+ top: 0;
+ left: 0;
+ right: 0;
bottom: 1px;
position: absolute;
filter: Alpha(Opacity=0);
View
44 css/themes/default/jquery.mobile.theme.css
@@ -968,7 +968,7 @@ a.ui-link-inherit {
}
.ui-icon-plus {
- background-position: 0px 50%;
+ background-position: 0 50%;
}
.ui-icon-minus {
background-position: -36px 50%;
@@ -1089,31 +1089,31 @@ a.ui-link-inherit {
height: 100%;
}
.ui-overlay-shadow {
- -moz-box-shadow: 0px 0px 12px rgba(0,0,0,.6);
- -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,.6);
- box-shadow: 0px 0px 12px rgba(0,0,0,.6);
+ -moz-box-shadow: 0 0 12px rgba(0,0,0,.6);
+ -webkit-box-shadow: 0 0 12px rgba(0,0,0,.6);
+ box-shadow: 0 0 12px rgba(0,0,0,.6);
}
.ui-shadow {
- -moz-box-shadow: 0px 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/;
- -webkit-box-shadow: 0px 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/;
- box-shadow: 0px 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/;
+ -moz-box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/;
+ -webkit-box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/;
+ box-shadow: 0 1px 3px /*{global-box-shadow-size}*/ rgba(0,0,0,.2) /*{global-box-shadow-color}*/
}
.ui-bar-a .ui-shadow,
.ui-bar-b .ui-shadow ,
.ui-bar-c .ui-shadow {
- -moz-box-shadow: 0px 1px 0 rgba(255,255,255,.3);
- -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.3);
- box-shadow: 0px 1px 0 rgba(255,255,255,.3);
+ -moz-box-shadow: 0 1px 0 rgba(255,255,255,.3);
+ -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.3);
+ box-shadow: 0 1px 0 rgba(255,255,255,.3);
}
.ui-shadow-inset {
- -moz-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
- -webkit-box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
- box-shadow: inset 0px 1px 4px rgba(0,0,0,.2);
+ -moz-box-shadow: inset 0 1px 4px rgba(0,0,0,.2);
+ -webkit-box-shadow: inset 0 1px 4px rgba(0,0,0,.2);
+ box-shadow: inset 0 1px 4px rgba(0,0,0,.2);
}
.ui-icon-shadow {
- -moz-box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
- -webkit-box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
- box-shadow: 0px 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
+ -moz-box-shadow: 0 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
+ -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
+ box-shadow: 0 1px 0 rgba(255,255,255,.4) /*{global-icon-shadow}*/;
}
/* Focus state - set here for specificity (note: these classes are added by JavaScript)
@@ -1127,15 +1127,15 @@ a.ui-link-inherit {
}
.ui-focus,
.ui-btn:focus {
- -moz-box-shadow: inset 0px 0px 3px #387bbe /*{global-active-background-color}*/, 0px 0px 9px #387bbe /*{global-active-background-color}*/;
- -webkit-box-shadow: inset 0px 0px 3px #387bbe /*{global-active-background-color}*/, 0px 0px 9px #387bbe /*{global-active-background-color}*/;
- box-shadow: inset 0px 0px 3px #387bbe /*{global-active-background-color}*/, 0px 0px 9px #387bbe /*{global-active-background-color}*/;
+ -moz-box-shadow: inset 0 0 3px #387bbe /*{global-active-background-color}*/, 0 0 9px #387bbe /*{global-active-background-color}*/;
+ -webkit-box-shadow: inset 0 0 3px #387bbe /*{global-active-background-color}*/, 0 0 9px #387bbe /*{global-active-background-color}*/;
+ box-shadow: inset 0 0 3px #387bbe /*{global-active-background-color}*/, 0 0 9px #387bbe /*{global-active-background-color}*/;
}
.ui-input-text.ui-focus,
.ui-input-search.ui-focus {
- -moz-box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
- -webkit-box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
- box-shadow: 0px 0px 12px #387bbe /*{global-active-background-color}*/;
+ -moz-box-shadow: 0 0 12px #387bbe /*{global-active-background-color}*/;
+ -webkit-box-shadow: 0 0 12px #387bbe /*{global-active-background-color}*/;
+ box-shadow: 0 0 12px #387bbe /*{global-active-background-color}*/;
}
/* unset box shadow in browsers that don't do it right
Please sign in to comment.
Something went wrong with that request. Please try again.