| OLD | NEW |
| 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 } |
| 47 | 53 |
| 48 circle.animation-endpoint, circle.animation-keyframe-point { | 54 circle.animation-endpoint, circle.animation-keyframe-point { |
| 49 stroke-width: 2px; | 55 stroke-width: 2px; |
| 50 } | |
| 51 | |
| 52 circle.animation-endpoint, circle.animation-keyframe-point { | |
| 53 transition: transform 100ms cubic-bezier(0, 0, 0.2, 1); | 56 transition: transform 100ms cubic-bezier(0, 0, 0.2, 1); |
| 54 transform: scale(1); | 57 transform: scale(1); |
| 55 transform-origin: 50% 50%; | 58 transform-origin: 50% 50%; |
| 56 } | 59 } |
| 57 | 60 |
| 58 circle.animation-endpoint:hover, circle.animation-keyframe-point:hover { | 61 .animation-ui:not(.animation-ui-canceled) circle.animation-endpoint:hover, .anim
ation-ui:not(.animation-ui-canceled) circle.animation-keyframe-point:hover { |
| 59 transform: scale(1.2); | 62 transform: scale(1.2); |
| 60 } | 63 } |
| 61 | 64 |
| 62 circle.animation-endpoint:active, circle.animation-keyframe-point:active { | 65 circle.animation-endpoint:active, circle.animation-keyframe-point:active { |
| 63 transform: scale(1); | 66 transform: scale(1); |
| 64 } | 67 } |
| 65 | 68 |
| 66 circle.animation-keyframe-point { | 69 circle.animation-keyframe-point { |
| 67 fill: white; | 70 fill: white; |
| 68 } | 71 } |
| 69 | 72 |
| 70 .animation-name { | 73 .animation-name { |
| 71 position: absolute; | 74 position: absolute; |
| 72 top: 15px; | 75 top: 15px; |
| 73 color: #333; | 76 color: #333; |
| 74 text-align: center; | 77 text-align: center; |
| 75 margin-left: -8px; | 78 margin-left: -8px; |
| 76 text-overflow: ellipsis; | 79 text-overflow: ellipsis; |
| 77 overflow: hidden; | 80 overflow: hidden; |
| 78 white-space: nowrap; | 81 white-space: nowrap; |
| 82 min-width: 50px; |
| 79 } | 83 } |
| 80 | 84 |
| 81 .animation-timeline-header { | 85 .animation-timeline-header { |
| 82 height: 44px; | 86 height: 44px; |
| 83 border-bottom: 1px solid #ccc; | 87 border-bottom: 1px solid #ccc; |
| 84 flex-shrink: 0; | 88 flex-shrink: 0; |
| 85 } | 89 } |
| 86 | 90 |
| 91 .animation-timeline-header:after { |
| 92 content: ""; |
| 93 height: 100%; |
| 94 position: absolute; |
| 95 width: 200px; |
| 96 left: 0; |
| 97 background-color: hsl(0, 0%, 98%); |
| 98 z-index: -1; |
| 99 border-right: 1px solid hsl(0, 0%, 90%); |
| 100 } |
| 101 |
| 87 .animation-controls { | 102 .animation-controls { |
| 88 width: 200px; | 103 width: 201px; |
| 89 max-width: 200px; | 104 max-width: 201px; |
| 90 padding: 10px; | 105 padding: 10px; |
| 91 height: 100%; | 106 height: 100%; |
| 92 line-height: 22px; | 107 line-height: 22px; |
| 108 background-color: hsl(0, 0%, 98%); |
| 109 border-right: 1px solid hsl(0, 0%, 90%); |
| 93 } | 110 } |
| 94 | 111 |
| 95 .animation-timeline-markers { | 112 .animation-timeline-markers { |
| 96 height: 100%; | 113 height: 100%; |
| 97 width: calc(100% - 200px); | 114 width: calc(100% - 200px); |
| 98 display: inline-block; | 115 display: inline-block; |
| 99 } | 116 } |
| 100 | 117 |
| 101 .animation-time-overlay { | 118 .animation-time-overlay { |
| 102 background-color: black; | 119 background-color: black; |
| 103 opacity: 0.05; | 120 opacity: 0.05; |
| 104 position: absolute; | 121 position: absolute; |
| 105 height: 100%; | 122 height: 100%; |
| 106 width: 100%; | 123 width: 100%; |
| 107 } | 124 } |
| 108 | 125 |
| 126 .animation-timeline-end > .animation-time-overlay { |
| 127 visibility: hidden; |
| 128 } |
| 129 |
| 109 input.animation-playback-slider { | 130 input.animation-playback-slider { |
| 110 width: 68px; | 131 width: 93px; |
| 111 margin-left: 12px; | 132 margin-left: 12px; |
| 112 -webkit-appearance: none; | 133 -webkit-appearance: none; |
| 113 position: absolute; | 134 position: absolute; |
| 114 top: 18px; | 135 top: 7px; |
| 136 background: none; |
| 115 } | 137 } |
| 116 | 138 |
| 117 input[type=range].animation-playback-slider::-webkit-slider-runnable-track { | 139 input[type=range].animation-playback-slider::-webkit-slider-runnable-track { |
| 118 height: 4px; | 140 height: 4px; |
| 141 margin: 10px 0; |
| 119 border-radius: 2px; | 142 border-radius: 2px; |
| 120 cursor: pointer; | 143 cursor: pointer; |
| 121 background: #c8c8c8; | 144 background: #c8c8c8; |
| 122 } | 145 } |
| 123 | 146 |
| 124 input[type=range].animation-playback-slider:focus::-webkit-slider-runnable-track
{ | 147 input[type=range].animation-playback-slider:focus::-webkit-slider-runnable-track
{ |
| 125 background: #b8b8b8; | 148 background: #b8b8b8; |
| 126 } | 149 } |
| 127 | 150 |
| 128 input[type=range].animation-playback-slider::-webkit-slider-thumb { | 151 input[type=range].animation-playback-slider::-webkit-slider-thumb { |
| 129 -webkit-appearance: none; | 152 -webkit-appearance: none; |
| 130 cursor: pointer; | 153 cursor: pointer; |
| 131 margin-top: -4px; | 154 margin-top: -4px; |
| 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 color: #333; |
| 176 white-space: nowrap; |
| 177 overflow: hidden; |
| 146 } | 178 } |
| 147 | 179 |
| 148 .animation-scrubber { | 180 .animation-scrubber { |
| 149 opacity: 1; | 181 opacity: 1; |
| 150 position: absolute; | 182 position: absolute; |
| 151 left: 200px; | 183 left: 230px; |
| 152 height: calc(100% - 43px); | 184 height: calc(100% - 43px); |
| 153 width: calc(100% - 200px); | 185 width: calc(100% - 200px); |
| 154 top: 43px; | 186 top: 43px; |
| 155 border-left: 1px solid rgba(0,0,0,0.5); | 187 border-left: 1px solid rgba(0,0,0,0.5); |
| 156 } | 188 } |
| 157 | 189 |
| 190 .animation-scrubber.animation-timeline-end { |
| 191 border: none; |
| 192 } |
| 193 |
| 158 .animation-scrubber-head { | 194 .animation-scrubber-head { |
| 159 background-color: rgba(0, 0, 0, 0.5); | 195 background-color: rgba(0, 0, 0, 0.7); |
| 160 width: 50px; | 196 width: 60px; |
| 161 height: 23px; | 197 height: 23px; |
| 162 color: white; | 198 color: white; |
| 163 line-height: 23px; | 199 line-height: 23px; |
| 164 text-align: center; | 200 text-align: center; |
| 165 border-radius: 5px; | 201 border-radius: 5px; |
| 166 position: relative; | 202 position: relative; |
| 167 top: -29px; | 203 top: -29px; |
| 168 left: -26px; | 204 left: -30px; |
| 169 font-size: 10px; | 205 font-size: 10px; |
| 170 visibility: visible; | 206 visibility: visible; |
| 171 } | 207 } |
| 172 | 208 |
| 209 .animation-scrubber-head:before, .animation-scrubber-head:after { |
| 210 content: "||"; |
| 211 position: absolute; |
| 212 color: #999; |
| 213 font-size: 8px; |
| 214 } |
| 215 |
| 216 .animation-scrubber-head:before { |
| 217 left: 3px; |
| 218 } |
| 219 |
| 220 .animation-scrubber-head:after { |
| 221 right: 3px; |
| 222 } |
| 223 |
| 173 .animation-timeline-end > .animation-scrubber-head { | 224 .animation-timeline-end > .animation-scrubber-head { |
| 174 visibility: visible; | 225 visibility: visible; |
| 175 } | 226 } |
| 176 | 227 |
| 177 .animation-timeline-end > .animation-scrubber-arrow { | 228 .animation-timeline-end > .animation-scrubber-arrow { |
| 178 visibility: hidden; | 229 visibility: hidden; |
| 179 } | 230 } |
| 180 | 231 |
| 181 .animation-scrubber-arrow { | 232 .animation-scrubber-arrow { |
| 182 width: 21px; | 233 width: 21px; |
| 183 height: 25px; | 234 height: 25px; |
| 184 position: absolute; | 235 position: absolute; |
| 185 top: -6px; | 236 top: -6px; |
| 186 left: -7px; | 237 left: -7px; |
| 187 -webkit-clip-path: polygon(0 0, 6px 6px, 12px 0px, 0px 0px); | 238 -webkit-clip-path: polygon(0 0, 6px 6px, 12px 0px, 0px 0px); |
| 188 background-color: rgba(0, 0, 0, 0.5); | 239 background-color: rgba(0, 0, 0, 0.7); |
| 189 } | 240 } |
| 190 | 241 |
| 191 .animation-timeline-end > .animation-timeline-timer { | 242 .animation-timeline-end > .animation-timeline-timer { |
| 192 visibility: hidden; | 243 visibility: hidden; |
| 193 } | 244 } |
| 194 | 245 |
| 195 svg.animation-timeline-grid { | 246 svg.animation-timeline-grid { |
| 196 position: absolute; | 247 position: absolute; |
| 197 left: 200px; | 248 left: 230px; |
| 198 } | 249 } |
| 199 | 250 |
| 200 rect.animation-timeline-grid-line { | 251 rect.animation-timeline-grid-line { |
| 201 fill: #eee; | 252 fill: hsl(0, 0%, 90%); |
| 202 } | |
| 203 | |
| 204 rect.animation-timeline-grid-line:first-child { | |
| 205 fill: #ccc; | |
| 206 } | 253 } |
| 207 | 254 |
| 208 .animation-timeline-row > svg.animation-ui { | 255 .animation-timeline-row > svg.animation-ui { |
| 209 position: absolute; | 256 position: absolute; |
| 210 } | 257 } |
| 211 | 258 |
| 212 .animation-node-timeline { | 259 .animation-node-timeline { |
| 213 flex-grow: 1; | 260 flex-grow: 1; |
| 214 } | 261 } |
| 215 | 262 |
| 216 .animation-node-description > div { | 263 .animation-node-description > div { |
| 217 position: absolute; | 264 position: absolute; |
| 218 top: 50%; | 265 top: 50%; |
| 219 transform: translateY(-50%); | 266 transform: translateY(-50%); |
| 220 max-height: 100%; | 267 max-height: 100%; |
| 221 } | 268 } |
| 222 | 269 |
| 223 .animation-node-row.animation-node-removed { | 270 .animation-node-row.animation-node-removed { |
| 224 background-color: #fff0f0; | 271 background-color: hsla(0, 100%, 50%, 0.1); |
| 225 } | 272 } |
| 226 | 273 |
| 227 svg.animation-ui g:first-child { | 274 svg.animation-ui g:first-child { |
| 228 opacity: 1; | 275 opacity: 1; |
| 229 } | 276 } |
| 230 | 277 |
| 231 .animation-tail-iterations { | 278 .animation-tail-iterations { |
| 232 opacity: 0.5; | 279 opacity: 0.5; |
| 233 } | 280 } |
| 234 | 281 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 252 overflow-y: auto; | 299 overflow-y: auto; |
| 253 z-index: 1; | 300 z-index: 1; |
| 254 overflow-x: hidden; | 301 overflow-x: hidden; |
| 255 } | 302 } |
| 256 | 303 |
| 257 .toolbar.animation-controls-toolbar { | 304 .toolbar.animation-controls-toolbar { |
| 258 float: right; | 305 float: right; |
| 259 } | 306 } |
| 260 | 307 |
| 261 .animation-node-row.animation-node-selected { | 308 .animation-node-row.animation-node-selected { |
| 262 background-color: hsla(218, 78%, 66%, 0.1); | 309 background-color: hsla(216, 71%, 53%, 0.08); |
| 310 } |
| 311 |
| 312 .animation-node-selected > .animation-node-description { |
| 313 background-color: #EFF4FD; |
| 314 } |
| 315 |
| 316 .animation-timeline-empty-message { |
| 317 padding-left: 230px; |
| 318 padding-right: 30px; |
| 319 text-align: center; |
| 320 position: absolute; |
| 321 font-size: 20px; |
| 322 line-height: 32px; |
| 323 align-items: center; justify-content: center; |
| 324 width: 100%; |
| 325 height: calc(100% - 44px); |
| 326 display: flex; |
| 263 } | 327 } |
| OLD | NEW |