forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 2
/
amp-story-bling-link.css
71 lines (63 loc) · 2.48 KB
/
amp-story-bling-link.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
/**
* Copyright 2019 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.
*/
.i-amphtml-story-bling-link {
position: relative !important;
width: 90px !important;
height: 90px !important;
}
.i-amphtml-story-bling-link-circle {
position: absolute !important;
border-radius: 50% !important;
background: rgba(255, 255, 255, 1) !important;
margin: 7.5px !important;
width: 75px !important;
height: 75px !important;
}
amp-story-page[active] .i-amphtml-story-bling-link-pulse {
position: absolute !important;
border-radius: 50% !important;
background: rgba(255, 255, 255, 0.4) !important;
margin: 7.5px !important;
width: 75px !important;
height: 75px !important;
animation: pulse 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite alternate !important;
}
@keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.2);
}
}
.i-amphtml-story-bling-link:hover .i-amphtml-story-bling-link-circle {
background: rgba(255, 255, 255, 0.4) !important;
}
.i-amphtml-story-bling-link:hover .i-amphtml-story-bling-link-pulse {
animation: none !important;
}
.i-amphtml-story-bling-link-icon {
background-position: center !important;
background-repeat: no-repeat !important;
background-size: 36px 36px !important;
color: rgba(0, 0, 0, 0.54) !important;
width: 75px !important;
height: 75px !important;
display: flex !important;
}
.i-amphtml-story-bling-link-shopping-cart {
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
}