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 | /* vim:set ts=2 sw=2 sts=2 et: */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* Generic pane helpers */ |
michael@0 | 7 | |
michael@0 | 8 | .generic-toggled-side-pane { |
michael@0 | 9 | -moz-margin-start: 0 !important; |
michael@0 | 10 | /* Unfortunately, transitions don't work properly with locale-aware properties, |
michael@0 | 11 | so both the left and right margins are set via js, while the start margin |
michael@0 | 12 | is always overridden here. */ |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | .generic-toggled-side-pane[animated] { |
michael@0 | 16 | transition: margin 0.25s ease-in-out; |
michael@0 | 17 | } |
michael@0 | 18 | |
michael@0 | 19 | /* Responsive container */ |
michael@0 | 20 | |
michael@0 | 21 | .devtools-responsive-container { |
michael@0 | 22 | -moz-box-orient: horizontal; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | @media (max-width: 700px) { |
michael@0 | 26 | .devtools-responsive-container { |
michael@0 | 27 | -moz-box-orient: vertical; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | .devtools-responsive-container > .devtools-side-splitter { |
michael@0 | 31 | border-width: 0; |
michael@0 | 32 | border-top-width: 1px; |
michael@0 | 33 | border-top-style: solid; |
michael@0 | 34 | margin: 0; |
michael@0 | 35 | min-height: 3px; |
michael@0 | 36 | height: 3px; |
michael@0 | 37 | margin-bottom: -3px; |
michael@0 | 38 | /* In some edge case the cursor is not changed to n-resize */ |
michael@0 | 39 | cursor: n-resize; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | .devtools-responsive-container > .devtools-sidebar-tabs { |
michael@0 | 43 | min-height: 35vh; |
michael@0 | 44 | max-height: 75vh; |
michael@0 | 45 | } |
michael@0 | 46 | } |
michael@0 | 47 | |
michael@0 | 48 | /* BreacrumbsWidget */ |
michael@0 | 49 | |
michael@0 | 50 | .breadcrumbs-widget-container { |
michael@0 | 51 | -moz-margin-end: 3px; |
michael@0 | 52 | max-height: 25px; /* Set max-height for proper sizing on linux */ |
michael@0 | 53 | height: 25px; /* Set height to prevent starting small waiting for content */ |
michael@0 | 54 | /* A fake 1px-shadow is included in the border-images of the |
michael@0 | 55 | breadcrumbs-widget-items, to match toolbar-buttons style. |
michael@0 | 56 | This negative margin compensates the extra row of pixels created |
michael@0 | 57 | by the shadow.*/ |
michael@0 | 58 | margin-bottom: -1px; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | .scrollbutton-up, |
michael@0 | 62 | .scrollbutton-down { |
michael@0 | 63 | -moz-appearance: none; |
michael@0 | 64 | background: transparent; |
michael@0 | 65 | box-shadow: none; |
michael@0 | 66 | border: none; |
michael@0 | 67 | list-style-image: none; |
michael@0 | 68 | margin: 0; |
michael@0 | 69 | padding: 0; |
michael@0 | 70 | } |
michael@0 | 71 | |
michael@0 | 72 | .scrollbutton-up > .toolbarbutton-icon, |
michael@0 | 73 | .scrollbutton-down > .toolbarbutton-icon { |
michael@0 | 74 | -moz-appearance: none; |
michael@0 | 75 | width: 7px; |
michael@0 | 76 | height: 16px; |
michael@0 | 77 | background-size: 14px 16px; |
michael@0 | 78 | background-position: 0 center; |
michael@0 | 79 | background-repeat: no-repeat; |
michael@0 | 80 | background-image: url("breadcrumbs-scrollbutton.png"); |
michael@0 | 81 | list-style-image: none; |
michael@0 | 82 | margin: 0 8px; |
michael@0 | 83 | padding: 0; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | @media (min-resolution: 2dppx) { |
michael@0 | 87 | .scrollbutton-up > .toolbarbutton-icon, |
michael@0 | 88 | .scrollbutton-down > .toolbarbutton-icon { |
michael@0 | 89 | background-image: url("breadcrumbs-scrollbutton@2x.png"); |
michael@0 | 90 | } |
michael@0 | 91 | } |
michael@0 | 92 | |
michael@0 | 93 | .scrollbutton-up:not([disabled]):active:hover > .toolbarbutton-icon, |
michael@0 | 94 | .scrollbutton-down:not([disabled]):active:hover > .toolbarbutton-icon { |
michael@0 | 95 | background-position: -7px center; |
michael@0 | 96 | } |
michael@0 | 97 | |
michael@0 | 98 | .scrollbutton-up[disabled] > .toolbarbutton-icon, |
michael@0 | 99 | .scrollbutton-down[disabled] > .toolbarbutton-icon { |
michael@0 | 100 | opacity: 0.5; |
michael@0 | 101 | } |
michael@0 | 102 | |
michael@0 | 103 | /* Draw shadows to indicate there is more content 'behind' scrollbuttons. */ |
michael@0 | 104 | .scrollbutton-up:-moz-locale-dir(ltr), |
michael@0 | 105 | .scrollbutton-down:-moz-locale-dir(rtl) { |
michael@0 | 106 | border-right: solid 1px rgba(255, 255, 255, .1); |
michael@0 | 107 | border-left: solid 1px transparent; |
michael@0 | 108 | box-shadow: 3px 0px 3px -3px #181d20; |
michael@0 | 109 | } |
michael@0 | 110 | |
michael@0 | 111 | .scrollbutton-down:-moz-locale-dir(ltr), |
michael@0 | 112 | .scrollbutton-up:-moz-locale-dir(rtl) { |
michael@0 | 113 | border-right: solid 1px transparent; |
michael@0 | 114 | border-left: solid 1px rgba(255, 255, 255, .1); |
michael@0 | 115 | box-shadow: -3px 0px 3px -3px #181d20; |
michael@0 | 116 | } |
michael@0 | 117 | |
michael@0 | 118 | .scrollbutton-up[disabled], |
michael@0 | 119 | .scrollbutton-down[disabled] { |
michael@0 | 120 | box-shadow: none; |
michael@0 | 121 | border-color: transparent; |
michael@0 | 122 | } |
michael@0 | 123 | |
michael@0 | 124 | .scrollbutton-up > .toolbarbutton-icon:-moz-locale-dir(rtl), |
michael@0 | 125 | .scrollbutton-down > .toolbarbutton-icon:-moz-locale-dir(ltr) { |
michael@0 | 126 | transform: scaleX(-1); |
michael@0 | 127 | } |
michael@0 | 128 | |
michael@0 | 129 | /* The breadcrumb separator elements are used as background images with |
michael@0 | 130 | * -moz-element, so we position them offscreen since we don't care about |
michael@0 | 131 | * seeing the original elements. |
michael@0 | 132 | */ |
michael@0 | 133 | .breadcrumb-separator-container { |
michael@0 | 134 | position: fixed; |
michael@0 | 135 | top: -1000px; |
michael@0 | 136 | left: -1000px; |
michael@0 | 137 | } |
michael@0 | 138 | |
michael@0 | 139 | #breadcrumb-separator-before, |
michael@0 | 140 | #breadcrumb-separator-after, |
michael@0 | 141 | #breadcrumb-separator-normal { |
michael@0 | 142 | width: 12px; |
michael@0 | 143 | height: 25px; |
michael@0 | 144 | overflow: hidden; |
michael@0 | 145 | } |
michael@0 | 146 | |
michael@0 | 147 | .theme-dark #breadcrumb-separator-before, |
michael@0 | 148 | .theme-dark #breadcrumb-separator-after:after { |
michael@0 | 149 | background: #1d4f73; /* Select Highlight Blue */ |
michael@0 | 150 | } |
michael@0 | 151 | |
michael@0 | 152 | .theme-dark #breadcrumb-separator-after, |
michael@0 | 153 | .theme-dark #breadcrumb-separator-before:after { |
michael@0 | 154 | background: #343c45; /* Toolbars */ |
michael@0 | 155 | } |
michael@0 | 156 | |
michael@0 | 157 | .theme-light #breadcrumb-separator-before, |
michael@0 | 158 | .theme-light #breadcrumb-separator-after:after { |
michael@0 | 159 | background: #4c9ed9; /* Select Highlight Blue */ |
michael@0 | 160 | } |
michael@0 | 161 | |
michael@0 | 162 | .theme-light #breadcrumb-separator-after, |
michael@0 | 163 | .theme-light #breadcrumb-separator-before:after { |
michael@0 | 164 | background: #f0f1f2; /* Toolbars */ |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | /* This chevron arrow cannot be replicated easily in CSS, so we are using |
michael@0 | 168 | * a background image for it (still keeping it in a separate element so |
michael@0 | 169 | * we can handle RTL support with a CSS transform). |
michael@0 | 170 | */ |
michael@0 | 171 | #breadcrumb-separator-normal { |
michael@0 | 172 | background: url(breadcrumbs-divider@2x.png) no-repeat center right; |
michael@0 | 173 | background-size: 12px 24px; |
michael@0 | 174 | } |
michael@0 | 175 | |
michael@0 | 176 | /* Fake a triangle by rotating a rectangle inside the elements */ |
michael@0 | 177 | #breadcrumb-separator-before:after, |
michael@0 | 178 | #breadcrumb-separator-after:after { |
michael@0 | 179 | content: ""; |
michael@0 | 180 | display: block; |
michael@0 | 181 | width: 25px; |
michael@0 | 182 | height: 25px; |
michael@0 | 183 | transform: translateX(-18px) rotate(45deg); |
michael@0 | 184 | -moz-box-sizing: border-box; |
michael@0 | 185 | } |
michael@0 | 186 | |
michael@0 | 187 | .breadcrumbs-widget-item { |
michael@0 | 188 | background-color: transparent; |
michael@0 | 189 | -moz-appearance: none; |
michael@0 | 190 | min-height: 25px; |
michael@0 | 191 | min-width: 65px; |
michael@0 | 192 | margin: 0; |
michael@0 | 193 | padding: 0 8px 0 20px; |
michael@0 | 194 | border: none; |
michael@0 | 195 | outline: none; |
michael@0 | 196 | color: hsl(210,30%,85%); |
michael@0 | 197 | } |
michael@0 | 198 | |
michael@0 | 199 | .breadcrumbs-widget-item:not([checked]) { |
michael@0 | 200 | background: -moz-element(#breadcrumb-separator-normal) no-repeat center left; |
michael@0 | 201 | } |
michael@0 | 202 | |
michael@0 | 203 | .breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item { |
michael@0 | 204 | background: -moz-element(#breadcrumb-separator-after) no-repeat 0 0; |
michael@0 | 205 | } |
michael@0 | 206 | |
michael@0 | 207 | .breadcrumbs-widget-item[checked] { |
michael@0 | 208 | background: -moz-element(#breadcrumb-separator-before) no-repeat 0 0; |
michael@0 | 209 | } |
michael@0 | 210 | |
michael@0 | 211 | .theme-dark .breadcrumbs-widget-item[checked] { |
michael@0 | 212 | background-color: #1d4f73; /* Select Highlight Blue */ |
michael@0 | 213 | } |
michael@0 | 214 | |
michael@0 | 215 | .theme-light .breadcrumbs-widget-item[checked] { |
michael@0 | 216 | background-color: #4c9ed9; /* Select Highlight Blue */ |
michael@0 | 217 | } |
michael@0 | 218 | |
michael@0 | 219 | .breadcrumbs-widget-item:first-child { |
michael@0 | 220 | background-image: none; |
michael@0 | 221 | } |
michael@0 | 222 | |
michael@0 | 223 | /* RTL support: move the images that were on the left to the right, |
michael@0 | 224 | * and move images that were on the right to the left. |
michael@0 | 225 | */ |
michael@0 | 226 | .breadcrumbs-widget-item:-moz-locale-dir(rtl) { |
michael@0 | 227 | padding: 0 20px 0 8px; |
michael@0 | 228 | } |
michael@0 | 229 | |
michael@0 | 230 | .breadcrumbs-widget-item:-moz-locale-dir(rtl), |
michael@0 | 231 | .breadcrumbs-widget-item[checked] + .breadcrumbs-widget-item:-moz-locale-dir(rtl) { |
michael@0 | 232 | background-position: center right; |
michael@0 | 233 | } |
michael@0 | 234 | |
michael@0 | 235 | #breadcrumb-separator-before:-moz-locale-dir(rtl), |
michael@0 | 236 | #breadcrumb-separator-after:-moz-locale-dir(rtl), |
michael@0 | 237 | #breadcrumb-separator-normal:-moz-locale-dir(rtl) { |
michael@0 | 238 | transform: scaleX(-1); |
michael@0 | 239 | } |
michael@0 | 240 | |
michael@0 | 241 | #breadcrumb-separator-before:-moz-locale-dir(rtl):after, |
michael@0 | 242 | #breadcrumb-separator-after:-moz-locale-dir(rtl):after { |
michael@0 | 243 | transform: translateX(-5px) rotate(45deg); |
michael@0 | 244 | } |
michael@0 | 245 | |
michael@0 | 246 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-id, |
michael@0 | 247 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-tag, |
michael@0 | 248 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-pseudo-classes, |
michael@0 | 249 | .breadcrumbs-widget-item[checked] .breadcrumbs-widget-item-classes { |
michael@0 | 250 | color: #f5f7fa; /* Foreground (Text) - Light */ |
michael@0 | 251 | } |
michael@0 | 252 | |
michael@0 | 253 | .theme-dark .breadcrumbs-widget-item { |
michael@0 | 254 | color: #f5f7fa; /* Foreground (Text) - Light */ |
michael@0 | 255 | } |
michael@0 | 256 | |
michael@0 | 257 | .theme-light .breadcrumbs-widget-item { |
michael@0 | 258 | color: #18191a; /* Foreground (Text) - Dark */ |
michael@0 | 259 | } |
michael@0 | 260 | |
michael@0 | 261 | .theme-dark .breadcrumbs-widget-item-id { |
michael@0 | 262 | color: #b6babf; /* Foreground (Text) - Grey */ |
michael@0 | 263 | } |
michael@0 | 264 | |
michael@0 | 265 | .theme-light .breadcrumbs-widget-item-id { |
michael@0 | 266 | color: #585959; /* Foreground (Text) - Grey */ |
michael@0 | 267 | } |
michael@0 | 268 | |
michael@0 | 269 | .theme-dark .breadcrumbs-widget-item-classes { |
michael@0 | 270 | color: #a9bacb; /* Content (Text) - Light */ |
michael@0 | 271 | } |
michael@0 | 272 | |
michael@0 | 273 | .theme-light .breadcrumbs-widget-item-classes { |
michael@0 | 274 | color: #667380; /* Content (Text) - Dark Grey */ |
michael@0 | 275 | } |
michael@0 | 276 | |
michael@0 | 277 | .theme-dark .breadcrumbs-widget-item-pseudo-classes { |
michael@0 | 278 | color: #d99b28; /* Light Orange */ |
michael@0 | 279 | } |
michael@0 | 280 | |
michael@0 | 281 | .theme-light .breadcrumbs-widget-item-pseudo-classes { |
michael@0 | 282 | color: #d97e00; /* Light Orange */ |
michael@0 | 283 | } |
michael@0 | 284 | |
michael@0 | 285 | .theme-dark .breadcrumbs-widget-item:not([checked]):hover label { |
michael@0 | 286 | color: white; |
michael@0 | 287 | } |
michael@0 | 288 | |
michael@0 | 289 | .theme-light .breadcrumbs-widget-item:not([checked]):hover label { |
michael@0 | 290 | color: black; |
michael@0 | 291 | } |
michael@0 | 292 | |
michael@0 | 293 | /* SimpleListWidget */ |
michael@0 | 294 | |
michael@0 | 295 | .simple-list-widget-container { |
michael@0 | 296 | /* Hack: force hardware acceleration */ |
michael@0 | 297 | transform: translateZ(1px); |
michael@0 | 298 | } |
michael@0 | 299 | |
michael@0 | 300 | .theme-dark .simple-list-widget-item.selected { |
michael@0 | 301 | background-color: #1d4f73; /* Select Highlight Blue */ |
michael@0 | 302 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 303 | } |
michael@0 | 304 | |
michael@0 | 305 | .theme-light .simple-list-widget-item.selected { |
michael@0 | 306 | background-color: #4c9ed9; /* Select Highlight Blue */ |
michael@0 | 307 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 308 | } |
michael@0 | 309 | |
michael@0 | 310 | .theme-dark .simple-list-widget-item:not(.selected):hover { |
michael@0 | 311 | background-color: rgba(255,255,255,.05); |
michael@0 | 312 | } |
michael@0 | 313 | |
michael@0 | 314 | .theme-light .simple-list-widget-item:not(.selected):hover { |
michael@0 | 315 | background-color: rgba(0,0,0,.05); |
michael@0 | 316 | } |
michael@0 | 317 | |
michael@0 | 318 | .simple-list-widget-empty-text, |
michael@0 | 319 | .simple-list-widget-perma-text { |
michael@0 | 320 | padding: 4px 8px; |
michael@0 | 321 | } |
michael@0 | 322 | |
michael@0 | 323 | .theme-dark .simple-list-widget-empty-text, |
michael@0 | 324 | .theme-dark .simple-list-widget-perma-text { |
michael@0 | 325 | color: #b6babf; /* Light foreground text */ |
michael@0 | 326 | } |
michael@0 | 327 | |
michael@0 | 328 | .theme-light .simple-list-widget-empty-text, |
michael@0 | 329 | .theme-light .simple-list-widget-perma-text { |
michael@0 | 330 | color: #585959; /* Grey foreground text */ |
michael@0 | 331 | } |
michael@0 | 332 | |
michael@0 | 333 | /* FastListWidget */ |
michael@0 | 334 | |
michael@0 | 335 | .fast-list-widget-container { |
michael@0 | 336 | /* Hack: force hardware acceleration */ |
michael@0 | 337 | transform: translateZ(1px); |
michael@0 | 338 | } |
michael@0 | 339 | |
michael@0 | 340 | .fast-list-widget-empty-text { |
michael@0 | 341 | padding: 4px 8px; |
michael@0 | 342 | } |
michael@0 | 343 | |
michael@0 | 344 | .theme-dark .fast-list-widget-empty-text { |
michael@0 | 345 | color: #b6babf; /* Light foreground text */ |
michael@0 | 346 | } |
michael@0 | 347 | |
michael@0 | 348 | .theme-light .fast-list-widget-empty-text { |
michael@0 | 349 | color: #585959; /* Grey foreground text */ |
michael@0 | 350 | } |
michael@0 | 351 | |
michael@0 | 352 | /* SideMenuWidget */ |
michael@0 | 353 | |
michael@0 | 354 | %filter substitution |
michael@0 | 355 | %define smw_marginDark #000 |
michael@0 | 356 | %define smw_marginLight #aaa |
michael@0 | 357 | %define smw_itemDarkTopBorder rgba(0,0,0,0.2) |
michael@0 | 358 | %define smw_itemDarkBottomBorder rgba(128,128,128,0.15) |
michael@0 | 359 | %define smw_itemLightTopBorder rgba(128,128,128,0.15) |
michael@0 | 360 | %define smw_itemLightBottomBorder transparent |
michael@0 | 361 | |
michael@0 | 362 | .side-menu-widget-container { |
michael@0 | 363 | /* Hack: force hardware acceleration */ |
michael@0 | 364 | transform: translateZ(1px); |
michael@0 | 365 | } |
michael@0 | 366 | |
michael@0 | 367 | /* SideMenuWidget container */ |
michael@0 | 368 | |
michael@0 | 369 | .theme-dark .side-menu-widget-container, |
michael@0 | 370 | .theme-dark .side-menu-widget-empty-text { |
michael@0 | 371 | background: url(background-noise-toolbar.png), #343c45; /* Toolbars */ |
michael@0 | 372 | } |
michael@0 | 373 | |
michael@0 | 374 | .theme-dark .side-menu-widget-container:-moz-locale-dir(ltr), |
michael@0 | 375 | .theme-dark .side-menu-widget-empty-text:-moz-locale-dir(ltr) { |
michael@0 | 376 | box-shadow: inset -1px 0 0 @smw_marginDark@; |
michael@0 | 377 | } |
michael@0 | 378 | |
michael@0 | 379 | .theme-dark .side-menu-widget-container:-moz-locale-dir(rtl), |
michael@0 | 380 | .theme-dark .side-menu-widget-empty-text:-moz-locale-dir(rtl) { |
michael@0 | 381 | box-shadow: inset 1px 0 0 @smw_marginDark@; |
michael@0 | 382 | } |
michael@0 | 383 | |
michael@0 | 384 | .side-menu-widget-container:-moz-locale-dir(ltr), |
michael@0 | 385 | .side-menu-widget-empty-text:-moz-locale-dir(ltr) { |
michael@0 | 386 | box-shadow: inset -1px 0 0 @smw_marginLight@; |
michael@0 | 387 | } |
michael@0 | 388 | |
michael@0 | 389 | .side-menu-widget-container:-moz-locale-dir(rtl), |
michael@0 | 390 | .side-menu-widget-empty-text:-moz-locale-dir(rtl) { |
michael@0 | 391 | box-shadow: inset 1px 0 0 @smw_marginLight@; |
michael@0 | 392 | } |
michael@0 | 393 | |
michael@0 | 394 | .side-menu-widget-group { |
michael@0 | 395 | /* To allow visibility of the dark margin shadow. */ |
michael@0 | 396 | -moz-margin-end: 1px; |
michael@0 | 397 | } |
michael@0 | 398 | |
michael@0 | 399 | .side-menu-widget-container[with-arrows=true] .side-menu-widget-item { |
michael@0 | 400 | /* To compensate for the arrow image's dark margin. */ |
michael@0 | 401 | -moz-margin-end: -1px; |
michael@0 | 402 | } |
michael@0 | 403 | |
michael@0 | 404 | /* SideMenuWidget groups */ |
michael@0 | 405 | |
michael@0 | 406 | .side-menu-widget-group-title { |
michael@0 | 407 | padding: 4px; |
michael@0 | 408 | } |
michael@0 | 409 | |
michael@0 | 410 | .theme-dark .side-menu-widget-group-title { |
michael@0 | 411 | background-color: #252c33; /* Tab toolbar */ |
michael@0 | 412 | color: #a9bacb; /* Light content text */ |
michael@0 | 413 | } |
michael@0 | 414 | |
michael@0 | 415 | .theme-light .side-menu-widget-group-title { |
michael@0 | 416 | background-color: #ebeced; /* Tab toolbar */ |
michael@0 | 417 | color: #667380; /* Dark grey content text */ |
michael@0 | 418 | } |
michael@0 | 419 | |
michael@0 | 420 | /* SideMenuWidget items */ |
michael@0 | 421 | |
michael@0 | 422 | .side-menu-widget-item { |
michael@0 | 423 | /* To compensate for the top and bottom borders */ |
michael@0 | 424 | margin-top: -1px; |
michael@0 | 425 | margin-bottom: -1px; |
michael@0 | 426 | background-clip: padding-box; |
michael@0 | 427 | } |
michael@0 | 428 | |
michael@0 | 429 | .theme-dark .side-menu-widget-item { |
michael@0 | 430 | border-top: 1px solid @smw_itemDarkTopBorder@; |
michael@0 | 431 | border-bottom: 1px solid @smw_itemDarkBottomBorder@; |
michael@0 | 432 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 433 | } |
michael@0 | 434 | |
michael@0 | 435 | .theme-dark .side-menu-widget-item:last-of-type { |
michael@0 | 436 | box-shadow: inset 0 -1px 0 @smw_itemDarkTopBorder@; |
michael@0 | 437 | } |
michael@0 | 438 | |
michael@0 | 439 | .theme-light .side-menu-widget-item { |
michael@0 | 440 | border-top: 1px solid @smw_itemLightTopBorder@; |
michael@0 | 441 | border-bottom: 1px solid @smw_itemLightBottomBorder@; |
michael@0 | 442 | color: #18191a; /* Dark foreground text */ |
michael@0 | 443 | } |
michael@0 | 444 | |
michael@0 | 445 | .theme-light .side-menu-widget-item:last-of-type { |
michael@0 | 446 | box-shadow: inset 0 -1px 0 @smw_itemLightTopBorder@; |
michael@0 | 447 | } |
michael@0 | 448 | |
michael@0 | 449 | .theme-dark .side-menu-widget-item.selected { |
michael@0 | 450 | background-color: #1d4f73; /* Select Highlight Blue */ |
michael@0 | 451 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 452 | } |
michael@0 | 453 | |
michael@0 | 454 | .theme-light .side-menu-widget-item.selected { |
michael@0 | 455 | background-color: #4c9ed9; /* Select Highlight Blue */ |
michael@0 | 456 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 457 | } |
michael@0 | 458 | |
michael@0 | 459 | .side-menu-widget-item-arrow { |
michael@0 | 460 | -moz-margin-start: -7px; |
michael@0 | 461 | width: 7px; /* The image's width is 7 pixels */ |
michael@0 | 462 | /* Cover the border of the side-menu-widget-item */ |
michael@0 | 463 | margin-top: -1px; |
michael@0 | 464 | margin-bottom: -1px; |
michael@0 | 465 | } |
michael@0 | 466 | |
michael@0 | 467 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow { |
michael@0 | 468 | background-size: auto, 1px 100%; |
michael@0 | 469 | background-repeat: no-repeat; |
michael@0 | 470 | } |
michael@0 | 471 | |
michael@0 | 472 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { |
michael@0 | 473 | background-position: center right, top right; |
michael@0 | 474 | } |
michael@0 | 475 | |
michael@0 | 476 | .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { |
michael@0 | 477 | background-position: center left, top left; |
michael@0 | 478 | } |
michael@0 | 479 | |
michael@0 | 480 | .theme-dark .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { |
michael@0 | 481 | background-image: url(itemArrow-dark-ltr.png), linear-gradient(to right, @smw_marginDark@, @smw_marginDark@); |
michael@0 | 482 | } |
michael@0 | 483 | |
michael@0 | 484 | .theme-dark .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { |
michael@0 | 485 | background-image: url(itemArrow-dark-rtl.png), linear-gradient(to right, @smw_marginDark@, @smw_marginDark@); |
michael@0 | 486 | } |
michael@0 | 487 | |
michael@0 | 488 | .theme-light .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(ltr) { |
michael@0 | 489 | background-image: url(itemArrow-ltr.svg), linear-gradient(to right, @smw_marginLight@, @smw_marginLight@); |
michael@0 | 490 | } |
michael@0 | 491 | |
michael@0 | 492 | .theme-light .side-menu-widget-item.selected > .side-menu-widget-item-arrow:-moz-locale-dir(rtl) { |
michael@0 | 493 | background-image: url(itemArrow-rtl.svg), linear-gradient(to right, @smw_marginLight@, @smw_marginLight@); |
michael@0 | 494 | } |
michael@0 | 495 | |
michael@0 | 496 | /* SideMenuWidget items contents */ |
michael@0 | 497 | |
michael@0 | 498 | .side-menu-widget-item-contents { |
michael@0 | 499 | padding: 4px; |
michael@0 | 500 | /* To avoid having content overlapping the arrow image. */ |
michael@0 | 501 | -moz-padding-end: 8px; |
michael@0 | 502 | } |
michael@0 | 503 | |
michael@0 | 504 | .side-menu-widget-item-other { |
michael@0 | 505 | /* To avoid having content overlapping the arrow image. */ |
michael@0 | 506 | -moz-padding-end: 8px; |
michael@0 | 507 | /* To compensate for the .side-menu-widget-item-contents padding. */ |
michael@0 | 508 | -moz-margin-start: -4px; |
michael@0 | 509 | -moz-margin-end: -8px; |
michael@0 | 510 | } |
michael@0 | 511 | |
michael@0 | 512 | .side-menu-widget-item-other:first-of-type { |
michael@0 | 513 | margin-top: 4px; |
michael@0 | 514 | } |
michael@0 | 515 | |
michael@0 | 516 | .side-menu-widget-item-other:last-of-type { |
michael@0 | 517 | margin-bottom: -4px; |
michael@0 | 518 | } |
michael@0 | 519 | |
michael@0 | 520 | .theme-dark .side-menu-widget-item-other { |
michael@0 | 521 | background: url(background-noise-toolbar.png), rgba(0,0,0,.1); |
michael@0 | 522 | } |
michael@0 | 523 | |
michael@0 | 524 | .theme-light .side-menu-widget-item-other { |
michael@0 | 525 | background: url(background-noise-toolbar.png), rgba(128,128,128,.1); |
michael@0 | 526 | } |
michael@0 | 527 | |
michael@0 | 528 | .theme-dark .side-menu-widget-item.selected .side-menu-widget-item-other { |
michael@0 | 529 | background-color: rgba(0,0,0,.2); /* Darken the selection by 20% */ |
michael@0 | 530 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 531 | } |
michael@0 | 532 | |
michael@0 | 533 | .theme-light .side-menu-widget-item.selected .side-menu-widget-item-other { |
michael@0 | 534 | background-color: rgba(255,255,255,.8); /* Lighten the selection by 20% */ |
michael@0 | 535 | color: #18191a; /* Dark foreground text */ |
michael@0 | 536 | } |
michael@0 | 537 | |
michael@0 | 538 | .theme-dark .side-menu-widget-item.selected .side-menu-widget-item-other.selected { |
michael@0 | 539 | background-color: transparent; |
michael@0 | 540 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 541 | } |
michael@0 | 542 | |
michael@0 | 543 | .theme-light .side-menu-widget-item.selected .side-menu-widget-item-other.selected { |
michael@0 | 544 | background-color: transparent; |
michael@0 | 545 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 546 | } |
michael@0 | 547 | |
michael@0 | 548 | /* SideMenuWidget checkboxes */ |
michael@0 | 549 | |
michael@0 | 550 | .side-menu-widget-group-checkbox { |
michael@0 | 551 | margin: 0; |
michael@0 | 552 | -moz-margin-end: 4px; |
michael@0 | 553 | } |
michael@0 | 554 | |
michael@0 | 555 | .side-menu-widget-item-checkbox { |
michael@0 | 556 | margin: 0; |
michael@0 | 557 | -moz-margin-start: 4px; |
michael@0 | 558 | } |
michael@0 | 559 | |
michael@0 | 560 | /* SideMenuWidget misc */ |
michael@0 | 561 | |
michael@0 | 562 | .side-menu-widget-empty-text { |
michael@0 | 563 | padding: 4px 8px; |
michael@0 | 564 | } |
michael@0 | 565 | |
michael@0 | 566 | .theme-dark .side-menu-widget-empty-text { |
michael@0 | 567 | background: url(background-noise-toolbar.png), #343c45; /* Toolbars */ |
michael@0 | 568 | color: #b6babf; /* Foreground (Text) - Grey */ |
michael@0 | 569 | } |
michael@0 | 570 | |
michael@0 | 571 | .theme-light .side-menu-widget-empty-text { |
michael@0 | 572 | background: #f7f7f7; /* Toolbars */ |
michael@0 | 573 | color: #585959; /* Grey foreground text */ |
michael@0 | 574 | } |
michael@0 | 575 | |
michael@0 | 576 | /* VariablesView */ |
michael@0 | 577 | |
michael@0 | 578 | .variables-view-container { |
michael@0 | 579 | /* Hack: force hardware acceleration */ |
michael@0 | 580 | transform: translateZ(1px); |
michael@0 | 581 | } |
michael@0 | 582 | |
michael@0 | 583 | .variables-view-empty-notice { |
michael@0 | 584 | padding: 2px; |
michael@0 | 585 | } |
michael@0 | 586 | |
michael@0 | 587 | .theme-dark .variables-view-empty-notice { |
michael@0 | 588 | color: #b6babf; /* Foreground (Text) - Grey */ |
michael@0 | 589 | } |
michael@0 | 590 | |
michael@0 | 591 | .theme-light .variables-view-empty-notice { |
michael@0 | 592 | color: #585959; /* Grey foreground text */ |
michael@0 | 593 | } |
michael@0 | 594 | |
michael@0 | 595 | .theme-dark .variables-view-scope:focus > .title, |
michael@0 | 596 | .theme-dark .variable-or-property:focus > .title { |
michael@0 | 597 | background-color: #1d4f73; /* Selection colors */ |
michael@0 | 598 | color: #f5f7fa; |
michael@0 | 599 | } |
michael@0 | 600 | |
michael@0 | 601 | .theme-light .variables-view-scope:focus > .title, |
michael@0 | 602 | .theme-light .variable-or-property:focus > .title { |
michael@0 | 603 | background-color: #4c9ed9; /* Selection colors */ |
michael@0 | 604 | color: #f5f7fa; |
michael@0 | 605 | } |
michael@0 | 606 | |
michael@0 | 607 | .variables-view-scope > .title { |
michael@0 | 608 | border-top-width: 1px; |
michael@0 | 609 | border-top-style: solid; |
michael@0 | 610 | margin-top: -1px; |
michael@0 | 611 | } |
michael@0 | 612 | |
michael@0 | 613 | /* Generic variables traits */ |
michael@0 | 614 | |
michael@0 | 615 | .variables-view-variable:not(:last-child) { |
michael@0 | 616 | border-bottom: 1px solid rgba(128, 128, 128, .15); |
michael@0 | 617 | } |
michael@0 | 618 | |
michael@0 | 619 | .variables-view-variable > .title > .name { |
michael@0 | 620 | font-weight: 600; |
michael@0 | 621 | } |
michael@0 | 622 | |
michael@0 | 623 | /* Generic variables *and* properties traits */ |
michael@0 | 624 | |
michael@0 | 625 | .variable-or-property:focus > .title > label { |
michael@0 | 626 | color: inherit !important; |
michael@0 | 627 | } |
michael@0 | 628 | |
michael@0 | 629 | .variable-or-property > .title > .arrow { |
michael@0 | 630 | -moz-margin-start: 3px; |
michael@0 | 631 | } |
michael@0 | 632 | |
michael@0 | 633 | .variable-or-property:not([untitled]) > .variables-view-element-details { |
michael@0 | 634 | -moz-margin-start: 7px; |
michael@0 | 635 | } |
michael@0 | 636 | |
michael@0 | 637 | /* Traits applied when variables or properties are changed or overridden */ |
michael@0 | 638 | |
michael@0 | 639 | .variable-or-property:not([overridden]) { |
michael@0 | 640 | transition: background 1s ease-in-out; |
michael@0 | 641 | } |
michael@0 | 642 | |
michael@0 | 643 | .variable-or-property:not([overridden])[changed] { |
michael@0 | 644 | transition-duration: .4s; |
michael@0 | 645 | } |
michael@0 | 646 | |
michael@0 | 647 | .variable-or-property[overridden] { |
michael@0 | 648 | background: rgba(128,128,128,0.05); |
michael@0 | 649 | } |
michael@0 | 650 | |
michael@0 | 651 | .variable-or-property[overridden] .title > label { |
michael@0 | 652 | /* Cross out the title for this variable and all child properties. */ |
michael@0 | 653 | font-style: italic; |
michael@0 | 654 | text-decoration: line-through; |
michael@0 | 655 | border-bottom: none !important; |
michael@0 | 656 | color: rgba(128,128,128,0.9); |
michael@0 | 657 | opacity: 0.7; |
michael@0 | 658 | } |
michael@0 | 659 | |
michael@0 | 660 | /* Traits applied when variables or properties are editable */ |
michael@0 | 661 | |
michael@0 | 662 | .variable-or-property[editable] > .title > .value { |
michael@0 | 663 | cursor: text; |
michael@0 | 664 | } |
michael@0 | 665 | |
michael@0 | 666 | .variable-or-property[overridden] .title > .value { |
michael@0 | 667 | /* Disallow editing this variable and all child properties. */ |
michael@0 | 668 | pointer-events: none; |
michael@0 | 669 | } |
michael@0 | 670 | |
michael@0 | 671 | /* Custom configurable/enumerable/writable or frozen/sealed/extensible |
michael@0 | 672 | * variables and properties */ |
michael@0 | 673 | |
michael@0 | 674 | .variable-or-property[non-enumerable]:not([self]):not([pseudo-item]) > .title > .name { |
michael@0 | 675 | opacity: 0.6; |
michael@0 | 676 | } |
michael@0 | 677 | |
michael@0 | 678 | .variable-or-property[non-configurable]:not([pseudo-item]) > .title > .name { |
michael@0 | 679 | border-bottom: 1px dashed #99f; |
michael@0 | 680 | } |
michael@0 | 681 | |
michael@0 | 682 | .variable-or-property[non-writable]:not([pseudo-item]) > .title > .name { |
michael@0 | 683 | border-bottom: 1px dashed #f99; |
michael@0 | 684 | } |
michael@0 | 685 | |
michael@0 | 686 | .variable-or-property[safe-getter]:not([pseudo-item]) > .title > .name { |
michael@0 | 687 | border-bottom: 1px dashed #8b0; |
michael@0 | 688 | } |
michael@0 | 689 | |
michael@0 | 690 | .variable-or-property-non-writable-icon { |
michael@0 | 691 | background: url("chrome://browser/skin/devtools/vview-lock.png") no-repeat; |
michael@0 | 692 | width: 16px; |
michael@0 | 693 | height: 16px; |
michael@0 | 694 | } |
michael@0 | 695 | |
michael@0 | 696 | /*@media (min-resolution: 2dppx) { |
michael@0 | 697 | .variable-or-property-non-writable-icon { |
michael@0 | 698 | background-image: url("chrome://browser/skin/identity-icons-https@2x.png"); |
michael@0 | 699 | background-size: 32px; |
michael@0 | 700 | } |
michael@0 | 701 | } |
michael@0 | 702 | */ |
michael@0 | 703 | .variable-or-property-frozen-label, |
michael@0 | 704 | .variable-or-property-sealed-label, |
michael@0 | 705 | .variable-or-property-non-extensible-label { |
michael@0 | 706 | -moz-padding-end: 4px; |
michael@0 | 707 | } |
michael@0 | 708 | |
michael@0 | 709 | .variable-or-property:not(:focus) > .title > .variable-or-property-frozen-label, |
michael@0 | 710 | .variable-or-property:not(:focus) > .title > .variable-or-property-sealed-label, |
michael@0 | 711 | .variable-or-property:not(:focus) > .title > .variable-or-property-non-extensible-label { |
michael@0 | 712 | color: #666; |
michael@0 | 713 | } |
michael@0 | 714 | |
michael@0 | 715 | /* Aligned values */ |
michael@0 | 716 | |
michael@0 | 717 | .variables-view-container[aligned-values] .title > .separator { |
michael@0 | 718 | -moz-box-flex: 1; |
michael@0 | 719 | } |
michael@0 | 720 | |
michael@0 | 721 | .variables-view-container[aligned-values] .title > .value { |
michael@0 | 722 | -moz-box-flex: 0; |
michael@0 | 723 | width: 70vw; |
michael@0 | 724 | } |
michael@0 | 725 | |
michael@0 | 726 | .variables-view-container[aligned-values] .title > .element-value-input { |
michael@0 | 727 | width: calc(70vw - 10px); |
michael@0 | 728 | } |
michael@0 | 729 | |
michael@0 | 730 | /* Actions first */ |
michael@0 | 731 | |
michael@0 | 732 | .variables-view-container[actions-first] .variables-view-delete, |
michael@0 | 733 | .variables-view-container[actions-first] .variables-view-open-inspector, |
michael@0 | 734 | .variables-view-container[actions-first] .variables-view-add-property { |
michael@0 | 735 | -moz-box-ordinal-group: 0; |
michael@0 | 736 | } |
michael@0 | 737 | |
michael@0 | 738 | .variables-view-container[actions-first] [invisible] { |
michael@0 | 739 | visibility: hidden; |
michael@0 | 740 | } |
michael@0 | 741 | |
michael@0 | 742 | /* Variables and properties tooltips */ |
michael@0 | 743 | |
michael@0 | 744 | .variable-or-property > tooltip > label { |
michael@0 | 745 | margin: 0 2px 0 2px; |
michael@0 | 746 | } |
michael@0 | 747 | |
michael@0 | 748 | .variable-or-property[non-enumerable] > tooltip > label.enumerable, |
michael@0 | 749 | .variable-or-property[non-configurable] > tooltip > label.configurable, |
michael@0 | 750 | .variable-or-property[non-writable] > tooltip > label.writable, |
michael@0 | 751 | .variable-or-property[non-extensible] > tooltip > label.extensible { |
michael@0 | 752 | color: #800; |
michael@0 | 753 | text-decoration: line-through; |
michael@0 | 754 | } |
michael@0 | 755 | |
michael@0 | 756 | .variable-or-property[overridden] > tooltip > label.overridden { |
michael@0 | 757 | -moz-padding-start: 4px; |
michael@0 | 758 | -moz-border-start: 1px dotted #000; |
michael@0 | 759 | } |
michael@0 | 760 | |
michael@0 | 761 | .variable-or-property[safe-getter] > tooltip > label.WebIDL { |
michael@0 | 762 | -moz-padding-start: 4px; |
michael@0 | 763 | -moz-border-start: 1px dotted #000; |
michael@0 | 764 | color: #080; |
michael@0 | 765 | } |
michael@0 | 766 | |
michael@0 | 767 | /* Variables and properties editing */ |
michael@0 | 768 | |
michael@0 | 769 | .variables-view-delete { |
michael@0 | 770 | list-style-image: url("chrome://browser/skin/devtools/vview-delete.png"); |
michael@0 | 771 | -moz-image-region: rect(0,16px,16px,0); |
michael@0 | 772 | } |
michael@0 | 773 | |
michael@0 | 774 | .variables-view-delete:hover { |
michael@0 | 775 | -moz-image-region: rect(0,48px,16px,32px); |
michael@0 | 776 | } |
michael@0 | 777 | |
michael@0 | 778 | .variables-view-delete:active { |
michael@0 | 779 | -moz-image-region: rect(0,32px,16px,16px); |
michael@0 | 780 | } |
michael@0 | 781 | |
michael@0 | 782 | .variable-or-property:focus .variables-view-delete { |
michael@0 | 783 | -moz-image-region: rect(0,16px,16px,0); |
michael@0 | 784 | } |
michael@0 | 785 | |
michael@0 | 786 | .variables-view-edit { |
michael@0 | 787 | list-style-image: url("chrome://browser/skin/devtools/vview-edit.png"); |
michael@0 | 788 | -moz-image-region: rect(0,16px,16px,0); |
michael@0 | 789 | cursor: pointer; |
michael@0 | 790 | padding-left: 2px; |
michael@0 | 791 | } |
michael@0 | 792 | |
michael@0 | 793 | .variables-view-edit:hover { |
michael@0 | 794 | -moz-image-region: rect(0,48px,16px,32px); |
michael@0 | 795 | } |
michael@0 | 796 | |
michael@0 | 797 | .variables-view-edit:active { |
michael@0 | 798 | -moz-image-region: rect(0,32px,16px,16px); |
michael@0 | 799 | } |
michael@0 | 800 | |
michael@0 | 801 | .variable-or-property:focus .variables-view-edit { |
michael@0 | 802 | -moz-image-region: rect(0,16px,16px,0); |
michael@0 | 803 | } |
michael@0 | 804 | |
michael@0 | 805 | .variables-view-open-inspector { |
michael@0 | 806 | list-style-image: url("chrome://browser/skin/devtools/vview-open-inspector.png"); |
michael@0 | 807 | -moz-image-region: rect(0,16px,16px,0); |
michael@0 | 808 | cursor: pointer; |
michael@0 | 809 | } |
michael@0 | 810 | |
michael@0 | 811 | .variables-view-open-inspector:hover { |
michael@0 | 812 | -moz-image-region: rect(0,48px,16px,32px); |
michael@0 | 813 | } |
michael@0 | 814 | |
michael@0 | 815 | .variables-view-open-inspector:active { |
michael@0 | 816 | -moz-image-region: rect(0,32px,16px,16px); |
michael@0 | 817 | } |
michael@0 | 818 | |
michael@0 | 819 | .variable-or-property:focus .variables-view-open-inspector { |
michael@0 | 820 | -moz-image-region: rect(0,16px,16px,0); |
michael@0 | 821 | } |
michael@0 | 822 | |
michael@0 | 823 | .variables-view-throbber { |
michael@0 | 824 | background: url("chrome://global/skin/icons/loading_16.png") center no-repeat; |
michael@0 | 825 | width: 16px; |
michael@0 | 826 | height: 16px; |
michael@0 | 827 | } |
michael@0 | 828 | |
michael@0 | 829 | .element-value-input { |
michael@0 | 830 | -moz-margin-start: -2px !important; |
michael@0 | 831 | -moz-margin-end: 2px !important; |
michael@0 | 832 | } |
michael@0 | 833 | |
michael@0 | 834 | .element-name-input { |
michael@0 | 835 | -moz-margin-start: -2px !important; |
michael@0 | 836 | -moz-margin-end: 2px !important; |
michael@0 | 837 | font-weight: 600; |
michael@0 | 838 | } |
michael@0 | 839 | |
michael@0 | 840 | .element-value-input, |
michael@0 | 841 | .element-name-input { |
michael@0 | 842 | border: 1px solid rgba(128, 128, 128, .5) !important; |
michael@0 | 843 | border-radius: 0; |
michael@0 | 844 | color: inherit; |
michael@0 | 845 | } |
michael@0 | 846 | |
michael@0 | 847 | /* Variables and properties searching */ |
michael@0 | 848 | |
michael@0 | 849 | .variables-view-searchinput { |
michael@0 | 850 | min-height: 24px; |
michael@0 | 851 | } |
michael@0 | 852 | |
michael@0 | 853 | .variable-or-property[unmatched] { |
michael@0 | 854 | border: none; |
michael@0 | 855 | margin: 0; |
michael@0 | 856 | } |
michael@0 | 857 | |
michael@0 | 858 | /* Expand/collapse arrow */ |
michael@0 | 859 | |
michael@0 | 860 | .arrow { |
michael@0 | 861 | -moz-appearance: treetwisty; |
michael@0 | 862 | width: 20px; |
michael@0 | 863 | height: 20px; |
michael@0 | 864 | } |
michael@0 | 865 | |
michael@0 | 866 | .arrow[open] { |
michael@0 | 867 | -moz-appearance: treetwistyopen; |
michael@0 | 868 | } |
michael@0 | 869 | |
michael@0 | 870 | .arrow[invisible] { |
michael@0 | 871 | visibility: hidden; |
michael@0 | 872 | } |
michael@0 | 873 | |
michael@0 | 874 | /* Charts */ |
michael@0 | 875 | |
michael@0 | 876 | .generic-chart-container { |
michael@0 | 877 | /* Hack: force hardware acceleration */ |
michael@0 | 878 | transform: translateZ(1px); |
michael@0 | 879 | } |
michael@0 | 880 | |
michael@0 | 881 | .theme-dark .generic-chart-container { |
michael@0 | 882 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 883 | } |
michael@0 | 884 | |
michael@0 | 885 | .theme-light .generic-chart-container { |
michael@0 | 886 | color: #585959; /* Grey foreground text */ |
michael@0 | 887 | } |
michael@0 | 888 | |
michael@0 | 889 | .theme-dark .chart-colored-blob { |
michael@0 | 890 | fill: #a9bacb; /* Light content text */ |
michael@0 | 891 | background: #a9bacb; |
michael@0 | 892 | } |
michael@0 | 893 | |
michael@0 | 894 | .theme-light .chart-colored-blob { |
michael@0 | 895 | fill: #8fa1b2; /* Grey content text */ |
michael@0 | 896 | background: #8fa1b2; |
michael@0 | 897 | } |
michael@0 | 898 | |
michael@0 | 899 | /* Charts: Pie */ |
michael@0 | 900 | |
michael@0 | 901 | .pie-chart-slice { |
michael@0 | 902 | stroke-width: 1px; |
michael@0 | 903 | cursor: pointer; |
michael@0 | 904 | } |
michael@0 | 905 | |
michael@0 | 906 | .theme-dark .pie-chart-slice { |
michael@0 | 907 | stroke: rgba(0,0,0,0.2); |
michael@0 | 908 | } |
michael@0 | 909 | |
michael@0 | 910 | .theme-light .pie-chart-slice { |
michael@0 | 911 | stroke: rgba(255,255,255,0.8); |
michael@0 | 912 | } |
michael@0 | 913 | |
michael@0 | 914 | .theme-dark .pie-chart-slice[largest] { |
michael@0 | 915 | stroke-width: 2px; |
michael@0 | 916 | stroke: #fff; |
michael@0 | 917 | } |
michael@0 | 918 | |
michael@0 | 919 | .theme-light .pie-chart-slice[largest] { |
michael@0 | 920 | stroke: #000; |
michael@0 | 921 | } |
michael@0 | 922 | |
michael@0 | 923 | .pie-chart-label { |
michael@0 | 924 | text-anchor: middle; |
michael@0 | 925 | dominant-baseline: middle; |
michael@0 | 926 | pointer-events: none; |
michael@0 | 927 | } |
michael@0 | 928 | |
michael@0 | 929 | .theme-dark .pie-chart-label { |
michael@0 | 930 | fill: #000; |
michael@0 | 931 | } |
michael@0 | 932 | |
michael@0 | 933 | .theme-light .pie-chart-label { |
michael@0 | 934 | fill: #fff; |
michael@0 | 935 | } |
michael@0 | 936 | |
michael@0 | 937 | .pie-chart-container[slices="1"] > .pie-chart-slice { |
michael@0 | 938 | stroke-width: 0px; |
michael@0 | 939 | } |
michael@0 | 940 | |
michael@0 | 941 | .pie-chart-slice, |
michael@0 | 942 | .pie-chart-label { |
michael@0 | 943 | transition: all 0.1s ease-out; |
michael@0 | 944 | } |
michael@0 | 945 | |
michael@0 | 946 | .pie-chart-slice:not(:hover):not([focused]), |
michael@0 | 947 | .pie-chart-slice:not(:hover):not([focused]) + .pie-chart-label { |
michael@0 | 948 | transform: none !important; |
michael@0 | 949 | } |
michael@0 | 950 | |
michael@0 | 951 | /* Charts: Table */ |
michael@0 | 952 | |
michael@0 | 953 | .table-chart-title { |
michael@0 | 954 | padding-bottom: 10px; |
michael@0 | 955 | font-size: 120%; |
michael@0 | 956 | font-weight: 600; |
michael@0 | 957 | } |
michael@0 | 958 | |
michael@0 | 959 | .table-chart-row { |
michael@0 | 960 | margin-top: 1px; |
michael@0 | 961 | cursor: pointer; |
michael@0 | 962 | } |
michael@0 | 963 | |
michael@0 | 964 | .table-chart-grid:hover > .table-chart-row { |
michael@0 | 965 | transition: opacity 0.1s ease-in-out; |
michael@0 | 966 | } |
michael@0 | 967 | |
michael@0 | 968 | .table-chart-grid:not(:hover) > .table-chart-row { |
michael@0 | 969 | transition: opacity 0.2s ease-in-out; |
michael@0 | 970 | } |
michael@0 | 971 | |
michael@0 | 972 | .generic-chart-container:hover > .table-chart-grid:hover > .table-chart-row:not(:hover), |
michael@0 | 973 | .generic-chart-container:hover ~ .table-chart-container > .table-chart-grid > .table-chart-row:not([focused]) { |
michael@0 | 974 | opacity: 0.4; |
michael@0 | 975 | } |
michael@0 | 976 | |
michael@0 | 977 | .table-chart-row-box { |
michael@0 | 978 | width: 8px; |
michael@0 | 979 | height: 1.5em; |
michael@0 | 980 | -moz-margin-end: 10px; |
michael@0 | 981 | } |
michael@0 | 982 | |
michael@0 | 983 | .table-chart-row-label { |
michael@0 | 984 | width: 8em; |
michael@0 | 985 | -moz-padding-end: 6px; |
michael@0 | 986 | cursor: inherit; |
michael@0 | 987 | } |
michael@0 | 988 | |
michael@0 | 989 | .table-chart-totals { |
michael@0 | 990 | margin-top: 8px; |
michael@0 | 991 | padding-top: 6px; |
michael@0 | 992 | } |
michael@0 | 993 | |
michael@0 | 994 | .theme-dark .table-chart-totals { |
michael@0 | 995 | border-top: 1px solid #b6babf; /* Grey foreground text */ |
michael@0 | 996 | } |
michael@0 | 997 | |
michael@0 | 998 | .theme-light .table-chart-totals { |
michael@0 | 999 | border-top: 1px solid #585959; /* Grey foreground text */ |
michael@0 | 1000 | } |
michael@0 | 1001 | |
michael@0 | 1002 | .table-chart-summary-label { |
michael@0 | 1003 | font-weight: 600; |
michael@0 | 1004 | padding: 1px 0px; |
michael@0 | 1005 | } |
michael@0 | 1006 | |
michael@0 | 1007 | .theme-dark .table-chart-summary-label { |
michael@0 | 1008 | color: #f5f7fa; /* Light foreground text */ |
michael@0 | 1009 | } |
michael@0 | 1010 | |
michael@0 | 1011 | .theme-light .table-chart-summary-label { |
michael@0 | 1012 | color: #18191a; /* Dark foreground text */ |
michael@0 | 1013 | } |
michael@0 | 1014 | |
michael@0 | 1015 | %include ../../shared/devtools/app-manager/manifest-editor.inc.css |