Mercurial > snowl
changeset 372:2a9341395f36
clean up the river stylesheet
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Fri, 07 Nov 2008 15:16:10 -0800 |
parents | 839158e36d68 |
children | 1fdea580d5b1 |
files | content/river.css |
diffstat | 1 files changed, 83 insertions(+), 88 deletions(-) [+] |
line wrap: on
line diff
--- a/content/river.css Fri Nov 07 14:56:25 2008 -0800 +++ b/content/river.css Fri Nov 07 15:16:10 2008 -0800 @@ -59,14 +59,36 @@ display: none; } -#columnResizeSplitter { - display: none; + +/******************************************************************************/ +/* Period Menu */ + +#periodMenu menupopup > menuitem { + -moz-padding-start: 23px; +} + +#periodMenu menupopup > menuitem.menuitem-iconic { + -moz-padding-start: 2px; } -#contentStack[columns] > #columnResizeSplitter { +#periodMenu menupopup > .menuitem-iconic > .menu-iconic-left { display: -moz-box; + min-width: 16px; + -moz-padding-end: 2px; } +#periodMenu .menulist-icon, +#periodMenu menupopup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon { + width: 16px; + height: 16px; +} + + +/******************************************************************************/ +/* Content Stack, Box, Splitter */ + +/* Rules updated dynamically are defined in riverContent.css. */ + #contentBox { padding: 7px; @@ -86,85 +108,17 @@ -moz-box-flex: 1; } - -/******************************************************************************/ -/* Message */ - -.message { - clear: both; -} - -.messageIcon { - max-width: 100px !important; - max-height: 100px !important; - float: right; -} - -.byline { - font-size: smaller; - font-family: sans-serif; - color: grey; -} - -.title { - font-size: 100%; - margin-bottom: 0.5em; - margin-top: 0; -} - -/* Make the title and source links look less like links to differentiate - * between the links in the content and these links in the chrome. */ -.source > a, .title > a { - font-family: sans-serif; - text-decoration: none; - color: black; -} -.source > a:visited, .title > a:visited { - color: #555; -} - -#contentBox div.body { +#columnResizeSplitter { display: none; } -#contentBox .title { - display: inline; -} - -#contentBox.body div.body { - display: block; -} - -#contentBox.body .title { - display: block; -} - -#contentBox.body .excerpt, -#contentBox.body .messageIcon { - display: none; +#contentStack[columns] > #columnResizeSplitter { + display: -moz-box; } -/* Suppress the top margin on the initial content element so we can control - * the amount of margin between the subject and the content with the rule - * above on the subject element. */ -div.body > *:first-child { - margin-top: 0; -} -.metadata { - float: left; - width: 20%; - - font: message-box; - font-size: smaller; -} - -/* Don't draw borders around hyperlinked favicons, but do pad them a bit - * between the end of the favicon and the start of the source name. */ -a > img { - border: 0; - -moz-padding-end: 1px; -} +/******************************************************************************/ +/* Group Headers */ /* FIXME: factor this out with the almost identical code in stream.css. */ .groupHeader { @@ -189,22 +143,63 @@ } -#periodMenu menupopup > menuitem { - -moz-padding-start: 23px; +/******************************************************************************/ +/* Message */ + +.message { + /* Clear the float on the previous message's icon. */ + clear: both; } -#periodMenu menupopup > menuitem.menuitem-iconic { - -moz-padding-start: 2px; +/* The selector has to include #contentBox here so the rule takes precedence + * over the ones in riverContent.css. */ +#contentBox .messageIcon { + max-width: 100px; + max-height: 100px; + float: right; +} + +.byline { + font-size: smaller; + font-family: sans-serif; + color: grey; +} + +.title { + font-size: 100%; + margin-bottom: 0.5em; + margin-top: 0; } -#periodMenu menupopup > .menuitem-iconic > .menu-iconic-left { - display: -moz-box; - min-width: 16px; - -moz-padding-end: 2px; +/* Suppress the top margin on the initial content element so we can control + * the amount of margin between the subject and the content with the rule + * above on the title element. */ +.body > *:first-child { + margin-top: 0; } -#periodMenu .menulist-icon, -#periodMenu menupopup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon { - width: 16px; - height: 16px; +/* Make the title and source links look less like links to differentiate + * between the links in the content and these links that are in chrome. */ +.source > a, .title > a { + font-family: sans-serif; + text-decoration: none; + color: black; +} +.source > a:visited, .title > a:visited { + color: #555; } + +/* Show/hide elements based on whether we're displaying full content. */ +#contentBox .body { display: none; } +#contentBox .title { display: inline; } +#contentBox.body .body { display: block; } +#contentBox.body .title { display: block; } +#contentBox.body .excerpt { display: none; } +#contentBox.body .messageIcon { display: none; } + +/* Don't draw borders around hyperlinked favicons, but do pad them a bit + * between the end of the favicon and the start of the source name. */ +a > img { + border: 0; + -moz-padding-end: 1px; +}