fenix-fox/chrome/status_inside_urlbar.css

71 lines
3.2 KiB
CSS
Raw Normal View History

2018-10-21 15:44:14 +00:00
/* STATUSPANEL INSIDE URLBAR */
/**************
IMPORTANT WARNING
Using this style can lead to long tab switch times (and probably other problems). Everything may be fine when Firefox starts but situation gets gradually worse, although pretty slowly.
Relevant information: https://bugzilla.mozilla.org/show_bug.cgi?id=1496065
As a workaround, the -moz-element background image is removed somewhat often which seems work at first glance. But there might still be some related issues on really long sessions. Just be aware.
**************/
#urlbar .urlbar-input-box{ display: -moz-stack; }
/* -moz-stack causes an subtle issue where in certain scenarios a weirdly aligned "http(s)://" may show up */
2018-10-21 15:44:14 +00:00
#urlbar .urlbar-input-box::after{
z-index: 2;
content: "";
width: 100%;
height: 100%;
pointer-events:none;
2019-02-03 09:36:04 +00:00
background-position: left 2px;
background-repeat: no-repeat;
background-image: -moz-element(#statuspanel);
2018-10-21 15:44:14 +00:00
}
/* Using -moz-element() causes some problems after Firefox has been running several hours such as long tab switch times. For this reason the background image is removed on hover and focused states which appears to clear the state. */
/* Hide the status ovelay when urlbar is hovered */
#urlbar:hover .urlbar-input-box::after,
#urlbar[focused] .urlbar-input-box::after{
visibility: hidden;
/* Remove the image to get rid of -moz-element() related problems */
background-image: none !important
}
2019-02-03 09:36:04 +00:00
:root[uidensity="compact"] #urlbar .urlbar-input-box::after{ background-position-y: 0px }
:root[uidensity="touch"] #urlbar .urlbar-input-box::after{ background-position-y: 3px }
2018-10-21 15:44:14 +00:00
#urlbar .urlbar-input-box::after{
display: -moz-box;
}
#statuspanel-inner > #statuspanel-label{
2019-02-03 09:36:04 +00:00
height:3em;
2019-02-03 09:05:37 +00:00
min-width: 1000px;
2018-10-21 15:44:14 +00:00
background-color: var(--lwt-toolbar-field-background-color, hsla(0,0%,100%,.8)) !important;
border: none !important;
2019-05-05 12:28:48 +00:00
font-size: inherit;
color: inherit !important;
2019-02-03 09:05:37 +00:00
margin-right: 0px !important;
}
/* If you use a theme where urlbar is partially transparent you should edit this color to something that closely matches the perceived color of urlbar. Or perhaps use background-image - linear-gradient() can work well here. But keep the color or image opaque or otherwise you'll face an issue where urlbar text bleeds through */
#statuspanel-inner{ background-color: var(--toolbar-non-lwt-bgcolor) }
#statuspanel{ color: lightpink; z-index: -1; }
#statuspanel[type="status"] { color: skyblue }
2019-05-05 12:28:48 +00:00
/* Don't show common values to save space (useful for oneliner) - uncomment to enable */
/* If you change the font size of the label then you'll have to modify these too */
/* non-https links get a slight red hue */
2019-05-05 12:28:48 +00:00
/*
#statuspanel-inner > #statuspanel-label{ margin-left: -3px !important; }
#statuspanel-inner > #statuspanel-label[value^="http"]{ margin-left: -3.7ch !important; }
#statuspanel-inner > #statuspanel-label[value^="https"]{ margin-left: -6.1ch !important; color: var(--lwt-toolbar-field-color, black) !important}
#statuspanel-inner > #statuspanel-label[value^="www"]{ margin-left: -4.5ch !important; }
#statuspanel-inner > #statuspanel-label[value^="http://www"]{ margin-left: -9.7ch !important; }
2019-05-05 12:28:48 +00:00
#statuspanel-inner > #statuspanel-label[value^="https://www"]{ margin-left: -10.1ch !important; }
*/
#statuspanel-inner{ margin-left: -1px; }