-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathyoutube-link.html
66 lines (56 loc) · 1.44 KB
/
youtube-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
66
<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">
<!--
`youtube-link`
@demo demo/index.html
-->
<dom-module id="youtube-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 22.74 15.92" style="height:{{height}};fill:{{color}}; padding-left: 15px">
<path d="M23,4a3.4,3.4,0,0,0-3.4-3.4H3.69A3.4,3.4,0,0,0,.29,4v9.12a3.4,3.4,0,0,0,3.4,3.4H19.63a3.4,3.4,0,0,0,3.4-3.4V4ZM9.39,12.43V3.87l6.49,4.28Zm0,0" transform="translate(-0.29 -0.63)" style="fill-rule:evenodd"/>
</svg>
<template is="dom-if" if="{{text}}">
<p style="color:{{color}}; font-size: {{height}};">YouTube<p>
</template>
</div>
</a>
</template>
<script>
Polymer({
is: 'youtube-link',
behaviors: [
SocialLinkBehavior
],
properties: {
color: {
value: "#cd201f"
}
}
});
</script>
</dom-module>