Skip to content
This repository
Browse code

* Implement CSS minification

  • Loading branch information...
commit 9d06cb213a73936f47bb97cd0b87030d55f20d9f 1 parent 8ef9dc3
Danny Allen authored September 12, 2011

Showing 49 changed files with 97 additions and 93 deletions. Show diff stats Hide diff stats

  1. 4  src/autoload.php
  2. 10  src/classes/shared/cache.php
  3. 4  src/classes/specific/config.php
  4. 2  src/classes/ui/classifyui.php
  5. 2  src/classes/ui/developersui.php
  6. 4  src/classes/ui/digestsui.php
  7. 30  src/classes/ui/enzymeui.php
  8. 4  src/classes/ui/featuresui.php
  9. 2  src/classes/ui/helpui.php
  10. 2  src/classes/ui/homeui.php
  11. 2  src/classes/ui/insertui.php
  12. 2  src/classes/ui/loginui.php
  13. 2  src/classes/ui/mediaui.php
  14. 2  src/classes/ui/resetui.php
  15. 2  src/classes/ui/reviewui.php
  16. 2  src/classes/ui/settingsui.php
  17. 2  src/classes/ui/setupui.php
  18. 2  src/classes/ui/toolsui.php
  19. 2  src/classes/ui/usersui.php
  20. 0  src/css/{ → browser}/browser-chrome.css
  21. 0  src/css/{ → frame}/adminui.css
  22. 2  src/css/{ → frame}/developersui.css
  23. 16  src/css/{ → frame}/digestsui.css
  24. 2  src/css/{ → frame}/featuresui.css
  25. 0  src/css/{ → frame}/helpui.css
  26. 2  src/css/{ → frame}/homeui.css
  27. 0  src/css/{ → frame}/insertui.css
  28. 10  src/css/{ → frame}/loginui.css
  29. 0  src/css/{ → frame}/mediaui.css
  30. 8  src/css/{ → frame}/reviewui.css
  31. 0  src/css/{ → frame}/settingsui.css
  32. 2  src/css/{ → frame}/setupui.css
  33. 0  src/css/{ → frame}/toolsui.css
  34. 0  src/css/{ → frame}/usersui.css
  35. 24  src/css/{ → includes}/common.css
  36. 16  src/css/{ → includes}/lightwindow.css
  37. 2  src/get/help.php
  38. 2  src/get/insert.php
  39. 2  src/get/prompt.php
  40. 2  src/get/statistics.php
  41. 2  src/tool/digest-commits.php
  42. 2  src/tool/digest-intro.php
  43. 2  src/tool/digest-stats.php
  44. 2  src/tool/parse-bugfixers.php
  45. 2  src/tool/parse-developers.php
  46. 2  src/tool/parse-filetypes.php
  47. 2  src/tool/parse-i18n.php
  48. 2  src/tool/parse-links.php
  49. 2  src/tool/parse-people.php
