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

Re: [PATCH] gitweb: Do not use absolute font sizes

From
David Kågedal <davidk@lysator.liu.se>
Date
May 15, 2007, 01:06 UTC
Message-ID
<87odkmgaj5.fsf@morpheus.local>
In-Reply-To
<f2a3si$ein$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
Show 23 quoted lines
> Petr Baudis wrote:
>
>> Note that this patch actually does change visual look of gitweb in Firefox
>> with my resolution and default settings - everything is bigger and I can't
>> explain the joy of actually seeing gitweb text that is in _readable_ size;
>> also, my horizontal screen real estate feels better used now.
>
> Not everyone has those huge monitors with extreme resultion. For me new
> gitweb look uses much to big font, so not very much fits in screen.
>
> I'd remove 
>
>> --- a/gitweb/gitweb.css
>> +++ b/gitweb/gitweb.css
>> @@ -1,6 +1,5 @@
>>  body {
>>         font-family: sans-serif;
>> -       font-size: 12px;
>>         border: solid #d9d8d1;
>>         border-width: 1px;
>>         margin: 10px;
>
> chunk
But then we'd be back to the brain-damaged explicit-pixel sizes.

gitweb is simply using the font size you have configured your browser to use, and if you think that it too large, you are free to reconfigure it.

Unfortunately, the problem is that too many web sites explicitly select extra small font sizes, which means that you have to select a "standard" font size in your browser that is a bit larger than you'd actually like.

-- 
David Kågedal
Previous: Jakub NarebskiNext: Jan Hudec
Message 10 of 16 in “gitweb css - pixels?!”
  1. Chris RiddochMay 7, 2007
  2. Allan WindMay 8, 2007
  3. Chris RiddochMay 8, 2007
  4. Jan HudecMay 8, 2007
  5. gitweb: Do not use absolute font sizesPetr Baudis, May 9, 2007
  6. Junio C HamanoMay 9, 2007
  7. Petr BaudisMay 9, 2007
  8. Chris RiddochMay 9, 2007
  9. Jakub NarebskiMay 14, 2007
  10. David KågedalMay 15, 2007
  11. Jan HudecMay 15, 2007
  12. Jakub NarebskiMay 15, 2007
  13. gitweb: Change base font size to "small"Jakub Narebski, May 16, 2007
  14. Petr BaudisMay 17, 2007
  15. Junio C HamanoMay 17, 2007
  16. Jakub NarebskiMay 17, 2007

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.