summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/print_preview/previewarea/preview_area.css
blob: 6cf97b63d1268fed96204233ca3a4dc69c130ba3 (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. */

#preview-area.preview-area {
  -webkit-box-flex: 1;
  -webkit-user-select: none;
  background-color: #e6e6e6;
  overflow: hidden;
  position: relative;
}

.preview-area-plugin-wrapper {
  height: 100%;
  position: absolute;
  width: 100%;
}

#preview-area .preview-area-plugin {
  /* pluginFadeInTransitionDuration = 200ms */
  -webkit-transition: opacity 200ms linear;
  /* pluginFadeInTransitionDelay = overlayFadeOutTransitionDuration = 100ms */
  -webkit-transition-delay: 100ms;
  cursor: inherit;
  height: 100%;
  opacity: 1;
  width: 100%;
}

#preview-area .preview-area-plugin.invisible {
  /* pluginFadeOutTransitionDuration = 100ms */
  -webkit-transition: opacity 100ms linear;
  /* pluginFadeOutTransitionDelay = 250ms */
  -webkit-transition-delay: 250ms;
  opacity: 0;
}

#preview-area .preview-area-overlay-layer {
  -webkit-transition: opacity 200ms linear;
  /* overlayFadeInTransitionDelay = pluginFadeOutTransitionDelay +
   *     pluginFadeOutTransitionDuration = 350ms */
  -webkit-transition-delay: 350ms;
  -webkit-user-select: none;
  background: #e6e6e6;
  height: 100%;
  margin: 0;
  opacity: 1;
  position: absolute;
  width: 100%;
  z-index: 1;
}

#preview-area .preview-area-overlay-layer.invisible {
  /* overlayFadeOutTransitionDuration = 100ms */
  -webkit-transition: opacity 100ms linear;
  opacity: 0;
  pointer-events: none;
}

#preview-area .preview-area-messages {
  height: 100%;
}

#preview-area .preview-area-message {
  color: #404040;
  font-size: 1.1em;
  position: relative;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  top: 50%;
}

#preview-area .preview-area-no-plugin-action-area {
  margin-top: 12px;
}

#preview-area .preview-area-open-system-dialog-button-throbber {
  vertical-align: middle;
}