/
amp-story-vertical.css
74 lines (64 loc) · 2.21 KB
/
amp-story-vertical.css
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
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Vertical scrolling rendering, so the pages are visible to search engine
* indexing tools, and not stacked on top of each other.
*/
amp-story[standalone][i-amphtml-vertical] {
height: auto !important;
contain: initial !important;
}
/* Overrides publishers custom CSS animations, if any. */
[i-amphtml-vertical] * {
transition-delay: 0s !important;
transition-duration: 0s !important;
}
[i-amphtml-vertical] amp-story-page {
position: relative !important;
/* iPhone 6/7/8 ratio. */
height: 178vw !important;
contain: initial !important;
overflow: visible !important;
}
/* Increase CSS specifity. */
amp-story[i-amphtml-vertical].i-amphtml-element amp-story-page.i-amphtml-element {
transform: none !important;
}
[i-amphtml-vertical] .i-amphtml-story-draggable-drawer-container[hidden] .i-amphtml-story-draggable-drawer-content {
opacity: 1 !important;
}
[i-amphtml-vertical] .i-amphtml-story-draggable-drawer-container[hidden] .i-amphtml-story-draggable-drawer-content > * {
display: block !important;
}
[i-amphtml-vertical] amp-story-bookend,
[i-amphtml-vertical] amp-story-page-attachment {
display: block !important;
position: relative !important;
height: 178vw !important;
transform: none !important;
}
[i-amphtml-vertical].i-amphtml-story-bookend-active amp-story-page[active]::after {
content: none !important;
}
[i-amphtml-vertical] .i-amphtml-story-page-description {
background: white !important;
color: black !important;
display: block !important;
font-size: 0.8rem !important;
padding: 32px !important;
width: auto !important;
z-index: 9999999 !important;
}