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