/* 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/. */ /* Global Skin ------------------------------------------------------------- */ @import url(chrome://global/skin/); %filter substitution %include defines.inc /* Typography & General Styling -------------------------------------------- */ :root { font-family: "Segoe UI", sans-serif !important; font-size: @font_normal@; } .text-link { color: @metro_orange@; text-decoration: none; } textbox, menulist { -moz-appearance: none; min-width: @field_sizing@; /* button size */ min-height: @field_sizing@; /* button size */ margin: @metro_spacing_small@; padding: @metro_spacing_xsmall@ @metro_spacing_small@; font-size: @metro_font_normal@; font-weight: normal !important; color: @field_foreground_color@; background: @field_background_color@; border: @metro_border_thick@ solid @field_foreground_color@ !important; border-radius: 0; } textbox[disabled], menulist[disabled] { border-color: @field_disabled_foreground_color@ !important; color: @field_disabled_foreground_color@; } menulist:not([disabled]):hover:active { color: @field_background_color@; background: @field_foreground_color@; } /* Button ------------------------------------------------------------------ */ button { -moz-appearance: none; border: 1px solid; font-size: @metro_font_normal@; font-weight: normal; margin: @metro_spacing_small@; min-width: @field_sizing@; min-height: 32px; padding: 3px 16px; } /* Non-default button colors */ button { background: linear-gradient(to bottom, hsl(210, 5%, 89%), hsl(210, 5%, 87%)); border-color: hsl(220, 5%, 86%); color: hsl(0, 0%, 10%); } button:not([disabled]):hover { background: linear-gradient(to bottom, hsl(210, 5%, 75%), hsl(210, 5%, 73%)); border-color: hsl(210, 5%, 71%); color: hsl(0, 0%, 10%); } /* Default button colors */ .button-default, .notification-button-default { background: linear-gradient(to bottom, hsl(35, 100%, 50%), hsl(30, 100%, 50%)); border-color: hsl(30, 100%, 48%); color: white; } .button-default:not([disabled]):hover, .notification-button-default:not([disabled]):hover { background: linear-gradient(to bottom, hsl(25, 100%, 47%), hsl(25, 100%, 45%)); border-color: hsl(25, 100%, 43%); color: white; } /* Pushed button colors (both default and non-default */ /* Note: these need enough specificity to override all the :hover rules above. */ button:not([disabled]):hover:active, button:not([disabled])[checked="true"], .button-default:not([disabled])[checked="true"], .notification-button-default:not([disabled])[checked="true"] { background: linear-gradient(to bottom, hsl(210, 5%, 28%), hsl(210, 5%, 25%)); border-color: hsl(216, 4%, 27%); color: white; } /* Disabled button colors (both default and non-default */ button[disabled] { background: linear-gradient(to bottom, hsl(210, 3%, 93%), hsl(210, 3%, 92%)); border-color: hsl(210, 3%, 91%); color: hsl(0, 0%, 60%); } /* Textbox ----------------------------------------------------------------- */ textbox[isempty="true"] { color: @field_mid_foreground_color@; } spinbuttons { border: none; } .spinbuttons-box { border: none; -moz-box-orient: horizontal; -moz-box-direction: reverse; } .spinbuttons-down, .spinbuttons-up { border: none !important; } .spinbuttons-down { list-style-image: url("chrome://browser/skin/images/arrowdown-16.png"); } .spinbuttons-up { list-style-image: url("chrome://browser/skin/images/arrowup-16.png"); } /* Menu List --------------------------------------------------------------- */ menulist { -moz-user-focus: ignore; padding: @metro_spacing_xsmall@ 0; -moz-padding-start: @metro_spacing_small@; border-color: @field_disabled_foreground_color@ !important; } /* Popup Menus ------------------------------------------------------------- */ .menu-container { position: absolute; opacity: 0; } .menu-container[showingfrom="below"] { transform: translateY(@metro_spacing_normal@); } .menu-container[showingfrom="above"] { transform: translateY(-@metro_spacing_normal@); } .menu-container[hiding], .menu-container[showing] { transition: opacity ease-out 0.2s, transform ease-out 0.2s; } .menu-container[showing] { opacity: 1; transform: none; } .menu-popup > richlistbox { padding: 3px 0; border: #000 solid @metro_border_thick@; -moz-appearance: none; display: -moz-box; } .menu-popup > richlistbox > scrollbox { width: 100%; overflow-x: hidden !important; } .menu-popup richlistitem { width: 100%; min-height: @touch_button_small@; min-width: @touch_action_minwidth@; /* keep the button from being too narrow */ border: 0 none; -moz-box-align: center; font-weight: 600; } .menu-popup richlistitem:not([disabled]):hover { background-color: #ccc; color: black; } .menu-popup richlistitem:not([disabled]):active { background-color: black; color: white; } .menu-popup > richlistbox[left-hand="true"] > richlistitem { padding-left: 50px; } .menu-popup > richlistbox[left-hand="false"] > richlistitem { padding-right: 50px; } /* Additional styles applied to popups for form