Clean: Bottom Rounded Corner - Refactor

This commit is contained in:
alstjr7375 2021-08-20 12:05:23 +09:00
parent 5a91333a6f
commit dbab47f2eb

View file

@ -843,12 +843,9 @@
--tab-corner-position: calc(var(--tab-corner-padding) - var(--tab-corner-rounding));
}
:root:not([customizing="true"])[gtktiledwindow="true"][lwtheme="true"] tab[visuallyselected] > stack::before,
:root:not([customizing="true"]):not([gtktiledwindow="true"]) tab[visuallyselected] > stack::before,
:root:not([customizing="true"])[gtktiledwindow="true"][lwtheme="true"] tab[visuallyselected] > stack::after,
:root:not([customizing="true"]):not([gtktiledwindow="true"]) tab[visuallyselected] > stack::after {
:root:not([customizing="true"]) tab[visuallyselected] > stack::before,
:root:not([customizing="true"]) tab[visuallyselected] > stack::after {
/* Box */
content: "" !important;
display: block !important;
position: absolute !important;
z-index: 1 !important;
@ -868,18 +865,30 @@
background-position-y: bottom;
}
:root[gtktiledwindow="true"][lwtheme="true"] tab[visuallyselected] > stack::before,
:root:not([gtktiledwindow="true"]) tab[visuallyselected] > stack::before {
tab[visuallyselected] > stack::before {
left: var(--tab-corner-position) !important;
background-image: url(./icons/tab-bottom-corner-left.svg);
}
:root[gtktiledwindow="true"][lwtheme="true"] tab[visuallyselected] > stack::after,
:root:not([gtktiledwindow="true"]) tab[visuallyselected] > stack::after {
tab[visuallyselected] > stack::after {
left: auto;
right: var(--tab-corner-position);
background-image: url(./icons/tab-bottom-corner-right.svg);
}
@media (-moz-gtk-csd-available) {
/* Don't enabled at GTK */
:root:not([customizing="true"])[lwtheme="true"] tab[visuallyselected] > stack::before,
:root:not([customizing="true"])[lwtheme="true"] tab[visuallyselected] > stack::after {
content: "" !important;
}
}
@media not (-moz-gtk-csd-available) {
:root:not([customizing="true"]) tab[visuallyselected] > stack::before,
:root:not([customizing="true"]) tab[visuallyselected] > stack::after {
content: "" !important;
}
}
/** Unselected Tab - Divide line ********************************************/
#tabbrowser-arrowscrollbox {
position: absolute;