r71768 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71767‎ | r71768 | r71769 >
Date:23:37, 26 August 2010
Author:tparscal
Status:ok
Tags:
Comment:
Added /* @embed */ comments to embed all images. Huge savings, even for the sprited images.
Modified paths:
  • /branches/resourceloader/phase3/skins/vector/main-ltr.css (modified) (history)
  • /branches/resourceloader/phase3/skins/vector/main-rtl.css (modified) (history)

Diff [purge]

Index: branches/resourceloader/phase3/skins/vector/main-ltr.css
@@ -537,7 +537,7 @@
538538 clear: both;
539539 margin: 0 !important;
540540 padding: 0 !important;
541 - /* @embed */
 541+ /* @embed */
542542 background-image: url(images/preferences-break.png?1);
543543 background-position: bottom left;
544544 background-repeat: no-repeat;
@@ -1150,20 +1150,24 @@
11511151 overflow: hidden;
11521152 }
11531153 #ca-unwatch.icon a {
 1154+ /* @embed */
11541155 background-image: url(images/watch-icons.png?1);
11551156 background-position: -43px 60%;
11561157 }
11571158 #ca-watch.icon a {
 1159+ /* @embed */
11581160 background-image: url(images/watch-icons.png?1);
11591161 background-position: 5px 60%;
11601162 }
11611163 #ca-unwatch.icon a:hover,
11621164 #ca-unwatch.icon a:focus {
 1165+ /* @embed */
11631166 background-image: url(images/watch-icons.png?1);
11641167 background-position: -67px 60%;
11651168 }
11661169 #ca-watch.icon a:hover,
11671170 #ca-watch.icon a:focus {
 1171+ /* @embed */
11681172 background-image: url(images/watch-icons.png?1);
11691173 background-position: -19px 60%;
11701174 }
Index: branches/resourceloader/phase3/skins/vector/main-rtl.css
@@ -25,24 +25,26 @@
2626 }
2727 body {
2828 background-color: #f3f3f3;
 29+ /* @embed */
2930 background-image: url(images/page-base.png?1);
3031 }
3132 /* Content */
3233 div#content {
3334 margin-right: 10em;
3435 padding: 1em;
 36+ /* @embed */
3537 background-image: url(images/border.png?1);
3638 background-position: top right;
3739 background-repeat: repeat-y;
3840 background-color: white;
3941 color: black;
40 - direction: rtl;
4142 }
4243 /* Head */
4344 #mw-page-base {
4445 height: 5em;
4546 background-color: white;
46 - background-image: url(images/page-fade.png?1);
 47+ /* @embed */
 48+ background-image: url("images/page-fade.png?1");
4749 background-position: bottom right;
4850 background-repeat: repeat-x;
4951 }
@@ -50,7 +52,8 @@
5153 margin-top: -5em;
5254 margin-right: 10em;
5355 height: 5em;
54 - background-image: url(images/border.png?1);
 56+ /* @embed */
 57+ background-image: url('images/border.png?1');
5558 background-position: bottom right;
5659 background-repeat: repeat-x;
5760 }
@@ -117,6 +120,7 @@
118121 height: 2.5em;
119122 }
120123 div.vectorTabs {
 124+ /* @embed */
121125 background-image: url(images/tab-break.png?1);
122126 background-position: bottom right;
123127 background-repeat: no-repeat;
@@ -144,6 +148,7 @@
145149 margin: 0;
146150 padding: 0;
147151 background-color: #f3f3f3;
 152+ /* @embed */
148153 background-image: url(images/tab-normal-fade.png?1);
149154 background-position: bottom right;
150155 background-repeat: repeat-x;
@@ -154,6 +159,7 @@
155160 display: block;
156161 }
157162 div.vectorTabs li.selected {
 163+ /* @embed */
158164 background-image: url(images/tab-current-fade.png?1);
159165 }
160166 /* OVERRIDDEN BY COMPLIANT BROWSERS */
@@ -162,6 +168,7 @@
163169 height: 1.9em;
164170 padding-right: 0.5em;
165171 padding-left: 0.5em;
 172+ /* @embed */
