browser/themes/shared/devtools/app-manager/projects.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 margin: 0;
michael@0 7 padding: 0;
michael@0 8 box-sizing: border-box;
michael@0 9 font-size: 0.9rem;
michael@0 10 }
michael@0 11
michael@0 12 html, body {
michael@0 13 height: 100%;
michael@0 14 }
michael@0 15
michael@0 16 template {
michael@0 17 display: none;
michael@0 18 }
michael@0 19
michael@0 20 body {
michael@0 21 display: flex;
michael@0 22 color: #333;
michael@0 23 background-color: white;
michael@0 24 font-family: Lucida Grande, Helvetica, Helvetica Neue, sans-serif;
michael@0 25 overflow: hidden;
michael@0 26 }
michael@0 27
michael@0 28 body:not(.connected) button.device-action {
michael@0 29 display: none;
michael@0 30 }
michael@0 31
michael@0 32 strong {
michael@0 33 color: #111;
michael@0 34 }
michael@0 35
michael@0 36
michael@0 37 /********* SIDEBAR ***********/
michael@0 38
michael@0 39
michael@0 40
michael@0 41 #sidebar {
michael@0 42 display: flex;
michael@0 43 flex-direction: column;
michael@0 44 flex: 0 0 350px;
michael@0 45 overflow: hidden;
michael@0 46 z-index: 100;
michael@0 47 background-color: #E9EAEB;
michael@0 48 position: relative;
michael@0 49 box-shadow: 3px 0 1.5px rgba(0,0,0,0.08);
michael@0 50 }
michael@0 51
michael@0 52 #project-list {
michael@0 53 height: 100%;
michael@0 54 overflow: auto;
michael@0 55 }
michael@0 56
michael@0 57 #project-list:not([projects-count="0"]) > #no-project {
michael@0 58 display: none;
michael@0 59 }
michael@0 60
michael@0 61 #no-project {
michael@0 62 padding: 100px 20px 0;
michael@0 63 font-weight: bold;
michael@0 64 color: #BBB;
michael@0 65 font-size: 22px;
michael@0 66 }
michael@0 67
michael@0 68
michael@0 69 /********* PROJECT MENU ***********/
michael@0 70
michael@0 71
michael@0 72 .project-item {
michael@0 73 padding: 10px 0;
michael@0 74 background-color: #F0F1F2;
michael@0 75 box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
michael@0 76 color: #666;
michael@0 77 line-height: 120%;
michael@0 78 cursor: pointer;
michael@0 79 display: flex;
michael@0 80 position: relative;
michael@0 81 }
michael@0 82
michael@0 83 .project-item:hover {
michael@0 84 background-color: #EEE;
michael@0 85 }
michael@0 86
michael@0 87 .project-item > * {
michael@0 88 flex-shrink: 0;
michael@0 89 }
michael@0 90
michael@0 91 .project-item.selected {
michael@0 92 background-color: #46AFE3;
michael@0 93 }
michael@0 94
michael@0 95 .project-item.selected strong {
michael@0 96 color: #FFF;
michael@0 97 }
michael@0 98
michael@0 99 .project-item.selected p,
michael@0 100 .project-item.selected span {
michael@0 101 color: #C1DCF0;
michael@0 102 }
michael@0 103
michael@0 104 .button-remove {
michael@0 105 background-image: url('remove.svg');
michael@0 106 background-size: 20px;
michael@0 107 width: 20px;
michael@0 108 height: 20px;
michael@0 109 position: absolute;
michael@0 110 right: 5px;
michael@0 111 bottom: 5px;
michael@0 112 visibility: hidden;
michael@0 113 opacity: 0.5;
michael@0 114 }
michael@0 115
michael@0 116 .project-item:hover .button-remove {
michael@0 117 visibility: visible;
michael@0 118 }
michael@0 119
michael@0 120 .project-item-status {
michael@0 121 width: 6px;
michael@0 122 margin: -10px 0;
michael@0 123 border-right: 1px solid rgba(0,0,0,0.1);
michael@0 124 box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.2), inset 0 -1px 0 0 rgba(0,0,0,0.2);
michael@0 125 }
michael@0 126
michael@0 127 .project-item-status[status="valid"] {
michael@0 128 background-color: #70BF53;
michael@0 129 }
michael@0 130
michael@0 131 .project-item-status[status~="warning"] {
michael@0 132 background-color: #F2B33F;
michael@0 133 }
michael@0 134
michael@0 135 .project-item-status[status~="error"] {
michael@0 136 background-color: #ED4C62;
michael@0 137 }
michael@0 138
michael@0 139 .project-item-icon {
michael@0 140 width: 32px;
michael@0 141 height: 32px;
michael@0 142 margin: 0 10px;
michael@0 143 }
michael@0 144
michael@0 145 .project-item-meta {
michael@0 146 flex-grow: 1;
michael@0 147 flex-shrink: 1 !important;
michael@0 148 }
michael@0 149
michael@0 150 .project-item-type {
michael@0 151 font-size: 10px;
michael@0 152 line-height: 20px;
michael@0 153 float: right;
michael@0 154 padding-right: 10px;
michael@0 155 color: #7597B9;
michael@0 156 text-transform: uppercase;
michael@0 157 }
michael@0 158
michael@0 159 .project-item-description {
michael@0 160 color: #888;
michael@0 161 font-size: 90%;
michael@0 162 }
michael@0 163
michael@0 164 /********* ADD PROJECT ***********/
michael@0 165
michael@0 166 #new-packaged-project {
michael@0 167 box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
michael@0 168 background-position: calc(100% - 10px) 10px;
michael@0 169 }
michael@0 170
michael@0 171 #new-packaged-project,
michael@0 172 #new-hosted-project {
michael@0 173 background-color: #EEE;
michael@0 174 border: none;
michael@0 175 border-top: 1px solid #DDD;
michael@0 176 padding: 10px;
michael@0 177 font-weight: bold;
michael@0 178 }
michael@0 179
michael@0 180 #new-packaged-project:hover,
michael@0 181 #new-hosted-project:hover {
michael@0 182 background-color: #DDD;
michael@0 183 }
michael@0 184
michael@0 185 #new-hosted-project-wrapper {
michael@0 186 display: flex;
michael@0 187 align-items: center;
michael@0 188 }
michael@0 189
michael@0 190 #new-packaged-project,
michael@0 191 #new-hosted-project-click {
michael@0 192 background-image: url('plus.svg');
michael@0 193 background-size: 20px;
michael@0 194 background-repeat: no-repeat;
michael@0 195 cursor: pointer;
michael@0 196 }
michael@0 197
michael@0 198 #new-hosted-project-click {
michael@0 199 background-position: top right;
michael@0 200 width: 20px;
michael@0 201 height: 20px;
michael@0 202 margin-left: 5px;
michael@0 203 }
michael@0 204
michael@0 205 #url-input {
michael@0 206 flex-grow: 1;
michael@0 207 width: 90%;
michael@0 208 box-shadow: none;
michael@0 209 border-radius: 3px;
michael@0 210 border: 1px solid #DDD;
michael@0 211 padding: 4px;
michael@0 212 margin-top: 4px;
michael@0 213 }
michael@0 214
michael@0 215
michael@0 216 /********* LENSE ***********/
michael@0 217
michael@0 218
michael@0 219 #lense {
michael@0 220 height: 100%;
michael@0 221 flex-grow: 1;
michael@0 222 display: flex;
michael@0 223 z-index: 1;
michael@0 224 overflow: hidden;
michael@0 225 background-color: rgb(225, 225, 225);
michael@0 226 background-image: url('rocket.svg'), url('noise.png');
michael@0 227 background-repeat: no-repeat, repeat;
michael@0 228 background-size: 35%, auto;
michael@0 229 background-position: center center, top left;
michael@0 230 }
michael@0 231
michael@0 232 #lense > div {
michael@0 233 display: flex;
michael@0 234 flex-grow: 1;
michael@0 235 flex-direction: column;
michael@0 236 }
michael@0 237
michael@0 238
michael@0 239 /********* PROJECT ***********/
michael@0 240
michael@0 241
michael@0 242 .project-details {
michael@0 243 background-color: rgb(225, 225, 225);
michael@0 244 padding: 10px;
michael@0 245 line-height: 160%;
michael@0 246 display: flex;
michael@0 247 flex-direction: column;
michael@0 248 }
michael@0 249
michael@0 250 .project-metadata {
michael@0 251 flex-grow: 1;
michael@0 252 }
michael@0 253
michael@0 254 .project-status {
michael@0 255 display: flex;
michael@0 256 }
michael@0 257
michael@0 258 .project-title {
michael@0 259 flex-direction: row;
michael@0 260 display: flex;
michael@0 261 align-items: flex-start;
michael@0 262 padding-bottom: 10px;
michael@0 263 border-bottom: 1px solid #CCC;
michael@0 264 margin-bottom: 10px;
michael@0 265 }
michael@0 266
michael@0 267 .project-title > h1 {
michael@0 268 flex-grow: 1;
michael@0 269 font-size: 24px;
michael@0 270 }
michael@0 271
michael@0 272 .project-location {
michael@0 273 color: gray;
michael@0 274 font-size: 10px;
michael@0 275 cursor: pointer;
michael@0 276 font-family: monospace;
michael@0 277 }
michael@0 278
michael@0 279 .project-location:hover {
michael@0 280 text-decoration: underline;
michael@0 281 }
michael@0 282
michael@0 283 .project-header {
michael@0 284 display: flex;
michael@0 285 border-bottom: 1px solid #CCC;
michael@0 286 margin: 10px 20px 10px 20px;
michael@0 287 padding-bottom: 10px;
michael@0 288 }
michael@0 289
michael@0 290 .project-icon {
michael@0 291 flex-shrink: 0;
michael@0 292 width: 64px;
michael@0 293 height: 64px;
michael@0 294 margin-right: 10px;
michael@0 295 }
michael@0 296
michael@0 297 .project-location {
michael@0 298 font-size: 11px;
michael@0 299 color: #999;
michael@0 300 }
michael@0 301
michael@0 302 .project-description {
michael@0 303 font-style: italic;
michael@0 304 color: #333;
michael@0 305 }
michael@0 306
michael@0 307 .project-status > p {
michael@0 308 text-transform: uppercase;
michael@0 309 font-size: 10px;
michael@0 310 padding: 2px 10px;
michael@0 311 border-radius: 2px;
michael@0 312 margin-top: 6px;
michael@0 313 line-height: 10px;
michael@0 314 }
michael@0 315
michael@0 316 .project-validation {
michael@0 317 color: #FFF;
michael@0 318 display: none;
michael@0 319 margin-left: 10px;
michael@0 320 }
michael@0 321
michael@0 322 .project-validation.valid {
michael@0 323 background-color: #70BF53;
michael@0 324 }
michael@0 325
michael@0 326 .project-validation.warning {
michael@0 327 background-color: #F2B33F;
michael@0 328 }
michael@0 329
michael@0 330 .project-validation.error {
michael@0 331 background-color: #ED4C62;
michael@0 332 }
michael@0 333
michael@0 334 [status="valid"] > .project-validation.valid,
michael@0 335 [status~="warning"] > .project-validation.warning,
michael@0 336 [status~="error"] > .project-validation.error {
michael@0 337 display: inline;
michael@0 338 }
michael@0 339
michael@0 340 .project-type {
michael@0 341 display: none;
michael@0 342 margin-left: 10px;
michael@0 343 }
michael@0 344 [type="hosted"] > .project-type.hosted,
michael@0 345 [type="packaged"] > .project-type.packaged {
michael@0 346 display: inline;
michael@0 347 }
michael@0 348
michael@0 349 /********* PROJECT BUTTONS ***********/
michael@0 350
michael@0 351
michael@0 352
michael@0 353 .project-buttons {
michael@0 354 display: flex;
michael@0 355 margin-left: 20px;
michael@0 356 color: #BBB;
michael@0 357 }
michael@0 358
michael@0 359 .project-buttons > button {
michael@0 360 margin: 0;
michael@0 361 font-size: 11px;
michael@0 362 border: 1px solid #CCC;
michael@0 363 border-left-width: 0;
michael@0 364 padding: 5px 15px;
michael@0 365 cursor: pointer;
michael@0 366 background: rgba(255,255,255,0.4);
michael@0 367 text-transform: uppercase;
michael@0 368 }
michael@0 369
michael@0 370 .project-buttons > button[disabled] {
michael@0 371 background-color: transparent;
michael@0 372 opacity: 0.4;
michael@0 373 pointer-events: none;
michael@0 374 }
michael@0 375
michael@0 376 .project-buttons > button:first-child {
michael@0 377 border-left-width: 1px;
michael@0 378 }
michael@0 379
michael@0 380 .project-button-debug {
michael@0 381 color: #3498DB;
michael@0 382 }
michael@0 383
michael@0 384 .project-button-debug:hover {
michael@0 385 background-color: #3498DB;
michael@0 386 color: #FFF;
michael@0 387 }
michael@0 388
michael@0 389 .project-button-debug[disabled] {
michael@0 390 color: #3498DB;
michael@0 391 }
michael@0 392
michael@0 393 .project-button-update {
michael@0 394 color: #777;
michael@0 395 }
michael@0 396
michael@0 397 .project-button-update:hover {
michael@0 398 background-color: #777;
michael@0 399 color: #FFF;
michael@0 400 }
michael@0 401
michael@0 402 .project-button-update[disabled] {
michael@0 403 color: #777;
michael@0 404 }
michael@0 405
michael@0 406
michael@0 407
michael@0 408 /********* ERRORS AND WARNINGS ***********/
michael@0 409
michael@0 410 .project-warnings,
michael@0 411 .project-errors,
michael@0 412 .project-item-warnings,
michael@0 413 .project-item-errors {
michael@0 414 display: none;
michael@0 415 }
michael@0 416
michael@0 417 [status~="warning"] .project-item-warnings,
michael@0 418 [status~="error"] .project-item-errors {
michael@0 419 display: inline-block;
michael@0 420 }
michael@0 421
michael@0 422 [status~="warning"] > .project-warnings,
michael@0 423 [status~="error"] > .project-errors {
michael@0 424 display: block;
michael@0 425 }
michael@0 426
michael@0 427 .project-warnings,
michael@0 428 .project-errors {
michael@0 429 margin: 20px 20px 0;
michael@0 430 padding: 10px 10px;
michael@0 431 font-family: monospace;
michael@0 432 }
michael@0 433
michael@0 434 .project-warnings {
michael@0 435 border-left: 3px solid #ECB51E;
michael@0 436 background-color: rgba(236, 181, 20, 0.1);
michael@0 437 }
michael@0 438
michael@0 439 .project-errors {
michael@0 440 border-left: 3px solid #ED4C62;
michael@0 441 background-color: rgba(237,76,98,0.1);
michael@0 442 }
michael@0 443
michael@0 444 .project-item-warnings {
michael@0 445 background-image: url('warning.svg');
michael@0 446 }
michael@0 447
michael@0 448 .project-item-errors {
michael@0 449 background-image: url('error.svg');
michael@0 450 color: rgb(227, 79, 34);
michael@0 451 }
michael@0 452
michael@0 453 .project-item-warnings,
michael@0 454 .project-item-errors {
michael@0 455 background-repeat: no-repeat;
michael@0 456 background-size: 12px;
michael@0 457 background-position: left center;
michael@0 458 margin-top: 6px;
michael@0 459 }
michael@0 460
michael@0 461 .project-item-warnings > span,
michael@0 462 .project-item-errors > span {
michael@0 463 font-size: 11px;
michael@0 464 padding-left: 16px;
michael@0 465 font-weight: bold;
michael@0 466 }
michael@0 467
michael@0 468
michael@0 469 /********* MANIFEST EDITOR ***********/
michael@0 470
michael@0 471 .manifest-editor {
michael@0 472 display: flex;
michael@0 473 flex-direction: column;
michael@0 474 flex-grow: 1;
michael@0 475 background-color: #E1E1E1;
michael@0 476 }
michael@0 477
michael@0 478 .manifest-header {
michael@0 479 display: flex;
michael@0 480 flex-direction: row;
michael@0 481 }
michael@0 482
michael@0 483 .manifest-header > h2 {
michael@0 484 font-size: 18px;
michael@0 485 margin: 1em 15px 1em 30px;
michael@0 486 display: none;
michael@0 487 }
michael@0 488
michael@0 489 .manifest-header > button {
michael@0 490 margin: 18px 0;
michael@0 491 font-size: 11px;
michael@0 492 border: 1px solid #CCC;
michael@0 493 border-right-width: 0;
michael@0 494 padding: 2px;
michael@0 495 cursor: pointer;
michael@0 496 background: rgba(255,255,255,0.4);
michael@0 497 text-transform: uppercase;
michael@0 498 display: none;
michael@0 499 }
michael@0 500
michael@0 501 .manifest-header > button[disabled] {
michael@0 502 background-color: transparent;
michael@0 503 opacity: 0.4;
michael@0 504 pointer-events: none;
michael@0 505 }
michael@0 506
michael@0 507 .manifest-header > button:last-child {
michael@0 508 border-right-width: 1px;
michael@0 509 }
michael@0 510
michael@0 511 [type="packaged"] > .editable {
michael@0 512 display: block;
michael@0 513 }
michael@0 514
michael@0 515 [type="hosted"] > .viewable {
michael@0 516 display: block;
michael@0 517 }
michael@0 518
michael@0 519 .manifest-button-save {
michael@0 520 color: #777;
michael@0 521 }
michael@0 522
michael@0 523 .manifest-button-save:hover {
michael@0 524 background-color: #777;
michael@0 525 color: #FFF;
michael@0 526 }
michael@0 527
michael@0 528 .manifest-button-save[disabled] {
michael@0 529 color: #777;
michael@0 530 }
michael@0 531
michael@0 532 .variables-view {
michael@0 533 flex-grow: 1;
michael@0 534 border: 0;
michael@0 535 border-top: 5px solid #C9C9C9;
michael@0 536 }
michael@0 537
michael@0 538 /* Bug 925921: Remove when the manifest editor is always on */
michael@0 539
michael@0 540 .manifest-editor {
michael@0 541 display: none;
michael@0 542 }
michael@0 543
michael@0 544 .project-details {
michael@0 545 flex-grow: 1;
michael@0 546 }
michael@0 547
michael@0 548 #lense[manifest-editable] .manifest-editor {
michael@0 549 display: flex;
michael@0 550 }
michael@0 551
michael@0 552 #lense[manifest-editable] .project-details {
michael@0 553 flex-grow: 0;
michael@0 554 }
michael@0 555
michael@0 556 /* End blocks to remove */

mercurial