The following is the contents of my userContent.css for Thunderbird. It's purpose is to display a little balloon showing the URL of a link when hovered over. It works well but I would like to modify its functionality by having it only work when the control (or shift) key is held down. Anyone know how to do this? Thank you
/* show url beneath link when hovering over link */
a[href]:hover {
text-decoration: none !important;
}
a[href]:hover:after {
display: block;
position: relative;
border-radius: 10px;
content: attr(href);
padding: 1px 10px;
font-size: 15px !important;
font-family: sans-serif !important;
text-align: left !important;
background-color: #555 !important;
color: #EEE !important;
}
Show URL when hovering and holding control key?
-
- Posts: 17
- Joined: September 26th, 2012, 8:07 am
- LIMPET235
- Moderator
- Posts: 39956
- Joined: October 19th, 2007, 1:53 am
- Location: The South Coast of N.S.W. Oz.
Re: Show URL when hovering and holding control key?
Moving this to Thunderbird Support...
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.
(Always choose the "Custom" Install.)
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.
(Always choose the "Custom" Install.)
-
- Posts: 3664
- Joined: September 15th, 2010, 9:03 am
Re: Show URL when hovering and holding control key?
Mozilla doesn't have a "keypress" pseudo-selector, so you'd need something in javascript. One was is to add a little script to put an attribute or class on the element when the right conditions are met (mouseover plus ctrl key?) and then let CSS do the rest.