show urlbar button: use grid layout inside urlbar-input-container
This makes individual buttons inside identity-box and page-action-buttons work (such as bookmark star and permissions notification).
This commit is contained in:
@@ -6,7 +6,7 @@ See the above repository for updates as well as full license text. */
|
|||||||
#wrapper-urlbar-container,
|
#wrapper-urlbar-container,
|
||||||
#urlbar-container{
|
#urlbar-container{
|
||||||
flex-grow: 0 !important;
|
flex-grow: 0 !important;
|
||||||
width: min-content !important;
|
width: 34px !important;
|
||||||
position: static !important;
|
position: static !important;
|
||||||
}
|
}
|
||||||
:root[customizing] #urlbar-container{
|
:root[customizing] #urlbar-container{
|
||||||
@@ -25,25 +25,41 @@ See the above repository for updates as well as full license text. */
|
|||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border-color: transparent !important;
|
border-color: transparent !important;
|
||||||
}
|
}
|
||||||
#urlbar:not(:focus-within):hover > #urlbar-background{
|
:root:not([customizing]) #urlbar:not(:focus-within):hover > #urlbar-background{
|
||||||
background: var(--toolbarbutton-hover-background) !important;
|
background: var(--toolbarbutton-hover-background) !important;
|
||||||
}
|
}
|
||||||
.urlbar-input-container:not(:focus-within) > :not(.urlbar-input-box){
|
#urlbar:not(:focus-within) #page-action-buttons,
|
||||||
display: none;
|
#urlbar:not(:focus-within) #identity-box,
|
||||||
|
.urlbar-input-container:not(:focus-within){
|
||||||
|
display: grid;
|
||||||
}
|
}
|
||||||
.urlbar-input-box:not(:focus-within)::before{
|
:where(#urlbar):not(:focus-within) #page-action-buttons > *,
|
||||||
position: absolute;
|
:where(#urlbar):not(:focus-within) #identity-box > *,
|
||||||
align-self: center;
|
.urlbar-input-container:not(:focus-within) > *{
|
||||||
justify-items: center;
|
grid-area: 1/1;
|
||||||
line-height: 0;
|
opacity: 0;
|
||||||
left: 50%;
|
pointer-events: none;
|
||||||
transform: translateX(-50%);
|
}
|
||||||
content: url("chrome://devtools/skin/images/tool-webconsole.svg");
|
.urlbar-input-container:not(:focus-within){
|
||||||
|
background-image: url("chrome://devtools/skin/images/tool-webconsole.svg");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
-moz-context-properties: fill;
|
-moz-context-properties: fill;
|
||||||
}
|
}
|
||||||
.urlbar-input-box{
|
.urlbar-input-box.urlbar-input-box{
|
||||||
cursor: auto;
|
opacity: 1;
|
||||||
|
width: 100%;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
#urlbar:not(:focus-within) #identity-icon-label{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#page-action-buttons > [open],
|
||||||
|
#identity-box > [open],
|
||||||
|
.urlbar-input-container:not(:focus-within) > :has([open]){
|
||||||
|
opacity: 1;
|
||||||
|
background-color: var(--toolbar-bgcolor);
|
||||||
}
|
}
|
||||||
#urlbar-input:not(:focus-within){
|
#urlbar-input:not(:focus-within){
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user