Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit ddfa7a8

Browse files
committed
fix(firefoxCSS): window-controls on right side with tabline
1 parent df7baa7 commit ddfa7a8

5 files changed

Lines changed: 34 additions & 26 deletions

File tree

chrome/config.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
/* uncomment and add gradient value for selected tab gradient*/
3939

4040
/******WINDOW CONTROL PLACEMENT VARS******/
41-
--wc-vertical-shift: 15px;
41+
--wc-vertical-shift: 18px;
4242
/* larger value moves window controls down,*/
4343
/* can be negative(moves controls up) */
4444
/* Experiemntal: 55px if tabline visible, -25px if tabline hidden */
45-
--wc-left-space: 10px; /* add space to the left of window controls*/
46-
--wc-right-space: 15px; /* add space to the right of window controls*/
45+
--wc-left-space: 15px; /* add space to the left of window controls*/
46+
--wc-right-space: 18px; /* add space to the right of window controls*/
4747
/* left-space shifts window-controls */
4848
/* if you want to shift window controls to the left: positive value */
4949
/* if you want to shift them to the right: smaller or negative value */
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@import "window-controls.css";
22

3-
#TabsToolbar .titlebar-buttonbox-container {
4-
display: inline-block !important;
5-
position: absolute;
6-
top: var(--wc-vertical-shift) !important;
7-
left: var(--wc-horizontal-shift) !important;
3+
#TabsToolbar.browser-toolbar {
4+
margin-left: var(--wc-left-space);
5+
margin-right: var(--wc-right-space);
86
}

chrome/window-controls/wc-without-tabline-r.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
@import "window-controls.css";
2+
@import "wc-without-tabline.css";
3+
14
#TabsToolbar.browser-toolbar {
25
left: auto !important;
36
right: var(--wc-right-space) !important;
47
}
58

69
:root:not([inFullscreen]) toolbar#nav-bar {
710
margin-left: 0 !important;
8-
margin-right: calc(var(--wc-right-space) * 2 + 60px) !important;
11+
margin-right: calc(var(--wc-left-space) * 2 + 60px) !important;
912
}
1013

1114
.titlebar-buttonbox {

chrome/window-controls/wc-without-tabline.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
@import "window-controls.css";
22

3+
:root:not([inFullscreen]) toolbar#nav-bar {
4+
z-index: 1 !important;
5+
position: relative !important;
6+
margin-left: calc(
7+
var(--wc-right-space) * 2 + 60px
8+
) !important; /* shift toolbar to the right based on initial width */
9+
}
10+
11+
#TabsToolbar .toolbar-items {
12+
display: none !important;
13+
}
14+
15+
.titlebar-buttonbox {
16+
flex-direction: row-reverse;
17+
}
18+
319
#TabsToolbar.browser-toolbar {
420
display: inline-block !important;
521
position: absolute;

chrome/window-controls/window-controls.css

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
:root:not([inFullscreen]) toolbar#nav-bar {
2-
z-index: 1 !important;
3-
position: relative !important;
4-
margin-left: calc(
5-
var(--wc-right-space) * 2 + 60px
6-
) !important; /* shift toolbar to the right based on initial width */
7-
}
8-
91
/*-min max close size*/
102
.titlebar-button > .toolbarbutton-icon {
113
height: 14px !important;
@@ -14,29 +6,25 @@
146
min-width: 14px !important;
157
}
168

17-
#TabsToolbar .toolbar-items{
18-
display: none !important;
19-
}
20-
21-
#titlebar{
9+
#titlebar {
2210
-moz-appearance: none !important;
2311
}
2412

2513
.titlebar-button {
26-
transition: all 0.3s ease !important;
27-
padding: 0px 8px !important;
28-
background: none !important;
14+
transition: all 0.3s ease !important;
15+
padding: 0px 8px !important;
16+
background: none !important;
2917
-moz-context-properties: fill, fill-opacity !important;
3018
}
3119

3220
.titlebar-buttonbox {
3321
display: flex;
34-
flex-direction: row-reverse;
3522
-moz-context-properties: fill, fill-opacity !important;
3623
}
3724

3825
/* close button */
3926
.titlebar-close {
27+
-moz-appearance: none !important;
4028
fill: var(--red) !important;
4129
opacity: 0.7 !important;
4230
list-style-image: url(circle.svg) !important;
@@ -48,6 +36,7 @@
4836

4937
/* minimize button */
5038
.titlebar-min {
39+
-moz-appearance: none !important;
5140
fill: var(--yellow) !important;
5241
opacity: 0.7 !important;
5342
list-style-image: url(circle.svg) !important;
@@ -59,6 +48,7 @@
5948

6049
/* maximize button */
6150
.titlebar-max {
51+
-moz-appearance: none !important;
6252
fill: var(--green) !important;
6353
opacity: 0.7 !important;
6454
list-style-image: url(circle.svg) !important;
@@ -70,6 +60,7 @@
7060

7161
/* restore button */
7262
.titlebar-restore {
63+
-moz-appearance: none !important;
7364
fill: var(--green) !important;
7465
opacity: 0.7 !important;
7566
list-style-image: url(circle.svg) !important;

0 commit comments

Comments
 (0)