tr-design icon indicating copy to clipboard operation
tr-design copied to clipboard

Highlight selected bibliography citation

Open marcoscaceres opened this issue 7 years ago • 4 comments

It would be really great if we could copy Wikipedia's behavior for when linking to an internal bibliographical citation. That is, :target should distinguish the selected bibliographical entry.

For example (see 5 below):

screenshot 2018-01-23 17 42 30

marcoscaceres avatar Jan 23 '18 06:01 marcoscaceres

Some variation of the following the following could work, as both ReSpec and Bikeshed use #references as the id for the References section:

    #references dt:target, #references dt:target + dd {
      background-color: rgb(220,220,220);
    }

marcoscaceres avatar Jan 23 '18 06:01 marcoscaceres

What would be needed to land a change for this? Is it just a matter of a corresponding pull request?

ThisIsMissEm avatar Oct 25 '22 20:10 ThisIsMissEm

@ThisIsMissEm, yes, just a pull request... and maybe a sample page showing it working so we can see it/play with it.

marcoscaceres avatar Oct 31 '22 02:10 marcoscaceres

hmm, okay, I'll see if I can make it happen.

ThisIsMissEm avatar Oct 31 '22 18:10 ThisIsMissEm