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

Commit

Permalink
fix(firefoxCSS): window-controls on right side with tabline
Browse files Browse the repository at this point in the history
  • Loading branch information
akshat46 committed Mar 6, 2021
1 parent df7baa7 commit ddfa7a8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 26 deletions.
6 changes: 3 additions & 3 deletions chrome/config.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
/* uncomment and add gradient value for selected tab gradient*/

/******WINDOW CONTROL PLACEMENT VARS******/
--wc-vertical-shift: 15px;
--wc-vertical-shift: 18px;
/* larger value moves window controls down,*/
/* can be negative(moves controls up) */
/* Experiemntal: 55px if tabline visible, -25px if tabline hidden */
--wc-left-space: 10px; /* add space to the left of window controls*/
--wc-right-space: 15px; /* add space to the right of window controls*/
--wc-left-space: 15px; /* add space to the left of window controls*/
--wc-right-space: 18px; /* add space to the right of window controls*/
/* left-space shifts window-controls */
/* if you want to shift window controls to the left: positive value */
/* if you want to shift them to the right: smaller or negative value */
Expand Down
8 changes: 3 additions & 5 deletions chrome/window-controls/wc-with-tabline.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@import "window-controls.css";

#TabsToolbar .titlebar-buttonbox-container {
display: inline-block !important;
position: absolute;
top: var(--wc-vertical-shift) !important;
left: var(--wc-horizontal-shift) !important;
#TabsToolbar.browser-toolbar {
margin-left: var(--wc-left-space);
margin-right: var(--wc-right-space);
}
5 changes: 4 additions & 1 deletion chrome/window-controls/wc-without-tabline-r.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
@import "window-controls.css";
@import "wc-without-tabline.css";

#TabsToolbar.browser-toolbar {
left: auto !important;
right: var(--wc-right-space) !important;
}

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

.titlebar-buttonbox {
Expand Down
16 changes: 16 additions & 0 deletions chrome/window-controls/wc-without-tabline.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
@import "window-controls.css";

:root:not([inFullscreen]) toolbar#nav-bar {
z-index: 1 !important;
position: relative !important;
margin-left: calc(
var(--wc-right-space) * 2 + 60px
) !important; /* shift toolbar to the right based on initial width */
}

#TabsToolbar .toolbar-items {
display: none !important;
}

.titlebar-buttonbox {
flex-direction: row-reverse;
}

#TabsToolbar.browser-toolbar {
display: inline-block !important;
position: absolute;
Expand Down
25 changes: 8 additions & 17 deletions chrome/window-controls/window-controls.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
:root:not([inFullscreen]) toolbar#nav-bar {
z-index: 1 !important;
position: relative !important;
margin-left: calc(
var(--wc-right-space) * 2 + 60px
) !important; /* shift toolbar to the right based on initial width */
}

/*-min max close size*/
.titlebar-button > .toolbarbutton-icon {
height: 14px !important;
Expand All @@ -14,29 +6,25 @@
min-width: 14px !important;
}

#TabsToolbar .toolbar-items{
display: none !important;
}

#titlebar{
#titlebar {
-moz-appearance: none !important;
}

.titlebar-button {
transition: all 0.3s ease !important;
padding: 0px 8px !important;
background: none !important;
transition: all 0.3s ease !important;
padding: 0px 8px !important;
background: none !important;
-moz-context-properties: fill, fill-opacity !important;
}

.titlebar-buttonbox {
display: flex;
flex-direction: row-reverse;
-moz-context-properties: fill, fill-opacity !important;
}

/* close button */
.titlebar-close {
-moz-appearance: none !important;
fill: var(--red) !important;
opacity: 0.7 !important;
list-style-image: url(circle.svg) !important;
Expand All @@ -48,6 +36,7 @@

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

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

/* restore button */
.titlebar-restore {
-moz-appearance: none !important;
fill: var(--green) !important;
opacity: 0.7 !important;
list-style-image: url(circle.svg) !important;
Expand Down

0 comments on commit ddfa7a8

Please sign in to comment.