| 1 | /* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 | /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ |
| 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 6 | |
| 7 | window { |
| 8 | padding: 0; |
| 9 | } |
| 10 | |
| 11 | #body { |
| 12 | /* background: #000000; */ |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Debugger content |
| 17 | */ |
| 18 | |
| 19 | #dbg-content { |
| 20 | padding: 0; |
| 21 | } |
| 22 | |
| 23 | .devtools-side-splitter { |
| 24 | border: none; |
| 25 | } |
| 26 | |
| 27 | #scripts { |
| 28 | max-width: 350px; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * This hardcoded width likely due to a toolkit Windows specific bug. |
| 33 | * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 |
| 34 | */ |
| 35 | #scripts-search { |
| 36 | width: 200px; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Lists and headers |
| 41 | */ |
| 42 | |
| 43 | .list-item { |
| 44 | padding: 2px; |
| 45 | } |
| 46 | |
| 47 | .list-item:not(.selected):not(.empty):hover { |
| 48 | /* background: #cddae5; */ |
| 49 | } |
| 50 | |
| 51 | .list-item.selected { |
| 52 | background: #008484; |
| 53 | color: #FFCF00; |
| 54 | } |
| 55 | |
| 56 | .list-item.empty { |
| 57 | color: #8050B0; |
| 58 | /* padding: 4px; */ |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Stack frames |
| 63 | */ |
| 64 | |
| 65 | #stackframes { |
| 66 | /* background-color: white; */ |
| 67 | } |
| 68 | |
| 69 | .dbg-stackframe { |
| 70 | -moz-padding-start: 4px; |
| 71 | -moz-padding-end: 4px; |
| 72 | } |
| 73 | |
| 74 | .dbg-stackframe-name { |
| 75 | -moz-padding-end: 4px; |
| 76 | font-weight: 600; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Breakpoints view |
| 81 | */ |
| 82 | |
| 83 | #breakpoints { |
| 84 | background-color: #000000; |
| 85 | } |
| 86 | |
| 87 | .dbg-breakpoint-info { |
| 88 | font-weight: 600; |
| 89 | } |
| 90 | |
| 91 | .dbg-breakpoint-text { |
| 92 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Properties view |
| 97 | */ |
| 98 | |
| 99 | #variables { |
| 100 | /* background-color: white; */ |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Property element details container |
| 105 | */ |
| 106 | |
| 107 | .details { |
| 108 | -moz-margin-start: 10px; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Scope element |
| 113 | */ |
| 114 | |
| 115 | .scope > .title { |
| 116 | background: #E7ADE7; |
| 117 | border-radius: 5px; |
| 118 | color: #000000; |
| 119 | } |
| 120 | |
| 121 | .scope > .title > .arrow { |
| 122 | margin-top: -2px; |
| 123 | } |
| 124 | |
| 125 | .scope > .title > .name { |
| 126 | padding-top: 2px; |
| 127 | } |
| 128 | |
| 129 | .scope > .details { |
| 130 | -moz-margin-start: 2px; |
| 131 | -moz-margin-end: 2px; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Variable element |
| 136 | */ |
| 137 | |
| 138 | .variable { |
| 139 | -moz-margin-start: 1px; |
| 140 | -moz-margin-end: 1px; |
| 141 | margin-top: 2px; |
| 142 | border-bottom: 1px dotted #008484; |
| 143 | transition: background 1s ease-in-out; |
| 144 | background: #000000; |
| 145 | } |
| 146 | |
| 147 | .variable[changed] { |
| 148 | transition-duration: 0.4s; |
| 149 | background: #FFCF00; |
| 150 | } |
| 151 | |
| 152 | .variable[added] { |
| 153 | transition-duration: 0.4s; |
| 154 | background: #008484; |
| 155 | } |
| 156 | |
| 157 | .variable > .title > .arrow { |
| 158 | margin-top: -2px; |
| 159 | } |
| 160 | |
| 161 | .variable > .title > .name { |
| 162 | color: #FF9F00; |
| 163 | font-weight: 600; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Property element |
| 168 | */ |
| 169 | |
| 170 | .property > .title > .arrow { |
| 171 | margin-top: -2px; |
| 172 | } |
| 173 | |
| 174 | .property > .title > .key { |
| 175 | color: #E7ADE7; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Non enumerable, configurable and writable variables and properties. |
| 180 | */ |
| 181 | |
| 182 | .property[proto] > .title > .key, |
| 183 | .variable[non-enumerable] > .title > .name, |
| 184 | .property[non-enumerable] > .title > .key { |
| 185 | opacity: 0.5; |
| 186 | } |
| 187 | |
| 188 | .variable[non-configurable] > .title > .name, |
| 189 | .property[non-configurable] > .title > .key { |
| 190 | border-bottom: 1px dashed #9C9CFF; |
| 191 | } |
| 192 | |
| 193 | .variable[non-writable] > .title > .name, |
| 194 | .property[non-writable] > .title > .key { |
| 195 | border-bottom: 1px dashed #FF0000; |
| 196 | } |
| 197 | |
| 198 | .variable[non-writable] > .title:after, |
| 199 | .property[non-writable] > .title:after { |
| 200 | content: " "; |
| 201 | display: inline-block; |
| 202 | width: 16px; |
| 203 | height: 16px; |
| 204 | background: url("chrome://browser/skin/identity-icons-https.png") no-repeat; |
| 205 | opacity: 0.5; |
| 206 | } |
| 207 | |
| 208 | #element-tooltip > label { |
| 209 | margin: 0 2px 0 2px; |
| 210 | } |
| 211 | |
| 212 | #element-tooltip > label[non-enumerable], |
| 213 | #element-tooltip > label[non-configurable], |
| 214 | #element-tooltip > label[non-writable]{ |
| 215 | text-decoration: line-through; |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Property values colors |
| 220 | */ |
| 221 | |
| 222 | .token-undefined { |
| 223 | -moz-padding-start: 6px; |
| 224 | color: #8050B0; |
| 225 | } |
| 226 | |
| 227 | .token-null { |
| 228 | -moz-padding-start: 6px; |
| 229 | color: #008484; |
| 230 | } |
| 231 | |
| 232 | .token-boolean { |
| 233 | -moz-padding-start: 6px; |
| 234 | color: #FFCF00; |
| 235 | } |
| 236 | |
| 237 | .token-number { |
| 238 | -moz-padding-start: 6px; |
| 239 | color: #E7ADE7; |
| 240 | } |
| 241 | |
| 242 | .token-string { |
| 243 | -moz-padding-start: 6px; |
| 244 | color: #9C9CFF; |
| 245 | } |
| 246 | |
| 247 | .token-other { |
| 248 | -moz-padding-start: 6px; |
| 249 | color: #FF9F00; |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Expand/collapse arrow |
| 254 | */ |
| 255 | |
| 256 | .arrow { |
| 257 | width: 9px; |
| 258 | height: 9px; |
| 259 | -moz-margin-start: 5px; |
| 260 | -moz-margin-end: 5px; |
| 261 | margin-top: -2px; |
| 262 | background: url("chrome://global/skin/tree/twisty-closed.gif") center center no-repeat; |
| 263 | } |
| 264 | |
| 265 | .arrow[open] { |
| 266 | background-image: url("chrome://global/skin/tree/twisty-open.gif"); |
| 267 | } |
| 268 | |
| 269 | .scope > .title > .arrow { |
| 270 | background-image: url("chrome://global/skin/tree/twisty-closed-selected.gif"); |
| 271 | } |
| 272 | |
| 273 | .scope > .title > .arrow[open] { |
| 274 | background-image: url("chrome://global/skin/tree/twisty-open-selected.gif"); |
| 275 | } |
| 276 | |
| 277 | /** |
| 278 | * Animations |
| 279 | */ |
| 280 | |
| 281 | .details[open][animated] { |
| 282 | -moz-animation-duration: 0.25s; |
| 283 | -moz-animation-name: showblock; |
| 284 | } |
| 285 | |
| 286 | @-moz-keyframes showblock { |
| 287 | from { |
| 288 | opacity: 0; |
| 289 | transform-origin: top; |
| 290 | transform: scaleY(0); |
| 291 | } |
| 292 | |
| 293 | to { |
| 294 | opacity: 1; |
| 295 | transform-origin: top; |
| 296 | transform: scaleY(1); |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * Toolbar Controls |
| 302 | */ |
| 303 | |
| 304 | #resume { |
| 305 | list-style-image: url("chrome://browser/skin/devtools/debugger-play.png"); |
| 306 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 307 | } |
| 308 | |
| 309 | #resume[checked=true], |
| 310 | #resume:hover { |
| 311 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 312 | } |
| 313 | |
| 314 | #step-over { |
| 315 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-over.png"); |
| 316 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 317 | } |
| 318 | #step-over:hover { |
| 319 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 320 | } |
| 321 | |
| 322 | #step-in { |
| 323 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-in.png"); |
| 324 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 325 | } |
| 326 | #step-in:hover { |
| 327 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 328 | } |
| 329 | |
| 330 | #step-out { |
| 331 | list-style-image: url("chrome://browser/skin/devtools/debugger-step-out.png"); |
| 332 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 333 | } |
| 334 | #step-out:hover { |
| 335 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 336 | } |
| 337 | |
| 338 | #debugger-controls > toolbarbutton { |
| 339 | } |
| 340 | |
| 341 | #debugger-controls > toolbarbutton:last-of-type { |
| 342 | } |
| 343 | |
| 344 | #debugger-controls { |
| 345 | } |