Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1CMI-00F8ac-Ac for pgsql-docs@arkaria.postgresql.org; Wed, 16 Oct 2024 22:19:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t1CMG-00BQVd-0S for pgsql-docs@arkaria.postgresql.org; Wed, 16 Oct 2024 22:19:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1CMF-00BQVT-Or for pgsql-docs@lists.postgresql.org; Wed, 16 Oct 2024 22:19:08 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1CM9-001Fsw-7i; Wed, 16 Oct 2024 22:19:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=drHZY8lUrVZ6MNrUp6Er2sb+g0QoHul+jNKBBWFD8s8=; b=FP0A/ RuqxvIHMISX/n/ghCwLryxiAN4LUQou384s6tDN619RMFOVWJ7Aub4RIXY4OagTvkgDT+3IVcqTqN yaWJdVDReVCsonTjx213r+GChFDj3cnDGcEQLMy+QnpcsGuPlwasWw1URLDnUKYJ615iYrnMIIdKk uhzdqwDqw4a5fGB8gnK07u91ZjJ2/FicBYI76irdpEbaSq07PVMMN9nIVqLZVHNxoK82HA+KVFuAe EjBT5oXuXYt1defGwn38iIj6xnbdJhSLFAxOvmbcpik8I9GZhYYpExzMHxTQjbShbZpjHhpMpYLWC XmI5GHvaLwki7ztC92yIKXW7V2Y5g==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1t1CM7-009bdy-20; Wed, 16 Oct 2024 18:18:59 -0400 Date: Wed, 16 Oct 2024 18:18:59 -0400 From: Bruce Momjian To: David Rowley Cc: "Jonathan S. Katz" , Daniel Gustafsson , Tom Lane , Muhammad Ikram , pgsql-docs@lists.postgresql.org Subject: Re: A minor bug in doc. Hovering over heading shows # besides it. Message-ID: References: <3648828.1721279892@sss.pgh.pa.us> <5C909F36-9412-4CA0-BC86-43B4632CD17C@yesql.se> <3701766.1721310545@sss.pgh.pa.us> <30D9BFAE-A61D-4382-A4A9-7E55082047EC@yesql.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Where are we on this? I still see "#". --------------------------------------------------------------------------- On Mon, Aug 12, 2024 at 02:19:06PM +1200, David Rowley wrote: > On Fri, 19 Jul 2024 at 06:03, Jonathan S. Katz wrote: > > > > On 7/18/24 1:59 PM, Daniel Gustafsson wrote: > > > Looking a bit closer, the Python documentation does just this, a pilcrow with a > > > tool-tip ("Link to this heading") when hovering over it > > > > I forgot why we went with the "#" and not the (TIL the name) pilcrow > > symbol, but I'm generally used to seeing the pilcrow when I browse docs > > and may have voiced that at the time (though the record may show > > otherwise). So +1 to that. > > I'm not really a web developer, but I did have a go at adjusting the > .css file so we show some relevant tooltip text. I was reminded about > this when looking at [1] this morning. That page is using '#' but the > purpose of it seems quite obvious when combined with the tooltip. > > I've attached a small patch to adjust the CSS with hopes that it might > inspire someone who actually knows what they're doing with CSS to make > it better. > > David > > [1] https://stackoverflow.blog/2024/07/24/developers-want-more-more-more-the-2024-results-from-stack-overflow-s-annual-developer-survey/ > diff --git a/doc/src/sgml/stylesheet.css b/doc/src/sgml/stylesheet.css > index 86a8edb926..866636eccf 100644 > --- a/doc/src/sgml/stylesheet.css > +++ b/doc/src/sgml/stylesheet.css > @@ -175,6 +175,20 @@ acronym { font-style: inherit; } > a.id_link { > color: inherit; > visibility: hidden; > + text-decoration: none; > +} > + > +a.id_link:hover:after { > + content: "Pemalink to this heading"; > + font-size: 10px; > + font-weight: normal; > + text-decoration: none; > + border: 1px solid #444444; > + text-align: center; > + border-radius: 5px 5px 5px 5px; > + padding: 5px 5px 5px 5px; > + position: relative; > + top: 20px; > } > > *:hover > a.id_link { -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com When a patient asks the doctor, "Am I going to die?", he means "Am I going to die soon?"