mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
672 lines
16 KiB
CSS
672 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>
|
|
* Kantha Kanchiraju <kkanchir@sta.samsung.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 ***** */
|
|
|
|
@import url("chrome://browser/skin/browser-high.css");
|
|
@import url("chrome://browser/skin/browser-low.css");
|
|
|
|
/* browser area -------------------------------------------------- */
|
|
#tile-container {
|
|
background-image: url("chrome://browser/content/checkerboard.png");
|
|
}
|
|
|
|
/* main toolbar (URL bar) -------------------------------------------------- */
|
|
#toolbar-main {
|
|
-moz-appearance: none;
|
|
-moz-box-align: center;
|
|
padding: 1.1mm; /* core spacing */
|
|
border: none;
|
|
}
|
|
|
|
#toolbar-moveable-container {
|
|
display: block;
|
|
}
|
|
|
|
#toolbar-moveable-container[top="0"] {
|
|
position: fixed;
|
|
left: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* main toolbar buttons */
|
|
toolbarbutton.urlbar-button {
|
|
/* space out the buttons a bit horizontally */
|
|
margin-left: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
/* URL bar cap buttons */
|
|
toolbarbutton.urlbar-cap-button {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-width: 0 !important;
|
|
min-height: 0 !important;
|
|
-moz-box-flex: 1;
|
|
}
|
|
|
|
#urlbar-icons[mode="loading"] > #tool-go,
|
|
#urlbar-icons[mode="loading"] > #tool-reload {
|
|
visibility: collapse;
|
|
}
|
|
|
|
#urlbar-icons[mode="view"] > #tool-go,
|
|
#urlbar-icons[mode="view"] > #tool-stop {
|
|
visibility: collapse;
|
|
}
|
|
|
|
#urlbar-icons[mode="edit"] > #tool-reload,
|
|
#urlbar-icons[mode="edit"] > #tool-stop {
|
|
visibility: collapse;
|
|
}
|
|
|
|
/* URL bar ----------------------------------------------------------------- */
|
|
#urlbar-container {
|
|
color: #000;
|
|
-moz-box-align: center;
|
|
}
|
|
|
|
#urlbar-edit {
|
|
-moz-appearance: none !important;
|
|
padding: 0px !important;
|
|
border: none !important;
|
|
color: #000;
|
|
background-color: #fff;
|
|
}
|
|
|
|
/* right toolbar (browser controls) ---------------------------------------- */
|
|
#browser-controls {
|
|
-moz-box-align: start;
|
|
padding: 0 1.1mm; /* core spacing + tiny bit for a rounding issue? */
|
|
border-left: 3px solid #262629; /* keep pixels */
|
|
}
|
|
|
|
toolbarbutton.browser-control-button,
|
|
toolbarbutton.panel-button,
|
|
toolbarbutton.page-button {
|
|
/* space out the buttons a bit vertically */
|
|
margin-bottom: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
/* browser tools panel UI ------------------------------------------------ */
|
|
@media (orientation: landscape) {
|
|
#panel-container {
|
|
-moz-box-orient: horizontal;
|
|
}
|
|
|
|
#panel-controls {
|
|
-moz-box-orient: vertical;
|
|
-moz-box-ordinal-group: 1;
|
|
-moz-box-pack: end;
|
|
}
|
|
|
|
#tool-panel-close {
|
|
-moz-box-ordinal-group: 1000;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) {
|
|
#panel-container {
|
|
-moz-box-orient: vertical;
|
|
}
|
|
|
|
#panel-controls {
|
|
-moz-box-orient: horizontal;
|
|
-moz-box-ordinal-group: 1000;
|
|
-moz-box-pack: start;
|
|
padding-top: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
#tool-panel-close {
|
|
-moz-box-ordinal-group: 1;
|
|
}
|
|
}
|
|
|
|
#panel-controls {
|
|
/* match #browser-controls end padding */
|
|
padding-left: 1.1mm; /* core spacing */
|
|
padding-right: 1.1mm; /* core spacing */
|
|
-moz-box-align: end;
|
|
}
|
|
|
|
.panel-header {
|
|
padding: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
/* addons panel UI ------------------------------------------------------- */
|
|
@media (orientation: landscape) {
|
|
#addons-repo {
|
|
-moz-box-orient: horizontal;
|
|
-moz-box-align: center;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) {
|
|
#addons-repo {
|
|
-moz-box-orient: vertical;
|
|
-moz-box-pack: center;
|
|
}
|
|
|
|
/* let the buttons in a selected addon wrap */
|
|
#addons-list > richlistitem .buttons-box {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
richlistitem[isDisabled="true"] .title {
|
|
color : gray;
|
|
}
|
|
|
|
richlistitem[isDisabled="true"] .normal {
|
|
color : lightgray;
|
|
}
|
|
|
|
richlistitem[isDisabled="true"] image {
|
|
opacity: 0.25;
|
|
}
|
|
|
|
/* downloads panel UI ---------------------------------------------------- */
|
|
.download-retry-failed {
|
|
color: red !important;
|
|
}
|
|
|
|
/* special "no downloads" items */
|
|
#dl-empty-message {
|
|
margin-top: 12mm; /* 2 times row height */
|
|
font-style: italic;
|
|
border-bottom: none;
|
|
}
|
|
|
|
#dl-empty-message:active {
|
|
background-color: white;
|
|
}
|
|
|
|
#dl-empty-message > label {
|
|
text-align: center;
|
|
color: grey;
|
|
}
|
|
|
|
/* console panel UI ------------------------------------------------------ */
|
|
@media (orientation: landscape) {
|
|
#console-filter-warnings,
|
|
#console-filter-messages {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) {
|
|
#console-filter-warnings,
|
|
#console-filter-messages {
|
|
visibility: collapse;
|
|
}
|
|
}
|
|
|
|
/* bookmark list panel UI ------------------------------------------------ */
|
|
#bookmarklist-container {
|
|
padding: 0;
|
|
}
|
|
|
|
#bookmarklist-header {
|
|
-moz-box-align: center;
|
|
padding: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
#bookmark-items {
|
|
-moz-appearance: none !important;
|
|
padding: 0;
|
|
}
|
|
|
|
/* folders navigation row */
|
|
.place-list-parents placelabel {
|
|
visibility: collapse;
|
|
}
|
|
|
|
.place-list-parents placelabel:last-child:not(:only-child) {
|
|
visibility: visible;
|
|
}
|
|
|
|
/* be consistent with the size of placeitem */
|
|
placelabel {
|
|
-moz-box-align: center;
|
|
padding-right: 6mm;
|
|
background: rgb(207,207,207) url(images/arrowup-16.png) no-repeat 98% 50%;
|
|
color: #000;
|
|
min-height: 7.2mm; /* row size */
|
|
}
|
|
|
|
/* folder bookmarks row */
|
|
placeitem[type="folder"] {
|
|
-moz-box-pack: center;
|
|
padding-right: 4mm;
|
|
background: url("images/arrowright-16.png") no-repeat 98% 50%;
|
|
}
|
|
|
|
placelist[ui="manage"] placeitem[type="folder"] {
|
|
background-image: none;
|
|
}
|
|
|
|
placeitem[type="folder"] .bookmark-item-url {
|
|
display: none;
|
|
}
|
|
|
|
/* use a smaller font size for the manage buttons */
|
|
placeitem > .bookmark-manage .button-text {
|
|
font-size: 9pt !important;
|
|
}
|
|
|
|
/* bookmark manage controls */
|
|
placeitem > .bookmark-manage .bookmark-controls {
|
|
padding-top: 0.55mm;
|
|
}
|
|
|
|
/* bookmark popup for star button */
|
|
placeitem[ui="manage"] {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
placeitem[ui="manage"] > .bookmark-manage > image {
|
|
visibility: collapse;
|
|
}
|
|
|
|
.searchengine {
|
|
-moz-box-orient: horizontal;
|
|
min-width: 7.2mm;
|
|
}
|
|
|
|
#autocomplete_navbuttons {
|
|
padding: 0.5mm 0; /* half core spacing & none (autorepeat arrows compensate) */
|
|
min-height: 7.2mm; /* row size */
|
|
-moz-user-focus: ignore;
|
|
}
|
|
|
|
/* same images used for high and low */
|
|
#autocomplete_navbuttons .autorepeatbutton-down {
|
|
list-style-image: url(images/arrowrightdark-16.png);
|
|
}
|
|
|
|
#autocomplete_navbuttons .autorepeatbutton-up {
|
|
list-style-image: url(images/arrowleftdark-16.png);
|
|
}
|
|
|
|
/* force the autorepeat buttons to create a 'padding' when collapsed */
|
|
#autocomplete_navbuttons autorepeatbutton[collapsed="true"],
|
|
#autocomplete_navbuttons autorepeatbutton[disabled="true"] {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.autocomplete-items {
|
|
background-color: white;
|
|
}
|
|
|
|
autocompleteresult,
|
|
placeitem {
|
|
color: black;
|
|
background-color: white;
|
|
padding: 1.25mm 0.5mm;
|
|
border-bottom: 0.05mm solid rgb(207,207,207);
|
|
min-height: 9.2mm; /* row size */
|
|
}
|
|
|
|
autocompleteresult:active,
|
|
placelist placeitem:active:not([selected="true"]),
|
|
.autocompleteresult-selected {
|
|
background-color: #8db8d8;
|
|
}
|
|
|
|
.autocomplete-item-label,
|
|
.bookmark-item-label {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 9pt !important;
|
|
font-weight: normal;
|
|
margin-right: 2mm;
|
|
}
|
|
|
|
.autocomplete-item-label > image,
|
|
.bookmark-item-label > image {
|
|
margin: 0mm 2.5mm 0mm 2mm;
|
|
}
|
|
|
|
.autocomplete-item-label > label,
|
|
.bookmark-item-label > label {
|
|
-moz-margin-start: 1px;
|
|
}
|
|
|
|
.autocomplete-item-label[favorite="true"] {
|
|
padding-right: 30px;
|
|
background: url(images/star-24.png) no-repeat 100%;
|
|
}
|
|
|
|
.autocomplete-item-label:not([tags=""]):after,
|
|
.bookmark-item-label:not([tags=""]):after {
|
|
float: right;
|
|
content: attr(tags);
|
|
font-size: 8pt !important;
|
|
font-weight: lighter;
|
|
padding-top: 1.1mm; /* core spacing */
|
|
margin-left: 2mm;
|
|
}
|
|
|
|
.autocomplete-item-url,
|
|
.bookmark-item-url {
|
|
margin: 0;
|
|
padding: 0;
|
|
color: blue;
|
|
font-size: 8pt !important;
|
|
margin-right: 2mm;
|
|
margin-left: inherit;
|
|
padding-left: 4.5mm; /* left padding is equal to left+right margin of the autocomplete-item-label > image */
|
|
}
|
|
|
|
/* special "no results" and "all bookmarks" items */
|
|
autocompleteresult.noresults {
|
|
font-style: italic;
|
|
border-bottom: none;
|
|
}
|
|
|
|
autocompleteresult.noresults:active {
|
|
background-color: white;
|
|
}
|
|
|
|
autocompleteresult.noresults > .autocomplete-item-label {
|
|
text-align: center;
|
|
color: grey;
|
|
}
|
|
|
|
autocompleteresult.allbookmarks {
|
|
-moz-box-pack: center;
|
|
background: #E9E9E9 url("images/arrowright-16.png") no-repeat 98% 50%;
|
|
}
|
|
|
|
autocompleteresult.allbookmarks:active,
|
|
autocompleteresult.allbookmarks.autocompleteresult-selected {
|
|
background-color: #8db8d8;
|
|
}
|
|
|
|
autocompleteresult.allbookmarks > .autocomplete-item-label {
|
|
font-size: 9pt !important;
|
|
margin: 0 1.5mm;
|
|
}
|
|
|
|
autocompleteresult.allbookmarks > .autocomplete-item-url {
|
|
display: none;
|
|
}
|
|
|
|
/* Left sidebar (tabs) ---------------------------------------------------- */
|
|
#tabs-container {
|
|
-moz-padding-start: 0.6mm; /* allow the thumbnails to get close to the edge */
|
|
-moz-padding-end: 1.1mm; /* core spacing */
|
|
padding-bottom: 1.1mm; /* core spacing */
|
|
border-right: 3px solid #262629; /* keep pixels */
|
|
}
|
|
|
|
#tabs {
|
|
display: block;
|
|
-moz-column-width: 128px;
|
|
-moz-column-gap: 0;
|
|
-moz-user-focus: ignore;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: transparent;
|
|
}
|
|
|
|
#tabs-controls {
|
|
margin-top: 1.1mm; /* core spacing */
|
|
-moz-box-pack: start;
|
|
}
|
|
|
|
box[type="documenttab"] .documenttab-canvas {
|
|
background-color: white;
|
|
}
|
|
|
|
box[type="documenttab"]:only-child .documenttab-close {
|
|
display: none;
|
|
}
|
|
|
|
/* bookmark editor ------------------------------------------------------- */
|
|
#bookmark-container {
|
|
padding: 1.1mm; /* core spacing */
|
|
background-image: url("chrome://browser/skin/images/panel-shadow.png");
|
|
background-repeat: repeat-x;
|
|
-moz-box-shadow: black 0 0.25mm 0.25mm;
|
|
}
|
|
|
|
#bookmark-form {
|
|
padding: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
#bookmark-form .bookmark-controls {
|
|
display: none;
|
|
}
|
|
|
|
/* Identity popup -------------------------------------------------------- */
|
|
#identity-container {
|
|
background-image: url("chrome://browser/skin/images/panel-shadow.png");
|
|
background-repeat: repeat-x;
|
|
-moz-box-shadow: black 0 0.25mm 0.25mm;
|
|
}
|
|
|
|
#identity-popup-container {
|
|
padding: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
/* Popup Body Text */
|
|
#identity-popup-content-box {
|
|
-moz-padding-start: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
/* let the text flow into a second row, if needed */
|
|
#identity-popup-runBy-box {
|
|
display: block;
|
|
}
|
|
|
|
#identity-popup-content-box.unknownIdentity > hbox > #identity-popup-connectedToLabel,
|
|
#identity-popup-content-box.unknownIdentity > hbox > #identity-popup-runByLabel,
|
|
#identity-popup-content-box.unknownIdentity > hbox > #identity-popup-content-host,
|
|
#identity-popup-content-box.unknownIdentity > hbox > #identity-popup-content-owner,
|
|
#identity-popup-content-box.verifiedIdentity > hbox > #identity-popup-connectedToLabel2,
|
|
#identity-popup-content-box.verifiedDomain > hbox > #identity-popup-connectedToLabel2 {
|
|
display: none;
|
|
}
|
|
|
|
#identity-popup-content-box > hbox > description,
|
|
#identity-popup-content-box > hbox > label {
|
|
font-size: 9pt !important;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
#identity-popup-encryption-label,
|
|
#identity-popup-content-verifier {
|
|
font-size: 8pt !important;
|
|
}
|
|
|
|
#identity-popup-content-host,
|
|
#identity-popup-content-owner {
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* search popup ---------------------------------------------------------- */
|
|
#search-container {
|
|
border: 0.2mm solid transparent;
|
|
-moz-border-top-colors: #212429 #52555a;
|
|
padding: 1.1mm; /* core spacing */
|
|
margin-top: 1.1mm; /* core spacing */
|
|
}
|
|
|
|
#search-engine-label-add {
|
|
font-size: 80%;
|
|
}
|
|
|
|
#search-buttons,
|
|
.search-engine-button {
|
|
-moz-user-focus: ignore;
|
|
}
|
|
|
|
/* Preferences window ---------------------------------------------------- */
|
|
.settings-title {
|
|
font-weight: bold;
|
|
color: black;
|
|
background-color: lightgray;
|
|
margin: 0;
|
|
padding: 0.25mm;
|
|
}
|
|
|
|
/* XXX should be a richlistitem */
|
|
.prefbox {
|
|
padding: 0.25mm 1.1mm;
|
|
border-bottom: 0.05mm solid rgb(207,207,207);
|
|
min-height: 7.2mm; /* row size */
|
|
}
|
|
|
|
.options-box setting:last-child .prefbox {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
/* XXX should be a richlistitem description.title */
|
|
.preftitle {
|
|
font-size: 9pt !important;
|
|
}
|
|
|
|
/* XXX should be a richlistitem description.normal */
|
|
.prefdesc {
|
|
font-size: 8pt !important;
|
|
color: grey;
|
|
background-color: white;
|
|
}
|
|
|
|
/* alerts popup ----------------------------------------------------------- */
|
|
/* not dependent on high and low */
|
|
@media (orientation: landscape) {
|
|
#alerts-container {
|
|
width: 300px;
|
|
}
|
|
}
|
|
|
|
@media (orientation: portrait) {
|
|
#alerts-container {
|
|
width: 200px;
|
|
}
|
|
}
|
|
|
|
#alerts-text {
|
|
font-size: 8pt !important;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* helperapp (save-as) popup ----------------------------------------------- */
|
|
#helperapp-target {
|
|
font-size: 8pt !important;
|
|
}
|
|
|
|
/* form popup -------------------------------------------------------------- */
|
|
#form-helper-container > #select-container > #select-container-inner {
|
|
-moz-border-radius-topleft: 1mm;
|
|
-moz-border-radius-topright: 1mm;
|
|
-moz-border-radius-bottomright: 0;
|
|
-moz-border-radius-bottomleft: 0;
|
|
padding: 0.75mm 0.25mm 0.75mm 0.25mm;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
#form-helper-container > #select-container > #select-container-inner,
|
|
#form-buttons {
|
|
border: 0.25mm solid gray;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
#form-buttons,
|
|
#select-buttons {
|
|
padding: 0.25mm 0.5mm; /* row size & core spacing */
|
|
}
|
|
|
|
#form-buttons > button,
|
|
#select-buttons > button {
|
|
-moz-user-focus: ignore;
|
|
-moz-user-select: none;
|
|
}
|
|
|
|
#form-helper-container #select-buttons {
|
|
display: none;
|
|
}
|
|
|
|
#select-container:not([hidden=true]) + #form-buttons {
|
|
border-top: 0;
|
|
}
|
|
|
|
/* select popup ------------------------------------------------------------ */
|
|
#stack > #select-container {
|
|
padding: 1.5mm;
|
|
}
|
|
|
|
#select-list {
|
|
border: 0.1mm solid gray;
|
|
}
|
|
|
|
#select-list > option {
|
|
color: #000;
|
|
background-color: #fff;
|
|
padding: 5px;
|
|
border-bottom: 1px solid rgb(207,207,207);
|
|
min-height: 7.2mm; /* row size */
|
|
-moz-box-align: center;
|
|
}
|
|
|
|
#select-list > option[selected="true"] {
|
|
background-color: #8db8d8;
|
|
}
|
|
|
|
#select-list > option.optgroup {
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
}
|
|
|
|
#select-list > option.optgroup > image {
|
|
display: none;
|
|
}
|
|
|
|
#select-list > option.in-optgroup {
|
|
-moz-padding-start: 4.4mm;
|
|
}
|
|
|
|
#select-list > option > image {
|
|
min-width: 30px;
|
|
}
|
|
|
|
.modal-block {
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
background-color: rgba(128, 128, 128, 0.5);
|
|
}
|