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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
May 15, 2007, 23:59 UTC
Message-ID
<200705160159.55590.jnareb@gmail.com>
In-Reply-To
<20070515150912.GA3653@efreet.light.src>
On Thu, 15 May 2007, Jan Hudec wrote:
> On Mon, May 14, 2007 at 18:06:54 -0700, David Kågedal wrote:
Show 11 quoted lines
>> 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.
> 
> IMHO gitweb should explicitely request being somewhat smaller than normal,
> because it has good use for long lines. Normally I want to set font so large,
> that more than ~120 characters won't fit on the screen, since otherwise pages
> that don't use margins are simply unreadable. However gitweb presents a table
> with several columns, so having wider line is OK for it. Therefore explicit
> 'font-size: small' would make sense.
And thanks to commit 63fcbe00 by Pasky
  "gitweb: Do not use absolute font sizes"
it has to be added in only one place:
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index b57c8be..02623cb 100644
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
@@ -1,5 +1,6 @@
 body {
 	font-family: sans-serif;
+	font-size: small;
 	border: solid #d9d8d1;
 	border-width: 1px;
 	margin: 10px;
Previous: Jan HudecNext: Jakub Narebski
Message 12 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.