MrOtherGuy / firefox-csshacks

Collection of userstyles affecting the browser
Mozilla Public License 2.0
3.05k stars 307 forks source link

urlbar_connection_type_background_colors.css #343

Open ChasCB opened 4 months ago

ChasCB commented 4 months ago

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.

MrOtherGuy commented 4 months ago

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

ChasCB commented 4 months ago

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.