From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: patch for list-packages Date: Sun, 04 Aug 2013 22:22:47 +0200 Message-ID: <87mwoxw6i0.fsf@honeybear.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V63tZ-0001Fq-Ia for guix-devel@gnu.org; Sun, 04 Aug 2013 15:23:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V63tU-0005ex-0B for guix-devel@gnu.org; Sun, 04 Aug 2013 15:23:13 -0400 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:59448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V63tT-0005ef-NK for guix-devel@gnu.org; Sun, 04 Aug 2013 15:23:07 -0400 Received: by mail-we0-f177.google.com with SMTP id m46so1788306wev.8 for ; Sun, 04 Aug 2013 12:23:06 -0700 (PDT) Received: from honeybear.home.home ([109.129.209.169]) by mx.google.com with ESMTPSA id nb12sm16913965wic.3.2013.08.04.12.23.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 04 Aug 2013 12:23:05 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Hello, Sorry it's taken a while to actually work on this. Been a bit busy, and had a minor data-loss disaster! Please find attached a small patch that centralises CSS where possible and moves the JavaScript into the section. Next I plan to invert the JavaScript, so it defaults to showing package descriptions for people with JavaScript disabled, without negatively affecting JavaScript users' experience. I also want to improve the CSS and add a table-header and a JavaScript snippet to make the header follow the top of the window downwards when scrolling down the page (i.e., set the table-header position to 'fixed'). Hope this all makes sense =E2=80=94 and let me know if you have any problems with the patch. Best wishes, Alex =3D=3D=3DFile ~/projects/guix/0001-list-packages-Centralise-CSS-styling-in-head.patch=3D= =3D=3D >From c3a9ba4635e0af47423391b9777ec64f872bd2ab Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Sun, 4 Aug 2013 21:46:26 +0200 Subject: [PATCH] list-packages: Centralise CSS styling in . * build-aux/list-packages.scm (package-logo): Assign class of 'package-description' to package synopsis div; 'package-logo'. Move inli= ne CSS where possible. (packages->sxml): Assign id of 'intro' to intro div, 'packages' to the table. Move inline CSS. (list-packages): Create new + +") (display (sxml->xml (packages->sxml packages))) (format #t "
--=20 1.7.10.4 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D