Skip to content

Commit 93a4857

Browse files
committed
Minor fixes
* Fixed in-frame browser transparency * Added clicked-state styles for PiP buttons * Fixed unexpected captions button in small PiP windows * You can now drag the window through the unusable URL bar in PWAs * Fixed uncut tab labels when using vertical tabs + hide vtabs close button tweak * Removed unexpected navbar inner-shadow
1 parent b4fc971 commit 93a4857

2 files changed

Lines changed: 42 additions & 23 deletions

File tree

chrome/userChrome.css

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@
141141
--toolbarbutton-outer-padding: 4px !important;
142142
--toolbarbutton-inner-padding: 8.5px !important;
143143

144+
--content-area-shadow: unset !important;
145+
144146
/* Tabs height */
145147
--tab-min-height: 32px !important;
146148

@@ -191,6 +193,7 @@
191193
background-color: light-dark(rgba(255,255,255,.45),rgba(58, 58, 58, .25)) !important;
192194
}
193195
}
196+
.browserContainer {background: transparent !important;}
194197
}
195198

196199
/* Titles */
@@ -5480,9 +5483,17 @@ html[windowtype="Toolkit:PictureInPicture"] {
54805483
#controls {
54815484
& .control-button {
54825485
fill: var(--textPrimary) !important;
5486+
5487+
&:not([disabled]):active {
5488+
fill: var(--textSecondary) !important;
5489+
}
54835490
}
54845491
& div {
54855492
color: var(--textPrimary) !important;
5493+
5494+
&:not([disabled]):active {
5495+
color: var(--textSecondary) !important;
5496+
}
54865497
}
54875498
}
54885499

@@ -5586,7 +5597,8 @@ body:fullscreen {
55865597
#seekForward,
55875598
#seekBackward,
55885599
#timestamp,
5589-
.end-controls #audio-scrubber{
5600+
.end-controls #audio-scrubber,
5601+
#closed-caption{
55905602
display: none !important;
55915603
}
55925604
.center-controls {
@@ -6672,6 +6684,18 @@ button
66726684
background: transparent !important;
66736685
box-shadow: none !important;
66746686
}
6687+
6688+
/* Drag window through urlbar, since it's not interactive */
6689+
.urlbar-input-box,.urlbar-input,#urlbar-scheme,#urlbar-container{
6690+
-moz-window-dragging: drag;
6691+
cursor: default;
6692+
}
6693+
#page-action-buttons,
6694+
.identity-box-button,
6695+
.urlbar-page-action{
6696+
-moz-window-dragging: no-drag;
6697+
cursor: auto;
6698+
}
66756699
}
66766700

66776701
#autoscroller, .autoscroller {
@@ -7237,10 +7261,6 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
72377261
background: none !important;
72387262
}
72397263

7240-
#tabbrowser-tabbox .browserStack {
7241-
background: none !important;
7242-
}
7243-
72447264
* {
72457265
--uc-toolbarbutton-tab-gap: 0 !important;
72467266
}
@@ -9147,7 +9167,7 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
91479167
}
91489168

91499169
/* Tab label clipped when not hovered */
9150-
#tabbrowser-tabs .tabbrowser-tab:not([selected], :hover) .tab-label {
9170+
#tabbrowser-tabs .tabbrowser-tab:not(:hover) .tab-label {
91519171
clip-path: inset(0 16px 0 0) !important;
91529172
}
91539173

@@ -9249,11 +9269,13 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
92499269

92509270
& .tab-background {
92519271
width: -moz-available !important;
9252-
background-color: var(--textButtonPressed) !important;
92539272

92549273
&:hover {
92559274
background-color: var(--textButtonHover) !important;
92569275
}
9276+
&:active {
9277+
background-color: var(--textButtonPressed) !important;
9278+
}
92579279
}
92589280

92599281
& .tab-icon-stack {
@@ -9530,12 +9552,12 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
95309552
margin-right: -10px !important;
95319553
}
95329554
}
9533-
9555+
95349556
@media -moz-pref("uc.winui.extra-highlights") {
95359557
.panel-viewstack {
95369558
background-color: var(--acrylicBackground) !important;
95379559
}
9538-
9560+
95399561
@media (prefers-color-scheme: dark) {
95409562
.menupopup-arrowscrollbox, panel-list, .context-menu, ul[role="menu"].menu {
95419563
background-color: light-dark(rgba(255,255,255,.85), rgba(0,0,0,.57)) !important;
@@ -9571,7 +9593,7 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
95719593
menupopup#ContentSelectDropdownPopup {
95729594
margin-left: 0 !important;
95739595
}
9574-
9596+
95759597
#contentAreaContextMenu menu,
95769598
#contentAreaContextMenu menuitem,
95779599
#context-navigation,
@@ -9610,15 +9632,15 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
96109632
/* Alignment */
96119633
#back-button menupopup {
96129634
margin-top: -8px !important;
9613-
9635+
96149636
& menuitem {
96159637
margin-left: 6px !important;
96169638
}
96179639
}
96189640
#forward-button menupopup {
96199641
margin-top: -8px !important;
96209642
margin-left: 4px !important;
9621-
9643+
96229644
& menuitem {
96239645
margin-inline: 2px 2px !important;
96249646
}
@@ -9641,12 +9663,11 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
96419663
}
96429664

96439665
/* Acrylic panels */
9666+
/* Panel colors */
96449667
* {
9645-
/* Panel colors */
96469668
--arrowpanel-background: var(--acrylicBackground) !important;
96479669
--arrowpanel-color: light-dark(rgba(0, 0, 0, 0.89), #fff) !important;
96489670
--arrowpanel-border-color: none !important;
9649-
--panel-background: var(--acrylicBackground) !important;
96509671
}
96519672
panel:not(.autoscroller) {
96529673
appearance: auto !important;
@@ -9658,18 +9679,18 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
96589679
margin-inline: 5px !important;
96599680
}
96609681
}
9682+
.autoscroller {
9683+
appearance: none !important;
9684+
--panel-shadow: none !important;
9685+
}
9686+
96619687
#PanelUI-fxa-remotetabs-deck .all-tabs-button {
96629688
margin-inline: -3px !important;
96639689
}
96649690
#PanelUI-fxa-remotetabs-deck .all-tabs-close-button {
96659691
margin-inline: 6px -3px !important;
96669692
}
96679693

9668-
#autoscroller, .autoscroller {
9669-
border-radius: 0 !important;
9670-
background-color: var(--acrylicBackground) !important;
9671-
}
9672-
96739694
/* Move misaligned panels */
96749695
#unified-extensions-panel {
96759696
margin-top: 2px !important;
@@ -9686,7 +9707,7 @@ findbar:not([hidden]), #statuspanel-label, .user-agent {
96869707
margin-inline: 9px !important;
96879708
width: 262px !important;
96889709
}
9689-
9710+
96909711
#notification-popup {
96919712
margin: 7px 0 0 0 !important;
96929713
}

chrome/userContent.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
& * {
3131
cursor: default !important;
3232
}
33-
34-
35-
33+
3634
&:has(.context-menu) {
3735
outline: 2px solid var(--accentAuto) !important;
3836
background: var(--buttonHover) !important;

0 commit comments

Comments
 (0)