| 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 html, body { | 5 html, body { |
| 6 -webkit-user-select: none; | 6 -webkit-user-select: none; |
| 7 font-family: sans-serif; | 7 font-family: sans-serif; |
| 8 height: 100%; | 8 height: 100%; |
| 9 margin: 0; | 9 margin: 0; |
| 10 overflow: hidden; | 10 overflow: hidden; |
| 11 text-align: center; | 11 text-align: center; |
| 12 width: 100%; | 12 width: 100%; |
| 13 } | 13 } |
| 14 | 14 |
| 15 h1 { | 15 h1 { |
| 16 display: none; |
| 16 font-size: 10pt; | 17 font-size: 10pt; |
| 17 font-weight: normal; | 18 font-weight: normal; |
| 18 padding: 0pt 10pt; | 19 padding: 0pt 10pt; |
| 19 <if expr="not is_android and not chromeos"> | |
| 20 visibility: hidden; | |
| 21 </if> | |
| 22 } | |
| 23 | |
| 24 #outer:hover h1, #outer:hover #close { | |
| 25 visibility: visible; | |
| 26 } | 20 } |
| 27 | 21 |
| 28 p { | 22 p { |
| 29 font-size: 8pt; | 23 font-size: 8pt; |
| 30 padding: 0pt 14pt; | 24 padding: 0pt 14pt; |
| 31 } | 25 } |
| 32 | 26 |
| 27 #t { |
| 28 background-color: #f7f7f7; |
| 29 color: #646464; |
| 30 } |
| 31 |
| 33 #outer { | 32 #outer { |
| 34 align-items: center; | 33 align-items: center; |
| 35 border: 1px black solid; | |
| 36 box-sizing: border-box; | 34 box-sizing: border-box; |
| 37 display: flex; | 35 display: flex; |
| 38 height: 100%; | 36 height: 100%; |
| 39 justify-content: center; | 37 justify-content: center; |
| 40 position: absolute; | 38 position: absolute; |
| 41 width: 100%; | 39 width: 100%; |
| 40 flex-direction: column; |
| 42 } | 41 } |
| 43 | 42 |
| 44 #close { | 43 .icon { |
| 45 background-image: -webkit-image-set( | 44 max-height: 100%; |
| 46 url(../../../../ui/resources/default_100_percent/close_2.png) 1x, | 45 max-width: 100%; |
| 47 url(../../../../ui/resources/default_200_percent/close_2.png) 2x); | 46 opacity: .3; |
| 48 background-position: right top; | |
| 49 background-repeat: no-repeat; | |
| 50 cursor: pointer; | |
| 51 height: 14px; | |
| 52 position: absolute; | |
| 53 right: 3px; | |
| 54 top: 3px; | |
| 55 <if expr="not is_android"> | |
| 56 visibility: hidden; | |
| 57 </if> | |
| 58 width: 14px; | |
| 59 } | 47 } |
| 60 | 48 |
| 61 #close[data-plugin-type='document'] { | 49 @media (orientation: landscape) and (min-height: 2em) and (min-width: 14em) { |
| 62 display: none; | 50 #outer { |
| 51 flex-direction: row; |
| 52 } |
| 53 .icon { |
| 54 max-height: 100%; |
| 55 max-width: 50%; |
| 56 } |
| 57 h1 { |
| 58 display: block; |
| 59 } |
| 63 } | 60 } |
| 64 | 61 |
| 65 #close:hover { | 62 @media (min-height: 7em) and (min-width: 6em) { |
| 66 background-image: -webkit-image-set( | 63 #outer { |
| 67 url(../../../../ui/resources/default_100_percent/close_2_hover.png) 1x, | 64 flex-direction: column; |
| 68 url(../../../../ui/resources/default_200_percent/close_2_hover.png) 2x); | 65 } |
| 66 .icon { |
| 67 max-height: 50%; |
| 68 max-width: 100%; |
| 69 } |
| 70 h1 { |
| 71 display: block; |
| 72 } |
| 69 } | 73 } |
| 70 | |
| 71 #close:active { | |
| 72 background-image: -webkit-image-set( | |
| 73 url(../../../../ui/resources/default_100_percent/close_2_pressed.png) 1x, | |
| 74 url(../../../../ui/resources/default_200_percent/close_2_pressed.png) 2x); | |
| 75 } | |
| OLD | NEW |