Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 tree.css |
michael@0 | 6 | %filter substitution |
michael@0 | 7 | %define selectedBorderColor rgb(217,217,217) |
michael@0 | 8 | %define hoverAndFocusBorderColor rgb(125,162,206) |
michael@0 | 9 | %define selectedFocusBorderColor rgb(132,172,221) |
michael@0 | 10 | %define hoverBorderColor rgb(184,214,251) |
michael@0 | 11 | %define whiteOpacityBorderColor rgba(255,255,255,.4) |
michael@0 | 12 | %define whiteOpacityBottomBorderColor rgba(255,255,255,.6) |
michael@0 | 13 | %define selectedGradientColor1 rgba(190,190,190,.1) |
michael@0 | 14 | %define selectedGradientColor2 rgba(190,190,190,.4) |
michael@0 | 15 | %define selectedFocusGradientColor1 rgba(131,183,249,.16) |
michael@0 | 16 | %define selectedFocusGradientColor2 rgba(131,183,249,.375) |
michael@0 | 17 | %define hoverAndCurrentFocusGradientColor1 rgba(131,183,249,.28) |
michael@0 | 18 | %define hoverAndCurrentFocusGradientColor2 rgba(131,183,249,.5) |
michael@0 | 19 | %define hoverGradientColor1 rgba(131,183,249,.05) |
michael@0 | 20 | %define hoverGradientColor2 rgba(131,183,249,.16) |
michael@0 | 21 | |
michael@0 | 22 | /* ::::: twisty ::::: */ |
michael@0 | 23 | |
michael@0 | 24 | treechildren::-moz-tree-indentation { |
michael@0 | 25 | width: 12px; |
michael@0 | 26 | } |
michael@0 | 27 | |
michael@0 | 28 | treechildren::-moz-tree-twisty { |
michael@0 | 29 | -moz-padding-end: 1px; |
michael@0 | 30 | width: 9px; |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | /* |
michael@0 | 34 | Please note that the following RTL icons are only available in Aero themes: |
michael@0 | 35 | * chrome://global/skin/tree/twisty-clsd-hover.png |
michael@0 | 36 | * chrome://global/skin/tree/twisty-open-hover.png |
michael@0 | 37 | * chrome://global/skin/tree/twisty-clsd-rtl.png |
michael@0 | 38 | * chrome://global/skin/tree/twisty-open-rtl.png |
michael@0 | 39 | * chrome://global/skin/tree/twisty-clsd-hover-rtl.png |
michael@0 | 40 | * chrome://global/skin/tree/twisty-open-hover-rtl.png |
michael@0 | 41 | */ |
michael@0 | 42 | treechildren::-moz-tree-twisty(hover) { |
michael@0 | 43 | list-style-image: url("chrome://global/skin/tree/twisty-clsd-hover.png"); |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | treechildren::-moz-tree-twisty(hover, open) { |
michael@0 | 47 | list-style-image: url("chrome://global/skin/tree/twisty-open-hover.png"); |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | treechildren:-moz-locale-dir(rtl)::-moz-tree-twisty { |
michael@0 | 51 | list-style-image: url("chrome://global/skin/tree/twisty-clsd-rtl.png"); |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | treechildren:-moz-locale-dir(rtl)::-moz-tree-twisty(open) { |
michael@0 | 55 | list-style-image: url("chrome://global/skin/tree/twisty-open-rtl.png"); |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | treechildren:-moz-locale-dir(rtl)::-moz-tree-twisty(hover) { |
michael@0 | 59 | list-style-image: url("chrome://global/skin/tree/twisty-clsd-hover-rtl.png"); |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | treechildren:-moz-locale-dir(rtl)::-moz-tree-twisty(hover, open) { |
michael@0 | 63 | list-style-image: url("chrome://global/skin/tree/twisty-open-hover-rtl.png"); |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | @media (-moz-windows-default-theme) { |
michael@0 | 67 | treechildren:not(.autocomplete-treebody)::-moz-tree-row { |
michael@0 | 68 | height: 1.8em; |
michael@0 | 69 | color: -moz-FieldText; |
michael@0 | 70 | -moz-margin-start: 1px; |
michael@0 | 71 | -moz-margin-end: 1px; |
michael@0 | 72 | border-width: 2px; |
michael@0 | 73 | border-color: transparent; |
michael@0 | 74 | border-radius: 3px; |
michael@0 | 75 | background-repeat: no-repeat; |
michael@0 | 76 | background-size: 100% 100%; |
michael@0 | 77 | -moz-outline-radius: 3px; |
michael@0 | 78 | } |
michael@0 | 79 | |
michael@0 | 80 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected) { |
michael@0 | 81 | -moz-border-top-colors: @selectedBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 82 | -moz-border-right-colors: @selectedBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 83 | -moz-border-left-colors: @selectedBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 84 | -moz-border-bottom-colors: @selectedBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 85 | background-image: linear-gradient(@selectedGradientColor1@, @selectedGradientColor2@); |
michael@0 | 86 | background-color: transparent; |
michael@0 | 87 | outline: 1px solid @whiteOpacityBorderColor@; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(current, focus) { |
michael@0 | 91 | border-style: solid; |
michael@0 | 92 | -moz-border-top-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 93 | -moz-border-right-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 94 | -moz-border-left-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 95 | -moz-border-bottom-colors: @hoverAndFocusBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 96 | outline: 1px solid @whiteOpacityBorderColor@; |
michael@0 | 97 | } |
michael@0 | 98 | |
michael@0 | 99 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, focus), |
michael@0 | 100 | treechildren::-moz-tree-row(dropOn) { |
michael@0 | 101 | -moz-border-top-colors: @selectedFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 102 | -moz-border-right-colors: @selectedFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 103 | -moz-border-left-colors: @selectedFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 104 | -moz-border-bottom-colors: @selectedFocusBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 105 | background-image: linear-gradient(@selectedFocusGradientColor1@, @selectedFocusGradientColor2@); |
michael@0 | 106 | background-color: transparent; |
michael@0 | 107 | } |
michael@0 | 108 | |
michael@0 | 109 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, current, focus) { |
michael@0 | 110 | border-style: solid; |
michael@0 | 111 | -moz-border-top-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 112 | -moz-border-right-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 113 | -moz-border-left-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 114 | -moz-border-bottom-colors: @hoverAndFocusBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 115 | background-image: linear-gradient(@hoverAndCurrentFocusGradientColor1@, @hoverAndCurrentFocusGradientColor2@); |
michael@0 | 116 | } |
michael@0 | 117 | |
michael@0 | 118 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(hover) { |
michael@0 | 119 | -moz-border-top-colors: @hoverBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 120 | -moz-border-right-colors: @hoverBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 121 | -moz-border-left-colors: @hoverBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 122 | -moz-border-bottom-colors: @hoverBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 123 | background-image: linear-gradient(@hoverGradientColor1@, @hoverGradientColor2@); |
michael@0 | 124 | outline: 1px solid @whiteOpacityBorderColor@; |
michael@0 | 125 | } |
michael@0 | 126 | |
michael@0 | 127 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(hover, current) { |
michael@0 | 128 | -moz-border-top-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 129 | -moz-border-right-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 130 | -moz-border-left-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 131 | -moz-border-bottom-colors: @hoverAndFocusBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 132 | background-image: linear-gradient(@hoverGradientColor1@, @hoverGradientColor2@); |
michael@0 | 133 | } |
michael@0 | 134 | |
michael@0 | 135 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(hover, selected) { |
michael@0 | 136 | -moz-border-top-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 137 | -moz-border-right-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 138 | -moz-border-left-colors: @hoverAndFocusBorderColor@ @whiteOpacityBorderColor@; |
michael@0 | 139 | -moz-border-bottom-colors: @hoverAndFocusBorderColor@ @whiteOpacityBottomBorderColor@; |
michael@0 | 140 | background-image: linear-gradient(@hoverAndCurrentFocusGradientColor1@, @hoverAndCurrentFocusGradientColor2@); |
michael@0 | 141 | } |
michael@0 | 142 | |
michael@0 | 143 | tree[disabled="true"] > treechildren::-moz-tree-row { |
michael@0 | 144 | background: none; |
michael@0 | 145 | -moz-border-top-colors: transparent; |
michael@0 | 146 | -moz-border-right-colors: transparent; |
michael@0 | 147 | -moz-border-left-colors: transparent; |
michael@0 | 148 | -moz-border-bottom-colors: transparent; |
michael@0 | 149 | } |
michael@0 | 150 | |
michael@0 | 151 | treechildren::-moz-tree-cell(dropOn) { |
michael@0 | 152 | background-image: none; |
michael@0 | 153 | background-color: transparent; |
michael@0 | 154 | border-radius: 0; |
michael@0 | 155 | } |
michael@0 | 156 | |
michael@0 | 157 | treechildren:not(.autocomplete-treebody)::-moz-tree-cell-text { |
michael@0 | 158 | padding-bottom: initial; |
michael@0 | 159 | border-color: transparent; |
michael@0 | 160 | background-color: transparent; |
michael@0 | 161 | } |
michael@0 | 162 | |
michael@0 | 163 | treechildren:not(.autocomplete-treebody)::-moz-tree-cell-text(selected, focus) { |
michael@0 | 164 | color: -moz-DialogText; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | @media (-moz-os-version: windows-win8) { |
michael@0 | 168 | treechildren:not(.autocomplete-treebody)::-moz-tree-row { |
michael@0 | 169 | border-width: 1px; |
michael@0 | 170 | border-radius: 0; |
michael@0 | 171 | -moz-outline-radius: 0; |
michael@0 | 172 | } |
michael@0 | 173 | |
michael@0 | 174 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected) { |
michael@0 | 175 | background-image: linear-gradient(@selectedGradientColor2@, @selectedGradientColor2@); |
michael@0 | 176 | } |
michael@0 | 177 | |
michael@0 | 178 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, focus), |
michael@0 | 179 | treechildren::-moz-tree-row(dropOn) { |
michael@0 | 180 | background-image: linear-gradient(@selectedFocusGradientColor2@, @selectedFocusGradientColor2@); |
michael@0 | 181 | } |
michael@0 | 182 | |
michael@0 | 183 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, current, focus) { |
michael@0 | 184 | background-image: linear-gradient(@hoverAndCurrentFocusGradientColor2@, @hoverAndCurrentFocusGradientColor2@); |
michael@0 | 185 | } |
michael@0 | 186 | |
michael@0 | 187 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(hover) { |
michael@0 | 188 | background-image: linear-gradient(@hoverGradientColor2@, @hoverGradientColor2@); |
michael@0 | 189 | } |
michael@0 | 190 | |
michael@0 | 191 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(hover, current) { |
michael@0 | 192 | background-image: linear-gradient(@hoverGradientColor2@, @hoverGradientColor2@); |
michael@0 | 193 | } |
michael@0 | 194 | |
michael@0 | 195 | treechildren:not(.autocomplete-treebody)::-moz-tree-row(hover, selected) { |
michael@0 | 196 | background-image: linear-gradient(@hoverAndCurrentFocusGradientColor2@, @hoverAndCurrentFocusGradientColor2@); |
michael@0 | 197 | } |
michael@0 | 198 | } |
michael@0 | 199 | } |