Fix: Padding - Tabbar spacer for placement

This commit is contained in:
alstjr7375 2022-08-30 15:36:48 +09:00
parent fcf1707453
commit 21f1844a68
2 changed files with 56 additions and 9 deletions

View file

@ -3187,14 +3187,51 @@
/* Original: 40px */
}
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
@supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") {
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-post-spacer) !important;
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-post-spacer) !important;
}
}
@media (-moz-gtk-csd-available) {
@media (-moz-gtk-csd-reversed-placement) {
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-post-spacer) !important;
}
}
}
@media (-moz-os-version: windows-win7),
(-moz-platform: windows-win7),
(-moz-os-version: windows-win8),
(-moz-platform: windows-win8),
(-moz-os-version: windows-win10),
(-moz-platform: windows-win10) {
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-post-spacer) !important;
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
}
@media (-moz-gtk-csd-available) {
@media (-moz-gtk-csd-reversed-placement: 0) {
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-post-spacer) !important;
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
}
}
/* Tabbar Buttons */
:root {
--newtab-button-minus-width-padding: 2px;

View file

@ -3,11 +3,21 @@
--uc-title-pre-spacer: 30px; /* Original: 40px */
--uc-title-post-spacer: 25px; /* Original: 40px */
}
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-pre-spacer) !important;
@include WindowControl_Left {
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-post-spacer) !important;
}
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-post-spacer) !important;
@include WindowControl_Right {
.titlebar-spacer[type="pre-tabs"] {
width: var(--uc-title-post-spacer) !important;
}
.titlebar-spacer[type="post-tabs"] {
width: var(--uc-title-pre-spacer) !important;
}
}
/* Tabbar Buttons */