| OLD | NEW |
| 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 /* The shield that overlays the background. */ | 5 /* The shield that overlays the background. */ |
| 6 .overlay { | 6 .overlay { |
| 7 -webkit-box-align: center; | 7 -webkit-box-align: center; |
| 8 -webkit-box-orient: vertical; | 8 -webkit-box-orient: vertical; |
| 9 -webkit-box-pack: center; | 9 -webkit-box-pack: center; |
| 10 -webkit-transition: 200ms opacity; | 10 -webkit-transition: 200ms opacity; |
| 11 background-color: rgba(255, 255, 255, 0.75); | 11 background-color: rgba(255, 255, 255, 0.75); |
| 12 bottom: 0; | 12 bottom: 0; |
| 13 display: -webkit-box; | 13 display: -webkit-box; |
| 14 left: 0; | 14 left: 0; |
| 15 overflow: auto; | 15 overflow: auto; |
| 16 padding: 20px; | 16 padding: 20px; |
| 17 padding-bottom: 130px; | 17 padding-bottom: 130px; |
| 18 position: fixed; | 18 position: fixed; |
| 19 right: 0; | 19 right: 0; |
| 20 top: 0; | 20 top: 0; |
| 21 } | 21 } |
| 22 | 22 |
| 23 /* The foreground dialog. */ | 23 /* The foreground dialog. */ |
| 24 .overlay .page { | 24 .overlay .page { |
| 25 -webkit-border-radius: 3px; |
| 25 background: white; | 26 background: white; |
| 26 box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3), 0 3px 57px rgba(0, 0, 0, 0.3); | 27 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0,0,0,0.15); |
| 28 color: #333; |
| 27 min-width: 400px; | 29 min-width: 400px; |
| 28 padding: 0; | 30 padding: 0; |
| 29 position: relative; | 31 position: relative; |
| 30 } | 32 } |
| 31 | 33 |
| 32 /* keyframes used to shake the overlay */ | 34 /* keyframes used to pulse the overlay */ |
| 33 @-webkit-keyframes shake { | 35 @-webkit-keyframes pulse { |
| 34 0% { | 36 0% { |
| 35 -webkit-transform: translateX(-5px) rotateZ(-0.5deg) translateY(-2px); | 37 -webkit-transform: scale(1); |
| 38 } |
| 39 40% { |
| 40 -webkit-transform: scale(1.02); |
| 36 } | 41 } |
| 37 50% { | 42 60% { |
| 38 -webkit-transform: translateX(0px) rotateZ(0deg) translateY(0px); | 43 -webkit-transform: scale(1.02); |
| 39 } | 44 } |
| 40 100% { | 45 100% { |
| 41 -webkit-transform: translateX(5px) rotateZ(0.5deg) translateY(-2px); | 46 -webkit-transform: scale(1); |
| 42 } | 47 } |
| 43 } | 48 } |
| 44 | 49 |
| 45 .overlay .page.shake { | 50 .overlay .page.pulse { |
| 46 -webkit-animation-direction: alternate; | 51 -webkit-animation-duration: 180ms; |
| 47 -webkit-animation-duration: 60ms; | 52 -webkit-animation-iteration-count: 1; |
| 48 -webkit-animation-iteration-count: 7; | 53 -webkit-animation-name: pulse; |
| 49 -webkit-animation-name: shake; | |
| 50 -webkit-animation-timing-function: ease-in-out; | 54 -webkit-animation-timing-function: ease-in-out; |
| 51 } | 55 } |
| 52 | 56 |
| 57 .overlay .page .close-button { |
| 58 background-image: url('chrome://resources/images/x.png'); |
| 59 background-position: center; |
| 60 background-repeat: no-repeat; |
| 61 height: 44px; |
| 62 position: absolute; |
| 63 right: 0; |
| 64 top: 0; |
| 65 width: 44px; |
| 66 } |
| 67 |
| 68 html[dir='rtl'] .overlay .page .close-button { |
| 69 left: 0; |
| 70 right: auto; |
| 71 } |
| 72 |
| 73 .overlay .page .close-button:hover { |
| 74 background-image: url('chrome://resources/images/x-hover.png'); |
| 75 } |
| 76 |
| 53 .overlay .page h1 { | 77 .overlay .page h1 { |
| 54 -webkit-padding-end: 24px; | 78 -webkit-padding-end: 24px; |
| 55 -webkit-user-select: none; | 79 -webkit-user-select: none; |
| 56 background: -webkit-linear-gradient(white, #F8F8F8); | |
| 57 border-bottom: 1px solid rgba(188, 193, 208, .5); | |
| 58 color: #333; | 80 color: #333; |
| 59 font-size: 1.1em; | 81 /* 120% of the body's font-size of 84% is 16px. This will keep the relative |
| 60 font-weight: bold; | 82 * size between the body and these titles consistent. */ |
| 83 font-size: 120%; |
| 61 margin: 0; | 84 margin: 0; |
| 62 padding: 10px 15px 8px; | 85 padding: 14px 17px 0; |
| 63 text-shadow: white 0 1px 2px; | 86 text-shadow: white 0 1px 2px; |
| 64 } | 87 } |
| 65 | 88 |
| 66 .overlay .page .content-area { | 89 .overlay .page .content-area { |
| 67 padding: 10px 15px 5px; | 90 padding: 14px 17px 6px; |
| 68 } | 91 } |
| 69 | 92 |
| 70 .overlay .page .action-area { | 93 .overlay .page .action-area { |
| 71 -webkit-box-align: center; | 94 -webkit-box-align: center; |
| 72 -webkit-box-orient: horizontal; | 95 -webkit-box-orient: horizontal; |
| 73 -webkit-box-pack: end; | 96 -webkit-box-pack: end; |
| 74 border-top: 1px solid rgba(188, 193, 208, .5); | |
| 75 display: -webkit-box; | 97 display: -webkit-box; |
| 76 padding: 12px; | 98 padding: 14px; |
| 77 } | 99 } |
| 78 | 100 |
| 79 html[dir='rtl'] .overlay .page .action-area { | 101 html[dir='rtl'] .overlay .page .action-area { |
| 80 left: 0; | 102 left: 0; |
| 81 } | 103 } |
| 82 | 104 |
| 83 .overlay .page .action-area-right { | 105 .overlay .page .action-area-right { |
| 84 display: -webkit-box; | 106 display: -webkit-box; |
| 85 } | 107 } |
| 86 | 108 |
| 87 .overlay .page .button-strip { | 109 .overlay .page .button-strip { |
| 88 -webkit-box-orient: horizontal; | 110 -webkit-box-orient: horizontal; |
| 89 display: -webkit-box; | 111 display: -webkit-box; |
| 90 } | 112 } |
| 91 | 113 |
| 92 .overlay .page .button-strip > button { | 114 .overlay .page .button-strip > button { |
| 93 -webkit-margin-start: 10px; | 115 -webkit-margin-start: 10px; |
| 94 display: block; | 116 display: block; |
| 95 } | 117 } |
| OLD | NEW |