author | Chloe Laisne <chloe.laisne@gmail.com> |
Mon, 17 Oct 2016 00:07:36 +0530 | |
changeset 340 | f0f3888734bb |
parent 332 | 7f5fd48fa6c2 |
child 349 | 74bbf705a5ca |
permissions | -rw-r--r-- |
210 | 1 |
.player-component { |
224
d284324358b2
Remplace hexadecimal codes with sass variables
Chloe Laisne <chloe.laisne@gmail.com>
parents:
214
diff
changeset
|
2 |
color: $light-white; |
210 | 3 |
text-align: left; |
4 |
padding: 0px 40px; |
|
224
d284324358b2
Remplace hexadecimal codes with sass variables
Chloe Laisne <chloe.laisne@gmail.com>
parents:
214
diff
changeset
|
5 |
height: 80px; |
242 | 6 |
background-color: $dark-blue; |
7 |
overflow: visible; |
|
8 |
position: relative; |
|
210 | 9 |
} |
10 |
||
11 |
.player-component #audio { |
|
12 |
height: 100%; |
|
13 |
} |
|
14 |
||
15 |
.player-component #audio > * { |
|
16 |
display: block; |
|
17 |
float: left; |
|
18 |
height: 100%; |
|
19 |
} |
|
20 |
||
21 |
.player-component #audio .controls i { |
|
22 |
position: relative; |
|
23 |
width: auto; |
|
24 |
height: 40px; |
|
25 |
line-height: 36px; |
|
26 |
float: left; |
|
27 |
top: 50%; |
|
28 |
margin: -20px 0px 0px 0px; |
|
211 | 29 |
cursor: pointer; |
210 | 30 |
} |
31 |
||
212
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
32 |
.player-component #audio .controls i.disabled { |
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
33 |
cursor: pointer; |
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
34 |
pointer-events: none; |
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
35 |
opacity: .1; |
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
36 |
} |
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
37 |
|
210 | 38 |
.player-component #audio .controls i.fa-backward { |
39 |
margin-right: 10px; |
|
40 |
} |
|
41 |
||
211 | 42 |
.player-component #audio .controls i.fa-play, |
43 |
.player-component #audio .controls i.fa-pause { |
|
224
d284324358b2
Remplace hexadecimal codes with sass variables
Chloe Laisne <chloe.laisne@gmail.com>
parents:
214
diff
changeset
|
44 |
border: 2px solid $light-white; |
210 | 45 |
border-radius: 100%; |
46 |
margin-right: 8px; |
|
47 |
margin-left: 8px; |
|
48 |
width: 40px; |
|
49 |
} |
|
50 |
||
51 |
.player-component #audio .controls i::before { |
|
52 |
font-size: 22px; |
|
53 |
} |
|
54 |
||
211 | 55 |
.player-component #audio .controls i.fa-play::before, |
56 |
.player-component #audio .controls i.fa-pause::before { |
|
57 |
font-size: 16px; |
|
58 |
} |
|
59 |
||
210 | 60 |
.player-component #audio .controls i.fa-play::before { |
211 | 61 |
margin-left: 4px; |
210 | 62 |
} |
63 |
||
64 |
.player-component #audio .controls i.fa-forward { |
|
65 |
margin-left: 10px; |
|
66 |
} |
|
67 |
||
254 | 68 |
.player-component #audio .controls.extra i { |
69 |
margin-left: 28px; |
|
70 |
} |
|
71 |
||
72 |
.player-component #audio .controls.extra i:first-child { |
|
73 |
margin-left: 0px; |
|
74 |
} |
|
75 |
||
210 | 76 |
.player-component #audio .progress { |
77 |
position: relative; |
|
78 |
margin: 0px 59px; |
|
79 |
} |
|
80 |
||
81 |
.player-component #audio .progress > * { |
|
82 |
display: inline-block; |
|
83 |
line-height: 80px; |
|
84 |
} |
|
85 |
||
86 |
.player-component #audio .progress .head, |
|
87 |
.player-component #audio .progress .remaining { |
|
88 |
position: absolute; |
|
89 |
top: 0px; |
|
90 |
} |
|
91 |
||
92 |
.player-component #audio .progress .head { |
|
93 |
left: 0px; |
|
94 |
} |
|
95 |
||
96 |
.player-component #audio .progress .remaining { |
|
97 |
right: 0px; |
|
98 |
} |
|
99 |
||
100 |
.player-component #audio .progress .bar { |
|
253
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
101 |
width: 303px; |
210 | 102 |
height: 3px; |
225 | 103 |
background-color: $light-white; |
210 | 104 |
margin: -1px 60px 0 60px; |
105 |
position: relative; |
|
106 |
display: block; |
|
107 |
top: 50%; |
|
241
da3c6ba8a80b
Set time from progress bar - Toggle play plause to actions
Chloe Laisne <chloe.laisne@gmail.com>
parents:
232
diff
changeset
|
108 |
cursor: pointer; |
210 | 109 |
} |
110 |
||
253
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
111 |
.player-component #audio.extra .progress .bar { |
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
112 |
width: 226px; |
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
113 |
} |
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
114 |
|
254 | 115 |
.player-component #audio.extra.multiple .progress .bar { |
116 |
width: 181px; |
|
117 |
} |
|
118 |
||
210 | 119 |
.player-component #audio .progress .bar .value { |
212
f2c6080a73aa
Player backward/forward design logic
Chloe Laisne <chloe.laisne@gmail.com>
parents:
211
diff
changeset
|
120 |
width: 0%; |
210 | 121 |
height: 100%; |
225 | 122 |
background-color: $blue; |
210 | 123 |
display: block; |
124 |
} |
|
125 |
||
340 | 126 |
.player-component #audio .meta { |
127 |
width: 431px; |
|
128 |
} |
|
129 |
||
210 | 130 |
.player-component #audio .meta p { |
131 |
float: left; |
|
132 |
width: 170px; |
|
133 |
margin: 0px 0px 0px 30px; |
|
134 |
padding: 0px; |
|
135 |
box-sizing: border-box; |
|
136 |
top: 50%; |
|
137 |
margin-top: -22px; |
|
138 |
display: block; |
|
139 |
position: relative; |
|
140 |
} |
|
141 |
||
142 |
.player-component #audio .meta p:first-child { |
|
253
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
143 |
margin-left: 0px; |
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
144 |
} |
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
145 |
|
340 | 146 |
.player-component #audio .meta p:last-child { |
147 |
margin-left: 0px; |
|
148 |
float: right; |
|
149 |
} |
|
150 |
||
253
0be9770b09b4
Hide/show transcript button in the player - Do not request transscript when property is null in the document request
Chloe Laisne <chloe.laisne@gmail.com>
parents:
251
diff
changeset
|
151 |
.player-component #audio.extra .meta p:first-child { |
251
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
152 |
margin-left: 59px; |
210 | 153 |
} |
154 |
||
155 |
.player-component #audio .meta p > * { |
|
156 |
white-space: nowrap; |
|
157 |
text-overflow: ellipsis; |
|
158 |
overflow: hidden; |
|
159 |
line-height: 22px; |
|
160 |
display: block; |
|
161 |
} |
|
162 |
||
163 |
.player-component #audio .meta .language, |
|
164 |
.player-component #audio .meta .date { |
|
165 |
|
|
166 |
} |
|
167 |
||
288
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
168 |
.player-component #audio .meta .language a { |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
169 |
text-transform: capitalize; |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
170 |
text-decoration: none; |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
171 |
pointer-events: none; |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
172 |
cursor: default; |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
173 |
color: inherit; |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
174 |
} |
f2b77873a156
Notice link color and underline
Chloe Laisne <chloe.laisne@gmail.com>
parents:
254
diff
changeset
|
175 |
|
210 | 176 |
.player-component #audio .meta .title, |
177 |
.player-component #audio .meta .author { |
|
302
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
178 |
position: relative; |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
179 |
height: 22px; |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
180 |
text-overflow: clip; |
210 | 181 |
} |
182 |
||
302
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
183 |
.player-component #audio .meta .title span, |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
184 |
.player-component #audio .meta .author span { |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
185 |
position: absolute; |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
186 |
overflow: auto; |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
187 |
text-overflow: initial; |
973df1349591
Animate player text-overflow
Chloe Laisne <chloe.laisne@gmail.com>
parents:
288
diff
changeset
|
188 |
} |
210 | 189 |
|
190 |
.player-component #audio .meta .title { |
|
191 |
font-weight: bold; |
|
242 | 192 |
} |
193 |
||
194 |
.player-component #video { |
|
195 |
display: none; |
|
254 | 196 |
background-color: #000000; |
242 | 197 |
border: none; |
198 |
z-index: 1; |
|
199 |
left: 0px; |
|
200 |
position: absolute; |
|
201 |
width: 554px; |
|
202 |
} |
|
203 |
||
254 | 204 |
body.videoscreen .player-component.video #video { |
242 | 205 |
display: block; |
206 |
} |
|
207 |
||
208 |
.player-component #video #popcorn-audio { |
|
209 |
width: 100%; |
|
254 | 210 |
height: 308px; |
242 | 211 |
display: block; |
212 |
margin: 0 auto; |
|
251
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
213 |
} |
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
214 |
|
332
7f5fd48fa6c2
Change bars to text icon for transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
303
diff
changeset
|
215 |
.player-component #audio .controls.extra i.fa-text-height { |
251
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
216 |
position: relative; |
332
7f5fd48fa6c2
Change bars to text icon for transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
303
diff
changeset
|
217 |
overflow: hidden; |
7f5fd48fa6c2
Change bars to text icon for transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
303
diff
changeset
|
218 |
display: inline-block; |
7f5fd48fa6c2
Change bars to text icon for transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
303
diff
changeset
|
219 |
width: 16px; |
251
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
220 |
} |
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
221 |
|
332
7f5fd48fa6c2
Change bars to text icon for transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
303
diff
changeset
|
222 |
.player-component #audio .controls.extra i.fa-text-height::before { |
251
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
223 |
font-size: 21px; |
303
2fef8007c2b2
Transcript icon in player white by default and blue when active + Transcript font color darker
Chloe Laisne <chloe.laisne@gmail.com>
parents:
302
diff
changeset
|
224 |
} |
2fef8007c2b2
Transcript icon in player white by default and blue when active + Transcript font color darker
Chloe Laisne <chloe.laisne@gmail.com>
parents:
302
diff
changeset
|
225 |
|
332
7f5fd48fa6c2
Change bars to text icon for transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
303
diff
changeset
|
226 |
.player-component #audio .controls.extra i.fa-text-height.active::before { |
303
2fef8007c2b2
Transcript icon in player white by default and blue when active + Transcript font color darker
Chloe Laisne <chloe.laisne@gmail.com>
parents:
302
diff
changeset
|
227 |
color: $blue; |
251
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
228 |
} |
ac320de33ec7
Add transcript button to player-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
242
diff
changeset
|
229 |
|
254 | 230 |
.player-component #audio .controls.extra i.fa-expand::before, |
231 |
.player-component #audio .controls.extra i.fa-compress::before { |
|
232 |
font-size: 19px; |
|
303
2fef8007c2b2
Transcript icon in player white by default and blue when active + Transcript font color darker
Chloe Laisne <chloe.laisne@gmail.com>
parents:
302
diff
changeset
|
233 |
} |