diff options
author | sirgazil <felipe.lopez@openmailbox.org> | 2016-11-25 15:11:46 -0500 |
---|---|---|
committer | sirgazil <felipe.lopez@openmailbox.org> | 2016-11-25 15:11:46 -0500 |
commit | 85a782924d260164df281f5dee328674d2e190a9 (patch) | |
tree | 0a411b83058868c6db5e5a60370a27b04bad0d46 /website/static | |
parent | b8c35bcdc75c10b8960d5359d5a3dd9bc21bf530 (diff) | |
download | guix-artwork-85a782924d260164df281f5dee328674d2e190a9.tar guix-artwork-85a782924d260164df281f5dee328674d2e190a9.tar.gz |
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.
Diffstat (limited to 'website/static')
-rw-r--r-- | website/static/base/css/base.css | 31 | ||||
-rw-r--r-- | website/static/base/css/packages.css | 18 |
2 files changed, 45 insertions, 4 deletions
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. <felipe.lopez@openmailbox.org> - + 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 |