gecko/mobile/themes/hildon/platform.css

379 lines
11 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: 16.75pt !important;
}
menu,
menuitem {
padding: 0px !important;
margin: 0px !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;
}
textbox[isempty="true"] {
color: gray;
}
/* panels ------------------------------------------------------------------ */
.panel-dark {
color: white;
background-color: #36373b;
}
/* sidebars spacer --------------------------------------------------------- */
.sidebar-spacer {
background-color: #36373b;
}
/* dialog popups ----------------------------------------------------------- */
.dialog-dark {
color: #fff;
background-color: #36373b;
-moz-border-radius: 0 0 2mm 2mm;
padding: 8px;
-moz-box-shadow: black 0 0.5mm 0.5mm;
}
/* buttons ----------------------------------------------------------------- */
.button-text,
.toolbarbutton-text {
font-weight: bold !important;
font-size: 9pt !important;
}
button {
min-width: 12mm !important; /* button size */
min-height: 12mm !important; /* button size */
color: #000;
padding: 0.5mm 1mm;
border-width: 8px !important;
-moz-border-image: url("chrome://browser/skin/images/button-default-64.png") 8 repeat repeat;
-moz-appearance: none !important;
}
button[type="checkbox"][checked="true"],
button:not([disabled="true"]):active:hover {
-moz-border-image: url("chrome://browser/skin/images/button-active-64.png") 8 repeat repeat;
}
button[disabled="true"] {
color: #aaa !important;
}
/* dark buttons ------------------------------------------------------------ */
/*
we set notification buttons here as well, since the style can't be set in
scoped CSS file, like notification.css, when the buttons are added later
*/
button.button-dark,
notification button {
color: #fff !important;
background: transparent !important;
-moz-border-image: url("chrome://browser/skin/images/buttondark-default-64.png") 8 repeat repeat;
}
button.button-dark[type="checkbox"][checked="true"],
button.button-dark:not([disabled="true"]):active:hover,
notification button:not([disabled="true"]):active:hover {
-moz-border-image: url("chrome://browser/skin/images/buttondark-active-64.png") 8 repeat repeat;
}
button.button-dark[disabled="true"] {
color: #ddd !important;
}
/* toolbar buttons --------------------------------------------------------- */
toolbarbutton {
min-width: 17mm !important; /* primary button size */
min-height: 17mm !important; /* primary button size */
-moz-appearance: none !important;
margin: 0;
padding: 0.5mm;
}
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;
}
/* dark buttons ------------------------------------------------------------ */
toolbarbutton.button-dark {
color: #fff;
padding: 0.5mm 1mm;
border-width: 10px;
-moz-border-image: url("chrome://browser/skin/images/toolbarbutton-default-64.png") 10 repeat repeat;
}
toolbarbutton.button-dark[type="checkbox"][checked="true"],
toolbarbutton.button-dark:not([disabled="true"]):active:hover {
-moz-border-image: url("chrome://browser/skin/images/toolbarbutton-active-64.png") 10 repeat repeat;
}
toolbarbutton.button-dark[disabled="true"] {
color: #ddd;
}
toolbarbutton.button-dark[type="checkbox"][checked="true"] {
/* checked overrides */
border: 10px solid transparent !important;
color: #fff !important;
background: none !important;
padding: 0.5mm 1mm !important;
}
/* image buttons ----------------------------------------------------------- */
.button-image {
padding: 0 !important;
background: #36373b !important;
border: none !important;
}
/* radio buttons ----------------------------------------------------------- */
radiogroup {
-moz-box-orient: horizontal;
}
.radio-label {
font-weight: bold !important;
font-size: 9pt !important;
}
radio {
color: #36373b;
min-width: 12mm !important; /* button size */
min-height: 6mm !important;
padding: 1mm !important;
margin: 0;
border-width: 8px;
-moz-box-align: center;
-moz-appearance: none;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-inactive-64.png") 8 repeat repeat;
}
radio .radio-icon, radio .radio-check {
display: none;
}
radio[selected] {
color: #000;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-active-64.png") 8 repeat repeat;
}
radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-inactive-64.png") 8 repeat repeat;
}
radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-active-64.png") 8 repeat repeat;
}
radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggleright-inactive-64.png") 8 repeat repeat;
}
radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleright-active-64.png") 8 repeat repeat;
}
/* checkbox radios --------------------------------------------------------- */
checkbox {
margin: 1px 5px 2px 5px; /* match platform style for buttons */
}
radio.checkbox-radio-on {
-moz-border-image: url("chrome://browser/skin/images/toggleon-inactive-64.png") 8 repeat repeat;
}
radio.checkbox-radio-on[selected] {
color: #fff;
-moz-border-image: url("chrome://browser/skin/images/toggleon-active-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-inactive-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-active-64.png") 8 repeat repeat;
}
radio.checkbox-radio-on:not([selected]) .radio-label-box,
radio.checkbox-radio-off:not([selected]) .radio-label-box {
visibility: hidden;
}
/* dark radios ------------------------------------------------------------- */
.toggle-dark radio {
color: #fff;
-moz-border-image: url("chrome://browser/skin/images/toggledarkmiddle-inactive-64.png") 8 repeat repeat;
}
.toggle-dark:not([disabled=true]) radio:active:hover,
.toggle-dark radio[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkmiddle-active-64.png") 8 repeat repeat;
}
.toggle-dark radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggledarkleft-inactive-64.png") 8 repeat repeat;
}
.toggle-dark:not([disabled=true]) radio:first-child:active:hover,
.toggle-dark radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkleft-active-64.png") 8 repeat repeat;
}
.toggle-dark radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggledarkright-inactive-64.png") 8 repeat repeat;
}
.toggle-dark:not([disabled=true]) radio:last-child:active:hover,
.toggle-dark radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkright-active-64.png") 8 repeat repeat;
}
/* richlistbox ------------------------------------------------------------- */
richlistbox {
margin: 0;
}
richlistitem {
min-height: 14.4mm; /* row size */
padding: 5px;
border-bottom: 1px solid rgb(207,207,207);
}
richlistitem label.title,
richlistitem description.title {
font-size: 80% !important;
}
richlistitem label.normal,
richlistitem description.normal {
color: gray;
font-size: 60% !important;
white-space: pre-wrap;
}
richlistitem label.normal-bold,
richlistitem description.normal-bold {
font-weight: bold;
font-size: 60% !important;
white-space: pre-wrap;
}
richlistitem[selected="true"] {
color: black;
background-color: white;
}
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: 0px;
}
/* colorpicker ------------------------------------------------------------- */
colorpicker > panel {
background-color: #36373b;
}
colorpicker > vbox {
background-color: #36373b;
}
/* textbox ----------------------------------------------------------------- */
.textbox-search-icon {
list-style-image: url("chrome://browser/skin/images/search-glass-30.png");
}
.textbox-search-clear {
list-style-image: url("chrome://browser/skin/images/search-clear-30.png");
}