166173 background-image: url(images/tab-break.png?1);
167174 background-position: bottom left;
168175 background-repeat: no-repeat;
@@ -202,6 +209,7 @@
203210 div.vectorMenu {
204211 direction: ltr;
205212 float: left;
 213+ /* @embed */
206214 background-image: url(images/arrow-down-icon.png?1);
207215 background-position: 100% 60%;
208216 background-repeat: no-repeat;
@@ -215,6 +223,7 @@
216224 /* @noflip */
217225 div#mw-head div.vectorMenu h5 {
218226 float: left;
 227+ /* @embed */
219228 background-image: url(images/tab-break.png?1);
220229 background-repeat: no-repeat;
221230 }
@@ -242,6 +251,7 @@
243252 width: 24px;
244253 height: 2.5em;
245254 text-decoration: none;
 255+ /* @embed */
246256 background-image: url(images/tab-break.png?1);
247257 background-repeat: no-repeat;
248258 }
@@ -274,8 +284,7 @@
275285 x:-moz-any-link {
276286 margin-left: 23px;
277287 }
278 - div.vectorMenu:hover div.menu,
279 - div.vectorMenu:focus div.menu {
 288+ div.vectorMenu:hover div.menu {
280289 display: block;
281290 }
282291 div.vectorMenu ul {
@@ -351,6 +360,7 @@
352361 min-height: 1px; /* Gotta trigger hasLayout for IE7 */
353362 border: solid 1px #AAAAAA;
354363 background-color: white;
 364+ /* @embed */
355365 background-image: url(images/search-fade.png?1);
356366 background-position: top right;
357367 background-repeat: repeat-x;
@@ -407,7 +417,7 @@
408418 }
409419 div#mw-panel div.portal {
410420 padding-bottom: 1.5em;
411 - direction: rtl;
 421+ direction: ltr;
412422 }
413423 div#mw-panel div.portal h5 {
414424 font-weight: normal;
@@ -423,6 +433,7 @@
424434 margin: 0;
425435 padding-top: 0.5em;
426436 margin-right: 1.25em;
 437+ /* @embed */
427438 background-image: url(images/portal-break.png?1);
428439 background-repeat: no-repeat;
429440 background-position: top right;
@@ -453,10 +464,11 @@
454465 margin-right: 10em;
455466 margin-top: 0;
456467 padding: 0.75em;
457 - background-image: url(images/border.png?1);
 468+ /* @embed */
 469+ background-image: url("images/border.png?1");
458470 background-position: top right;
459471 background-repeat: repeat-x;
460 - direction: rtl;
 472+ direction: ltr;
461473 }
462474 div#footer ul {
463475 list-style: none;
@@ -525,6 +537,7 @@
526538 clear: both;
527539 margin: 0 !important;
528540 padding: 0 !important;
 541+ /* @embed */
529542 background-image: url(images/preferences-break.png?1);
530543 background-position: bottom right;
531544 background-repeat: no-repeat;
@@ -539,6 +552,7 @@
540553 white-space: nowrap;
541554 list-style-type: none;
542555 list-style-image: none;
 556+ /* @embed */
543557 background-image: url(images/preferences-break.png?1);
544558 background-position: bottom left;
545559 background-repeat: no-repeat;
@@ -557,10 +571,12 @@
558572 background-image: none;
559573 font-size: 0.9em;
560574 }
561 - #preftoc a:hover, #preftoc a:focus {
 575+ #preftoc a:hover,
 576+ #preftoc a:focus {
562577 text-decoration: underline;
563578 }
564579 #preftoc li.selected a {
 580+ /* @embed */
565581 background-image: url(images/preferences-fade.png?1);
566582 background-position: bottom;
567583 background-repeat: repeat-x;
@@ -575,6 +591,7 @@
576592 clear: both;
577593 border: solid 1px #cccccc;
578594 background-color: #f9f9f9;
 595+ /* @embed */
579596 background-image: url(images/preferences-base.png?1);
580597 }
581598 #preferences fieldset.prefsection {
@@ -755,6 +772,7 @@
756773 list-style-type: square;
757774 margin: .3em 1.5em 0 0;
758775 padding: 0;
 776+ /* @embed */
759777 list-style-image: url(images/bullet-icon.png?1);
760778 }
761779 ol {
@@ -1012,31 +1030,37 @@
10131031 }
10141032 div#content a.external,
10151033 div#content a[href ^="gopher://"] {
 1034+ /* @embed */
