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

Side by Side Diff: Source/devtools/front_end/elements/animationTimeline.css

Issue 1156323003: Devtools Animations: Update timeline controls and UI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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) 2015 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2015 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 .animation-node-row { 7 .animation-node-row {
8 width: 100%; 8 width: 100%;
9 display: flex; 9 display: flex;
10 border-bottom: 1px dashed #ccc; 10 border-bottom: 1px dashed #ccc;
11 } 11 }
12 12
13 .animation-node-description { 13 .animation-node-description {
14 display: inline-block; 14 display: inline-block;
15 min-width: 200px; 15 min-width: 200px;
16 max-width: 200px; 16 max-width: 200px;
17 padding-left: 15px; 17 padding-left: 15px;
18 overflow: hidden; 18 overflow: hidden;
19 position: relative; 19 position: relative;
20 transform-style: preserve-3d; 20 transform-style: preserve-3d;
21 line-height: 40px; 21 line-height: 40px;
22 } 22 border-bottom: 1px solid hsl(0, 0%, 90%);
23 23 margin-bottom: -1px;
24 .animation-node-row:nth-child(odd) { 24 margin-right: 30px;
25 background-color: hsla(0, 0%, 0%, 0.05); 25 background-color: hsl(0, 0%, 98%);
26 text-overflow: ellipsis;
27 white-space: nowrap;
26 } 28 }
27 29
28 .animation-timeline-row { 30 .animation-timeline-row {
29 height: 40px; 31 height: 40px;
30 position: relative; 32 position: relative;
31 } 33 }
32 34
33 path.animation-keyframe { 35 path.animation-keyframe {
34 fill-opacity: 0.3; 36 fill-opacity: 0.3;
35 } 37 }
36 38
39 .animation-node-selected path.animation-keyframe {
40 fill-opacity: 0.4;
41 }
42
37 line.animation-line { 43 line.animation-line {
38 stroke-width: 2px; 44 stroke-width: 2px;
39 stroke-linecap: round; 45 stroke-linecap: round;
40 fill: none; 46 fill: none;
41 } 47 }
42 48
43 line.animation-delay-line { 49 line.animation-delay-line {
44 stroke-width: 2px; 50 stroke-width: 2px;
45 stroke-dasharray: 6, 4; 51 stroke-dasharray: 6, 4;
46 } 52 }
(...skipping 30 matching lines...) Expand all
77 overflow: hidden; 83 overflow: hidden;
78 white-space: nowrap; 84 white-space: nowrap;
79 } 85 }
80 86
81 .animation-timeline-header { 87 .animation-timeline-header {
82 height: 44px; 88 height: 44px;
83 border-bottom: 1px solid #ccc; 89 border-bottom: 1px solid #ccc;
84 flex-shrink: 0; 90 flex-shrink: 0;
85 } 91 }
86 92
93 .animation-timeline-header:after {
94 content: "";
95 height: 100%;
96 position: absolute;
97 width: 200px;
98 left: 0;
99 background-color: hsl(0, 0%, 98%);
100 z-index: -1;
101 border-right: 1px solid hsl(0, 0%, 90%);
102 }
103
87 .animation-controls { 104 .animation-controls {
88 width: 200px; 105 width: 201px;
89 max-width: 200px; 106 max-width: 201px;
90 padding: 10px; 107 padding: 10px;
91 height: 100%; 108 height: 100%;
92 line-height: 22px; 109 line-height: 22px;
110 background-color: hsl(0, 0%, 98%);
111 border-right: 1px solid hsl(0, 0%, 90%);
93 } 112 }
94 113
95 .animation-timeline-markers { 114 .animation-timeline-markers {
96 height: 100%; 115 height: 100%;
97 width: calc(100% - 200px); 116 width: calc(100% - 200px);
98 display: inline-block; 117 display: inline-block;
99 } 118 }
100 119
101 .animation-time-overlay { 120 .animation-time-overlay {
102 background-color: black; 121 background-color: black;
103 opacity: 0.05; 122 opacity: 0.05;
104 position: absolute; 123 position: absolute;
105 height: 100%; 124 height: 100%;
106 width: 100%; 125 width: 100%;
107 } 126 }
108 127
128 .animation-timeline-end > .animation-time-overlay {
129 visibility: hidden;
130 }
131
109 input.animation-playback-slider { 132 input.animation-playback-slider {
110 width: 68px; 133 width: 89px;
111 margin-left: 12px; 134 margin-left: 12px;
112 -webkit-appearance: none; 135 -webkit-appearance: none;
113 position: absolute; 136 position: absolute;
114 top: 18px; 137 top: 18px;
115 } 138 }
116 139
117 input[type=range].animation-playback-slider::-webkit-slider-runnable-track { 140 input[type=range].animation-playback-slider::-webkit-slider-runnable-track {
118 height: 4px; 141 height: 4px;
119 border-radius: 2px; 142 border-radius: 2px;
120 cursor: pointer; 143 cursor: pointer;
(...skipping 11 matching lines...) Expand all
132 cursor: pointer; 155 cursor: pointer;
133 width: 12px; 156 width: 12px;
134 height: 12px; 157 height: 12px;
135 border-radius: 12px; 158 border-radius: 12px;
136 background-color: rgb(248, 248, 248); 159 background-color: rgb(248, 248, 248);
137 border: 1px solid #999; 160 border: 1px solid #999;
138 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.24); 161 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.24);
139 } 162 }
140 163
141 .animation-playback-label { 164 .animation-playback-label {
142 width: 34px;
143 text-align: right;
144 font-family: 'DejaVu Sans';
145 display: inline-block; 165 display: inline-block;
166 width: 40px;
167 height: 22px;
168 overflow: hidden;
169 text-align: center;
170 border: 1px solid #dadada;
171 border-radius: 2px;
172 line-height: 20px;
173 font-size: 11px;
174 padding: 0;
175 -webkit-user-modify: read-write-plaintext-only;
176 color: #333;
177 white-space: nowrap;
178 overflow: hidden;
146 } 179 }
147 180
148 .animation-scrubber { 181 .animation-scrubber {
149 opacity: 1; 182 opacity: 1;
150 position: absolute; 183 position: absolute;
151 left: 200px; 184 left: 230px;
152 height: calc(100% - 43px); 185 height: calc(100% - 43px);
153 width: calc(100% - 200px); 186 width: calc(100% - 200px);
154 top: 43px; 187 top: 43px;
155 border-left: 1px solid rgba(0,0,0,0.5); 188 border-left: 1px solid rgba(0,0,0,0.5);
156 } 189 }
157 190
191 .animation-scrubber.animation-timeline-end {
192 border: none;
193 }
194
158 .animation-scrubber-head { 195 .animation-scrubber-head {
159 background-color: rgba(0, 0, 0, 0.5); 196 background-color: rgba(0, 0, 0, 0.7);
160 width: 50px; 197 width: 60px;
161 height: 23px; 198 height: 23px;
162 color: white; 199 color: white;
163 line-height: 23px; 200 line-height: 23px;
164 text-align: center; 201 text-align: center;
165 border-radius: 5px; 202 border-radius: 5px;
166 position: relative; 203 position: relative;
167 top: -29px; 204 top: -29px;
168 left: -26px; 205 left: -30px;
169 font-size: 10px; 206 font-size: 10px;
170 visibility: visible; 207 visibility: visible;
171 } 208 }
172 209
210 .animation-scrubber-head:before, .animation-scrubber-head:after {
211 content: "||";
212 position: absolute;
213 color: #999;
214 font-size: 8px;
215 }
216
217 .animation-scrubber-head:before {
218 left: 3px;
219 }
220
221 .animation-scrubber-head:after {
222 right: 3px;
223 }
224
173 .animation-timeline-capturing > .animation-scrubber-head { 225 .animation-timeline-capturing > .animation-scrubber-head {
174 visibility: hidden; 226 visibility: hidden;
175 } 227 }
176 228
177 .animation-timeline-end > .animation-scrubber-head { 229 .animation-timeline-end > .animation-scrubber-head {
178 visibility: visible; 230 visibility: visible;
179 } 231 }
180 232
181 .animation-timeline-end > .animation-scrubber-arrow, 233 .animation-timeline-end > .animation-scrubber-arrow,
182 .animation-timeline-capturing > .animation-scrubber-arrow { 234 .animation-timeline-capturing > .animation-scrubber-arrow {
183 visibility: hidden; 235 visibility: hidden;
184 } 236 }
185 237
186 .animation-scrubber-arrow { 238 .animation-scrubber-arrow {
187 width: 21px; 239 width: 21px;
188 height: 25px; 240 height: 25px;
189 position: absolute; 241 position: absolute;
190 top: -6px; 242 top: -6px;
191 left: -7px; 243 left: -7px;
192 -webkit-clip-path: polygon(0 0, 6px 6px, 12px 0px, 0px 0px); 244 -webkit-clip-path: polygon(0 0, 6px 6px, 12px 0px, 0px 0px);
193 background-color: rgba(0, 0, 0, 0.5); 245 background-color: rgba(0, 0, 0, 0.7);
194 } 246 }
195 247
196 .animation-timeline-timer { 248 .animation-timeline-timer {
197 width: 22px; 249 width: 22px;
198 height: 22px; 250 height: 22px;
199 position: relative; 251 position: relative;
200 top: -51px; 252 top: -51px;
201 left: -11px; 253 left: -11px;
202 border-radius: 22px; 254 border-radius: 22px;
203 border: 1px solid #7B7B7B; 255 border: 1px solid #7B7B7B;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 height: 100%; 293 height: 100%;
242 position: absolute; 294 position: absolute;
243 z-index: 300; 295 z-index: 300;
244 opacity: 1; 296 opacity: 1;
245 background: white; 297 background: white;
246 border-radius: 20px 0 0 20px; 298 border-radius: 20px 0 0 20px;
247 } 299 }
248 300
249 svg.animation-timeline-grid { 301 svg.animation-timeline-grid {
250 position: absolute; 302 position: absolute;
251 left: 200px; 303 left: 230px;
252 } 304 }
253 305
254 rect.animation-timeline-grid-line { 306 rect.animation-timeline-grid-line {
255 fill: #eee; 307 fill: hsl(0, 0%, 90%);
256 }
257
258 rect.animation-timeline-grid-line:first-child {
259 fill: #ccc;
260 } 308 }
261 309
262 .animation-timeline-row > svg.animation-ui { 310 .animation-timeline-row > svg.animation-ui {
263 position: absolute; 311 position: absolute;
264 } 312 }
265 313
266 .animation-node-timeline { 314 .animation-node-timeline {
267 flex-grow: 1; 315 flex-grow: 1;
268 } 316 }
269 317
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 overflow-y: auto; 354 overflow-y: auto;
307 z-index: 1; 355 z-index: 1;
308 overflow-x: hidden; 356 overflow-x: hidden;
309 } 357 }
310 358
311 .toolbar.animation-controls-toolbar { 359 .toolbar.animation-controls-toolbar {
312 float: right; 360 float: right;
313 } 361 }
314 362
315 .animation-node-row.animation-node-selected { 363 .animation-node-row.animation-node-selected {
316 background-color: hsla(218, 78%, 66%, 0.1); 364 background-color: hsla(216, 71%, 53%, 0.08);
365 }
366
367 .animation-node-selected > .animation-node-description {
368 background-color: #EFF4FD;
369 }
370
371 .animation-timeline-empty-message {
372 padding-left: 230px;
373 padding-right: 30px;
374 text-align: center;
375 position: absolute;
376 font-size: 20px;
377 line-height: 32px;
378 align-items: center; justify-content: center;
379 width: 100%;
380 height: calc(100% - 44px);
381 display: flex;
317 } 382 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698