This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: /packages CGI HTML modernization


Warren Young writes:
> The current CGI code that generates the package and file lists for
> http://cygwin.com/packages emits highly redundant HTML, and it is laid
> out using a huge slow-to-render table.  The attached patch shows a
> minimal way to use <ul> instead of <table>, along with some CSS and JS
> to style it in a similar way to the current look.

+1

> If JavaScript is verboten on cygwin.com, you can empirically find an
> appropriate value for the width of the package name column and put
> that in the CSS:
>
>     ul.pkglist span {
>         float: left;
>         width: 185px;
>     }

I'd try something like this to keep it more nicely scalable:

ul.pkglist li {
   background: url('http://sourceware.org/icons/ball.gray.gif')
   no-repeat center left 0.2em;
   background-size: 1em 1em;
   padding-left: 1.4em;
   display: block;
   align: center;
}

ul.pkglist span {
   float: left;
   width: 30%;
}


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]