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

Re: [PATCH] gitweb: bugfix: list regression

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 22, 2006, 09:30 UTC
Message-ID
<eceir6$rv2$1@sea.gmane.org>
In-Reply-To
<20060822085540.1104.qmail@web31812.mail.mud.yahoo.com>
Luben Tuikov wrote:
Show 13 quoted lines
> Fix regression introduced by
> commit 17d07443188909ef5f8b8c24043cb6d9fef51bca.
> 
> 1. Commit 17d07443188909ef5f8b8c24043cb6d9fef51bca defines
> "a.list" twice in gitweb.css, once with bold and once with
> normal font-weight.
> 
> 2. "a.list" being "bold", makes a myriad of things shown by
> gitweb in bold font-weight, which is a regression from
> pre-17d07443188909ef5f8b8c24043cb6d9fef51bca behavior.
> 
> The fix is to define separately "a.list_bold" and use
> that style in format_subject_html().

This fix is counter to what I wanted to do. I thought that "list" class is used only in "subject" links, so I defaulted it to bold (all such elements except one were inside <b>...</b>), and encoded exceptions; notice

+table.tags a.list {
+       font-weight: normal;
+}
+
We could as well define "bold" class for "a", i.e.
+a.bold {
+       font-weight: bold;
+}
but this is presentational CSS, no better than <b>...</b> element.

The correct solution would be to add "subject" class perhaps, and do exceptions for it.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Jakub Narebski
Message 3 of 10 in “gitweb: bugfix: list regression”
  1. gitweb: bugfix: list regressionLuben Tuikov, Aug 22, 2006
  2. Junio C HamanoAug 22, 2006
  3. Jakub NarebskiAug 22, 2006
  4. gitweb: bugfix: a.list formatting regressionJakub Narebski, Aug 22, 2006
  5. Junio C HamanoAug 22, 2006
  6. Jakub NarebskiAug 22, 2006
  7. Junio C HamanoAug 22, 2006
  8. Luben TuikovAug 23, 2006
  9. Luben TuikovAug 23, 2006
  10. Junio C HamanoAug 23, 2006

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.