summaryrefslogtreecommitdiffstats
path: root/toolkit/themes/shared/toolbarbutton.css
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/themes/shared/toolbarbutton.css')
-rw-r--r--toolkit/themes/shared/toolbarbutton.css106
1 files changed, 106 insertions, 0 deletions
diff --git a/toolkit/themes/shared/toolbarbutton.css b/toolkit/themes/shared/toolbarbutton.css
new file mode 100644
index 0000000000..5bcb9ecb7d
--- /dev/null
+++ b/toolkit/themes/shared/toolbarbutton.css
@@ -0,0 +1,106 @@
+/* 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/. */
+
+toolbarbutton {
+ appearance: auto;
+ -moz-default-appearance: toolbarbutton;
+ background-color: transparent;
+ margin: 0;
+ padding: 3px;
+
+ @media (-moz-platform: macos) {
+ appearance: none;
+ margin-inline: 2px;
+ padding-inline: 2px;
+ }
+
+ @media (-moz-platform: windows) {
+ &:focus-visible {
+ outline: var(--default-focusring);
+ outline-offset: calc(-1 * var(--default-focusring-width) - 1px);
+ }
+ }
+
+ @media (-moz-platform: linux) {
+ &:where(:hover) {
+ color: -moz-buttonhovertext;
+ }
+ &:where([checked="true"], :hover:active, [open="true"]) {
+ color: ButtonText;
+ }
+ }
+
+ &:where([disabled="true"]) {
+ color: GrayText;
+ text-shadow: none;
+ }
+}
+
+.toolbarbutton-text {
+ margin: 0;
+ padding: 0;
+ vertical-align: middle;
+}
+
+/* ::::: toolbarbutton menu ::::: */
+
+.toolbarbutton-menu-dropmarker,
+.toolbarbutton-combined-buttons-dropmarker {
+ appearance: none;
+ -moz-context-properties: fill;
+ fill: currentColor;
+}
+
+.toolbarbutton-menu-dropmarker {
+ content: url("chrome://global/skin/icons/arrow-down-12.svg");
+}
+
+.toolbarbutton-combined-buttons-dropmarker {
+ list-style-image: url("chrome://global/skin/icons/arrow-down-12.svg");
+}
+
+/* ::::: toolbarbutton badged ::::: */
+
+.toolbarbutton-badge {
+ box-sizing: border-box;
+ overflow: hidden;
+ white-space: nowrap;
+ background-color: #d90000;
+ font-size: 10px;
+ padding: 0 2px 1px;
+ color: #fff;
+ text-shadow: none;
+ border-radius: 2px;
+ box-shadow: 0 1px 0 hsla(0, 100%, 100%, .2) inset,
+ 0 -1px 0 hsla(0, 0%, 0%, .1) inset,
+ 0 1px 0 hsla(206, 50%, 10%, .2);
+ margin: -5px 0 0 !important;
+ margin-inline-end: -4px !important;
+ min-width: 14px;
+ max-width: 20px;
+ line-height: 10px;
+ text-align: center;
+ align-self: start;
+ justify-self: end;
+
+ @media (-moz-platform: windows) {
+ font-weight: bold;
+ }
+ @media (-moz-platform: macos) {
+ font-size: 9px;
+ padding-top: 1px;
+ }
+}
+
+@media not (-moz-platform: macos) {
+ .toolbarbutton-badge-stack > .toolbarbutton-icon[label]:not([label=""]) {
+ margin-inline-end: 0;
+ }
+}
+
+@media (-moz-platform: macos) {
+ toolbar[mode="icons"] > *|* > .toolbarbutton-badge {
+ margin-inline-end: -10px !important;
+ }
+}