git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4 2/4] gitweb: vertically centre contents of page footer

From
Tony Finch <dot@dotat.at>
Date
Aug 21, 2013, 09:06 UTC
Message-ID
<alpine.LSU.2.00.1308211003040.6019@hermes-2.csi.cam.ac.uk>
In-Reply-To
<xmqq1u5ow33c.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
> Tony Finch <dot@dotat.at> writes:
>
> >  div.page_footer {
> > -	height: 17px;
> > +	height: 22px;
> >  	padding: 4px 8px;
> >  	background-color: #d9d8d1;
> >  }
> >
> >  div.page_footer_text {
> > +	line-height: 22px;
> >  	float: left;
> >  	color: #555555;
> >  	font-style: italic;
>
> Hmmm, is it a good idea to do "px" here, or are they ways to do
> relative to x-height or something to make sure the text fits?

Good question. I also don't know much about css. I basically followed the style that was already there, and found out about vertical centering using line-height by searching the web.

I think font-size relative scaling would require a bigger overhaul.
Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Forties, Cromarty: East, veering southeast, 4 or 5, occasionally 6 at first.
Rough, becoming slight or moderate. Showers, rain at first. Moderate or good,
occasionally poor at first.
Previous: Junio C HamanoNext: Tony Finch
Message 6 of 8 in “Four small gitweb tweaks”
  1. 0/4 Four small gitweb tweaksTony Finch, Aug 20, 2013
  2. 1/4 gitweb: Ensure OPML text fits inside its box.Tony Finch, Aug 20, 2013
  3. Junio C HamanoAug 20, 2013
  4. 2/4 gitweb: vertically centre contents of page footerTony Finch, Aug 20, 2013
  5. Junio C HamanoAug 20, 2013
  6. Tony FinchAug 21, 2013
  7. 3/4 gitweb: omit the repository owner when it is unsetTony Finch, Aug 20, 2013
  8. 4/4 gitweb: make search help link less uglyTony Finch, Aug 20, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.