Skip to content

Commit 0041521

Browse files
committed
Fixup vertical tabs into a usable state
1 parent 6d4540a commit 0041521

File tree

2 files changed

+61
-24
lines changed

2 files changed

+61
-24
lines changed

css/base.css

+59-22
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
}
5050
.titlebar-spacer[type="post-tabs"] {
5151
width: 50px !important;
52+
display: flex !important;
5253
}
5354
/* Window */
5455
/* Temporal fix for top border */
@@ -269,7 +270,7 @@
269270
.tab-audio-button {
270271
height: 26px !important;
271272
}
272-
button:has(> span[type="icon ghost"].button-background) {
273+
button:has(> span[type="icon ghost"].button-background:not(.labelled)) {
273274
border: none !important;
274275
border-width: 0px !important;
275276
padding: 0px !important;
@@ -903,6 +904,22 @@ panel .text-link {
903904
/* Sidebar */
904905
#sidebar-box {
905906
background-color: transparent !important;
907+
@media -moz-pref("sidebar.revamp") {
908+
& {
909+
padding-block-end: 0px !important;
910+
padding-inline-end: 0px !important;
911+
}
912+
}
913+
}
914+
#sidebar {
915+
@media -moz-pref("sidebar.revamp") {
916+
& {
917+
box-shadow: none !important;
918+
border-radius: 0px !important;
919+
border: none !important;
920+
background: transparent !important;
921+
}
922+
}
906923
}
907924
body[lwt-sidebar] {
908925
background-color: transparent !important;
@@ -1049,32 +1066,33 @@ notification {
10491066

10501067
/* Sidebar */
10511068
/* Why the hell is this a shadow root */
1052-
.wrapper {
1069+
.wrapper:has(> slot[name="tabstrip"]) {
10531070
border: none !important;
10541071
background: transparent !important;
1055-
padding: 8px 3px !important;
1072+
padding: 8px 0px !important;
10561073
border-inline-end: none !important;
10571074
gap: 4px !important;
10581075
min-width: 0px !important;
1076+
margin-right: 1px !important;
10591077
}
10601078
.wrapper > * {
10611079
padding-inline-end: 0px !important;
10621080
}
10631081
.wrapper > .tools-and-extensions {
1064-
gap: 4px !important;
1065-
}
1066-
.wrapper > .tools-and-extensions > moz-button {
1082+
gap: 1px !important;
10671083
}
1068-
/* How I'm supposed to unfuck this thing if the damn button is inside a shadow root the hell */
1069-
moz-button button {
1070-
1071-
}
1072-
#sidebar-box {
1073-
1084+
button:has(> span[type="icon ghost"].button-background.labelled) {
1085+
border-radius: var(--uwp-tags-overlay-radius) !important;
1086+
height: 32px !important;
1087+
&:not(:hover, :active) {
1088+
border-color: transparent !important;
1089+
background-color: transparent !important;
1090+
}
10741091
}
1075-
1076-
.sidebar-panel {
1077-
padding: 8px !important;
1092+
@-moz-document url("chrome://browser/content/sidebar/sidebar-customize.html") {
1093+
.sidebar-panel {
1094+
padding: 8px !important;
1095+
}
10781096
}
10791097
/* Move this into another css (?) */
10801098
.search-container > .search-icon {
@@ -1136,7 +1154,7 @@ sidebar-tab-row {
11361154
}
11371155

11381156
@media -moz-pref("sidebar.revamp") {
1139-
#appcontent {
1157+
#tabbrowser-tabbox {
11401158
border-top-left-radius: var(--uwp-tags-overlay-radius) !important;
11411159
background-color: var(--uwp-nav-content-background) !important;
11421160
background-clip: padding-box !important;
@@ -1161,17 +1179,36 @@ sidebar-tab-row {
11611179
#vertical-tabs-newtab-button {
11621180
appearance: none !important;
11631181
}
1164-
sidebar-main[expanded] > #vertical-tabs > #tabbrowser-tabs[orient="vertical"] .tabbrowser-tab {
1165-
min-width: 100% !important;
1182+
#sidebar-main {
1183+
11661184
}
11671185
sidebar-main > #vertical-tabs > #tabbrowser-tabs[orient="vertical"] .tabbrowser-tab {
11681186
min-height: 36px !important;
1187+
& > .tab-stack > .tab-content {
1188+
padding-left: 17px !important;
1189+
padding-right: 9px !important;
1190+
--tab-close-button-padding: 5px !important;
1191+
}
1192+
&:not([expanded]) {
1193+
& .tab-background {
1194+
width: auto !important;
1195+
}
1196+
}
11691197
}
1170-
sidebar-main[expanded] {
1171-
min-width: 280px !important;
1198+
.browser-toolbox-background {
1199+
background: transparent !important;
1200+
}
1201+
@layer input-common {
1202+
.label-wrapper {
1203+
padding-inline-start: 0px !important;
1204+
}
11721205
}
1173-
sidebar-main {
1174-
min-width: 46px !important;
1206+
fieldset {
1207+
& > #inputs {
1208+
background-color: transparent !important;
1209+
border: none !important;
1210+
border-radius: 0px !important;
1211+
}
11751212
}
11761213

11771214
:root {

css/tags.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@
675675
background-color: var(--uwp-button-background-hover) !important;
676676
}
677677
splitter:not(.tree-splitter):not(.devtools-horizontal-splitter) {
678-
margin: -4.5px !important;
679-
width: 8px !important;
678+
margin: 0px -4.5px !important;
679+
width: 9px !important;
680680
background: transparent !important;
681681
border: none !important;
682682
appearance: none !important;

0 commit comments

Comments
 (0)