diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /toolkit/themes/linux/global/popup.css | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/themes/linux/global/popup.css')
-rw-r--r-- | toolkit/themes/linux/global/popup.css | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/toolkit/themes/linux/global/popup.css b/toolkit/themes/linux/global/popup.css new file mode 100644 index 0000000000..ba63abca1e --- /dev/null +++ b/toolkit/themes/linux/global/popup.css @@ -0,0 +1,73 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); +@namespace html url("http://www.w3.org/1999/xhtml"); + +/* ::::: menupopup ::::: */ + +menupopup, +panel { + min-width: 1px; + --panel-padding-block: max(env(-moz-gtk-csd-menu-radius) - 1px, 0px); + --panel-padding: var(--panel-padding-block) 0; + --panel-color: MenuText; + --panel-background: Menu; + --panel-border-radius: env(-moz-gtk-csd-menu-radius); + --panel-border-color: ThreeDShadow; + --panel-width: initial; + --panel-shadow: 0 0 var(--panel-shadow-margin) hsla(0,0%,0%,.2); + /* To account for the box-shadow below */ + --panel-shadow-margin: 4px; + margin: calc(-1 * var(--panel-shadow-margin)); + -moz-window-input-region-margin: var(--panel-shadow-margin); +} + +menupopup > menu > menupopup { + /* Vertically align nested menupopups: the shadow plus the top padding */ + margin-top: calc(-1 * (var(--panel-shadow-margin) + var(--panel-padding-block))); +} + +/* ::::: arrow panel ::::: */ + +:is(panel, menupopup)[type="arrow"] { + border: none; + background-color: transparent; +} + +:is(panel, menupopup)::part(content) { + display: -moz-box; + -moz-box-flex: 1; + padding: var(--panel-padding); + color: var(--panel-color); + background: var(--panel-background); + border-radius: var(--panel-border-radius); + border: 1px solid var(--panel-border-color); + width: var(--panel-width); + min-width: 0; + min-height: 0; + + box-shadow: var(--panel-shadow); + margin: var(--panel-shadow-margin); +} + +:is(panel, menupopup)[orient=vertical]::part(content) { + -moz-box-orient: vertical; +} + +panel[type="arrow"].panel-no-padding::part(content) { + padding: 0; + overflow: hidden; /* Don't let panel content overflow the border */ +} + +/* rules for popups associated with menulists */ + +menulist > menupopup { + padding: 0; + min-width: 0; +} + +menupopup[customoptionstyling="true"] { + appearance: none; +} |