10161035 background: url(images/external-link-rtl-icon.png?2) center left no-repeat;
10171036 padding: 0 0 0 13px;
10181037 }
10191038 div#content a[href ^="https://"],
10201039 .link-https {
 1040+ /* @embed */
10211041 background: url(images/lock-icon.png?2) center left no-repeat;
10221042 padding: 0 0 0 13px;
10231043 }
10241044 div#content a[href ^="mailto:"],
10251045 .link-mailto {
 1046+ /* @embed */
10261047 background: url(images/mail-icon.png?2) center left no-repeat;
10271048 padding: 0 0 0 13px;
10281049 }
10291050 div#content a[href ^="news://"] {
 1051+ /* @embed */
10301052 background: url(images/news-icon.png?2) center left no-repeat;
10311053 padding: 0 0 0 13px;
10321054 }
10331055 div#content a[href ^="ftp://"],
10341056 .link-ftp {
 1057+ /* @embed */
10351058 background: url(images/file-icon.png?2) center left no-repeat;
10361059 padding: 0 0 0 13px;
10371060 }
10381061 div#content a[href ^="irc://"],
10391062 div#content a.extiw[href ^="irc://"],
10401063 .link-irc {
 1064+ /* @embed */
10411065 background: url(images/talk-icon.png?2) center left no-repeat;
10421066 padding: 0 0 0 13px;
10431067 }
@@ -1047,6 +1071,7 @@
10481072 div#content a.external[href $=".wav"], div#content a.external[href $=".WAV"],
10491073 div#content a.external[href $=".wma"], div#content a.external[href $=".WMA"],
10501074 .link-audio {
 1075+ /* @embed */
10511076 background: url("images/audio-icon.png?2") center left no-repeat;
10521077 padding: 0 0 0 13px;
10531078 }
@@ -1055,6 +1080,7 @@
10561081 div#content a.external[href $=".mpeg"], div#content a.external[href $=".MPEG"],
10571082 div#content a.external[href $=".mpg"], div#content a.external[href $=".MPG"],
10581083 .link-video {
 1084+ /* @embed */
10591085 background: url("images/video-icon.png?2") center left no-repeat;
10601086 padding: 0 0 0 13px;
10611087 }
@@ -1062,6 +1088,7 @@
10631089 div#content a.external[href *=".pdf#"], div#content a.external[href *=".PDF#"],
10641090 div#content a.external[href *=".pdf?"], div#content a.external[href *=".PDF?"],
10651091 .link-document {
 1092+ /* @embed */
10661093 background: url("images/document-icon.png?2") center left no-repeat;
10671094 padding: 0 0 0 13px;
10681095 }
@@ -1082,6 +1109,7 @@
10831110 #pt-userpage,
10841111 #pt-anonuserpage,
10851112 #pt-login {
 1113+ /* @embed */
10861114 background: url(images/user-icon.png?1) right top no-repeat;
10871115 padding-right: 15px !important;
10881116 text-transform: none;
@@ -1122,25 +1150,30 @@
11231151 overflow: hidden;
11241152 }
11251153 #ca-unwatch.icon a {
 1154+ /* @embed */
11261155 background-image: url(images/watch-icons.png?1);
11271156 background-position: -43px 60%;
11281157 }
11291158 #ca-watch.icon a {
 1159+ /* @embed */
11301160 background-image: url(images/watch-icons.png?1);
11311161 background-position: 5px 60%;
11321162 }
11331163 #ca-unwatch.icon a:hover,
11341164 #ca-unwatch.icon a:focus {
 1165+ /* @embed */
11351166 background-image: url(images/watch-icons.png?1);
11361167 background-position: -67px 60%;
11371168 }
11381169 #ca-watch.icon a:hover,
11391170 #ca-watch.icon a:focus {
 1171+ /* @embed */
11401172 background-image: url(images/watch-icons.png?1);
11411173 background-position: -19px 60%;
11421174 }
11431175 #ca-unwatch.icon a.loading,
11441176 #ca-watch.icon a.loading {
 1177+ /* @embed */
11451178 background-image: url(images/watch-icon-loading.gif?1);
11461179 background-position: center 60%;
11471180 }
@@ -1149,6 +1182,7 @@
11501183 display: none;
11511184 }
11521185 div.vectorTabs ul {
 1186+ /* @embed */
11531187 background-image:url(images/tab-break.png?1);
11541188 background-position:left bottom;
11551189 background-repeat:no-repeat;
@@ -1158,4 +1192,4 @@
11591193 p.mw-ipb-conveniencelinks, p.mw-protect-editreasons,
11601194 p.mw-filedelete-editreasons, p.mw-delete-editreasons {
11611195 float: left;
1162 -}
\ No newline at end of file
 1196+}

Status & tagging log