toolkit/themes/osx/global/inContentUI.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 %include shared.inc
michael@0 6
michael@0 7 /*
michael@0 8 * The default namespace for this file is XUL. Be sure to prefix rules that
michael@0 9 * are applicable to both XUL and HTML with '*|'.
michael@0 10 */
michael@0 11 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 12 @namespace html url("http://www.w3.org/1999/xhtml");
michael@0 13
michael@0 14 /* Page background */
michael@0 15 *|*:root {
michael@0 16 -moz-appearance: none;
michael@0 17 padding: 18px;
michael@0 18 background-image: /* Texture */
michael@0 19 url("chrome://global/skin/inContentUI/background-texture.png"),
michael@0 20 /* Gradient */
michael@0 21 linear-gradient(#ADB5C2, #BFC6D1);
michael@0 22 }
michael@0 23
michael@0 24 html|html {
michael@0 25 font: message-box;
michael@0 26 }
michael@0 27
michael@0 28 /* Content */
michael@0 29 *|*.main-content {
michael@0 30 /* Needed to allow the radius to clip the inner content, see bug 595656 */
michael@0 31 overflow: hidden;
michael@0 32 background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.05));
michael@0 33 border: 1px solid rgba(50, 65, 92, 0.4);
michael@0 34 border-radius: 5px;
michael@0 35 }
michael@0 36
michael@0 37 /* Buttons */
michael@0 38 *|button,
michael@0 39 menulist,
michael@0 40 colorpicker[type="button"] {
michael@0 41 -moz-appearance: none;
michael@0 42 padding: 1px 4px;
michael@0 43 min-width: 60px;
michael@0 44 border-radius: 3px;
michael@0 45 border: 1px solid rgba(60,73,97,0.5);
michael@0 46 box-shadow: inset 0 1px rgba(255,255,255,0.25), 0 1px rgba(255,255,255,0.25);
michael@0 47 background-color: transparent;
michael@0 48 background-image: linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.2));
michael@0 49 background-clip: padding-box;
michael@0 50 color: #252F3B;
michael@0 51 text-shadow: @loweredShadow@;
michael@0 52 }
michael@0 53
michael@0 54 button:-moz-focusring > .button-box,
michael@0 55 menulist:-moz-focusring:not([open="true"]) > .menulist-label-box,
michael@0 56 colorpicker[type="button"]:-moz-focusring:not([open="true"]) > .colorpicker-button-colorbox {
michael@0 57 outline: 1px dotted #252F3B;
michael@0 58 }
michael@0 59
michael@0 60 html|button[disabled],
michael@0 61 button[disabled="true"],
michael@0 62 menulist[disabled="true"],
michael@0 63 colorpicker[type="button"][disabled="true"] {
michael@0 64 opacity: 0.8;
michael@0 65 color: #505050;
michael@0 66 }
michael@0 67
michael@0 68 html|button:not([disabled]):active:hover,
michael@0 69 button:not([disabled="true"]):active:hover,
michael@0 70 menulist[open="true"]:not([disabled="true"]),
michael@0 71 colorpicker[type="button"][open="true"]:not([disabled="true"]) {
michael@0 72 box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px rgba(255,255,255,0.25);
michael@0 73 background-image: linear-gradient(rgba(45,54,71,0.3), rgba(45,54,71,0.1));
michael@0 74 border-color: rgba(60,73,97,0.7);
michael@0 75 }
michael@0 76
michael@0 77 menulist {
michael@0 78 -moz-padding-end: 0;
michael@0 79 margin-left: 5px;
michael@0 80 margin-right: 5px;
michael@0 81 }
michael@0 82
michael@0 83 /* Tweak margins so the focus ring is in the right place. */
michael@0 84 menulist > .menulist-label-box {
michael@0 85 -moz-margin-end: 3px;
michael@0 86 margin-top: 1px;
michael@0 87 }
michael@0 88
michael@0 89 menulist > .menulist-label-box > .menulist-label {
michael@0 90 margin-top: 0px !important;
michael@0 91 margin-bottom: 0px !important;
michael@0 92 }
michael@0 93
michael@0 94 menulist > .menulist-dropmarker {
michael@0 95 -moz-appearance: none;
michael@0 96 display: -moz-box;
michael@0 97 background: transparent;
michael@0 98 border: none;
michael@0 99 -moz-border-start: 1px solid rgba(60,73,97,0.5);
michael@0 100 margin-top: -1px;
michael@0 101 margin-bottom: -1px;
michael@0 102 }
michael@0 103
michael@0 104 colorpicker[type="button"] {
michael@0 105 margin: 1px 5px 2px 5px;
michael@0 106 padding: 3px;
michael@0 107 height: 25px;
michael@0 108 }
michael@0 109
michael@0 110 spinbuttons {
michael@0 111 -moz-appearance: none;
michael@0 112 }
michael@0 113
michael@0 114 spinbuttons > .spinbuttons-box > .spinbuttons-button {
michael@0 115 min-width: 12px;
michael@0 116 }
michael@0 117
michael@0 118 .spinbuttons-button > .button-box > .button-text {
michael@0 119 display: none;
michael@0 120 }
michael@0 121
michael@0 122 .spinbuttons-button[disabled="true"] > .button-box > .button-icon {
michael@0 123 opacity: 0.5;
michael@0 124 }
michael@0 125
michael@0 126 spinbuttons > .spinbuttons-box > .spinbuttons-up {
michael@0 127 list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
michael@0 128 border-bottom-width: 0;
michael@0 129 border-bottom-left-radius: 0;
michael@0 130 border-bottom-right-radius: 0;
michael@0 131 }
michael@0 132
michael@0 133 spinbuttons > .spinbuttons-box > .spinbuttons-down {
michael@0 134 list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
michael@0 135 border-top-left-radius: 0;
michael@0 136 border-top-right-radius: 0;
michael@0 137 }

mercurial