-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
pagination-buttons.css
181 lines (159 loc) · 7.98 KB
/
pagination-buttons.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/**
* 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.
*/
/*
* In desktop panel mode i-amphtml-story-button-container acts as a sentinel
* and covers the previous and next pages.
* In mobile it is focusable for screen readers and the buttons are hidden.
* In desktop full bleed it is not focusable since the buttons are visible.
*/
.i-amphtml-story-button-container {
cursor: pointer !important;
position: absolute !important;
width: 30px !important;
top: 0 !important;
bottom: 0 !important;
height: calc(100vh - 150px) !important;
margin: auto 0 !important;
background: none !important;
transition: 150ms opacity linear, 150ms visibility linear !important;
outline: none !important;
z-index: 100002 !important;
}
/* Hide pointer events on mobile so only visible to screenreaders like TalkBack */
amp-story:not([desktop]) .i-amphtml-story-button-container {
pointer-events: none !important;
}
.next-container,
.i-amphtml-story-button-container.next-container > .i-amphtml-story-button-move {
left: auto !important;
right: 0 !important;
}
[dir=rtl] .next-container,
[dir=rtl] .i-amphtml-story-button-container.next-container > .i-amphtml-story-button-move {
left: 0 !important;
right: auto !important;
}
.i-amphtml-story-desktop-fullbleed .i-amphtml-story-button-container {
pointer-events: none !important;
}
.i-amphtml-story-button-container.prev-container.i-amphtml-story-back-close-bookend {
pointer-events: none !important;
}
/* Navigation button element. Visibly hidden on mobile but focusable by screen readers. */
amp-story:not([desktop]) .i-amphtml-story-button-move,
[dir=rtl] amp-story:not([desktop]) .i-amphtml-story-button-move {
width: 100% !important;
height: 100% !important;
border: none !important;
background: none !important;
padding: 0 !important;
}
[desktop] .i-amphtml-story-button-move {
display: flex !important;
position: fixed!important;
top: 0!important;
bottom: 0!important;
margin: auto 40px!important;
width: 60px!important;
height: 60px!important;
border-radius: 50%!important;
border: 0!important;
background-color: #fff!important;
background-repeat: no-repeat!important;
background-size: 12px 17px!important;
justify-content: center!important;
align-items: center!important;
opacity: .5!important;
transition: 150ms opacity linear, 350ms transform linear!important;
cursor: pointer!important;
pointer-events: all!important;
}
.i-amphtml-story-desktop-fullbleed .i-amphtml-story-button-move {
height: 48px !important;
width: 48px !important;
margin: auto 12px !important;
background-color: transparent !important;
background-size: auto !important;
filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.5)) !important;
opacity: 1 !important;
}
.prev-container > .i-amphtml-story-button-move,
[dir=rtl] .i-amphtml-story-fwd-next > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg width="16" height="25" xmlns="http://www.w3.org/2000/svg"><path d="M15.7 22l-9.5-9.5L15.7 3l-3-3L.4 12.6 12.8 25"/></svg>')!important;
background-position: 45% 50%!important;
left: 0!important;
right: auto !important;
}
.i-amphtml-story-desktop-fullbleed .prev-container > .i-amphtml-story-button-move,
.i-amphtml-story-desktop-fullbleed[dir=rtl] .i-amphtml-story-fwd-next > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" viewBox="0 0 24 24" fill="#FFFFFF"><path d="M11.67 3.87L9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"/><path fill="none" d="M0 0h24v24H0z"/></svg>') !important;
background-position: 10px 0 !important;
}
.i-amphtml-story-fwd-next > .i-amphtml-story-button-move,
[dir=rtl] .prev-container > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg width="16" height="25" xmlns="http://www.w3.org/2000/svg"><path d="M.3 3l9.5 9.5L.3 22l3 3 12.4-12.5L3.2 0"/></svg>')!important;
background-position: 55% 50%!important;
left: auto !important;
right: 0 !important;
}
.i-amphtml-story-desktop-fullbleed .i-amphtml-story-fwd-next > .i-amphtml-story-button-move,
.i-amphtml-story-desktop-fullbleed[dir=rtl] .prev-container > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" viewBox="0 0 48 48" fill="#FFFFFF"><path d="M11.76 8.24L27.51 24 11.76 39.76 16 44l20-20L16 4z"/><path fill="none" d="M0 0h48v48H0z"/></svg>') !important;
}
.i-amphtml-story-fwd-replay {
pointer-events: none !important;
}
.i-amphtml-story-fwd-replay > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
background-position: center center;
background-size: 32px 32px !important;
}
.i-amphtml-story-desktop-fullbleed .i-amphtml-story-fwd-replay > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" viewBox="0 0 48 48" fill="#FFFFFF"><path d="M0 0h48v48H0z" fill="none"/><path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"/></svg>') !important;
background-size: auto !important;
}
.i-amphtml-story-fwd-more > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>') !important;
background-position: center center;
background-size: 32px 32px !important;
}
.i-amphtml-story-desktop-fullbleed .i-amphtml-story-fwd-more > .i-amphtml-story-button-move {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" viewBox="0 0 48 48" fill="#FFFFFF"><path d="M0 0h48v48H0z" fill="none"/><path d="M12 20c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm24 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-12 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"/></svg>') !important;
background-size: auto !important;
}
/* Do not display when hidden. */
.i-amphtml-story-button-hidden {
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* Mouseover states */
.i-amphtml-story-desktop-panels.i-amphtml-story-next-hover > .i-amphtml-story-fwd-next >
.i-amphtml-story-button-move {
transform: translateX(8px)!important;
opacity: 1!important;
}
.i-amphtml-story-desktop-panels.i-amphtml-story-next-hover > .i-amphtml-story-fwd-replay >
.i-amphtml-story-button-move {
opacity: 1 !important;
}
.i-amphtml-story-desktop-panels.i-amphtml-story-prev-hover > .i-amphtml-story-back-prev >
.i-amphtml-story-button-move,
.i-amphtml-story-desktop-panels.i-amphtml-story-prev-hover > .i-amphtml-story-back-close-bookend >
.i-amphtml-story-button-move {
transform: translateX(-8px)!important;
opacity: 1!important;
}