4  src/autoload.php
@@ -114,7 +114,7 @@ function __autoload($class) {
114 114
 
115 115
     echo Ui::drawHtmlPage($setup->drawPage(),
116 116
                           Config::$app['name'] . ' - ' . _('Setup'),
117  
-                          array('/css/common.css', '/css/setupui.css'),
  117
+                          array('/css/includes/common.css', '/css/frame/setupui.css'),
118 118
                           array_merge(array('/js/prototype.js', '/js/effects.js', '/js/index.php?script=common'), $setup->getScript()));
119 119
     exit;
120 120
 
@@ -128,7 +128,7 @@ function __autoload($class) {
128 128
 
129 129
       echo Ui::drawHtmlPage($setup->drawPage(),
130 130
                             Config::$app['name'] . ' - ' . _('Setup'),
131  
-                            array('/css/common.css', '/css/setupui.css'),
  131
+                            array('/css/includes/common.css', '/css/frame/setupui.css'),
132 132
                             array_merge(array('/js/prototype.js', '/js/effects.js', '/js/index.php?script=common'), $setup->getScript()));
133 133
       exit;
134 134
 
10  src/classes/shared/cache.php
@@ -242,7 +242,6 @@ public static function getMinCss($key, $style, $minStyle = null, $minify = true)
242 242
 
243 243
       // minify?
244 244
       if ($minify) {
245  
-        // TODO: implement CSS minify
246 245
         $min = MinifyCss::minify($buf);
247 246
 
248 247
       } else {
@@ -258,14 +257,9 @@ public static function getMinCss($key, $style, $minStyle = null, $minify = true)
258 257
 
259 258
       // write to file
260 259
       file_put_contents(BASE_DIR . $filename, $min);
261  
-
262  
-      // return filename
263  
-      return $filename . '?version=' . Config::$app['version'];
264  
-
265  
-    } else {
266  
-      // already minified, return filename
267  
-      return $filename . '?version=' . Config::$app['version'];
268 260
     }
  261
+
  262
+    return $filename . '?version=' . Config::$app['version'];
269 263
   }
270 264
 
271 265
 
4  src/classes/specific/config.php
@@ -22,7 +22,7 @@
22 22
   // define app constants
23 23
   public static $app        = array('id'          => 'enzyme',
24 24
                                     'name'        => 'Enzyme',
25  
-                                    'version'     => '1.20');
  25
+                                    'version'     => '1.21');
26 26
 
27 27
 
28 28
   // define meta information
@@ -93,7 +93,7 @@ public static function getSetting() {
93 93
 
94 94
         echo Ui::drawHtmlPage($setup->drawPage(),
95 95
                               Config::$app['name'] . ' - ' . _('Setup'),
96  
-                              array('/css/common.css', '/css/setupui.css'),
  96
+                              array('/css/includes/common.css', '/css/frame/setupui.css'),
97 97
                               array_merge(array('/js/prototype.js', '/js/effects.js', '/js/index.php?script=common'), $setup->getScript()));
98 98
         exit;
99 99
       }
