/packages CGI HTML modernization

Achim Gratz Stromeko@nexgo.de
Fri Jun 20 04:43:00 GMT 2014


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



More information about the Cygwin-patches mailing list