This repository was archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathaudio-js.css
More file actions
executable file
·217 lines (193 loc) · 11.6 KB
/
Copy pathaudio-js.css
File metadata and controls
executable file
·217 lines (193 loc) · 11.6 KB
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/*
AudioJS Default Styles (http://videojs.com)
Version 2.0.2
REQUIRED STYLES (be careful overriding)
================================================================================ */
/* Box containing audio, controls, and download links.
Will be set to the width of the audio element through JS
If you want to add some kind of frame or special positioning, use another containing element, not audio-js-box. */
.audio-js-box { text-align: left; position: relative; line-height: 0 !important; margin: 0; padding: 0 !important; border: none !important; }
/* Audio Element */
.audio-js-box audio { width: 0; height: 0; display: block;}
.audio-js-box.ajs-ios audio{ width: 100%; height: 3em;}
/* Subtiles Style */
.audio-js-box .ajs-subtitles { color: #fff; font-size: 20px; text-align: center; position: absolute; bottom: 40px; left: 0; right: 0; }
/* Styles Loaded Check */
.ajs-styles-check { height: 5px; position: absolute; }
/* DEFAULT SKIN (override in another file)
================================================================================
Using all CSS to draw the controls. Images could be used if desired.
Instead of editing this file, I recommend creating your own skin CSS file to be included after this file,
so you can upgrade to newer versions easier. */
/* Controls Layout
Using absolute positioning to position controls */
.audio-js-box .ajs-controls {
position: relative; margin: 0; opacity: 0.85; color: #fff;
display: none; /* Start hidden */
left: 0; right: 0; /* 100% width of audio-js-box */
width: 100%;
bottom: 0px; /* Distance from the bottom of the box/audio. Keep 0. Use height to add more bottom margin. */
height: 35px; /* Including any margin you want above or below control items */
padding: 0; /* Controls are absolutely position, so no padding necessary */
-webkit-transition: opacity 0.5s linear;
-moz-transition: opacity 0.5s linear;
-o-transition: opacity 0.5s linear;
-ms-transition: opacity 0.5s linear;
transition: opacity 0.5s linear;
font-size: 0;
}
.ajs-hide {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* IE8 */
opacity: 0 !important;
}
.ajs-show {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* IE8 */
opacity: 1 !important;
}
.audio-js-box .ajs-controls > div { /* Direct div children of control bar */
position: absolute; /* Use top, bottom, left, and right to specifically position the control. */
text-align: center; margin: 0; padding: 0;
height: 25px; /* Default height of individual controls */
top: 5px; /* Top margin to put space between audio and controls when controls are below */
/* CSS Background Gradients, Using to give the aqua-ish look. */
background-color: #0B151A;
background: #1F3744 -webkit-gradient(linear, left top, left bottom, from(#0B151A), to(#1F3744)) left 12px;
background: #1F3744 -moz-linear-gradient(top, #0B151A, #1F3744) left 12px;
/* CSS Curved Corners */
-webkit-border-radius: 5px; border-radius: 5px;
/* CSS Shadows */
-webkit-box-shadow: 1px 1px 2px #000; -moz-box-shadow: 1px 1px 2px #000; box-shadow: 1px 1px 2px #000;
}
/* Placement of Control Items
- Left side of pogress bar, use left & width
- Rigth side of progress bar, use right & width
- Expand with the audio (like progress bar) use left & right */
.ajs-controls > div.ajs-play-control { left: 5px; width: 25px; }
.ajs-controls > div.ajs-progress-control { left: 35px; right: 125px; } /* Using left & right so it expands with the width of the audio */
.ajs-controls > div.ajs-time-control { width: 75px; right: 50px; } /* Time control and progress bar are combined to look like one */
.ajs-controls > div.ajs-volume-control { width: 50px; right: 5px; }
/* Removing curved corners on progress control and time control to join them. */
.ajs-controls > div.ajs-progress-control {
-webkit-border-top-right-radius: 0; border-top-right-radius: 0;
-webkit-border-bottom-right-radius: 0; border-bottom-right-radius: 0;
}
.ajs-controls > div.ajs-time-control {
-webkit-border-top-left-radius: 0; border-top-left-radius: 0;
-webkit-border-bottom-left-radius: 0; border-bottom-left-radius: 0;
}
/* Play/Pause
-------------------------------------------------------------------------------- */
.ajs-play-control { cursor: pointer !important; }
/* Play Icon */
.ajs-play-control span { display: block; font-size: 0; line-height: 0; }
.ajs-paused .ajs-play-control span {
width: 0; height: 0; margin: 8px 0 0 8px;
/* Drawing the play triangle with borders - http://www.infimum.dk/HTML/slantinfo.html */
border-left: 10px solid #fff; /* Width & Color of play icon */
/* Height of play icon is total top & bottom border widths. Color is transparent. */
border-top: 5px solid rgba(0,0,0,0); border-bottom: 5px solid rgba(0,0,0,0);
}
.ajs-playing .ajs-play-control span {
width: 3px; height: 10px; margin: 8px auto 0;
/* Drawing the pause bars with borders */
border-top: 0px; border-left: 3px solid #fff; border-bottom: 0px; border-right: 3px solid #fff;
}
/* Progress
-------------------------------------------------------------------------------- */
.ajs-progress-holder { /* Box containing play and load progresses */
position: relative; padding: 0; overflow:hidden; cursor: pointer !important;
height: 9px; border: 1px solid #777;
margin: 7px 1px 0 5px; /* Placement within the progress control item */
-webkit-border-radius: 5px; border-radius: 5px;
}
.ajs-progress-holder div { /* Progress Bars */
position: absolute; display: block; width: 0; height: 9px; margin: 0; padding: 0;
-webkit-border-radius: 5px; border-radius: 5px;
}
.ajs-play-progress {
/* CSS Gradient */
background: #fff;
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#777));
background: -moz-linear-gradient(top, #fff, #777);
}
.ajs-load-progress {
opacity: 0.8;
/* CSS Gradient */
background-color: #555;
background: -webkit-gradient(linear, left top, left bottom, from(#555), to(#aaa));
background: -moz-linear-gradient(top, #555, #aaa);
}
/* Time Display
-------------------------------------------------------------------------------- */
.ajs-controls .ajs-time-control { font-size: 10px; line-height: 1; font-weight: normal; font-family: Helvetica, Arial, sans-serif; }
.ajs-controls .ajs-time-control span { line-height: 25px; /* Centering vertically */ }
/* Volume
-------------------------------------------------------------------------------- */
.ajs-volume-control { cursor: pointer !important; }
.ajs-volume-control div { display: block; margin: 0 5px 0 5px; padding: 4px 0 0 0; }
/* Drawing the volume icon using 6 span elements */
.ajs-volume-control div span { /* Individual volume bars */
float: left; padding: 0;
margin: 0 2px 0 0; /* Space between */
width: 5px; height: 0px; /* Total height is height + bottom border */
border-bottom: 18px solid #555; /* Default (off) color and height of visible portion */
}
.ajs-volume-control div span.ajs-volume-level-on { border-color: #fff; /* Volume on bar color */ }
/* Creating differnt bar heights through height (transparent) and bottom border (visible). */
.ajs-volume-control div span:nth-child(1) { border-bottom-width: 2px; height: 16px; }
.ajs-volume-control div span:nth-child(2) { border-bottom-width: 4px; height: 14px; }
.ajs-volume-control div span:nth-child(3) { border-bottom-width: 7px; height: 11px; }
.ajs-volume-control div span:nth-child(4) { border-bottom-width: 10px; height: 8px; }
.ajs-volume-control div span:nth-child(5) { border-bottom-width: 14px; height: 4px; }
.ajs-volume-control div span:nth-child(6) { margin-right: 0; }
/* Download Links - Used for browsers that don't support any audio.
---------------------------------------------------------*/
.ajs-no-audio { font-size: small; line-height: 1.5; }
/* Big Play Button (at start)
---------------------------------------------------------*/
div.ajs-big-play-button {
display: none; /* Start hidden */ z-index: 2;
position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; margin: -43px 0 0 -43px; text-align: center; vertical-align: center; cursor: pointer !important;
border: 3px solid #fff; opacity: 0.9;
-webkit-border-radius: 20px; border-radius: 20px;
/* CSS Background Gradients */
background-color: #0B151A;
background: #1F3744 -webkit-gradient(linear, left top, left bottom, from(#0B151A), to(#1F3744)) left 40px;
background: #1F3744 -moz-linear-gradient(top, #0B151A, #1F3744) left 40px;
/* CSS Shadows */
-webkit-box-shadow: 4px 4px 8px #000;
box-shadow: 4px 4px 8px #000;
}
div.ajs-big-play-button:hover {
-webkit-box-shadow: 0px 0px 80px #fff;
box-shadow: 0px 0px 80px #fff;
}
div.ajs-big-play-button span {
display: block; font-size: 0; line-height: 0;
width: 0; height: 0; margin: 20px 0 0 23px;
/* Drawing the play triangle with borders - http://www.infimum.dk/HTML/slantinfo.html */
border-left: 40px solid #fff; /* Width & Color of play icon */
/* Height of play icon is total top & bottom border widths. Color is transparent. */
border-top: 20px solid rgba(0,0,0,0); border-bottom: 20px solid rgba(0,0,0,0);
}
/* Spinner Styles
---------------------------------------------------------*/
/* CSS Spinners by Kilian Valkhof - http://kilianvalkhof.com/2010/css-xhtml/css3-loading-spinners-without-images/ */
.ajs-spinner { display: none; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; z-index: 1; margin: -50px 0 0 -50px;
/* Scaling makes the circles look smoother. */
-webkit-transform:scale(0.5); -moz-transform:scale(0.5); transform: scale(0.5);
}
/* Spinner circles */
.ajs-spinner div { position:absolute; left: 40px; top: 40px; width: 20px; height: 20px; background: #fff;
-webkit-border-radius: 20px; border-radius: 20px;
border: 1px solid #ccc; /* Added border so can be visible on white backgrounds */
}
/* Each circle */
.ajs-spinner div:nth-child(1) { opacity: 0.12; -webkit-transform: rotate(000deg) translate(0, -40px) scale(0.1); -moz-transform: rotate(000deg) translate(0, -40px) scale(0.1); transform: rotate(000deg) translate(0, -40px) scale(0.1); }
.ajs-spinner div:nth-child(2) { opacity: 0.25; -webkit-transform: rotate(045deg) translate(0, -40px) scale(0.2); -moz-transform: rotate(045deg) translate(0, -40px) scale(0.2); transform: rotate(045deg) translate(0, -40px) scale(0.2); }
.ajs-spinner div:nth-child(3) { opacity: 0.37; -webkit-transform: rotate(090deg) translate(0, -40px) scale(0.4); -moz-transform: rotate(090deg) translate(0, -40px) scale(0.4); transform: rotate(090deg) translate(0, -40px) scale(0.4); }
.ajs-spinner div:nth-child(4) { opacity: 0.50; -webkit-transform: rotate(135deg) translate(0, -40px) scale(0.6); -moz-transform: rotate(135deg) translate(0, -40px) scale(0.6); transform: rotate(135deg) translate(0, -40px) scale(0.6); }
.ajs-spinner div:nth-child(5) { opacity: 0.62; -webkit-transform: rotate(180deg) translate(0, -40px) scale(0.8); -moz-transform: rotate(180deg) translate(0, -40px) scale(0.8); transform: rotate(180deg) translate(0, -40px) scale(0.8); }
.ajs-spinner div:nth-child(6) { opacity: 0.75; -webkit-transform: rotate(225deg) translate(0, -40px) scale(1.0); -moz-transform: rotate(225deg) translate(0, -40px) scale(1.0); transform: rotate(225deg) translate(0, -40px) scale(1.0); }
.ajs-spinner div:nth-child(7) { opacity: 0.87; -webkit-transform: rotate(270deg) translate(0, -40px) scale(1.1); -moz-transform: rotate(270deg) translate(0, -40px) scale(1.1); transform: rotate(270deg) translate(0, -40px) scale(1.1); }
.ajs-spinner div:nth-child(8) { opacity: 1.00; -webkit-transform: rotate(315deg) translate(0, -40px) scale(1.3); -moz-transform: rotate(315deg) translate(0, -40px) scale(1.3); transform: rotate(315deg) translate(0, -40px) scale(1.3); }