|
17 | 17 | @import './amp-story-share.css'; |
18 | 18 |
|
19 | 19 | .i-amphtml-story-bookend { |
20 | | - text-align: start !important; |
21 | | - color: #fff !important; |
22 | | - bottom: 0 !important; |
23 | 20 | display: flex !important; |
24 | 21 | flex-direction: column !important; |
25 | | - left: 0 !important; |
26 | | - position: absolute !important; |
27 | | - right: 0 !important; |
28 | | - top: 0 !important; |
| 22 | + background: #202125 !important; |
| 23 | + border-radius: 8px 8px 0 0 !important; |
| 24 | + color: #fff !important; |
| 25 | + text-align: start !important; |
29 | 26 | z-index: 100001 !important; |
30 | | - transition: transform 0.3s cubic-bezier(0.0, 0.0, 0.2, 1) !important; |
31 | | -} |
32 | | - |
33 | | -.i-amphtml-story-bookend.i-amphtml-hidden { |
34 | | - transition: transform 0.2s cubic-bezier(0.4, 0.0, 1, 1) !important; |
35 | | - transform: translateY(100vh) !important; |
36 | | - pointer-events: none !important; |
37 | | -} |
38 | | - |
39 | | -.i-amphtml-story-bookend-overflow { |
40 | | - overflow: auto !important; |
41 | | - -webkit-overflow-scrolling: touch !important; |
42 | | - margin-top: auto !important; /* positions it at the bottom of container */ |
43 | | -} |
44 | | - |
45 | | -.i-amphtml-story-bookend-inner { |
46 | | - margin: 88px 0 0 !important; |
47 | | - font-family: 'Roboto', sans-serif !important; |
48 | | - position: relative !important; |
49 | | - padding-top: 32px !important; |
50 | | - overflow: hidden !important; |
51 | 27 | } |
52 | 28 |
|
53 | | -.i-amphtml-story-bookend-inner::before { |
54 | | - content: " " !important; |
55 | | - display: block !important; |
56 | | - z-index: -1 !important; /* places it under content */ |
57 | | - background: #202125 !important; |
58 | | - position: absolute !important; |
59 | | - left: 0 !important; |
60 | | - top: 0 !important; |
61 | | - bottom: 0 !important; |
62 | | - right: 0 !important; |
63 | | - border-radius: 8px 8px 0 0 !important; |
| 29 | +.i-amphtml-story-bookend-handle { |
| 30 | + height: 4px !important; |
| 31 | + width: 40px !important; |
| 32 | + margin: 12px auto 24px !important; |
| 33 | + background: rgba(255, 255, 255, 0.24) !important; |
| 34 | + border-radius: 4px !important; |
64 | 35 | } |
65 | 36 |
|
66 | 37 | .i-amphtml-story-bookend-heading { |
|
343 | 314 | } |
344 | 315 |
|
345 | 316 | [desktop].i-amphtml-story-bookend { |
346 | | - transition: opacity 0.3s cubic-bezier(0.0, 0.0, 0.2, 1) !important; |
347 | | - transform: translateY(0) !important; |
348 | | - opacity: 1 !important; |
349 | | -} |
350 | | - |
351 | | -[desktop].i-amphtml-story-bookend.i-amphtml-hidden { |
352 | | - transition: opacity 0.2s cubic-bezier(0.4, 0.0, 1, 1) !important; |
353 | | - transform: translateY(100vh) !important; |
354 | | - opacity: 0 !important; |
355 | | -} |
356 | | - |
357 | | -[desktop].i-amphtml-story-bookend .i-amphtml-story-share-widget { |
358 | | - /* TODO(alanorozco): Don't render at all when on desktop */ |
359 | | - display: none !important; |
360 | | -} |
361 | | - |
362 | | -[desktop] .i-amphtml-story-bookend-inner { |
363 | 317 | box-sizing: border-box !important; |
364 | 318 | min-height: 100vh !important; |
365 | 319 | padding: 104px 156px 64px !important; |
366 | 320 | margin: 0 !important; |
367 | 321 | } |
368 | 322 |
|
369 | | -[desktop] .i-amphtml-story-bookend-inner::before { |
| 323 | +[desktop].i-amphtml-story-bookend .i-amphtml-story-share-widget { |
| 324 | + /* TODO(alanorozco): Don't render at all when on desktop */ |
370 | 325 | display: none !important; |
371 | 326 | } |
372 | 327 |
|
|
375 | 330 | display: none !important; |
376 | 331 | } |
377 | 332 |
|
378 | | -[desktop] .i-amphtml-story-bookend-overflow { |
379 | | - margin-top: 0 !important; |
380 | | - margin-bottom: 0 !important; |
| 333 | +[desktop] .i-amphtml-story-bookend-handle { |
| 334 | + display: none !important; |
381 | 335 | } |
382 | 336 |
|
383 | 337 | @media (min-width: 952px) { |
|
0 commit comments