/* -------------------------------------- */ /* RSS.css */ /* -------------------------------------- */ /* Created: 2004-04-16 */ /* Issued: 2004-04-25 */ /* Modified: 2005-02-19 */ /* Copyright (c) 2004-2006 by Philip Shaw */ /* All rights reserved. */ /* -------------------------------------- */ /* Import Dublin Core metadata styles. */ @import url(DC.css); /* Override selected DC styles. */ rdf\:RDF:before { content: ""; } dc\:title, dc\:description { margin: 0; display: block; font-size: medium; font-family: Georgia, serif; } dc\:title:before, dc\:description:before { content: ""; } /* RSS specific styles */ BODY, rdf\:RDF, channel, item, title, description { display: block; font-family: Georgia, serif; } channel { padding-left: 0.5em; } /* Exceptional padding for Mozilla overridden below. */ date { padding-left: 1em; font-family: sans-serif; font-size: smaller; } dc\:date { padding-left: 0em; } description, item dc\:date { padding-left: 0.6em; } rdf\:RDF { background : #FFF; color: #333; padding: 1em 1em 1em 0em; margin: 5% 10% 5% 15%; border: solid 1px #CCC; } BODY { background: #EEF; color: #333; margin: 5% 20% 5% 20%; padding: 0; } DL.rss-channel { background : #FFF; color: #333; padding: 1em; border: solid 1px #CCC; } /* Channel styled as floating metadata side bar for more advanced user agents, where the first-child selector and colon escape is recognised. */ channel { display: none; } /* Override for supporting user agents. */ rdf\:RDF channel:first-child{ display: block; width: 32%; float: right; background: #EEF; color: #333; border: solid 1px #CCC; padding: 0.5em; margin-left: 1em; } channel:before { content: "Channel metadata"; display: block; font-size: larger; font-weight: bold; display: block; margin-bottom: 0.5em; font-family: sans-serif; } item, title, description, .rss-item, .rss-title, .rss-description { line-height: 1.3em; } item, description, item dc\:date, .rss-item, .rss-description { margin-top: 0.2em; } item title { padding-left: 0.5em; } title, .rss-title { margin-top: 1em; margin-bottom: 0.2em; padding-left: 0em; font-size: 1.2em; font-family: Verdana, sans-serif; } /* Override for HTML output. */ head title { display: none; } /* Similar styling to DC metadata */ channel description, channel link { margin-left: 0; margin-right: 0; display: block; font-size: smaller; font-family: sans-serif; } link { margin-left: 1em; margin-right: 0; display: block; font-size: smaller; font-family: sans-serif; } channel title { display: block; font-size: smaller; font-family: sans-serif; } /* Common top and bottom margins */ channel description, channel link { margin-top: 0; margin-bottom: 0; padding: 0.5em; } /* Override secondary channel titles: DC contained in channel. */ channel title { font-weight: normal; margin-top: 0; margin-bottom: 0; margin-left: 0.5em; margin-right: 0.5em; } /* Primary channel title */ channel title:first-child { margin: 0; padding: 0.5em; } /* Channel metadata colours. */ channel description, channel title:first-child { background: #DDD; color: inherit; } channel link { background: #DDD; color: blue; } channel title:first-child:before, channel title:before, channel description:before, channel link:before, link:before { font-weight: bold; } channel title:first-child:before, channel description:before, channel link:before { display: block; } channel link:before { color: #333; background: transparent; } link:before { color: #333; background: transparent; } /* Generic labels */ link:before { content: "URI: "; display: inline; } /* Override for HTML output. */ head link:before { content: ""; } channel title:before { content: "Title: "; display: inline; } /* Channel labels */ channel title:first-child:before { content: "Channel title"; } channel description:before { content: "Channel description"; } channel link:before { content: "Channel URI"; } link { color: blue; background: transparent; } DD { margin-left: 0; }