mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
662 lines
16 KiB
CSS
662 lines
16 KiB
CSS
/* ***** BEGIN LICENSE BLOCK *****
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
*
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
* the License. You may obtain a copy of the License at
|
|
* http://www.mozilla.org/MPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
* for the specific language governing rights and limitations under the
|
|
* License.
|
|
*
|
|
* The Original Code is Mozilla Mobile Browser.
|
|
*
|
|
* The Initial Developer of the Original Code is
|
|
* Mozilla Corporation.
|
|
* Portions created by the Initial Developer are Copyright (C) 2008
|
|
* the Initial Developer. All Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
* Mark Finkle <mfinkle@mozilla.com>
|
|
*
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
* the provisions above, a recipient may use your version of this file under
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
*
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
/* global skin ------------------------------------------------------------- */
|
|
@import url(chrome://global/skin/);
|
|
|
|
/* general stuff ------------------------------------------------------------ */
|
|
:root {
|
|
font-family: "Nokia Sans", Tahoma, sans-serif !important;
|
|
font-size: 24px !important;
|
|
}
|
|
|
|
::-moz-selection {
|
|
background-color: #8db8d8;
|
|
color: black;
|
|
}
|
|
|
|
menu,
|
|
menuitem {
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
description,
|
|
label {
|
|
/* force mac to use the same margins as windows and linux */
|
|
-moz-margin-start: 6px;
|
|
-moz-margin-end: 5px;
|
|
}
|
|
|
|
/* Override any OS inverse themes */
|
|
richlistbox,
|
|
textbox {
|
|
color: black;
|
|
background-color: white;
|
|
}
|
|
|
|
#default-tooltip {
|
|
visibility: hidden; /* disabled in Fennec */
|
|
}
|
|
|
|
/* textboxes --------------------------------------------------------------- */
|
|
textbox:not([type="number"]) {
|
|
min-height: 48px;
|
|
border: 2px solid #cacdd5;
|
|
-moz-border-radius: 8px;
|
|
-moz-border-top-colors: -moz-initial;
|
|
-moz-border-right-colors: -moz-initial;
|
|
-moz-border-bottom-colors: -moz-initial;
|
|
-moz-border-left-colors: -moz-initial;
|
|
}
|
|
|
|
textbox[isempty="true"] {
|
|
color: gray;
|
|
}
|
|
|
|
textbox.search-bar {
|
|
border: 2px solid rgba(0,0,0,0.4);
|
|
background-color: #f9f9f9;
|
|
background: url("chrome://browser/skin/images/textbox-bg.png") top left repeat-x;
|
|
}
|
|
|
|
textbox[disabled="true"] {
|
|
background-color: lightgray;
|
|
}
|
|
|
|
/* sidebars spacer --------------------------------------------------------- */
|
|
.sidebar-spacer {
|
|
background-color: #767973;
|
|
}
|
|
|
|
/* prompt dialogs ---------------------------------------------------------- */
|
|
.context-block,
|
|
.modal-block {
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
background-color: rgba(0,0,0,.6);
|
|
padding: 64px;
|
|
}
|
|
|
|
dialog,
|
|
.dialog-dark,
|
|
.panel-arrowcontent {
|
|
background: url("chrome://browser/skin/images/popup-bg-hdpi.png") left bottom repeat-x;
|
|
background-color: white;
|
|
border-radius: 8px;
|
|
box-shadow: black 0 2px 2px, black 0 -1px 2px;
|
|
padding: 8px 0; /* core spacing on top/bottom */
|
|
}
|
|
|
|
dialog > .prompt-header {
|
|
padding: 8px;
|
|
font-size: 18px !important;
|
|
}
|
|
|
|
dialog > .prompt-header > .prompt-title {
|
|
font-size: 24px !important;
|
|
}
|
|
|
|
@media (max-width: 499px) {
|
|
.context-block,
|
|
.modal-block {
|
|
padding: 32px;
|
|
}
|
|
|
|
dialog > .prompt-header {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
dialog > .prompt-header > .prompt-title {
|
|
font-size: 18px !important;
|
|
}
|
|
}
|
|
|
|
dialog > .prompt-header > .prompt-message {
|
|
margin-top: 8px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
dialog > .prompt-header > .button-checkbox {
|
|
margin-left: 24px;
|
|
}
|
|
|
|
/* buttons ----------------------------------------------------------------- */
|
|
.button-text,
|
|
.toolbarbutton-text {
|
|
font-weight: normal;
|
|
font-size: 24px !important;
|
|
}
|
|
|
|
button {
|
|
-moz-appearance: none;
|
|
min-width: 56px !important; /* button size */
|
|
min-height: 56px !important; /* button size */
|
|
color: #000;
|
|
border-radius: 8px;
|
|
margin: 8px;
|
|
padding: 10px;
|
|
background-image: url("chrome://browser/skin/images/button-bg.png");
|
|
background-size: auto 100%;
|
|
border: 1px solid #cacdd5;
|
|
}
|
|
|
|
button[disabled="true"] {
|
|
color: #aaa !important;
|
|
border: 1px solid #cacdd5 !important;
|
|
}
|
|
|
|
button:focus > .button-box {
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
button:not([disabled]):hover:active,
|
|
button:not([disabled])[checked="true"] {
|
|
background-image: url("chrome://browser/skin/images/toggle-off.png");
|
|
}
|
|
|
|
/* Override GTK2 system setting */
|
|
.button-icon {
|
|
display: -moz-initial !important;
|
|
}
|
|
|
|
/* spinbuttons ------------------------------------------------------------- */
|
|
spinbuttons {
|
|
border: none !important;
|
|
}
|
|
|
|
.numberbox-input-box {
|
|
border: 2px solid #cacdd5;
|
|
border-right: 0px solid transparent;
|
|
border-radius: 8px 0px 0px 8px;
|
|
-moz-border-top-colors: -moz-initial;
|
|
-moz-border-bottom-colors: -moz-initial;
|
|
-moz-border-left-colors: -moz-initial;
|
|
}
|
|
|
|
.numberbox-input-box:-moz-locale-dir(rtl) {
|
|
border-radius: 0px 8px 8px 0px;
|
|
border-right: 2px solid #cacdd5;
|
|
border-left: 0px solid transparent;
|
|
}
|
|
|
|
.spinbuttons-box {
|
|
border: none !important;
|
|
-moz-box-orient: horizontal !important;
|
|
-moz-box-direction: reverse !important;
|
|
}
|
|
|
|
.spinbuttons-up .button-icon,
|
|
.spinbuttons-down .button-icon {
|
|
display: block;
|
|
}
|
|
|
|
.spinbuttons-up,
|
|
.spinbuttons-down {
|
|
-moz-appearance: none !important;
|
|
min-width: 56px !important; /* button size */
|
|
min-height: 56px !important; /* button size */
|
|
color: #000;
|
|
margin: 8px;
|
|
padding: 10px;
|
|
border-radius: 0px;
|
|
background-image: url("chrome://browser/skin/images/button-bg.png");
|
|
background-size: auto 100%;
|
|
border: 1px solid #cacdd5;
|
|
list-style-image: url("chrome://browser/skin/images/arrowdown-16.png");
|
|
}
|
|
|
|
.spinbuttons-up:hover:active:not([disabled=true]),
|
|
.spinbuttons-down:hover:active:not([disabled=true]) {
|
|
background-image: url("chrome://browser/skin/images/toggle-on.png");
|
|
}
|
|
|
|
.spinbuttons-up {
|
|
border-radius: 0px 8px 8px 0px;
|
|
list-style-image: url("chrome://browser/skin/images/arrowup-16.png");
|
|
}
|
|
|
|
.spinbuttons-up:-moz-locale-dir(rtl) {
|
|
border-radius: 8px 0px 0px 8px;
|
|
}
|
|
|
|
/* toolbar buttons --------------------------------------------------------- */
|
|
toolbarbutton {
|
|
min-width: 64px !important; /* primary button size */
|
|
min-height: 64px !important; /* primary button size */
|
|
-moz-appearance: none !important;
|
|
margin: 0;
|
|
padding: 2px;
|
|
}
|
|
|
|
toolbarbutton:not(.show-text) .toolbarbutton-text {
|
|
display: none !important;
|
|
}
|
|
|
|
toolbarbutton:not(.show-text) .toolbarbutton-icon,
|
|
toolbarbutton:not([image]) .toolbarbutton-icon,
|
|
toolbarbutton[image=''] .toolbarbutton-icon {
|
|
-moz-margin-end: 0;
|
|
}
|
|
|
|
toolbarbutton:hover,
|
|
toolbarbutton:hover:active,
|
|
toolbarbutton[open="true"] {
|
|
border-color: transparent;
|
|
}
|
|
|
|
/* checkbox buttons ----------------------------------------------------------- */
|
|
.button-checkbox {
|
|
padding: 0 !important;
|
|
background: none !important;
|
|
border: none !important;
|
|
-moz-border-image: none !important;
|
|
}
|
|
|
|
.button-checkbox > .button-image-icon {
|
|
-moz-margin-end: 8px;
|
|
list-style-image: url("chrome://browser/skin/images/check-unselected-30.png");
|
|
}
|
|
|
|
.button-checkbox[checked="true"] > .button-image-icon {
|
|
list-style-image: url("chrome://browser/skin/images/check-selected-30.png");
|
|
}
|
|
|
|
.button-checkbox:hover:active > .button-box,
|
|
.button-checkbox[checked="true"] > .button-box {
|
|
padding-top: 1px;
|
|
padding-bottom: 2px;
|
|
-moz-padding-start: 3px;
|
|
-moz-padding-end: 4px;
|
|
}
|
|
|
|
/* radio buttons ----------------------------------------------------------- */
|
|
radiogroup {
|
|
-moz-box-orient: horizontal;
|
|
}
|
|
|
|
.radio-label {
|
|
font-weight: normal;
|
|
font-size: 24px !important;
|
|
}
|
|
|
|
radio {
|
|
-moz-appearance: none;
|
|
min-width: 56px !important; /* button size */
|
|
min-height: 56px !important; /* button size */
|
|
color: #000;
|
|
padding: 10px;
|
|
margin: 0px;
|
|
background-image: url("chrome://browser/skin/images/button-bg.png");
|
|
background-size: auto 100%;
|
|
border-top: 1px solid #cacdd5;
|
|
border-bottom: 1px solid #cacdd5;
|
|
}
|
|
|
|
radio .radio-icon, radio .radio-check {
|
|
display: none;
|
|
}
|
|
|
|
radio:not([disabled=true]):hover:active,
|
|
radio[selected] {
|
|
color: white;
|
|
background-image: url("chrome://browser/skin/images/toggle-on.png");
|
|
}
|
|
|
|
radio:first-child {
|
|
border-left: 1px solid #cacdd5;
|
|
border-radius: 8px 0px 0px 8px;
|
|
}
|
|
|
|
radio:first-child:-moz-locale-dir(rtl) {
|
|
border-left: none;
|
|
border-right: 1px solid #cacdd5;
|
|
border-radius: 0px 8px 8px 0px;
|
|
}
|
|
|
|
radio:last-child {
|
|
border-right: 1px solid #cacdd5;
|
|
border-radius: 0px 8px 8px 0px;
|
|
}
|
|
|
|
radio:last-child:-moz-locale-dir(rtl) {
|
|
border-right: none;
|
|
border-left: 1px solid #cacdd5;
|
|
border-radius: 8px 0px 0px 8px;
|
|
}
|
|
|
|
radio[focused="true"] > .radio-label-box {
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
/* checkbox radios --------------------------------------------------------- */
|
|
checkbox {
|
|
margin: 1px 5px 2px 5px; /* match platform style for buttons */
|
|
}
|
|
|
|
radio.checkbox-radio-on:not([selected]) {
|
|
border-right: 1px solid #cacdd5;
|
|
}
|
|
|
|
radio.checkbox-radio-on:not([selected]):-moz-locale-dir(rtl) {
|
|
border-left: none;
|
|
border-left: 1px solid #cacdd5;
|
|
}
|
|
|
|
radio.checkbox-radio-off[selected],
|
|
radio.checkbox-radio-off:hover:active {
|
|
background-image: url("chrome://browser/skin/images/toggle-off.png");
|
|
color: black;
|
|
background-repeat: repeat-x;
|
|
}
|
|
|
|
radio.checkbox-radio-on:not([selected]) .radio-label-box,
|
|
radio.checkbox-radio-off:not([selected]) .radio-label-box {
|
|
visibility: hidden;
|
|
}
|
|
|
|
/* richlistbox ------------------------------------------------------------- */
|
|
richlistbox {
|
|
-moz-user-focus: ignore;
|
|
margin: 0;
|
|
}
|
|
|
|
richlistitem {
|
|
-moz-user-focus: ignore;
|
|
min-height: 70px; /* row size */
|
|
padding: 5px;
|
|
border-bottom: 1px solid rgb(207,207,207);
|
|
}
|
|
|
|
richlistitem label.title,
|
|
richlistitem description.title {
|
|
font-size: 24px !important;
|
|
}
|
|
|
|
richlistitem label.normal,
|
|
richlistitem description.normal {
|
|
color: gray;
|
|
font-size: 18px !important;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
richlistitem label.normal-black,
|
|
richlistitem description.normal-black {
|
|
font-size: 18px !important;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
richlistitem label.normal-bold,
|
|
richlistitem description.normal-bold {
|
|
font-weight: bold;
|
|
font-size: 18px !important;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
richlistitem[selected="true"] {
|
|
color: black;
|
|
background-color: white;
|
|
}
|
|
|
|
richlistitem:hover:active:not([selected="true"]):not([nohighlight="true"]) {
|
|
background-color: #8db8d8;
|
|
}
|
|
|
|
richlistitem.section-header,
|
|
richlistitem[selected="true"].section-header {
|
|
font-weight: bold;
|
|
color: #000;
|
|
background-color: lightgray;
|
|
}
|
|
|
|
richlistitem .show-on-select {
|
|
visibility: collapse;
|
|
}
|
|
|
|
richlistitem[selected="true"] .show-on-select {
|
|
visibility: visible;
|
|
}
|
|
|
|
richlistitem .hide-on-select {
|
|
visibility: visible;
|
|
}
|
|
|
|
richlistitem[selected="true"] .hide-on-select {
|
|
visibility: collapse;
|
|
}
|
|
|
|
richlistitem[typeName="message"] {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
/* colorpicker ------------------------------------------------------------- */
|
|
colorpicker > panel {
|
|
background-color: #767973;
|
|
}
|
|
|
|
colorpicker > vbox {
|
|
background-color: #767973;
|
|
}
|
|
|
|
/* textbox ----------------------------------------------------------------- */
|
|
.textbox-search-icon {
|
|
list-style-image: url("chrome://browser/skin/images/search-glass-30.png");
|
|
-moz-image-region: auto;
|
|
}
|
|
|
|
.textbox-search-clear {
|
|
list-style-image: url("chrome://browser/skin/images/search-clear-30.png");
|
|
-moz-image-region: auto;
|
|
}
|
|
|
|
/* menulist ---------------------------------------------------------------- */
|
|
.menulist-label {
|
|
font-family: "Nokia Sans", Tahoma, sans-serif !important;
|
|
font-weight: normal;
|
|
font-size: 24px !important;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
menulist {
|
|
-moz-appearance: none !important;
|
|
-moz-user-focus: ignore;
|
|
min-width: 56px !important; /* button size */
|
|
min-height: 56px !important; /* button size */
|
|
color: #000 !important;
|
|
border-radius: 8px;
|
|
margin: 8px;
|
|
padding: 6px 10px;
|
|
background-image: url("chrome://browser/skin/images/button-bg.png");
|
|
background-size: auto 100%;
|
|
border: 1px solid #cacdd5;
|
|
}
|
|
|
|
menulist[disabled="true"] {
|
|
color: #aaa !important;
|
|
border: 1px solid #cacdd5 !important;
|
|
}
|
|
|
|
menulist:not([disabled="true"]):hover:active {
|
|
background-image: url("chrome://browser/skin/images/toggle-off.png");
|
|
}
|
|
|
|
menulist > dropmarker {
|
|
height: 42px;
|
|
width: 42px;
|
|
margin-left: 5px;
|
|
background-color: transparent; /* for windows */
|
|
border: none; /* for windows */
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
list-style-image: url("chrome://browser/skin/images/dropmarker-hdpi.png");
|
|
-moz-image-region: auto;
|
|
display: block;
|
|
}
|
|
|
|
menulist[disabled="true"] > dropmarker {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* progressmeter ----------------------------------------------------------- */
|
|
progressmeter {
|
|
background-color: #fff;
|
|
padding: 4px;
|
|
height: 32px;
|
|
border: 3px solid #aaa;
|
|
-moz-border-top-colors: -moz-initial;
|
|
-moz-border-right-colors: -moz-initial;
|
|
-moz-border-bottom-colors: -moz-initial;
|
|
-moz-border-left-colors: -moz-initial;
|
|
-moz-border-radius: 8px;
|
|
}
|
|
|
|
.progress-bar {
|
|
background-color: #8db8d8;
|
|
}
|
|
|
|
/* panels / arrowboxes------------------------------------------------------ */
|
|
arrowbox {
|
|
-moz-appearance: none;
|
|
background: transparent !important;
|
|
border: none;
|
|
}
|
|
|
|
.panel-dark {
|
|
color: white;
|
|
background: rgb(94,97,102);
|
|
}
|
|
|
|
.panel-arrow[side="top"] {
|
|
list-style-image: url("chrome://browser/skin/images/arrowbox-up.png");
|
|
margin-bottom: -8px;
|
|
}
|
|
|
|
.panel-arrow[side="bottom"] {
|
|
list-style-image: url("chrome://browser/skin/images/arrowbox-down.png");
|
|
margin-top: -8px;
|
|
}
|
|
|
|
.panel-arrow[side="left"] {
|
|
list-style-image: url("chrome://browser/skin/images/arrowbox-horiz.png");
|
|
margin-right: -8px;
|
|
-moz-transform: scaleX(-1);
|
|
}
|
|
|
|
.panel-arrow[side="right"] {
|
|
list-style-image: url("chrome://browser/skin/images/arrowbox-horiz.png");
|
|
margin-left: -8px;
|
|
}
|
|
|
|
/*.panel-row-header ------------------------------------------------------------ */
|
|
.panel-row-header {
|
|
border-bottom: 4px solid rgb(101,121,227);
|
|
background-color: rgb(94,97,102);
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.panel-row-button {
|
|
-moz-appearance: none;
|
|
background: rgb(94,97,102) url(images/panelrow-default-hdpi.png) no-repeat;
|
|
background-size: 100% 100%;
|
|
color: white;
|
|
border: 0px solid transparent !important;
|
|
-moz-border-start: 1px solid rgba(255,255,255,0.2) !important;
|
|
-moz-border-end: 1px solid rgba(0,0,0,0.2) !important;
|
|
padding-top: 3px !important;
|
|
padding-bottom: 3px !important;
|
|
-moz-padding-start: 2px !important;
|
|
-moz-padding-end: 2px !important;
|
|
-moz-box-flex: 1;
|
|
-moz-user-focus: ignore;
|
|
-moz-user-select: none;
|
|
}
|
|
|
|
.panel-row-button:hover:active {
|
|
background: rgb(94,97,102) url(images/panelrow-active-hdpi.png) no-repeat;
|
|
background-size: 100% 100%;
|
|
}
|
|
|
|
.panel-row-button:first-child {
|
|
-moz-border-start-width: 0 !important;
|
|
}
|
|
|
|
.panel-row-button:last-child {
|
|
-moz-border-end-width: 0 !important;
|
|
}
|
|
|
|
@media (max-width: 499px) {
|
|
.panel-row-button {
|
|
-moz-box-orient: vertical;
|
|
}
|
|
|
|
.panel-row-button .toolbarbutton-text {
|
|
font-size: 16px !important;
|
|
}
|
|
}
|
|
|
|
.panel-row-button .toolbarbutton-text {
|
|
text-align: left;
|
|
text-shadow: rgba(0,0,0,0.3) 0 2px;
|
|
}
|
|
|
|
.panel-row-button .toolbarbutton-text:-moz-locale-dir(rtl) {
|
|
text-align: right;
|
|
}
|
|
|
|
.panel-row-button[disabled="true"] {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.panel-row-button[disabled="true"] .toolbarbutton-icon {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.panel-row-button[disabled="true"] .toolbarbutton-text {
|
|
color: #aaa;
|
|
}
|
|
|
|
.panel-row-button[checked="true"] {
|
|
color: white !important;
|
|
background: rgb(94, 97, 102) url(images/panelrow-selected-hdpi.png) no-repeat !important;
|
|
background-size: 100% 100% !important;
|
|
}
|
|
|
|
.panel-row-button[checked="true"],
|
|
.panel-row-button[disabled="true"] {
|
|
pointer-events: none;
|
|
}
|