Wed, 31 Dec 2014 06:09:35 +0100
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 | /* ===== listbox.css ======================================================= |
michael@0 | 6 | == Styles used by XUL listbox-related elements. |
michael@0 | 7 | ======================================================================= */ |
michael@0 | 8 | |
michael@0 | 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 10 | |
michael@0 | 11 | /* ::::: listbox ::::: */ |
michael@0 | 12 | |
michael@0 | 13 | listbox { |
michael@0 | 14 | -moz-appearance: listbox; |
michael@0 | 15 | margin: 2px 4px; |
michael@0 | 16 | border: 2px solid; |
michael@0 | 17 | -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 18 | -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 19 | -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 20 | -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 21 | background-color: -moz-Field; |
michael@0 | 22 | color: -moz-FieldText; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | listbox[disabled="true"] { |
michael@0 | 26 | color: GrayText; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | /* ::::: listitem ::::: */ |
michael@0 | 30 | |
michael@0 | 31 | listitem { |
michael@0 | 32 | border: 1px solid transparent; |
michael@0 | 33 | } |
michael@0 | 34 | |
michael@0 | 35 | listbox:focus > listitem[selected="true"][current="true"] { |
michael@0 | 36 | outline: 1px dotted #F3D982; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | listbox:focus > listitem[current="true"] { |
michael@0 | 40 | outline: 1px dotted Highlight; |
michael@0 | 41 | outline-offset: -1px; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | listitem[selected="true"] { |
michael@0 | 45 | background-color: -moz-cellhighlight; |
michael@0 | 46 | color: -moz-cellhighlighttext; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | listbox:focus > listitem[selected="true"] { |
michael@0 | 50 | background-color: Highlight; |
michael@0 | 51 | color: HighlightText; |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | /* ::::: listheader ::::: */ |
michael@0 | 55 | |
michael@0 | 56 | listheader { |
michael@0 | 57 | -moz-appearance: treeheadercell; |
michael@0 | 58 | -moz-box-align: center; |
michael@0 | 59 | border: 2px solid; |
michael@0 | 60 | -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 61 | -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 62 | -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 63 | -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 64 | background-color: -moz-Dialog; |
michael@0 | 65 | color: -moz-DialogText; |
michael@0 | 66 | padding: 0 4px; |
michael@0 | 67 | } |
michael@0 | 68 | |
michael@0 | 69 | listheader[sortable="true"]:hover:active { |
michael@0 | 70 | border-top: 2px solid; |
michael@0 | 71 | border-right: 1px solid; |
michael@0 | 72 | border-bottom: 1px solid; |
michael@0 | 73 | border-left: 2px solid; |
michael@0 | 74 | -moz-border-top-colors: ThreeDShadow -moz-Dialog; |
michael@0 | 75 | -moz-border-right-colors: ThreeDShadow; |
michael@0 | 76 | -moz-border-bottom-colors: ThreeDShadow; |
michael@0 | 77 | -moz-border-left-colors: ThreeDShadow -moz-Dialog; |
michael@0 | 78 | padding-top: 1px; |
michael@0 | 79 | padding-bottom: 0px; |
michael@0 | 80 | -moz-padding-start: 5px; |
michael@0 | 81 | -moz-padding-end: 4px; |
michael@0 | 82 | } |
michael@0 | 83 | |
michael@0 | 84 | .listheader-icon { |
michael@0 | 85 | -moz-margin-end: 2px; |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | .listheader-label { |
michael@0 | 89 | margin: 0px !important; |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | /* ..... sort direction icon ..... */ |
michael@0 | 93 | |
michael@0 | 94 | .listheader-sortdirection { |
michael@0 | 95 | list-style-image: none; |
michael@0 | 96 | } |
michael@0 | 97 | |
michael@0 | 98 | .listheader-sortdirection[sortDirection="ascending"] { |
michael@0 | 99 | list-style-image: url("chrome://global/skin/tree/sort-asc.png"); |
michael@0 | 100 | } |
michael@0 | 101 | |
michael@0 | 102 | .listheader-sortdirection[sortDirection="ascending"]:-moz-system-metric(windows-classic) { |
michael@0 | 103 | list-style-image: url("chrome://global/skin/tree/sort-asc-classic.png"); |
michael@0 | 104 | } |
michael@0 | 105 | |
michael@0 | 106 | .listheader-sortdirection[sortDirection="descending"] { |
michael@0 | 107 | list-style-image: url("chrome://global/skin/tree/sort-dsc.png"); |
michael@0 | 108 | } |
michael@0 | 109 | |
michael@0 | 110 | .listheader-sortdirection[sortDirection="descending"]:-moz-system-metric(windows-classic) { |
michael@0 | 111 | list-style-image: url("chrome://global/skin/tree/sort-dsc-classic.png"); |
michael@0 | 112 | } |
michael@0 | 113 | |
michael@0 | 114 | /* ::::: listcell ::::: */ |
michael@0 | 115 | |
michael@0 | 116 | .listcell-label { |
michael@0 | 117 | margin: 0px !important; |
michael@0 | 118 | padding-top: 0px; |
michael@0 | 119 | padding-bottom: 1px; |
michael@0 | 120 | -moz-padding-start: 4px; |
michael@0 | 121 | -moz-padding-end: 0px; |
michael@0 | 122 | white-space: nowrap; |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | .listcell-icon { |
michael@0 | 126 | -moz-margin-end: 2px; |
michael@0 | 127 | } |
michael@0 | 128 | |
michael@0 | 129 | .listcell-label[disabled="true"] { |
michael@0 | 130 | color: GrayText; |
michael@0 | 131 | } |
michael@0 | 132 | |
michael@0 | 133 | /* ::::: listcell checkbox ::::: */ |
michael@0 | 134 | |
michael@0 | 135 | .listcell-check { |
michael@0 | 136 | -moz-appearance: checkbox; |
michael@0 | 137 | -moz-box-align: center; |
michael@0 | 138 | margin: 0px 2px; |
michael@0 | 139 | border: 1px solid -moz-DialogText; |
michael@0 | 140 | min-width: 13px; |
michael@0 | 141 | min-height: 13px; |
michael@0 | 142 | background: -moz-Field no-repeat 50% 50%; |
michael@0 | 143 | } |