Mercurial > hg > dml-open-vis
comparison src/DML/MainVisBundle/Resources/assets/bem-blocks/player.less @ 0:493bcb69166c
added public content
author | Daniel Wolff |
---|---|
date | Tue, 09 Feb 2016 20:54:02 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:493bcb69166c |
---|---|
1 @import "../config.less"; | |
2 | |
3 .player { | |
4 | |
5 @height: 90px; | |
6 @message-top: 15px; | |
7 @commands-top: 32px; | |
8 @padding-h: 10px; | |
9 | |
10 @command-size_small: 15px; | |
11 | |
12 position: relative; | |
13 height: @height; | |
14 | |
15 // ---------------------------------- | |
16 &_modifier { | |
17 | |
18 } | |
19 | |
20 // ================================== | |
21 &__body { | |
22 .position_absolute_everywhere(); | |
23 } | |
24 | |
25 // ================================== | |
26 &__command { | |
27 display: block; | |
28 position: absolute; | |
29 width: @player--command-size; | |
30 height: @player--command-size; | |
31 } | |
32 | |
33 &__command:focus { | |
34 outline: none; | |
35 } | |
36 | |
37 &__command i { | |
38 display: block; | |
39 position: absolute; | |
40 width: @player--command-size; | |
41 height: @player--command-size; | |
42 background-repeat: no-repeat; | |
43 background-position: center center; | |
44 opacity: 0.05; | |
45 } | |
46 | |
47 &__command_state_enabled { | |
48 display: block; | |
49 .cursor_action(); | |
50 } | |
51 &__command_state_enabled i { | |
52 opacity: 0.35; | |
53 } | |
54 | |
55 &__command_state_enabled:hover i { | |
56 opacity: 1; | |
57 } | |
58 &__command_flashing i, | |
59 &__command_state_enabled:active i { | |
60 //background: mix(@config-grid--color_collection, #fff, 20%); | |
61 top: 1px; | |
62 } | |
63 | |
64 // ---------------------------------- | |
65 .jp-state-playing &__command_action_play { | |
66 display: none; | |
67 } | |
68 &__command_action_pause { | |
69 display: none; | |
70 } | |
71 .jp-state-playing &__command_action_pause { | |
72 display: block; | |
73 } | |
74 &__command_action_play, &__command_action_pause { | |
75 top: @commands-top; | |
76 left: @padding-h - 4px; | |
77 } | |
78 &__command_action_download { | |
79 top: @commands-top - 1; | |
80 left: 35px; | |
81 //right: @padding-h; | |
82 } | |
83 | |
84 // ---------------------------------- | |
85 &__command_action_play i { | |
86 background-image: url("@{bem-path}/player/command/play.svg"); | |
87 } | |
88 | |
89 // ---------------------------------- | |
90 &__command_action_pause i { | |
91 background-image: url("@{bem-path}/player/command/pause.svg"); | |
92 } | |
93 | |
94 // ---------------------------------- | |
95 &__command_action_download i { | |
96 background-image: url("@{bem-path}/player/command/download_cloud.svg"); | |
97 } | |
98 | |
99 // ---------------------------------- | |
100 &__command_action_volume-up i { | |
101 background-size: 50%; | |
102 background-image: url("@{bem-path}/player/command/volume-up.svg"); | |
103 } | |
104 | |
105 // ---------------------------------- | |
106 &__command_action_volume-down i { | |
107 background-size: 45%; | |
108 background-image: url("@{bem-path}/player/command/volume-down.svg"); | |
109 } | |
110 | |
111 // ---------------------------------- | |
112 &__command_action_volume-mute i { | |
113 background-size: 35%; | |
114 background-image: url("@{bem-path}/player/command/volume-mute.svg"); | |
115 } | |
116 | |
117 &__command_action_volume-down, &__command_action_volume-mute, &__command_action_volume-up { | |
118 top: @commands-top; | |
119 } | |
120 &__command_action_volume-down, &__command_action_volume-mute { | |
121 left: 90px; | |
122 } | |
123 &__command_action_volume-up { | |
124 right: 5px; | |
125 } | |
126 | |
127 // ================================== | |
128 &__label { | |
129 position: absolute; | |
130 .font_small(); | |
131 left: @padding-h; | |
132 right: @padding-h; | |
133 white-space: nowrap; | |
134 overflow: hidden; | |
135 //color: @config-grid--color_panel-label; | |
136 } | |
137 | |
138 // ---------------------------------- | |
139 &__label_row_1 { | |
140 top: 4px; | |
141 } | |
142 &__label_row_2 { | |
143 top: 15px; | |
144 } | |
145 &__label-fader { | |
146 position: absolute; | |
147 top: 0; | |
148 right: @padding-h; | |
149 height: 30px; | |
150 width: @config-grid--header-fader-width; | |
151 .text-fader-background-gradient(#eee); | |
152 } | |
153 | |
154 // ================================== | |
155 &__time { | |
156 position: absolute; | |
157 .font_small(); | |
158 color: @config-grid--color_panel-label; | |
159 top: 70px; | |
160 } | |
161 &__time_type_before { | |
162 left: 10px; | |
163 } | |
164 &__time_type_after { | |
165 right: 10px; | |
166 } | |
167 | |
168 // ================================== | |
169 &__slider-container { | |
170 } | |
171 &__slider-container_type_time { | |
172 position: absolute; | |
173 left: 10px; | |
174 right: 10px; | |
175 top: 60px; | |
176 height: 15px; | |
177 } | |
178 | |
179 &__slider-container_type_volume { | |
180 position: absolute; | |
181 left: 115px; | |
182 right: 35px; | |
183 top: 36px; | |
184 height: 18px; | |
185 } | |
186 | |
187 &__slider { | |
188 .position_absolute_everywhere(); | |
189 border-top: 5px solid; | |
190 border-bottom: 5px solid; | |
191 color: #eee; | |
192 background: rgba(0, 0, 0, 5%); | |
193 } | |
194 | |
195 // ================================== | |
196 &__slider-head { | |
197 .position_absolute_everywhere(); | |
198 right: auto; | |
199 background: rgba(0, 0, 0, 35%); | |
200 } | |
201 | |
202 &__slider:hover { | |
203 background: rgba(0, 0, 0, 15%); | |
204 } | |
205 | |
206 &__slider:hover &__slider-head { | |
207 background: #000; | |
208 } | |
209 | |
210 // ================================== | |
211 &__cover { | |
212 .position_absolute_everywhere(); | |
213 } | |
214 | |
215 // ================================== | |
216 &__message { | |
217 .position_absolute_everywhere; | |
218 padding-top: @message-top; | |
219 text-align: center; | |
220 } | |
221 | |
222 // ---------------------------------- | |
223 &__message_type_error { | |
224 | |
225 } | |
226 | |
227 // ---------------------------------- | |
228 &__message_type_loading { | |
229 | |
230 } | |
231 } |