firefox-csshacks icon indicating copy to clipboard operation
firefox-csshacks copied to clipboard

urlbar_connection_type_background_colors.css

Open ChasCB opened this issue 1 year ago • 2 comments

Love this piece of code. But is it possible to have connection_type_background_colours only apply to the #urlbar-input-container moz-input-box.urlbar-input-box only, not to the entire urlbar ?? Therefore the box containing the; Identity, Permissions, Protections & Notifications to the left and the Page-Action-Button box to the right of the urlbar-input-container are excluded from these background colour changes.

ChasCB avatar Feb 22 '24 03:02 ChasCB

Yes, you can do it if you replace every instance of ::before with ~ .urlbar-input-box::before

MrOtherGuy avatar Feb 22 '24 14:02 MrOtherGuy

Thank you that worked a treat. Note: I have also posted this into Reddit where I had originally posted the question. I have also incorporated your "urlbar text color based on connection type" css as well.

Maybe offer the ~ .urlbar-input-box::before as another css code option.

ChasCB avatar Feb 22 '24 19:02 ChasCB