Discussion:
[SCM] UNNAMED PROJECT branch, master, updated. 41ac279da992db388b2d91df5c3ca4739d488e67
Michal Cihar
2012-02-22 11:51:50 UTC
Permalink
The following commit has been merged in the master branch:
commit 41ac279da992db388b2d91df5c3ca4739d488e67
Author: Michal Čihař <***@cihar.com>
Date: Wed Feb 22 12:51:23 2012 +0100

Compress CSS

diff --git a/admin/compress b/admin/compress
new file mode 100755
index 0000000..5ddf208
--- /dev/null
+++ b/admin/compress
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd media/css
+yui-compressor -o style-compressed.css style.css
diff --git a/html/base.html b/html/base.html
index 60fe5e3..21f26c0 100644
--- a/html/base.html
+++ b/html/base.html
@@ -23,7 +23,7 @@
{% for lang in translations %}
<link rel="alternate" hreflang="{{ lang.code }}" href="{{ lang.url }}" />
{% endfor %}
- <link rel="stylesheet" type="text/css" href="/media/css/style.css" />
+ <link rel="stylesheet" type="text/css" href="/media/css/style-compressed.css" />
<link rel="stylesheet" type="text/css" href="/media/css/slimbox2.css" media="screen" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
diff --git a/media/css/style-compressed.css b/media/css/style-compressed.css
new file mode 100644
index 0000000..cbcb3aa
--- /dev/null
+++ b/media/css/style-compressed.css
@@ -0,0 +1 @@
+#header{margin:0;padding:1em 2em .5em 2em;background:#fbb400;border:0;border-bottom:1px solid #7c0000}#header h1{float:left;padding:0;margin:0;margin-right:1em;color:black}#header h1 a{color:#7c0000}#header ul#links{display:inline;margin:0;padding:0}#header #links li{list-style:none;display:inline;font-weight:bold;padding:.5em}#header #links li a{color:#7c0000;font-size:larger}#header #links li.active a{color:#c17d11;font-size:larger}div#bodybox{float:left;width:100%}#body{margin:2em 21em 1em 1em;padding:0}a{color:#7c0000;text-decoration:none}a:hover{text-decoration:underline;color:#8f5902}img{border:0}h2,h2 a{color:#7c0000}h3,h3 a{color:#7c0000}body{margin:0;background:#ffd480;font-family:sans-serif;color:black}div.sidebar{width:20em;margin:0;margin-left:-20em;float:left;padding:0;font-size:smaller}ul#footer{padding:0;margin:0;max-width:none;clear:both}#footer li{font-size:smaller;list-style:none;float:left;padding:1em;color:gray;border:0}#footer a{color:#333}div.clearer{clear:both;padding:0;margin:0;height:0}p{max-width:70em;margin:1em}ul,dl{margin:1em;max-width:70em}div.sidebar ul{margin:0;padding:0 1em 0 2em}ul ul{margin-top:0;margin-bottom:0}div.floatbox{float:left;width:40em;margin:.2em;padding:.2em}div.screenshot{float:left;margin:.7em;padding:.2em}div.screenshot img{max-height:150px;overflow:hidden}pre{border:1px solid #7c0000;margin:1em;background:#ffe3ad;width:auto;padding:.5em;max-width:70em}div.excerpt{margin:.2em;padding:.2em;font-style:italic}div.col{vertical-align:text-top;display:inline-block;margin:.2em;padding:.2em}div.footnavi span.foottitle{font-size:100%;font-weight:normal;margin:0 0 .5em 1em;color:#7c0000;display:block}div.footnavi ul{margin-top:0;border-left:1px dotted #7c0000;padding-left:.5em;margin-left:1em}div.footnavi ul li{list-style:none;padding-left:0;margin-left:0;color:#7c0000}div.wide{clear:both;background:#fbb400;width:100%;border-top:1px solid #7c0000;border-bottom:1px solid #7c0000;margin:0 auto}ul.pages{display:inline-block;list-style:none;display:inline;margin:0;padding:1em}ul.pages li{display:inline-block}ul.pages li a{padding:.2em;border:1px solid #7c0000;background:#ffd480}ul.pages li.active a{background:#fbb400;font-weight:bolder}ul.pages li a:hover{background:#fbb400}ul.pages li.disabled span{padding:.2em;border:1px solid #7c0000;background:#ffd480}div.appshot{float:right;clear:both;margin:.2em;padding:.2em}div.appshot img{max-height:150px;overflow:hidden}div.checksums{font-size:smaller}a.aname{color:black;text-decoration:none}a.vendor{display:block;float:left;text-align:center;width:11em;margin:.4em;padding:.4em;border:1px solid #7c0000}a.vendor:hover{background:#fbb400}table.listing{margin:1em}p.warning{border:1px solid #7c0000;font-weight:bolder;padding:.5em}p.message{border:1px solid #7c0000;font-weight:bolder;padding:.5em}ul.featuresearch{padding:0;margin:0}ul.featuresearch li{list-style:none;display:block;padding:0;margin:0}.jshidden{display:none}span.size{white-space:nowrap}td.hex{font-family:monospace}div.donate{text-align:center}ul.share{list-style:none;padding:0 1em 0 1em}.sprite-logo{background:url('/media/sprites.png') 0 0;width:32px;height:32px}.share-fb{background:url('/media/sprites.png') 0 -32px;width:16px;height:16px}.share-ic{background:url('/media/sprites.png') -16px -32px;width:16px;height:16px}.share-gplus{background:url('/media/sprites.png') 0 -48px;width:16px;height:16px}.share-twitter{background:url('/media/sprites.png') -16px -48px;width:16px;height:16px}
\ No newline at end of file
--
UNNAMED PROJECT
Loading...