mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-25 02:52:11 +02:00
web/Omnibox: workarounds for border rendering bugs in browsers
- fixes wonky input border in webkit - fix bleeding rounded edges when focused in blink (caused by imperfect stacking of inset box-shadow and outset outline) WOC (wukko-only-change) but it makes a huge difference imo
This commit is contained in:
parent
98cd4dfc0d
commit
7e9b7542ac
@ -231,6 +231,10 @@
|
||||
--input-padding: 10px;
|
||||
display: flex;
|
||||
box-shadow: 0 0 0 1.5px var(--input-border) inset;
|
||||
/* webkit can't render the 1.5px box shadow properly,
|
||||
so we duplicate the border as outline to fix it visually */
|
||||
outline: 1.5px solid var(--input-border);
|
||||
outline-offset: -1.5px;
|
||||
border-radius: var(--border-radius);
|
||||
align-items: center;
|
||||
gap: var(--input-padding);
|
||||
@ -264,8 +268,9 @@
|
||||
}
|
||||
|
||||
#input-container.focused {
|
||||
box-shadow: 0 0 0 1px var(--secondary) inset;
|
||||
outline: var(--secondary) 1px solid;
|
||||
box-shadow: none;
|
||||
outline: var(--secondary) 2px solid;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
#input-container.focused :global(#input-icons svg) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user