fix titlebar button alignment with mica

This commit is contained in:
bmFtZQ 2022-06-10 21:54:47 +08:00
parent 52b5647d14
commit 216a8f849d
2 changed files with 12 additions and 12 deletions

View file

@ -2,7 +2,8 @@
/* colours */ /* colours */
@-moz-document url-prefix("about:newtab"), url-prefix("about:home") { @-moz-document url-prefix("about:newtab"), url-prefix("about:home") {
body:not([lwt-newtab], [lwt-newtab-brighttext]) { body:not([lwt-newtab], [lwt-newtab-brighttext]),
body[style*="--newtab-background-color: rgb(249, 249, 251)"] {
--newtab-background-color: #F7F7F7 !important; --newtab-background-color: #F7F7F7 !important;
--newtab-background-color-secondary: #fff !important; --newtab-background-color-secondary: #fff !important;
--newtab-text-primary-color: #252525 !important; --newtab-text-primary-color: #252525 !important;

View file

@ -186,9 +186,9 @@ browsing indicator) */
/* line up buttons with duplicate icons from -moz-win-glass */ /* line up buttons with duplicate icons from -moz-win-glass */
:root:is(:not(:-moz-lwtheme), :root:is(:not(:-moz-lwtheme),
:root[style*="--lwt-accent-color: rgb(240, 240, 244)"], [style*="--lwt-accent-color: rgb(240, 240, 244)"],
[lwt-default-theme-in-dark-mode="true"], [lwt-default-theme-in-dark-mode="true"],
:root[style*="--lwt-accent-color: rgb(28, 27, 34)"] [style*="--lwt-accent-color: rgb(28, 27, 34)"]
) .titlebar-buttonbox-container { ) .titlebar-buttonbox-container {
--uc-titlebar-button-size: 30px; --uc-titlebar-button-size: 30px;
--uc-titlebar-size: calc(var(--tab-min-height) + var(--tab-block-margin)); --uc-titlebar-size: calc(var(--tab-min-height) + var(--tab-block-margin));
@ -196,27 +196,26 @@ browsing indicator) */
} }
:root:is(:not(:-moz-lwtheme), :root:is(:not(:-moz-lwtheme),
:root[style*="--lwt-accent-color: rgb(240, 240, 244)"], [style*="--lwt-accent-color: rgb(240, 240, 244)"],
[lwt-default-theme-in-dark-mode="true"], [lwt-default-theme-in-dark-mode="true"],
:root[style*="--lwt-accent-color: rgb(28, 27, 34)"] [style*="--lwt-accent-color: rgb(28, 27, 34)"]
) .titlebar-button:not(.titlebar-close:hover, :-moz-window-inactive) { ) .titlebar-button:not(.titlebar-close:hover, :-moz-window-inactive) {
list-style-image: none !important; list-style-image: none !important;
} }
:root:is(:not(:-moz-lwtheme), :root:is(:not(:-moz-lwtheme),
:root[style*="--lwt-accent-color: rgb(240, 240, 244)"], [style*="--lwt-accent-color: rgb(240, 240, 244)"],
[lwt-default-theme-in-dark-mode="true"], [lwt-default-theme-in-dark-mode="true"],
:root[style*="--lwt-accent-color: rgb(28, 27, 34)"] [style*="--lwt-accent-color: rgb(28, 27, 34)"]
) :root:is([inFullscreen], [sizemode="maximized"]) .titlebar-button { ):is([inFullscreen], [sizemode="maximized"]) .titlebar-button {
padding-block: 7px 9px !important; padding-block: 7px 9px !important;
} }
:root:is(:not(:-moz-lwtheme), :root:is(:not(:-moz-lwtheme),
:root[style*="--lwt-accent-color: rgb(240, 240, 244)"], [style*="--lwt-accent-color: rgb(240, 240, 244)"],
[lwt-default-theme-in-dark-mode="true"], [lwt-default-theme-in-dark-mode="true"],
:root[style*="--lwt-accent-color: rgb(28, 27, 34)"] [style*="--lwt-accent-color: rgb(28, 27, 34)"]
) :root:is([inFullscreen], [sizemode="maximized"]) .titlebar-close { ):is([inFullscreen], [sizemode="maximized"]) .titlebar-close {
padding-block: 7px 9px !important;
padding-right: 19px !important; padding-right: 19px !important;
} }
} }