-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.scss
181 lines (169 loc) · 5.93 KB
/
style.scss
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
170
171
172
173
174
175
176
177
178
179
180
181
// this template is not intended to be compiled by anything other than the index.js process.
body, html {
margin: 0;
padding: 0;
}
.lowerthird, .subtitle, .title {
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.container {
position: absolute;
top: $styles-top;
left: $styles-left;
width: $styles-width;
height: $styles-height;
}
.lowerthird {
background-color: $styles-background-color;
overflow: hidden;
width: 100%;
height: 100%;
}
.lowerthird.ng-enter {
-webkit-animation-name: $styles-animation-in;
animation-name: $styles-animation-in;
-webkit-animation-duration: $styles-inDuration;
animation-duration: $styles-inDuration;
-webkit-animation-delay: $styles-inDelay;
animation-delay: $styles-inDelay;
-webkit-animation-timing-function: $styles-in-timing-function;
animation-timing-function: $styles-in-timing-function;
}
.lowerthird.ng-leave {
-webkit-animation-name: $styles-animation-out;
animation-name: $styles-animation-out;
-webkit-animation-duration: $styles-outDuration;
animation-duration: $styles-outDuration;
-webkit-animation-delay: $styles-outDelay;
animation-delay: $styles-outDelay;
-webkit-animation-timing-function: $styles-out-timing-function;
animation-timing-function: $styles-out-timing-function;
}
.title.ng-enter {
-webkit-animation-name: $titleStyles-animation-in;
animation-name: $titleStyles-animation-in;
-webkit-animation-duration: $titleStyles-inDuration;
animation-duration: $titleStyles-inDuration;
-webkit-animation-delay: $titleStyles-inDelay;
animation-delay: $titleStyles-inDelay;
-webkit-animation-timing-function: $titleStyles-in-timing-function;
animation-timing-function: $titleStyles-in-timing-function;
@if $titleStyles-animation-in == flipInX {
-webkit-backface-visibility: visible !important;
backface-visibility: visible !important;
}
}
.subtitle.ng-enter {
-webkit-animation-name: $subtitleStyles-animation-in;
animation-name: $subtitleStyles-animation-in;
-webkit-animation-duration: $subtitleStyles-inDuration;
animation-duration: $subtitleStyles-inDuration;
-webkit-animation-delay: $subtitleStyles-inDelay;
animation-delay: $subtitleStyles-inDelay;
-webkit-animation-timing-function: $subtitleStyles-in-timing-function;
animation-timing-function: $subtitleStyles-in-timing-function;
}
.title.ng-leave {
-webkit-animation-name: $titleStyles-animation-out;
animation-name: $titleStyles-animation-out;
-webkit-animation-duration: $titleStyles-outDuration;
animation-duration: $titleStyles-outDuration;
-webkit-animation-delay: $titleStyles-outDelay;
animation-delay: $titleStyles-outDelay;
-webkit-animation-timing-function: $titleStyles-out-timing-function;
animation-timing-function: $titleStyles-out-timing-function;
}
.subtitle.ng-leave {
-webkit-animation-name: $subtitleStyles-animation-out;
animation-name: $subtitleStyles-animation-out;
-webkit-animation-duration: $subtitleStyles-outDuration;
animation-duration: $subtitleStyles-outDuration;
-webkit-animation-delay: $subtitleStyles-outDelay;
animation-delay: $subtitleStyles-outDelay;
-webkit-animation-timing-function: $subtitleStyles-out-timing-function;
animation-timing-function: $subtitleStyles-out-timing-function;
}
.subtitle {
font-size: $subtitleStyles-font-size;
font-family: $subtitleStyles-font-family;
font-weight: $subtitleStyles-font-weight;
top: $subtitleStyles-top;
@if $subtitleStyles-text-align == 'right' {
right: 100%-$subtitleStyles-left;
width: $subtitleStyles-left;
} @else {
left: $subtitleStyles-left;
width: 100%-$subtitleStyles-left;
}
color: $subtitleStyles-color;
text-align: $subtitleStyles-text-align;
}
.title {
font-size: $titleStyles-font-size;
font-family: $titleStyles-font-family;
font-weight: $titleStyles-font-weight;
top: $titleStyles-top;
@if $titleStyles-text-align == 'right' {
right: 100%-$titleStyles-left;
width: $titleStyles-left;
} @else {
left: $titleStyles-left;
width: 100%-$titleStyles-left;
}
color: $titleStyles-color;
text-align: $titleStyles-text-align;
}
.titles {
position: absolute;
overflow: hidden;
}
img {
position: absolute;
height: auto;
}
.img-container {
position: absolute;
width: 100%;
height: 100%;
}
@for $i from 0 to $imagesCount {
.img-#{$i} {
width: nth($images-width, $i+1);
-moz-transform: rotate(nth($images-rotation, $i+1));
-ms-transform: rotate(nth($images-rotation, $i+1));
-o-transform: rotate(nth($images-rotation, $i+1));
-webkit-transform: rotate(nth($images-rotation, $i+1));
transform: rotate(nth($images-rotation, $i+1));
opacity: nth($images-opacity, $i+1);
}
.img-container-#{$i} {
top: nth($images-top, $i+1);
left: nth($images-left, $i+1);
z-index: nth($images-z-index, $i+1);
}
.img-container-#{$i}.ng-enter {
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-name: nth($images-animation-in, $i+1);
animation-name: nth($images-animation-in, $i+1);
-webkit-animation-duration: nth($images-inDuration, $i+1);
animation-duration: nth($images-inDuration, $i+1);
-webkit-animation-delay: nth($images-inDelay, $i+1);
animation-delay: nth($images-inDelay, $i+1);
-webkit-animation-timing-function: nth($images-in-timing-function, $i+1);
animation-timing-function: nth($images-in-timing-function, $i+1);
}
.img-container-#{$i}.ng-leave {
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-name: nth($images-animation-out, $i+1);
animation-name: nth($images-animation-out, $i+1);
-webkit-animation-duration: nth($images-outDuration, $i+1);
animation-duration: nth($images-outDuration, $i+1);
-webkit-animation-delay: nth($images-outDelay, $i+1);
animation-delay: nth($images-outDelay, $i+1);
-webkit-animation-timing-function: nth($images-out-timing-function, $i+1);
animation-timing-function: nth($images-out-timing-function, $i+1);
}
}