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

Side by Side Diff: Source/devtools/front_end/sidebarPane.css

Issue 1172643002: DevTools: migrate sidebar pane's titleElement to use Toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 11 matching lines...) Expand all
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 .sidebar-pane { 30 .sidebar-pane {
31 position: relative; 31 position: relative;
32 flex-direction: column;
33 display: flex;
32 } 34 }
33 35
34 .sidebar-pane > .body { 36 .sidebar-pane .info {
35 position: relative;
36 display: none;
37 flex-direction: column;
38 }
39
40 .sidebar-pane > .body .info {
41 text-align: center; 37 text-align: center;
42 font-style: italic; 38 font-style: italic;
43 padding: 6px; 39 padding: 6px;
44 color: #888; 40 color: #888;
45 } 41 }
46 42
47 .sidebar-pane.visible > .body {
48 display: flex;
49 }
50
51 .sidebar-pane .section .properties-tree { 43 .sidebar-pane .section .properties-tree {
52 padding-left: 16px; 44 padding-left: 16px;
53 } 45 }
54 46
55 .sidebar-tabbed-pane .tabbed-pane-header { 47 .sidebar-tabbed-pane .tabbed-pane-header {
56 border-bottom: 1px solid rgb(202, 202, 202); 48 border-bottom: 1px solid rgb(202, 202, 202);
57 background-color: #eee; 49 background-color: #eee;
58 } 50 }
59 51
60 .sidebar-pane-stack > .sidebar-pane.visible:nth-last-of-type(1) {
61 border-bottom: 1px solid rgb(189, 189, 189);
62 }
63
64 .sidebar-pane-title { 52 .sidebar-pane-title {
65 position: relative; 53 display: flex;
54 align-items: center;
66 background-color: #eee; 55 background-color: #eee;
67 height: 20px; 56 height: 20px;
68 padding: 0 5px; 57 padding: 0 5px;
69 border-top: 1px solid rgb(189, 189, 189); 58 border-top: 1px solid #bbb;
70 border-bottom: 1px solid rgb(189, 189, 189);
71 line-height: 18px;
72 margin-top: -1px;
73 white-space: nowrap; 59 white-space: nowrap;
74 overflow: hidden; 60 overflow: hidden;
61 position: relative;
75 } 62 }
76 63
77 .sidebar-pane-title:active { 64 .sidebar-pane-title.expanded,
78 background-color: rgb(204, 204, 204); 65 .sidebar-pane-title:last-child {
79 border-top: 1px solid rgb(178, 178, 178); 66 border-bottom: 1px solid #ddd;
80 border-bottom: 1px solid rgb(178, 178, 178); 67 }
68
69 .sidebar-pane-title:first-child {
70 border-top: none;
81 } 71 }
82 72
83 .sidebar-pane-title::before { 73 .sidebar-pane-title::before {
84 background-image: url(Images/toolbarButtonGlyphs.png); 74 background-image: url(Images/toolbarButtonGlyphs.png);
85 background-size: 352px 144px; 75 background-size: 352px 144px;
86 opacity: 0.5; 76 opacity: 0.5;
87 float: left; 77 float: left;
88 width: 11px; 78 width: 11px;
89 height: 11px; 79 height: 11px;
90 margin-right: 2px; 80 margin-right: 2px;
91 content: "a"; 81 content: "a";
92 color: transparent; 82 color: transparent;
93 position: relative;
94 top: 3px;
95 } 83 }
96 84
97 @media (-webkit-min-device-pixel-ratio: 1.5) { 85 @media (-webkit-min-device-pixel-ratio: 1.5) {
98 .sidebar-pane-title::before { 86 .sidebar-pane-title::before {
99 background-image: url(Images/toolbarButtonGlyphs_2x.png); 87 background-image: url(Images/toolbarButtonGlyphs_2x.png);
100 } 88 }
101 } /* media */ 89 } /* media */
102 90
103 .sidebar-pane-title::before { 91 .sidebar-pane-title::before {
104 background-position: -4px -96px; 92 background-position: -4px -96px;
105 } 93 }
106 94
107 .sidebar-pane-title.expanded::before { 95 .sidebar-pane-title.expanded::before {
108 background-position: -20px -96px; 96 background-position: -20px -96px;
109 } 97 }
110 98
111 .sidebar-pane-toolbar { 99 .sidebar-pane-title .sidebar-pane-toolbar {
112 left: 0;
113 right: 4px;
114 top: 0;
115 position: absolute; 100 position: absolute;
116 pointer-events: none; 101 right: 0;
102 top: -3px;
117 } 103 }
118 104
119 .sidebar-pane-toolbar > * { 105 .sidebar-pane-toolbar > * {
120 pointer-events: auto; 106 pointer-events: auto;
121 } 107 }
122 108
123 .sidebar-pane-toolbar > .pane-title-button,
124 .sidebar-pane-toolbar > label {
125 float: right;
126 height: 16px;
127 background-color: transparent;
128 border: none;
129 background-repeat: no-repeat;
130 margin: 1px 0 0 0;
131 padding: 0;
132 border-radius: 0;
133 -webkit-appearance: none;
134 }
135
136 .sidebar-pane-toolbar > .pane-title-button {
137 width: 23px;
138 color: transparent;
139 }
140
141 .sidebar-pane-toolbar > .pane-title-button:hover {
142 background-position: -23px 0;
143 }
144
145 .sidebar-pane-toolbar > .pane-title-button:active,
146 .sidebar-pane-toolbar > .pane-title-button.toggled {
147 background-position: -46px 0;
148 }
149
150 .sidebar-pane-toolbar > .pane-title-button.add {
151 background-image: url(Images/paneAddButtons.png);
dgozman 2015/06/09 13:27:02 Remove the image?
pfeldman 2015/06/09 13:40:59 Can't do yet.
152 position: relative;
153 }
154
155 .sidebar-pane-toolbar > .pane-title-button.refresh {
156 background-image: url(Images/paneRefreshButtons.png);
dgozman 2015/06/09 13:27:02 ditto
157 }
158
159 .sidebar-pane-toolbar > label.scripts-callstack-async {
160 margin-right: 5px;
161 line-height: 16px;
162 }
163
164 .section > .header input[type=checkbox] { 109 .section > .header input[type=checkbox] {
165 height: 1em; 110 height: 1em;
166 width: 1em; 111 width: 1em;
167 margin-left: 0; 112 margin-left: 0;
168 margin-top: 0; 113 margin-top: 0;
169 margin-bottom: 0.25em; 114 margin-bottom: 0.25em;
170 vertical-align: bottom; 115 vertical-align: bottom;
171 } 116 }
172 117
173 .hidden-callframes-message { 118 .hidden-callframes-message {
174 text-align: center; 119 text-align: center;
175 font-style: italic; 120 font-style: italic;
176 padding: 4px; 121 padding: 4px;
177 color: #888; 122 color: #888;
178 background-color: #FFFFC2; 123 background-color: #FFFFC2;
179 } 124 }
180 125
181 .sidebar-pane-button-new-rule { 126 .sidebar-pane-button-new-rule {
182 background-image: url(Images/paneAddButtons.png); 127 background-image: url(Images/paneAddButtons.png);
183 background-position: 0 0; 128 background-position: 0 0;
184 position: absolute; 129 position: absolute;
185 height: 16px; 130 height: 16px;
186 width: 23px; 131 width: 23px;
187 right: 10px; 132 right: 2px;
188 bottom: 1px; 133 bottom: 3px;
189 visibility: hidden; 134 visibility: hidden;
190 } 135 }
191 136
192 .styles-section.matched-styles:not(.read-only):hover .sidebar-pane-button-new-ru le { 137 .styles-section.matched-styles:not(.read-only):hover .sidebar-pane-button-new-ru le {
193 visibility: visible; 138 visibility: visible;
194 } 139 }
195 140
196 .sidebar-pane-button-new-rule:hover { 141 .sidebar-pane-button-new-rule:hover {
197 background-position: -23px 0; 142 background-position: -23px 0;
198 } 143 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698