From 85a782924d260164df281f5dee328674d2e190a9 Mon Sep 17 00:00:00 2001 From: sirgazil Date: Fri, 25 Nov 2016 15:11:46 -0500 Subject: website: packages: Fix content overflow on Issues page (bug #22115). Note that the overflow issue is fixed, but an issue with duplicated anchors (used for ID attributes) remains, and prevents the document from passing HTML validation (see bug #24981). * website/static/base/css/base.css (anchor-link, pre): New rule sets. * website/static/base/css/packages.css (issue, issue-type): Ditto. * website/www/packages.scm (issue-count->sxml): New procedure. (issues-page): Remove unused JavaScript link. Move update date to the top of the page. (packages->issue-sxml, package->issue-sxml) (issues->sxml): Don't use table elements for document structure. --- website/static/base/css/base.css | 31 +++++++++++++++++++++++++++---- website/static/base/css/packages.css | 18 ++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) (limited to 'website/static') diff --git a/website/static/base/css/base.css b/website/static/base/css/base.css index 4669290..df35c15 100644 --- a/website/static/base/css/base.css +++ b/website/static/base/css/base.css @@ -1,7 +1,7 @@ /* Public domain 2015 Luis Felipe López Acevedo. All rights waived. - + NOTE The default style is targeted at screens with a width less than 1024 pixels. */ @@ -32,6 +32,13 @@ body { font-size: 16px; margin: 0px; } + +h1:hover > a.anchor-link, +h2:hover > a.anchor-link, +h3:hover > a.anchor-link, +h4:hover > a.anchor-link { + visibility: visible; +} /* END NATIVE ELEMENTS */ @@ -43,6 +50,11 @@ body { /* CLASSES */ +a.anchor-link { + visibility: hidden; + padding: 0 0.5em; +} + a.button:link, a.button:visited { background-position: bottom; background-repeat: repeat-x; @@ -125,6 +137,17 @@ a.hlink-yellow-boxed:hover { width: 100%; } +pre { + background-color: #F2EFE4; + border-style: solid; + border-color: #D4CBB6; + border-radius: .3em; + border-width: thin; + font-size: 85%; + overflow: auto; + padding: 3em; +} + .text-center { text-align: center; } @@ -151,9 +174,9 @@ a.hlink-yellow-boxed:hover { .h-separator { width: auto; } - - - /* GENERIC CONTAINERS */ + + + /* GENERIC CONTAINERS */ .summary-box { color: #4D4D4D; display: inline-block; diff --git a/website/static/base/css/packages.css b/website/static/base/css/packages.css index 97d0345..177f416 100644 --- a/website/static/base/css/packages.css +++ b/website/static/base/css/packages.css @@ -65,3 +65,21 @@ a#top:hover, a#top:focus { img.status-icon { padding-right: 1em; } + + +/* PACKAGE ISSUES */ + +.issue { + position: relative; +} + +.issue-type { + background-color: #D4CBB6; + border-radius: 2px; + padding: 2px 4px; + font-size: 90%; + margin: 0px; + position: absolute; + top: 0px; + left: 0px; +} \ No newline at end of file -- cgit v1.2.3