diff options
author | jrobson <jrobson@wikimedia.org> | 2013-07-23 22:08:43 -0700 |
---|---|---|
committer | jrobson <jrobson@wikimedia.org> | 2013-07-26 08:51:50 -0700 |
commit | e96f6e56034ebd3776e83add68c4540e1f286758 (patch) | |
tree | 5392d5640a95eaa9c296a304bcb973f615074598 | |
parent | 4664a43df7a3ae050e2602e8f838caead2ad6c06 (diff) |
Experimental: Apply mobile typography lessons to Vectororigin/sandbox/jdlrobson/design
Cleanup overspecific specifiers in process
Change-Id: Ica0b69ad95051e15cd8ed9888927e034c13fbf92
-rw-r--r-- | skins/vector/screen.css | 112 |
1 files changed, 70 insertions, 42 deletions
diff --git a/skins/vector/screen.css b/skins/vector/screen.css index 9d2a310ad4eb..0c23c6754dc4 100644 --- a/skins/vector/screen.css +++ b/skins/vector/screen.css @@ -12,30 +12,72 @@ */ /* Framework */ +html { + font-size: 90%; +} html, body { height: 100%; margin: 0; padding: 0; font-family: sans-serif; - font-size: 1em; } body { background-color: #f6f6f6; + font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif; + color: #252525; +} +h1, +#firstHeading { + font-size: 1.833em; + line-height: 22pt; + padding: 0; + font-family: Georgia, serif; + margin-bottom: 4pt; } /* Content */ -div#content { +#content { + line-height: 1.5em; margin-left: 10em; - padding: 1em; + padding: 1.5em 1.5em 1.5em 1.75em; /* Border on top, left, and bottom side */ border: 1px solid #a7d7f9; border-right-width: 0; /* Merge the border with tabs' one (in their background image) */ margin-top: -1px; background-color: white; - color: black; direction: ltr; } +#content h2 { + font-size: 1.5em; + line-height: 22pt; +} +/* FIXME: this is hacky */ +#content #toc h2 { + font-size: 100%; +} +#content h2, +#content h3, +#content h4, +#content h5, +#content h6 { + padding: 0; + font-family: Georgia, serif; + margin-bottom: 4pt; + margin-top: 14pt; +} +#content h3 { + font-size: 1.17em; + line-height: 22pt; + font-weight: bold; +} +#content h4 { + font-weight: bold; + font-size: 100%; /* (reset) */ +} +#content p { + margin-bottom: 8pt; +} /* Hide, but keep accessible for screen-readers */ #mw-navigation h2 { position: absolute; @@ -77,6 +119,9 @@ div.emptyPortlet { /* Display on top of page tabs - bugs 37158, 48078 */ z-index: 100; } +#p-personal a { + color: #555; +} #p-personal h3 { display: none; } @@ -468,56 +513,55 @@ div#simpleSearch button#searchButton > img { margin: 0; } /* Panel */ -div#mw-panel { +#mw-panel { + font-size: 0.82em; position: absolute; top: 160px; padding-top: 1em; width: 10em; left: 0; } -div#mw-panel div.portal { - padding-bottom: 1.5em; +#mw-panel div.portal { direction: ltr; + margin-left: 1.25em; +} +#mw-panel .portal a { + color: #555; } -div#mw-panel div.portal h3 { +#mw-panel .portal h3 { font-weight: normal; color: #444; - padding: 0.25em; - padding-top: 0; - padding-left: 1.75em; cursor: default; - border: none; - font-size: 0.75em; + margin: 0; + padding: 5px 0; + line-height: 1; + font-size: 100%; +} +/* FIXME: update collapsible nav gadget */ +#mw-panel.collapsible-nav .portal h3 { + padding: 5px 0 5px 0.5em; } -div#mw-panel div.portal div.body { +#mw-panel .portal .body { margin: 0; padding-top: 0.5em; - margin-left: 1.25em; /* @embed */ background-image: url(images/portal-break.png); background-repeat: no-repeat; background-position: top left; } -div#mw-panel div.portal div.body ul { +#mw-panel .portal .body ul { list-style-type: none; list-style-image: none; - padding: 0; + padding: 0 0 10px; margin: 0; } -div#mw-panel div.portal div.body ul li { +#mw-panel .portal .body ul li { line-height: 1.125em; padding: 0; padding-bottom: 0.5em; margin: 0; - font-size: 0.75em; word-wrap: break-word; } -div#mw-panel div.portal div.body ul li a { - color: #0645ad; -} -div#mw-panel div.portal div.body ul li a:visited { - color: #0b0080; -} /* Footer */ div#footer { margin-left: 10em; @@ -678,16 +722,6 @@ div#footer #footer-places li { margin-right: 0.25em; } -/** - * The following code is slightly modified from monobook - */ -div#content { - line-height: 1.5em; -} -#bodyContent { - font-size: 0.8em; -} - ul { list-style-type: disc; /* @embed */ @@ -702,11 +736,6 @@ pre, .mw-code { #siteNotice { font-size: 0.8em; } -#firstHeading { - padding-top: 0; - margin-top: 0; - font-size: 1.6em; -} div#content a.external, div#content a.external[href ^="gopher://"] { /* @embed */ @@ -798,9 +827,8 @@ div#content a.external[href *=".pdf?"], div#content a.external[href *=".PDF?"], #bodyContent { position: relative; width: 100%; -} -div#bodyContent { line-height: 1.5em; + font-size: 0.9em; } /* mediawiki.notification */ |