toolkit/themes/osx/global/tabbox.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 /*
michael@0 6 The default style of these tabs is that of an NSTabView with tabs at
michael@0 7 the top in the "regular" size. These tabs can be used with or without
michael@0 8 a tabbox element.
michael@0 9 For bottom tabs you should use the "tabs-bottom" class on the tabbox
michael@0 10 or the tabs element. Bottom tabs use a style that's similar to the
michael@0 11 one used in Adium.
michael@0 12 */
michael@0 13
michael@0 14 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 15
michael@0 16 tabbox {
michael@0 17 margin: 0 5px;
michael@0 18 }
michael@0 19
michael@0 20 tabpanels {
michael@0 21 -moz-appearance: tabpanels;
michael@0 22 padding: 33px 15px 15px;
michael@0 23 }
michael@0 24
michael@0 25 tabs {
michael@0 26 -moz-box-align: center;
michael@0 27 font: menu;
michael@0 28 }
michael@0 29
michael@0 30 tabbox > tabs {
michael@0 31 padding: 0 10px;
michael@0 32 margin-bottom: -12px;
michael@0 33 position: relative;
michael@0 34 }
michael@0 35
michael@0 36 tab {
michael@0 37 -moz-appearance: tab;
michael@0 38 }
michael@0 39
michael@0 40 tab:-moz-focusring {
michael@0 41 /* Tab focus rings need to overlay adjacent tabs. */
michael@0 42 position: relative;
michael@0 43 }
michael@0 44
michael@0 45 tab:first-of-type {
michael@0 46 -moz-padding-start: 2px;
michael@0 47 }
michael@0 48
michael@0 49 tab:last-of-type {
michael@0 50 -moz-padding-end: 2px;
michael@0 51 }
michael@0 52
michael@0 53 @media (-moz-mac-lion-theme) {
michael@0 54 tab[selected="true"] {
michael@0 55 color: #FFF;
michael@0 56 text-shadow: rgba(0, 0, 0, 0.4) 0 1px;
michael@0 57 }
michael@0 58 }
michael@0 59
michael@0 60 .tab-middle {
michael@0 61 padding: 1px 6px 2px;
michael@0 62 }
michael@0 63
michael@0 64 .tabs-left,
michael@0 65 .tabs-right {
michael@0 66 -moz-box-flex: 1;
michael@0 67 }
michael@0 68
michael@0 69 /* Tabs at the bottom
michael@0 70 * These tabs are smaller, left aligned and don't extend into the tabpanel.
michael@0 71 */
michael@0 72
michael@0 73 tabbox.tabs-bottom > tabpanels {
michael@0 74 padding: 10px;
michael@0 75 }
michael@0 76
michael@0 77 tabbox.tabs-bottom > tabs,
michael@0 78 tabs.tabs-bottom {
michael@0 79 background-color: rgba(0, 0, 0, 0.1);
michael@0 80 padding: 0;
michael@0 81 margin: 0;
michael@0 82 border-top: 2px solid;
michael@0 83 -moz-border-top-colors: #888 rgba(0, 0, 0, 0.08);
michael@0 84 -moz-box-align: start;
michael@0 85 font: message-box;
michael@0 86 }
michael@0 87
michael@0 88 tabbox.tabs-bottom > tabs > .tabs-left,
michael@0 89 tabs.tabs-bottom > .tabs-left {
michael@0 90 -moz-box-flex: 0;
michael@0 91 }
michael@0 92
michael@0 93 tabbox.tabs-bottom > tabs > tab,
michael@0 94 tabs.tabs-bottom > tab {
michael@0 95 -moz-appearance: none;
michael@0 96 margin: -1px 0 0;
michael@0 97 padding: 0 0 2px 0;
michael@0 98 position: relative;
michael@0 99 -moz-border-end: 1px solid rgba(0, 0, 0, 0.19);
michael@0 100 }
michael@0 101
michael@0 102 tabbox.tabs-bottom > tabs > tab > .tab-middle,
michael@0 103 tabs.tabs-bottom > tab > .tab-middle {
michael@0 104 padding: 1px 2px 0 2px;
michael@0 105 }
michael@0 106
michael@0 107 tabbox.tabs-bottom > tabs > tab:not([selected=true]):hover,
michael@0 108 tabs.tabs-bottom > tab:not([selected=true]):hover {
michael@0 109 background-color: rgba(0, 0, 0, 0.1);
michael@0 110 -moz-border-end-color: rgba(0, 0, 0, 0.1);
michael@0 111 }
michael@0 112
michael@0 113 tabbox.tabs-bottom > tabs > tab[selected=true],
michael@0 114 tabs.tabs-bottom > tab[selected=true] {
michael@0 115 color: #000;
michael@0 116 text-shadow: none;
michael@0 117 border: solid #888;
michael@0 118 border-width: 0 2px 2px;
michael@0 119 border-radius: 2px;
michael@0 120 -moz-border-left-colors: rgba(0, 0, 0, 0.08) #888;
michael@0 121 -moz-border-right-colors: rgba(0, 0, 0, 0.08) #888;
michael@0 122 -moz-border-bottom-colors: rgba(0, 0, 0, 0.08) #888;
michael@0 123 -moz-margin-end: -1px;
michael@0 124 margin-top: -2px;
michael@0 125 margin-bottom: 1px;
michael@0 126 padding: 0;
michael@0 127 }
michael@0 128
michael@0 129 tabbox.tabs-bottom > tabs > tab[beforeselected=true],
michael@0 130 tabs.tabs-bottom > tab[beforeselected=true] {
michael@0 131 -moz-border-end-color: transparent;
michael@0 132 -moz-margin-end: -2px;
michael@0 133 }
michael@0 134
michael@0 135 tabbox.tabs-bottom > tabs > tab:first-of-type:not([selected=true]),
michael@0 136 tabs.tabs-bottom > tab:first-of-type:not([selected=true]) {
michael@0 137 -moz-border-start: 4px solid transparent;
michael@0 138 }
michael@0 139
michael@0 140 tabbox.tabs-bottom > tabs > tab:first-of-type[selected=true],
michael@0 141 tabs.tabs-bottom > tab:first-of-type[selected=true] {
michael@0 142 -moz-margin-start: 2px;
michael@0 143 }
michael@0 144
michael@0 145 tabbox.tabs-bottom,
michael@0 146 tabbox.tabs-bottom > tabpanels,
michael@0 147 tabbox.tabs-bottom > tabs > tab[selected=true] > .tab-middle,
michael@0 148 tabs.tabs-bottom > tab[selected=true] > .tab-middle {
michael@0 149 -moz-appearance: dialog;
michael@0 150 }

mercurial