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
|
<element extends="aside" name="x-gdbar" constructor="GDBar">
<template>
<style scoped>
/* line 764, ../sass/default.scss */
aside {
height: 97px;
width: 215px;
position: absolute;
left: 0;
top: 125px;
-webkit-border-radius: 0 10px 10px 0;
-moz-border-radius: 0 10px 10px 0;
-ms-border-radius: 0 10px 10px 0;
-o-border-radius: 0 10px 10px 0;
border-radius: 0 10px 10px 0;
background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(0%, #e6e6e6), color-stop(100%, #e6e6e6)) no-repeat;
background: -webkit-linear-gradient(left, #e6e6e6, #e6e6e6) no-repeat;
background: -moz-linear-gradient(left, #e6e6e6, #e6e6e6) no-repeat;
background: -o-linear-gradient(left, #e6e6e6, #e6e6e6) no-repeat;
background: -ms-linear-gradient(left, #e6e6e6, #e6e6e6) no-repeat;
background: linear-gradient(left, #e6e6e6, #e6e6e6) no-repeat;
-webkit-background-size: 0% 100%;
-moz-background-size: 0% 100%;
-o-background-size: 0% 100%;
background-size: 0% 100%;
-webkit-transition: all 0.5s ease-out 0.5s;
-moz-transition: all 0.5s ease-out 0.5s;
-ms-transition: all 0.5s ease-out 0.5s;
-o-transition: all 0.5s ease-out 0.5s;
transition: all 0.5s ease-out 0.5s;
/* Better to transition only on background-size, but not sure how to do that with the mixin. */
}
/* line 775, ../sass/default.scss */
aside.right {
right: 0;
left: -moz-initial;
left: initial;
top: 254px;
/* 96 is height of gray icon bar */
-webkit-transform: rotateZ(180deg);
-moz-transform: rotateZ(180deg);
-ms-transform: rotateZ(180deg);
-o-transform: rotateZ(180deg);
transform: rotateZ(180deg);
}
/* line 782, ../sass/default.scss */
aside.right img {
-webkit-transform: rotateZ(180deg);
-moz-transform: rotateZ(180deg);
-ms-transform: rotateZ(180deg);
-o-transform: rotateZ(180deg);
transform: rotateZ(180deg);
}
/* line 787, ../sass/default.scss */
aside.bottom {
top: -moz-initial;
top: initial;
bottom: 60px;
}
/* line 793, ../sass/default.scss */
aside img {
width: 85px;
height: 85px;
position: absolute;
right: 0;
margin: 8px 15px;
}
aside.active {
background-size: 100% 100%;
}
/*.current :host aside {
}*/
</style>
<!--<style>
/* When :host starts working us above. Until then we're stuck with this.
in an unscoped style. */
.current aside[is=x-gdbar] aside {
background-size: 100% 100%;
opacity: 0;
}
</style>
-->
<aside>
<img src="images/google_developers_icon_128.png">
</aside>
</template>
<script>
var shadowRoot = null;
this.lifecycle({
created: function(root) {
shadowRoot = root;
},
// TODO: use css :host selector instead of doing this in JS.
attributeChanged: function(name, oldValue, newValue) {
if (name == 'class') {
shadowRoot.querySelector('aside').className = newValue;
}
}
});
</script>
</element>
|