Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: chrome/browser/resources/extensions/extensions.css

Issue 887803003: extensions: clean up hiding/showing of developer controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 html.loading * { 5 html.loading * {
6 -webkit-transition-duration: 0 !important; 6 transition-duration: 0 !important;
7 } 7 }
8 8
9 html:not(.focus-outline-visible) 9 html:not(.focus-outline-visible)
10 :enabled:focus:-webkit-any(input[type='checkbox'], input[type='radio']) { 10 :enabled:focus:-webkit-any(input[type='checkbox'], input[type='radio']) {
11 /* Cancel border-color for :focus specified in widgets.css. */ 11 /* Cancel border-color for :focus specified in widgets.css. */
12 border-color: rgba(0, 0, 0, 0.25); 12 border-color: rgba(0, 0, 0, 0.25);
13 } 13 }
14 14
15 .no-scroll { 15 .no-scroll {
16 overflow-y: hidden; 16 overflow-y: hidden;
17 } 17 }
18 18
19 #extension-settings.showing-banner {
20 margin-top: 45px;
Dan Beam 2015/01/30 19:41:30 this replaces the marginTop calcs in JS
21 }
22
19 /* Developer mode */ 23 /* Developer mode */
20 24
21 #dev-controls { 25 #dev-controls {
22 -webkit-margin-end: 20px; 26 -webkit-margin-end: 20px;
23 -webkit-transition: padding 100ms, height 100ms, opacity 100ms;
24 border-bottom: 1px solid #eee;
25 height: 0; 27 height: 0;
26 opacity: 0;
27 overflow: hidden; 28 overflow: hidden;
28 } 29 }
29 30
30 #dev-controls .buttons-container { 31 #dev-controls.animated {
Dan Beam 2015/01/30 19:41:30 this is required for times we don't want to transi
31 -webkit-padding-end: 3px; 32 transition: height 150ms;
32 -webkit-padding-start: 4px;
33 } 33 }
34 34
35 #dev-controls .buttons-container { 35 .dev-mode #dev-controls {
36 display: -webkit-box; 36 border-bottom: 1px solid #eee;
37 height: 32px; /* height + padding-top matches #dev-controls height. */ 37 }
38 padding-top: 13px; 38
39 #dev-controls > * {
40 padding: 8px 3px;
Dan Beam 2015/01/30 19:41:30 this combines the rule/paddings for the buttons an
41 }
42
43 #dev-controls .button-container {
44 display: flex;
45 flex-wrap: wrap;
Dan Beam 2015/01/30 19:41:30 this is what actually allows buttons to wrap
39 } 46 }
40 47
41 #dev-controls button { 48 #dev-controls button {
42 white-space: nowrap; 49 white-space: nowrap;
43 } 50 }
44 51
45 #apps-developer-tools-promo { 52 #apps-developer-tools-promo {
46 -webkit-padding-end: 3px;
47 align-items: center; 53 align-items: center;
48 border-top: 1px solid #eee; 54 border-top: 1px solid #eee;
49 display: flex; 55 display: flex;
50 font-size: 13px; 56 font-size: 13px;
51 margin-top: 7px; /* This matches #dev-controls padding-bottom. */
52 padding-top: 5px;
53 } 57 }
54 58
55 #apps-developer-tools-promo img { 59 #apps-developer-tools-promo img {
60 -webkit-margin-end: 5px;
61 -webkit-margin-start: -5px;
56 content: url(apps_developer_tools_promo_48.png); 62 content: url(apps_developer_tools_promo_48.png);
57 } 63 margin-bottom: -5px;
58 64 margin-top: -5px;
Dan Beam 2015/01/30 19:41:30 these negative margins make the icon (which has a
59 #apps-developer-tools-promo-text {
60 -webkit-margin-start: 5px;
61 } 65 }
62 66
63 #apps-developer-tools-promo-close-wrapper { 67 #apps-developer-tools-promo-close-wrapper {
64 display: flex; 68 display: flex;
65 flex-grow: 1; 69 flex-grow: 1;
66 justify-content: flex-end; 70 justify-content: flex-end;
67 } 71 }
68 72
69 #apps-developer-tools-promo .close-button { 73 #apps-developer-tools-promo .close-button {
70 background: url(chrome://theme/IDR_CLOSE_DIALOG) no-repeat center center; 74 background: url(chrome://theme/IDR_CLOSE_DIALOG) no-repeat center center;
71 border: 0; 75 border: 0;
72 height: 14px; 76 height: 14px;
73 width: 14px; 77 width: 14px;
74 z-index: 1; 78 z-index: 1;
75 } 79 }
76 80
77 #apps-developer-tools-promo .close-button:hover { 81 #apps-developer-tools-promo .close-button:hover {
78 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H); 82 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H);
79 } 83 }
80 84
81 #apps-developer-tools-promo .close-button:active { 85 #apps-developer-tools-promo .close-button:active {
82 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P); 86 background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P);
83 } 87 }
84 88
85 #extension-settings.dev-mode #dev-controls {
86 -webkit-transition-duration: 250ms;
87 height: 45px;
88 opacity: 1;
89 padding-bottom: 7px;
90 }
91
92 #extension-settings.dev-mode.adt-promo #dev-controls {
93 height: 105px; /* Allow more height for the Apps Developer Tools promo. */
94 }
Dan Beam 2015/01/30 19:41:30 all these heights (e.g. 105/45) are calc'd in 1 li
95
96 #dev-controls-spacer { 89 #dev-controls-spacer {
97 -webkit-box-flex: 1; 90 flex: 1;
98 } 91 }
99 92
100 #dev-toggle { 93 #dev-toggle {
101 margin-top: 0; 94 margin-top: 0;
102 text-align: end; 95 text-align: end;
103 } 96 }
104 97
105 .extension-code { 98 .extension-code {
106 border: 1px solid #ccc; 99 border: 1px solid #ccc;
107 display: flex; 100 display: flex;
108 font-family: monospace; 101 font-family: monospace;
109 overflow: auto; 102 overflow: auto;
110 white-space: pre; 103 white-space: pre;
111 } 104 }
112 105
113 .extension-code > * { 106 .extension-code > * {
114 padding: 3px; 107 padding: 3px;
115 } 108 }
116 109
117 .extension-code-line-numbers { 110 .extension-code-line-numbers {
118 align-self: flex-start; 111 align-self: flex-start;
119 background-color: rgba(240, 240, 240, 1); 112 background-color: rgba(240, 240, 240, 1);
120 border-right: 1px solid #ccc; 113 border-right: 1px solid #ccc;
121 color: rgba(128, 128, 128, 1); 114 color: rgba(128, 128, 128, 1);
122 flex-shrink: 0; 115 flex-shrink: 0;
123 text-align: right; 116 text-align: right;
124 } 117 }
125 118
126 #extension-settings:not(.dev-mode) .developer-extras {
127 display: none;
128 }
129
130 .developer-extras > div, 119 .developer-extras > div,
131 .permanent-warnings > div { 120 .permanent-warnings > div {
132 margin: 5px 0; 121 margin: 5px 0;
133 } 122 }
134 123
135 #extension-settings #page-header { 124 #extension-settings #page-header {
136 /* These values match the .page values. */ 125 /* These values match the .page values. */
137 -webkit-margin-end: 24px; 126 -webkit-margin-end: 24px;
138 min-width: 576px; 127 min-width: 576px;
139 } 128 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 background: pink; 299 background: pink;
311 } 300 }
312 301
313 .install-warnings ul, 302 .install-warnings ul,
314 .extension-warnings ul { 303 .extension-warnings ul {
315 margin: 0; 304 margin: 0;
316 } 305 }
317 306
318 .error-collection-control { 307 .error-collection-control {
319 -webkit-margin-start: 5px; 308 -webkit-margin-start: 5px;
309 }
310
311 #extension-settings:not(.dev-mode) .developer-extras,
312 #extension-settings:not(.dev-mode) .error-collection-control {
320 display: none; 313 display: none;
321 } 314 }
322 315
323 #extension-settings.dev-mode .error-collection-control {
324 display: initial;
325 }
326
327 #font-measuring-div { 316 #font-measuring-div {
328 /* Remove from the flow and hide. */ 317 /* Remove from the flow and hide. */
329 position: absolute; 318 position: absolute;
330 visibility: hidden; 319 visibility: hidden;
331 } 320 }
332 321
333 .extension-commands-config { 322 .extension-commands-config {
334 float: right; 323 float: right;
335 } 324 }
336 325
(...skipping 23 matching lines...) Expand all
360 349
361 .location-text, 350 .location-text,
362 .blacklist-text { 351 .blacklist-text {
363 display: block; 352 display: block;
364 width: 100px; 353 width: 100px;
365 } 354 }
366 355
367 /* Trash */ 356 /* Trash */
368 357
369 #extension-settings .trash { 358 #extension-settings .trash {
370 -webkit-transition: opacity 200ms;
371 height: 22px; 359 height: 22px;
372 opacity: 0.8; 360 opacity: 0.8;
373 position: relative; 361 position: relative;
374 right: 0; 362 right: 0;
375 top: 6px; 363 top: 6px;
364 transition: opacity 200ms;
376 } 365 }
377 366
378 html[dir='rtl'] #extension-settings .trash { 367 html[dir='rtl'] #extension-settings .trash {
379 left: 0; 368 left: 0;
380 right: auto; 369 right: auto;
381 } 370 }
382 371
383 .extension-list-item:not(:hover) .trash:not(:focus) { 372 .extension-list-item:not(:hover) .trash:not(:focus) {
384 opacity: 0; 373 opacity: 0;
385 } 374 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 /* Sideload Wipeout */ 406 /* Sideload Wipeout */
418 407
419 .sideload-wipeout-learn-more { 408 .sideload-wipeout-learn-more {
420 text-decoration: none; 409 text-decoration: none;
421 } 410 }
422 411
423 .sideload-wipeout-banner .page-banner-text { 412 .sideload-wipeout-banner .page-banner-text {
424 -webkit-padding-start: 8px; 413 -webkit-padding-start: 8px;
425 background-image: none; 414 background-image: none;
426 } 415 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/extensions/extensions.html » ('j') | chrome/browser/resources/extensions/extensions.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698