Skip to content

Commit c653f18

Browse files
authored
Bug fixes for Firefox v.151
1 parent e7d6996 commit c653f18

2 files changed

Lines changed: 40 additions & 42 deletions

File tree

chrome/components/ogx_UC-newtabpage.css

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,28 @@
206206

207207
/* Replace 'Photographs' category label */
208208

209-
#photographs ~ label,
210-
.arrow-button[data-l10n-id="newtab-wallpaper-category-title-photographs"] {
209+
#photographs ~ label {
211210
font-size: 0 !important;
212211

213212
&::after {
214213
content: 'Firefox GX';
215214
font-size: var(--font-size-small);
216215
}
217216
}
218-
219-
.arrow-button[data-l10n-id="newtab-wallpaper-category-title-photographs"]::after {
220-
font-size: var(--font-size-root) !important;
217+
218+
moz-button[data-l10n-id="newtab-wallpaper-category-title-photographs"] {
219+
--my-first-font-size: 0;
220+
--my-content: 'Firefox GX';
221+
--my-second-font-size: var(--button-font-size);
222+
}
223+
224+
label[part="moz-button-label"] {
225+
font-size: var(--my-first-font-size) !important;
226+
227+
&::after {
228+
content: var(--my-content);
229+
font-size: var(--my-second-font-size);
230+
}
221231
}
222232

223233
/* Rearrangement of wallpapers + Replace 'Photographs' preview wallpapers with Firefox-GX wallpapers */
@@ -447,7 +457,7 @@
447457

448458
/* Accent color indicator over each wallpaper */
449459

450-
button[data-l10n-id="newtab-wallpaper-category-title-photographs"] ~ div .wallpaper-input[aria-checked]::after {
460+
moz-button[data-l10n-id="newtab-wallpaper-category-title-photographs"] ~ div .wallpaper-input[aria-checked]::after {
451461
position: absolute;
452462
content: "";
453463
width: 10px;
@@ -670,6 +680,15 @@
670680
}
671681
}
672682

683+
.customize-menu.nova-enabled {
684+
background-color: var(--newtab-background-color) !important;
685+
min-height: 100% !important;
686+
border-radius: 0 calc(var(--my-border-radius) - 6px) calc(var(--my-border-radius) - 6px) 0 !important;
687+
box-shadow: -1px 0 #70707070, 0px 0px 20px rgb(1 1 1 / 16%), 0px 0px 10px rgb(0 0 0 / 93%) !important;
688+
backdrop-filter: var(--my-blur) !important;
689+
--space-xxsmall: 0px !important;
690+
}
691+
673692
/* Shadow */
674693

675694
.customize-menu-animate-wrapper {
@@ -691,20 +710,8 @@
691710

692711
/* Combobox */
693712

694-
.home-section .section .selector {
695-
background-color: var(--newtab-element-secondary-color) !important;
696-
border-radius: 4px !important;
697-
box-shadow: none !important;
698-
699-
&:hover {
700-
background-color: var(--button-bgcolor) !important;
701-
border-color: var(--button-bgcolor) !important;
702-
}
703-
704-
&:focus {
705-
background-color: var(--button-hover-bgcolor) !important;
706-
border-color: var(--button-bgcolor) !important;
707-
}
713+
.select-wrapper {
714+
--select-background-color: var(--button-background-color-menu) !important;
708715
}
709716

710717
/* Toggle 2nd description aligned */
@@ -856,9 +863,6 @@
856863

857864
/* _____________________________________________________ Weather _____________________________________________________ \
858865
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ */
859-
:root {
860-
/*--mrec-height: 170px !important;/**/
861-
}
862866
.weather-widget.col-4.small-widget {
863867
height: 90px !important;
864868
}
@@ -867,7 +871,7 @@
867871
background-color: transparent !important;
868872
background: var(--my-gradient-background) !important;
869873
box-shadow: inset 0 0 0 1px var(--my-smooth-border-color), var(--my-box-shadow) !important;
870-
flex-direction: column;
874+
backdrop-filter: var(--my-blur) !important;
871875
--weather-sunny-background-color: light-dark(var(--color-yellow-0), var(--color-yellow-50)) !important;
872876
--weather-cloudy-background-color: light-dark(var(--color-gray-20), var(--color-gray-80));
873877
--weather-rainy-background-color: light-dark(var(--color-blue-0), var(--color-blue-90));

chrome/components/ogx_containers-groups.css

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@
7373
}
7474
}
7575

76-
/* Replace group label border color \
77-
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ */
78-
tab-group[collapsed] > .tab-group-label-container:not(:hover) .tab-group-label {
79-
outline-color: var(--tab-group-line-color) !important;
80-
}
81-
8276
/* Remove group 'hover' background \
8377
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ */
8478
.tab-group-label-hover-highlight {
@@ -120,8 +114,18 @@ tab-group {
120114
}
121115

122116
.tab-group-label {
123-
/* Group label roundness */
124117
border-radius: calc(var(--border-radius-urlbar-personal) - 3px) !important;
118+
outline: 1px solid transparent !important;
119+
outline-offset: 0px !important;
120+
transition: outline 0.1s ease-in-out, box-shadow 0.1s ease-in-out !important;
121+
box-shadow: inset 0 0 0 1px var(--tab-group-line-color) !important;
122+
123+
/* Group Label 'hover' effect */
124+
&:hover {
125+
opacity: 1;
126+
outline: 1px solid light-dark(var(--tab-group-color), var(--tab-group-color-invert)) !important;
127+
box-shadow: inset 0 0 0 1px var(--toolbar-bgcolor) !important;
128+
}
125129

126130
/* Trick to clic on border */
127131

@@ -156,18 +160,8 @@ tab-group:not([collapsed]) {
156160
}
157161
}
158162

163+
/* Center align group label */
159164
.tab-group-label-container {
160-
161-
/* Group Label 'hover' effect */
162-
&:hover {
163-
.tab-group-label {
164-
opacity: 0.9;
165-
outline: 1px solid light-dark(var(--tab-group-color), var(--tab-group-color-invert)) !important;
166-
outline-offset: 0px !important;
167-
}
168-
}
169-
170-
/* Center align group label */
171165
#tabbrowser-arrowscrollbox[orient="horizontal"] & {
172166
padding-block: calc(var(--tab-block-margin) - 2px) calc(var(--tab-block-margin) + 2px) !important; /* Cause bug for 'compact' mode */
173167
}

0 commit comments

Comments
 (0)