-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtwitter-link.html
65 lines (56 loc) · 1.68 KB
/
twitter-link.html
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
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="social-link-behavior.html">
<!--
`twitter-link`
@demo demo/index.html
-->
<dom-module id="twitter-link">
<template>
<style>
:host {
display: inline-block;
}
a{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: underline;
color: black;
}
.container {
cursor: hand;
cursor: pointer;
@apply(--layout-horizontal);
}
p {
margin: 0px 0px 0px 5px;
@apply(--layout-flex-none)
}
</style>
<a href="{{href}}" target="_blank" style="color:{{color}}">
<div class="container">
<svg viewBox="0 0 20.34 16.17" style="height:{{height}};fill:{{color}}; padding-left: 15px">
<path class="515a544b-2ee6-4052-8329-f9002443fb0f" d="M7,16.61A11.39,11.39,0,0,0,18.43,5.14q0-.26,0-0.52a8.2,8.2,0,0,0,2-2.09,8,8,0,0,1-2.31.63A4,4,0,0,0,19.89.94a8.08,8.08,0,0,1-2.56,1,4,4,0,0,0-6.87,3.68A11.44,11.44,0,0,1,2.15,1.38,4,4,0,0,0,3.4,6.76a4,4,0,0,1-1.83-.5s0,0,0,.05a4,4,0,0,0,3.23,4A4,4,0,0,1,3,10.33a4,4,0,0,0,3.77,2.8,8.09,8.09,0,0,1-5,1.73,8.19,8.19,0,0,1-1-.06A11.41,11.41,0,0,0,7,16.61" transform="translate(-0.36 -0.55)"/>
</svg>
<template is="dom-if" if="{{text}}">
<p style="color:{{color}}; font-size: {{height}};">Twitter<p>
</template>
</div>
</a>
</template>
<script>
Polymer({
is: 'twitter-link',
behaviors: [
SocialLinkBehavior
],
properties: {
color: {
value: "#1da1f2"
}
}
});
</script>
</dom-module>