2  src/classes/ui/classifyui.php
@@ -97,7 +97,7 @@ public function getScript() {
97 97
 
98 98
 
99 99
   public function getStyle() {
100  
-    return array('/css/reviewui.css');
  100
+    return array('/css/frame/reviewui.css');
101 101
   }
102 102
 
103 103
 
2  src/classes/ui/developersui.php
@@ -126,7 +126,7 @@ public function getScript() {
126 126
 
127 127
 
128 128
   public function getStyle() {
129  
-    return array('/css/developersui.css');
  129
+    return array('/css/frame/developersui.css');
130 130
   }
131 131
 
132 132
 
4  src/classes/ui/digestsui.php
@@ -71,8 +71,8 @@ public function getScript() {
71 71
 
72 72
 
73 73
   public function getStyle() {
74  
-    return array('/css/lightwindow.css',
75  
-                 '/css/digestsui.css');
  74
+    return array('/css/includes/lightwindow.css',
  75
+                 '/css/frame/digestsui.css');
76 76
   }
77 77
 
78 78
 
30  src/classes/ui/enzymeui.php
@@ -19,7 +19,7 @@ class EnzymeUi {
19 19
   public $user              = null;
20 20
   public $frame             = null;
21 21
 
22  
-  private $style            = array('/css/common.css');
  22
+  private $style            = array('/css/includes/common.css');
23 23
   private $appScript        = array('/js/prototype.js',
24 24
                                     '/js/effects.js',
25 25
                                     '/js/hotkey.js');
@@ -102,13 +102,6 @@ public function __construct() {
102 102
     // get specific style
103 103
     $this->style = array_merge($this->style, $this->frame->getStyle());
104 104
 
105  
-    // draw browser-specific stylesheet?
106  
-    $browser = App::getBrowserInfo();
107  
-
108  
-    if ($browser['name'] == 'chrome') {
109  
-      $this->style[] = '/css/browser-chrome.css';
110  
-    }
111  
-
112 105
     // set script
113 106
     $this->userScript[] = '/js/index.php?script=common&id=' . $this->frame->id . '&language=' . LANGUAGE;
114 107
   }
@@ -143,10 +136,27 @@ public function drawMeta() {
143 136
 
144 137
 
145 138
   public function drawStyle() {
  139
+    // compile
  140
+    $theStyle = $this->style;
  141
+
  142
+    if (LIVE_SITE) {
  143
+      $theStyle = array(Cache::getMinCss('web_' . $this->frame->id, $theStyle));
  144
+    }
  145
+
  146
+
  147
+    // draw browser-specific stylesheet?
  148
+    $browser = App::getBrowserInfo();
  149
+
  150
+    if ($browser['name'] == 'chrome') {
  151
+      $theStyle[] = '/css/browser/browser-chrome.css';
  152
+    }
  153
+
  154
+
  155
+    // draw
146 156
     $buf = null;
147 157
 
148  
-    foreach ($this->style as $style) {
149  
-      $buf .= '<link rel="stylesheet" href="' . BASE_URL . $style . '?version=' . Config::$app['version'] . '" type="text/css" media="screen" />' . "\n";
  158
+    foreach ($theStyle as $style) {
  159
+      $buf .= '<link rel="stylesheet" href="' . BASE_URL . $style . '" type="text/css" media="screen" />' . "\n";
150 160
     }
151 161
 
152 162
     return $buf;
4  src/classes/ui/featuresui.php
@@ -83,8 +83,8 @@ public function getScript() {
83 83
 
84 84
 
85 85
   public function getStyle() {
86  
-    return array('/css/lightwindow.css',
87  
-                 '/css/featuresui.css');
  86
+    return array('/css/includes/lightwindow.css',
  87
+                 '/css/frame/featuresui.css');
88 88
   }
89 89
 
90 90
 
2  src/classes/ui/helpui.php
@@ -63,7 +63,7 @@ public function getScript() {
63 63
 
64 64
 
65 65
   public function getStyle() {
66  
-    return array('/css/helpui.css');
  66
+    return array('/css/frame/helpui.css');
67 67
   }
68 68
 }
69 69
 
2  src/classes/ui/homeui.php
@@ -51,7 +51,7 @@ public function getScript() {
51 51
 
52 52
 
53 53
   public function getStyle() {
54  
-    return array('/css/homeui.css');
  54
+    return array('/css/frame/homeui.css');
55 55
   }
56 56
 }
57 57
 
2  src/classes/ui/insertui.php
@@ -85,7 +85,7 @@ public function getScript() {
85 85
 
86 86
 
87 87
   public function getStyle() {
88  
-    return array('/css/insertui.css');
  88
+    return array('/css/frame/insertui.css');
89 89
   }
90 90
 }
91 91
 
2  src/classes/ui/loginui.php
@@ -172,7 +172,7 @@ public function getScript() {
172 172
 
173 173
 
174 174
   public function getStyle() {
175  
-    return array('/css/loginui.css');
  175
+    return array('/css/frame/loginui.css');
176 176
   }
177 177
 }
178 178
 
2  src/classes/ui/mediaui.php
@@ -72,7 +72,7 @@ public function getScript() {
72 72
 
73 73
 
74 74
   public function getStyle() {
75  
-    return array('/css/mediaui.css');
  75
+    return array('/css/frame/mediaui.css');
76 76
   }
77 77
 
78 78
 
2  src/classes/ui/resetui.php
@@ -87,7 +87,7 @@ public function getScript() {
87 87
 
88 88
 
89 89
   public function getStyle() {
90  
-    return array('/css/loginui.css');
  90
+    return array('/css/frame/loginui.css');
91 91
   }
92 92
 }
93 93
 
2  src/classes/ui/reviewui.php
@@ -82,7 +82,7 @@ public function getScript() {
82 82
 
83 83
 
84 84
   public function getStyle() {
85  
-    return array('/css/reviewui.css');
  85
+    return array('/css/frame/reviewui.css');
86 86
   }
87 87
 
88 88
 
2  src/classes/ui/settingsui.php
@@ -175,7 +175,7 @@ public function getScript() {
175 175
 
176 176
 
177 177
   public function getStyle() {
178  
-    return array('/css/settingsui.css');
  178
+    return array('/css/frame/settingsui.css');
179 179
   }
180 180
 }
181 181
 
2  src/classes/ui/setupui.php
@@ -227,7 +227,7 @@ public function getScript() {
227 227
 
228 228
 
229 229
   public function getStyle() {
230  
-    return array('/css/setupui.css');
  230
+    return array('/css/frame/setupui.css');
231 231
   }
232 232
 
233 233
 
2  src/classes/ui/toolsui.php
@@ -175,7 +175,7 @@ public function getScript() {
175 175
 
176 176
 
177 177
   public function getStyle() {
178  
-    return array('/css/toolsui.css');
  178
+    return array('/css/frame/toolsui.css');
179 179
   }
180 180
 
181 181
 
2  src/classes/ui/usersui.php
@@ -171,7 +171,7 @@ public function getScript() {
171 171
 
172 172
 
173 173
   public function getStyle() {
174  
-    return array('/css/usersui.css');
  174
+    return array('/css/frame/usersui.css');
175 175
   }
176 176
 
177 177
 
0  src/css/browser-chrome.css → src/css/browser/browser-chrome.css
File renamed without changes
0  src/css/adminui.css → src/css/frame/adminui.css
File renamed without changes
2  src/css/developersui.css → src/css/frame/developersui.css
@@ -128,7 +128,7 @@ table .column-colour {
128 128
 
129 129
 
130 130
 table .empty {
131  
-  background:url("../img/sidebar-bg.png") repeat transparent;
  131
+  background:url("../../img/sidebar-bg.png") repeat transparent;
132 132
   opacity:0.4;
133 133
 }
134 134
 
16  src/css/digestsui.css → src/css/frame/digestsui.css
@@ -211,7 +211,7 @@ div.section div.delete-introduction {
211 211
   padding:9px;
212 212
   margin:0;
213 213
 
214  
-  background:url("../img/bgd.png") repeat transparent;
  214
+  background:url("../../img/bgd.png") repeat transparent;
215 215
   cursor:pointer;
216 216
   
217 217
   border-radius:5px;
@@ -231,7 +231,7 @@ div.section div.save-introduction div,
231 231
 div.section div.delete-introduction div {
232 232
   width:22px;
233 233
   height:22px;
234  
-  background:url("../img/sprite.png") no-repeat transparent;
  234
+  background:url("../../img/sprite.png") no-repeat transparent;
235 235
   background-position:-0 -0;
236 236
 }
237 237
 div.section div.save-introduction:hover div {
@@ -247,7 +247,7 @@ div.section div.delete-introduction:hover div {
247 247
 
248 248
 
249 249
 div.section span {
250  
-  background:url("../img/bgd.png") repeat scroll 0 0 transparent;
  250
+  background:url("../../img/bgd.png") repeat scroll 0 0 transparent;
251 251
   position:absolute;
252 252
   left:0;
253 253
   font-size:26px;
@@ -356,7 +356,7 @@ div.commit div.selectors div.classifier i {
356 356
   margin:2px;
357 357
 
358 358
   background-color:#666;
359  
-  background:url('../img/sprite.png') no-repeat;
  359
+  background:url('../../img/sprite.png') no-repeat;
360 360
 }
361 361
 
362 362
 
@@ -368,7 +368,7 @@ div#floating-status div.remove {
368 368
   margin:1px 8px 0 -2px;
369 369
 
370 370
   background-color:#666;
371  
-  background:url('../img/sprite.png') no-repeat;
  371
+  background:url('../../img/sprite.png') no-repeat;
372 372
   background-position:-44px -0px;
373 373
   cursor:pointer;
374 374
 }
@@ -432,7 +432,7 @@ div.commit div.details div.info div.b div.bug div div {
432 432
 
433 433
   width:22px;
434 434
   height:22px;
435  
-  background:url('../img/sprite.png') no-repeat;
  435
+  background:url('../../img/sprite.png') no-repeat;
436 436
   background-position:-88px -22px;
437 437
 }
438 438
 div.commit div.details div.info div.b div.bug div span {
@@ -546,7 +546,7 @@ div#features div.featureExpand div.feature-expand {
546 546
   width:22px;
547 547
   height:22px;
548 548
 
549  
-  background:url('../img/sprite.png') no-repeat;
  549
+  background:url('../../img/sprite.png') no-repeat;
550 550
   background-position:-220px -22px;
551 551
   cursor:pointer;
552 552
 }
@@ -604,7 +604,7 @@ div#floating-status {
604 604
 
605 605
   color:#fff;
606 606
   text-shadow:#000 2px 2px 2px;
607  
-  background:url(../img/bgd.png) repeat scroll 0 0 transparent;
  607
+  background:url(../../img/bgd.png) repeat scroll 0 0 transparent;
608 608
   
609 609
   border-radius:3px;
610 610
   -moz-border-radius:3px;
2  src/css/featuresui.css → src/css/frame/featuresui.css
@@ -113,7 +113,7 @@ div#ideas div.idea div.idea-save {
113 113
   width:22px;
114 114
   height:22px;
115 115
 
116  
-  background:url('../img/sprite.png') no-repeat;
  116
+  background:url('../../img/sprite.png') no-repeat;
117 117
   background-position:-220px -22px;
118 118
   cursor:pointer;
119 119
 }
0  src/css/helpui.css → src/css/frame/helpui.css
File renamed without changes
2  src/css/homeui.css → src/css/frame/homeui.css
@@ -75,7 +75,7 @@ div#active-users table tbody td span.browser {
75 75
   width:22px;
76 76
   height:22px;
77 77
 
78  
-  background:url('../img/browsers.png') no-repeat;
  78
+  background:url('../../img/browsers.png') no-repeat;
79 79
   cursor:help;
80 80
 }
81 81
 
0  src/css/insertui.css → src/css/frame/insertui.css
File renamed without changes
10  src/css/loginui.css → src/css/frame/loginui.css
@@ -5,7 +5,7 @@ div#login-footer {
5 5
   right:0;
6 6
   height:35px;
7 7
 
8  
-  background:url("../img/header-bg.png") repeat scroll 0 0 transparent;
  8
+  background:url("../../img/header-bg.png") repeat scroll 0 0 transparent;
9 9
 }
10 10
 div#login-footer a {
11 11
   display:block;
@@ -15,7 +15,7 @@ div#login-footer a {
15 15
 
16 16
   width:307px;
17 17
   height:35px;
18  
-  background:url("../img/powered-long.png") no-repeat scroll 0 0 transparent;
  18
+  background:url("../../img/powered-long.png") no-repeat scroll 0 0 transparent;
19 19
 }
20 20
 
21 21
 
@@ -35,7 +35,7 @@ div#login-column-2 h2 {
35 35
 
36 36
 div#login-column-1 {
37 37
   left:0;
38  
-  background:url("../img/sidebar-bg.png") repeat scroll 0 0 transparent;
  38
+  background:url("../../img/sidebar-bg.png") repeat scroll 0 0 transparent;
39 39
   border-right:3px dotted #333;
40 40
 }
41 41
 div#login-column-2 {
@@ -119,7 +119,7 @@ div#login-box {
119 119
   width:300px;
120 120
   margin:100px auto;
121 121
   padding:14px;
122  
-  background:url(../img/header-bg.png) repeat scroll 0 0 transparent;
  122
+  background:url("../../img/header-bg.png") repeat scroll 0 0 transparent;
123 123
 }
124 124
 
125 125
 div#login-box div.row {
@@ -154,5 +154,5 @@ div#login-box div.button a {
154 154
 }
155 155
 
156 156
 div#login-box div.button input {
157  
-  background:url(../img/bg.png) repeat scroll 0 0 transparent;
  157
+  background:url("../../img/bg.png") repeat scroll 0 0 transparent;
158 158
 }
0  src/css/mediaui.css → src/css/frame/mediaui.css
File renamed without changes
8  src/css/reviewui.css → src/css/frame/reviewui.css
@@ -51,7 +51,7 @@ div.item div.commit-title div.buttons div {
51 51
   width:22px;
52 52
   height:22px;
53 53
 
54  
-  background:url(../img/sprite.png) repeat scroll 0 0 transparent;
  54
+  background:url(../../img/sprite.png) repeat scroll 0 0 transparent;
55 55
   cursor:pointer;
56 56
 }
57 57
 
@@ -125,7 +125,7 @@ div.classify div.commit-msg div.bugs div {
125 125
   width:22px;
126 126
   height:22px;
127 127
 
128  
-  background:url(../img/sprite.png) no-repeat;
  128
+  background:url(../../img/sprite.png) no-repeat;
129 129
   background-position:-66px -22px;
130 130
   margin-left:6px;
131 131
   cursor:pointer;
@@ -161,7 +161,7 @@ div.item div.commit-panel div.remove {
161 161
 
162 162
   background-color:#666;
163 163
   cursor:pointer;
164  
-  background:url('../img/sprite.png') no-repeat;
  164
+  background:url('../../img/sprite.png') no-repeat;
165 165
   background-position:-44px -66px;
166 166
 }
167 167
 div.item div.commit-panel div.remove:hover {
@@ -312,7 +312,7 @@ label#classify-user-filter i {
312 312
   display:inline-block;
313 313
   width:22px;
314 314
   height:22px;
315  
-  background:url(../img/sprite.png) no-repeat scroll transparent;
  315
+  background:url(../../img/sprite.png) no-repeat scroll transparent;
316 316
 }
317 317
 
318 318
 div#interface-selector label.mouse i {
0  src/css/settingsui.css → src/css/frame/settingsui.css
File renamed without changes
2  src/css/setupui.css → src/css/frame/setupui.css
@@ -251,7 +251,7 @@ div.repository-status div {
251 251
   top:1px;
252 252
   width:22px;
253 253
   height:22px;
254  
-  background:url("../img/sprite.png") repeat scroll 0 0 transparent;
  254
+  background:url("../../img/sprite.png") repeat scroll 0 0 transparent;
255 255
 }
256 256
 
257 257
 div.active {
0  src/css/toolsui.css → src/css/frame/toolsui.css
File renamed without changes
0  src/css/usersui.css → src/css/frame/usersui.css
File renamed without changes
24  src/css/common.css → src/css/includes/common.css
@@ -140,7 +140,7 @@ input[type="password"] {
140 140
 
141 141
 input[type="button"],
142 142
 input[type="submit"] {
143  
-  background:url("../img/bg.png") repeat scroll 0 0 transparent;
  143
+  background:url("../../img/bg.png") repeat scroll 0 0 transparent;
144 144
   color:#fff;
145 145
   cursor:pointer;
146 146
   float:right;
@@ -162,7 +162,7 @@ input[type="submit"].selected {
162 162
 
163 163
 #content input[type="button"],
164 164
 #content input[type="submit"] {
165  
-  background:url("../img/bgd.png") repeat scroll 0 0 transparent;
  165
+  background:url("../../img/bgd.png") repeat scroll 0 0 transparent;
166 166
   color:#000;
167 167
 }
168 168
 #content input[type="button"]:hover,
@@ -221,7 +221,7 @@ h3 a.button {
221 221
   height:22px;
222 222
   margin:2px 0 0 10px;
223 223
 
224  
-  background:url('../img/sprite.png') no-repeat;
  224
+  background:url('../../img/sprite.png') no-repeat;
225 225
 }
226 226
 
227 227
 h3 a.button-home {
@@ -257,7 +257,7 @@ div#header {
257 257
   position:fixed;
258 258
   width:100%;
259 259
   height:38px;
260  
-  background:url(../img/header-bg.png) repeat scroll 0 0 transparent;
  260
+  background:url(../../img/header-bg.png) repeat scroll 0 0 transparent;
261 261
   z-index:1000;
262 262
 }
263 263
 
@@ -268,7 +268,7 @@ div#header a#logo {
268 268
   left:0;
269 269
   width:250px;
270 270
   height:38px;
271  
-  background:url(../img/logo-hover.png) no-repeat scroll 0 0 transparent;
  271
+  background:url(../../img/logo-hover.png) no-repeat scroll 0 0 transparent;
272 272
 }
273 273
 div#header a#logo:hover {
274 274
   background-position:-0 -38px;
@@ -348,7 +348,7 @@ div#sidebar {
348 348
   bottom:0;
349 349
   width:205px;
350 350
 
351  
-  background:url(../img/sidebar-bg.png) repeat scroll 0 0 transparent;
  351
+  background:url(../../img/sidebar-bg.png) repeat scroll 0 0 transparent;
352 352
   border-right:3px dotted #333;  
353 353
   z-index:1001;
354 354
 }
@@ -375,7 +375,7 @@ div#sidebar ul li a {
375 375
   border-bottom:none;
376 376
 }
377 377
 div#sidebar ul li a:hover {
378  
-  background:url(../img/bg.png) repeat scroll 0 0 transparent;
  378
+  background:url(../../img/bg.png) repeat scroll 0 0 transparent;
379 379
   color:#000;
380 380
 
381 381
   border-radius:3px;
@@ -383,7 +383,7 @@ div#sidebar ul li a:hover {
383 383
   -webkit-border-radius:3px;
384 384
 }
385 385
 div#sidebar ul li.selected a {
386  
-  background:url(../img/bgd.png) repeat scroll 0 0 transparent;
  386
+  background:url(../../img/bgd.png) repeat scroll 0 0 transparent;
387 387
   color:#fff;
388 388
   text-shadow:#000 2px 2px 2px;
389 389
   
@@ -413,7 +413,7 @@ div#status-area {
413 413
   left:208px;
414 414
   right:0;
415 415
 
416  
-  background:url(../img/header-bg.png) repeat scroll 0 0 transparent;
  416
+  background:url(../../img/header-bg.png) repeat scroll 0 0 transparent;
417 417
 }
418 418
 
419 419
 div#status-area-text {
@@ -543,7 +543,7 @@ span.indicator-failure span {
543 543
   top:1px;
544 544
   width:22px;
545 545
   height:22px;
546  
-  background:url("../img/sprite.png") repeat scroll 0 0 transparent;
  546
+  background:url("../../img/sprite.png") repeat scroll 0 0 transparent;
547 547
 }
548 548
 
549 549
 span.indicator-success {
@@ -608,7 +608,7 @@ div.media-item span.image {
608 608
   height:22px;
609 609
   margin:0 10px 0 0;
610 610
 
611  
-  background:url('../img/sprite.png') no-repeat;
  611
+  background:url('../../img/sprite.png') no-repeat;
612 612
 }
613 613
 div.media-item span.video {
614 614
   background-position:-330px -0;
@@ -718,7 +718,7 @@ div.account-status div {
718 718
   top:1px;
719 719
   width:22px;
720 720
   height:22px;
721  
-  background:url("../img/sprite.png") repeat scroll 0 0 transparent;
  721
+  background:url("../../img/sprite.png") repeat scroll 0 0 transparent;
722 722
 }
723 723
 
724 724
 div.active {
16  src/css/lightwindow.css → src/css/includes/lightwindow.css
@@ -139,7 +139,7 @@
139 139
 #lightwindow_next {
140 140
 	width: 49%;
141 141
 	height: 100%;
142  
-	background: transparent url(../images/blank.gif) no-repeat; /* Trick IE into showing hover */
  142
+	background: transparent url(../../images/blank.gif) no-repeat; /* Trick IE into showing hover */
143 143
 	display: block;
144 144
 }
145 145
 
@@ -155,12 +155,12 @@
155 155
 
156 156
 #lightwindow_previous:hover, 
157 157
 #lightwindow_previous:active { 
158  
-	background: url(../images/prevlabel.gif) left 15% no-repeat; 
  158
+	background: url(../../images/prevlabel.gif) left 15% no-repeat; 
159 159
 }
160 160
 
161 161
 #lightwindow_next:hover, 
162 162
 #lightwindow_next:active { 
163  
-	background: url(../images/nextlabel.gif) right 15% no-repeat; 
  163
+	background: url(../../images/nextlabel.gif) right 15% no-repeat; 
164 164
 }
165 165
 
166 166
 #lightwindow_previous_title,
@@ -199,7 +199,7 @@ a:visited#lightwindow_galleries_tab {
199 199
 	cursor: pointer;
200 200
 	font-size: 11px;
201 201
 	color: #ffffbe;
202  
-	background: url(../images/black-70.png) repeat 0 0 transparent;
  202
+	background: url(../../images/black-70.png) repeat 0 0 transparent;
203 203
 }
204 204
 
205 205
 * html a#lightwindow_galleries_tab,		
@@ -225,15 +225,15 @@ a:active#lightwindow_galleries_tab {
225 225
 }
226 226
 
227 227
 #lightwindow_galleries_tab .up	{
228  
-	background: url(../images/arrow-up.gif) no-repeat 60px 5px transparent;
  228
+	background: url(../../images/arrow-up.gif) no-repeat 60px 5px transparent;
229 229
 }
230 230
 
231 231
 #lightwindow_galleries_tab .down {
232  
-	background: url(../images/arrow-down.gif) no-repeat 60px 6px transparent;
  232
+	background: url(../../images/arrow-down.gif) no-repeat 60px 6px transparent;
233 233
 }
234 234
 
235 235
 #lightwindow_galleries_list {
236  
-	background: url(../images/black-70.png) repeat 0 0 transparent;
  236
+	background: url(../../images/black-70.png) repeat 0 0 transparent;
237 237
 	overflow: hidden;
238 238
 	height: 0;
239 239
 }
@@ -405,7 +405,7 @@ a:active#lightwindow_title_bar_close_link {
405 405
 
406 406
 #lightwindow_contents input[type="button"],
407 407
 #lightwindow_contents input[type="submit"] {
408  
-  background:url("../img/bgd.png") repeat scroll 0 0 transparent;
  408
+  background:url("../../img/bgd.png") repeat scroll 0 0 transparent;
409 409
   color:#000;
410 410
 }
411 411
 #lightwindow_contents input[type="button"]:hover,
2  src/get/help.php
@@ -71,6 +71,6 @@
71 71
 
72 72
 
73 73
 // output content
74  
-echo Ui::drawHtmlPage($content, null, array('/css/common.css'), array(), 'help');
  74
+echo Ui::drawHtmlPage($content, null, array('/css/includes/common.css'), array(), 'help');
75 75
 
76 76
 ?>
2  src/get/insert.php
@@ -42,7 +42,7 @@
42 42
 
43 43
 
44 44
 // draw html page start
45  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  45
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
46 46
 
47 47
 
48 48
 // do insert
2  src/get/prompt.php
@@ -34,6 +34,6 @@
34 34
        '</p>';
35 35
 
36 36
 
37  
-echo Ui::drawHtmlPage($buf, null, array('/css/common.css'));
  37
+echo Ui::drawHtmlPage($buf, null, array('/css/includes/common.css'));
38 38
 
39 39
 ?>
2  src/get/statistics.php
@@ -76,7 +76,7 @@
76 76
 
77 77
 if ($insert) {
78 78
   // draw html page start
79  
-  echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  79
+  echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
80 80
 
81 81
 
82 82
   // do insert
2  src/tool/digest-commits.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // get sorted dir structure for iterating
2  src/tool/digest-intro.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // look in directory for files
2  src/tool/digest-stats.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // look in directory for files
2  src/tool/parse-bugfixers.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // load accounts
2  src/tool/parse-developers.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // load list of defined repositories
2  src/tool/parse-filetypes.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // load data
2  src/tool/parse-i18n.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // get i18n teams page
2  src/tool/parse-links.php
@@ -32,7 +32,7 @@
2  src/tool/parse-people.php
@@ -32,7 +32,7 @@
32 32
 
33 33
 
34 34
 // draw html page start
35  
-echo Ui::drawHtmlPageStart(null, array('/css/common.css'), array('/js/prototype.js'));
  35
+echo Ui::drawHtmlPageStart(null, array('/css/includes/common.css'), array('/js/prototype.js'));
36 36
 
37 37
 
38 38
 // load data

0 notes on commit 9d06cb2

Please sign in to comment.
Something went wrong with that request. Please try again.