public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
From: Warren Young <warren@etr-usa.com>
To: Cygwin Patches <cygwin-patches@cygwin.com>
Subject: Re: /packages CGI HTML modernization
Date: Fri, 20 Jun 2014 17:09:00 -0000	[thread overview]
Message-ID: <53A46AAE.3070403@etr-usa.com> (raw)
In-Reply-To: <53A4672C.9080304@etr-usa.com>

On 6/20/2014 10:54, Warren Young wrote:
>
> The CSS is now:

Sorry, left a few things out:

   ul.pkglist li {
     display: block;
     clear: both;
   }

   ul.pkglist a {
     background: url('http://sourceware.org/icons/ball.gray.gif')
                 no-repeat;
     background-position: 0px 0.7em;
     background-size: 10px 10px;
     padding-left: 20px;
     padding-top: 0.4em;
     float: left;
     width: 30%;
   }

   ul.pkglist span {
     float: left;
     padding-top: 0.4em;
     width: 67%;
   }

The main thing is that I forgot to include the "ul.pkglist" parent 
qualifiers on the second two CSS rules.

Note, however, that I also added the width attributes to the two <li> 
children, which has the nice effect of making the JS completely 
optional.  The default values will make the package name column wrap, 
but if JS is available, the jQuery script I posted previously will 
increase the column width to fix that.

The (30%+67%) < 100% thing is another hack around the margins the 
browser uses, just like the 40px magic constant in the JS.

  reply	other threads:[~2014-06-20 17:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19 15:51 Warren Young
2014-06-20  4:43 ` Achim Gratz
2014-06-20 16:54   ` Warren Young
2014-06-20 17:09     ` Warren Young [this message]
2014-06-20 17:11       ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53A46AAE.3070403@etr-usa.com \
    --to=warren@etr-usa.com \
    --cc=cygwin-patches@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).