From: Dan Brook Date: Mon, 7 Mar 2011 22:37:07 +0000 (+0000) Subject: Make use of CSS3 for content shadow. X-Git-Tag: 0.003001~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=b08c30614618429187b5b5731951084c7fe6bf23 Make use of CSS3 for content shadow. The current shadows and rounded corners don't quite line up and match so we just use plain ol' CSS instead. --- diff --git a/root/static/css/core.css b/root/static/css/core.css index e34a12b..46b79dc 100755 --- a/root/static/css/core.css +++ b/root/static/css/core.css @@ -41,16 +41,17 @@ a img{ } #content_holder{ - background:transparent url([% c.uri_for('/static/i/bg_content.png') %]) repeat-y center center; + } -#content{ - min-height:200px; - padding:0 12px 40px 10px; - background:transparent url([% c.uri_for('/static/i/bg_bottom.png') %]) no-repeat center bottom; +#content { + min-height:200px; + -moz-box-shadow: 0px 0px 10px black; /* FF3.5+ */ + -webkit-box-shadow: 0px 0px 10px black; /* Saf3.0+, Chrome */ + box-shadow: 0px 0px 10px black; /* Opera 10.5, IE9, Chrome 10+ */ + } #content_inner{ - padding-bottom:30px; - background:transparent url([% c.uri_for('/static/i/bg_top.png') %]) no-repeat; + padding-bottom:30px; } .copy{ padding:10px; @@ -327,7 +328,6 @@ a.rss_logo:hover { /* paging */ .pager{ width:100%; - float:left; margin:10px 0; padding:0; } @@ -398,7 +398,7 @@ tr.header{ font-weight:bold; } .author{ - width:180px; + width:160px; } .author img{ margin-right:5px; @@ -408,6 +408,9 @@ table.listing{ width:970px; border-collapse:collapse; } +table.listing thead { + background-color: #666; +} .listing td{ vertical-align:top; padding:9px 5px 9px 10px; @@ -538,7 +541,7 @@ div.blob { .commit-message { white-space: pre-wrap; - width: 400px; + width: 420px; } p.commit-message { margin: 0;