| OLD | NEW |
| (Empty) | |
| 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 |
| 3 * found in the LICENSE file. */ |
| 4 |
| 5 #butter-bar-container { |
| 6 -webkit-box-pack: center; |
| 7 display: -webkit-box; |
| 8 left: 0; |
| 9 pointer-events: none; |
| 10 position: absolute; |
| 11 top: 0; |
| 12 width: 100%; |
| 13 z-index: 3; |
| 14 } |
| 15 |
| 16 #butter-bar { |
| 17 -webkit-box-align: end; |
| 18 -webkit-box-orient: horizontal; |
| 19 -webkit-transition: opacity 300ms; |
| 20 background-color: #e3e3e3; |
| 21 color: #222; |
| 22 display: -webkit-box; |
| 23 max-width: 340px; |
| 24 min-width: 40px; |
| 25 padding: 0 1em; |
| 26 pointer-events: auto; |
| 27 top: 1px; |
| 28 width: 30%; |
| 29 z-index: 2; |
| 30 } |
| 31 |
| 32 #butter-bar:not(.visible) { |
| 33 opacity: 0; |
| 34 pointer-events: none; |
| 35 } |
| 36 |
| 37 #butter-bar .content { |
| 38 -webkit-box-flex: 1; |
| 39 overflow: hidden; |
| 40 padding-bottom: 4px; |
| 41 padding-top: 4px; |
| 42 } |
| 43 |
| 44 #butter-bar .actions { |
| 45 -webkit-box-orient: horizontal; |
| 46 -webkit-box-pack: end; |
| 47 display: -webkit-box; |
| 48 height: 20px; |
| 49 } |
| 50 |
| 51 #butter-bar .actions a { |
| 52 background: center center no-repeat; |
| 53 background-image: -webkit-image-set( |
| 54 url('../images/close_bar.png') 1x, |
| 55 url('../images/2x/close_bar.png') 2x); |
| 56 display: inline-block; |
| 57 height: 12px; |
| 58 padding: 4px 2px; |
| 59 width: 12px; |
| 60 } |
| 61 |
| 62 #butter-bar .actions a:first-child { |
| 63 margin-left: 2px; |
| 64 } |
| 65 |
| 66 #butter-bar .actions a:last-child { |
| 67 margin-right: -2px; /* Overlap the padding with butter-bar padding. */ |
| 68 } |
| 69 |
| 70 #butter-bar.error { |
| 71 background-color: rgba(221, 75, 57, 0.2); |
| 72 border: 1px solid rgba(221, 75, 57, 0.5); |
| 73 border-radius: 2px; |
| 74 padding: 2px 1em; |
| 75 } |
| 76 |
| 77 .progress-bar { |
| 78 -webkit-box-flex: 1; |
| 79 border: 1px solid #999; |
| 80 margin-bottom: 2px; |
| 81 margin-top: 3px; |
| 82 padding: 1px; |
| 83 } |
| 84 |
| 85 .progress-track { |
| 86 -webkit-animation-duration: 800ms; |
| 87 -webkit-animation-iteration-count: infinite; |
| 88 -webkit-animation-name: bg; |
| 89 -webkit-animation-timing-function: linear; |
| 90 background-color: #ccc; |
| 91 background-image: -webkit-linear-gradient(315deg, transparent, |
| 92 transparent 33%, rgba(0, 0, 0, 0.12) 33%, rgba(0, 0, 0, 0.12) 66%, |
| 93 transparent 66%, transparent); |
| 94 background-position: 0 0; |
| 95 background-repeat: repeat-x; |
| 96 background-size: 16px 8px; |
| 97 height: 5px; |
| 98 } |
| 99 |
| 100 @-webkit-keyframes bg { |
| 101 0% { background-position: 0 0; } |
| 102 100% { background-position: -16px 0; } |
| 103 } |
| OLD | NEW |