forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamp-story-share.css
More file actions
169 lines (145 loc) · 5.54 KB
/
amp-story-share.css
File metadata and controls
169 lines (145 loc) · 5.54 KB
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
/**
* 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.
*/
@import '../../amp-social-share/0.1/amp-social-share.css';
/* All top-level bookend elements need to set their own left/right margins */
.i-amphtml-story-share-widget {
display: block !important;
margin: 16px 8px !important;
}
.i-amphtml-story-no-sharing .i-amphtml-story-share-widget {
display: none !important;
}
.i-amphtml-story-share-widget-scrollable {
padding: 16px 0 !important;
overflow: auto !important;
}
.i-amphtml-story-bookend-fullbleed .i-amphtml-story-share-widget {
margin-left: 0 !important;
margin-right: 0 !important;
}
.i-amphtml-story-share-widget::-webkit-scrollbar {
width: 0px !important;
background: transparent !important;
}
.i-amphtml-story-share-list {
list-style: none !important;
padding: 0 8px !important;
margin: 0 !important;
display: flex !important;
flex-wrap: wrap !important;
width: 100% !important;
}
.i-amphtml-story-bookend-fullbleed .i-amphtml-story-share-list {
padding-left: 16px !important;
padding-right: 16px !important;
}
.i-amphtml-story-share-item {
width: 48px !important;
height: 66px !important;
padding: 0 16px !important;
margin-bottom: 12px !important;
}
@media (max-width: 410px) {
.i-amphtml-story-share-item {
display: flex !important;
justify-content: center !important;
padding: 0 !important;
min-width: 60px !important;
width: 25% !important;
}
}
@media (min-width: 410px) and (max-width: 500px) {
.i-amphtml-story-share-item {
display: flex !important;
justify-content: center !important;
padding: 0 !important;
width: 20% !important;
}
}
@media (min-width: 500px) and (max-width: 720px) {
.i-amphtml-story-share-item {
display: flex !important;
justify-content: center !important;
padding: 0 !important;
width: 16.66% !important;
}
}
.i-amphtml-story-share-widget-scrollable .i-amphtml-story-share-list {
flex-wrap: nowrap !important;
}
.i-amphtml-story-share-widget-scrollable > * > .i-amphtml-story-share-item {
display: block !important;
margin: 0 !important;
padding: 0 16px !important;
min-width: auto !important;
}
.i-amphtml-story-share-item:empty {
display: none !important;
}
.i-amphtml-story-share-icon {
box-sizing: border-box !important;
position: relative !important;
width: 48px !important;
height: 48px !important;
display: block !important;
cursor: pointer !important;
border-radius: 4px !important;
overflow: visible !important;
/* for svg backgrounds: */
background-position: 8px 8px !important;
background-size: 32px 32px !important;
background-repeat: no-repeat !important;
}
.i-amphtml-story-share-icon.amp-social-share-facebook {
/* SVG icon has inner padding, so the glyph renders visually smaller than
* other icons, so we work around it by setting a higher background size. */
background-size: 38px 38px !important;
background-position: 5px 5px !important;
}
.i-amphtml-story-share-icon:active,
.i-amphtml-story-share-icon:focus {
outline: none !important;
box-shadow: none !important;
}
.i-amphtml-story-share-icon:active::before {
background-color: #787878 !important;
}
.i-amphtml-story-share-icon[type=email] {
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" fill="#ffffff"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
background-color: #9AA0A6 !important;
}
.i-amphtml-story-share-icon[type=system] {
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="#ffffff"><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-color: #9AA0A6 !important;
}
.i-amphtml-story-share-icon-link {
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" fill="#ffffff"><path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>') !important;
background-color: #9AA0A6 !important;
}
.i-amphtml-story-share-icon .i-amphtml-story-share-label {
position: absolute !important;
top: 48px !important;
left: 0 !important;
width: 100% !important;
color: rgba(0, 0, 0, 0.87) !important;
padding-top: 5px !important; /* Making sure the whole icon is clickable. */
text-transform: capitalize !important;
font-family: 'Roboto', sans-serif !important;
font-weight: 400 !important;
line-height: 13px !important;
font-size: 11px !important;
text-align: center !important;
}