summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/renderer/resources/plugin_placeholders.css
blob: 0df42885f04b7ce8533a5265e3d8f4bdb85b2cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

body {
  font-family: sans-serif;
  margin: 0;
  overflow: hidden;
  text-align: center;
  -webkit-user-select: none;
}

h1 {
  font-size: 10pt;
  font-weight: normal;
  padding: 0pt 10pt;
<if expr="not is_android and not pp_ifdef('chromeos')">
  visibility: hidden;
</if>
}

#outer:hover h1, #outer:hover #close {
  visibility: visible;
}

p {
  font-size: 8pt;
  padding: 0pt 14pt;
}

#outer {
  border: 1px black solid;
  box-sizing: border-box;
  height: 100%;
  position: absolute;
  width: 100%;
}

#inner {
  position: relative;
  height: 100%;
  width: 100%;
  top: 50%;
<if expr="not is_android">
  margin-top: -70px;
</if>
<if expr="is_android">
  margin-top: -14px;
</if>
}

#close {
<if expr="not is_android">
  visibility: hidden;
</if>
  cursor: pointer;
  position: absolute;
  right: 3px;
  top: 3px;
  height: 14px;
  width: 14px;
  background-image: -webkit-image-set(
      url('../../../ui/resources/default_100_percent/close_2.png') 1x,
      url('../../../ui/resources/default_200_percent/close_2.png') 2x);
  background-position: right top;
  background-repeat: no-repeat;
}

#close:hover {
  background-image: -webkit-image-set(
      url('../../../ui/resources/default_100_percent/close_2_hover.png') 1x,
      url('../../../ui/resources/default_200_percent/close_2_hover.png') 2x);
}

#close:active {
  background-image: -webkit-image-set(
      url('../../../ui/resources/default_100_percent/close_2_pressed.png') 1x,
      url('../../../ui/resources/default_200_percent/close_2_pressed.png') 2x);
}