@kodezen/player 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +45 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +45 -10
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +45 -10
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +45 -10
- package/dist/react/index.js.map +1 -1
- package/dist/styles.css +46 -11
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -114,6 +114,9 @@
|
|
|
114
114
|
width: 22px;
|
|
115
115
|
height: 22px;
|
|
116
116
|
fill: currentColor;
|
|
117
|
+
/* Presses always land on the button itself, never on an icon that may be
|
|
118
|
+
swapped out mid-click. */
|
|
119
|
+
pointer-events: none;
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
.kzp-scrubber {
|
|
@@ -155,23 +158,30 @@
|
|
|
155
158
|
position: relative;
|
|
156
159
|
}
|
|
157
160
|
|
|
158
|
-
.kzp-speed-btn {
|
|
159
|
-
|
|
161
|
+
.kzp .kzp-speed-btn {
|
|
162
|
+
/* Same 30px box as the icon buttons (22px icon + 4px padding), so the
|
|
163
|
+
label lines up with them instead of sitting on the text baseline. */
|
|
164
|
+
height: 30px;
|
|
165
|
+
min-width: 38px;
|
|
166
|
+
padding: 0 6px;
|
|
167
|
+
font-size: 13px;
|
|
160
168
|
font-weight: 600;
|
|
161
|
-
|
|
169
|
+
line-height: 1;
|
|
170
|
+
font-variant-numeric: tabular-nums;
|
|
162
171
|
}
|
|
163
172
|
|
|
164
173
|
.kzp-speed-menu {
|
|
165
174
|
position: absolute;
|
|
166
|
-
bottom: calc(100% +
|
|
175
|
+
bottom: calc(100% + 8px);
|
|
167
176
|
right: 0;
|
|
177
|
+
z-index: 3;
|
|
168
178
|
background: rgba(20, 20, 20, 0.96);
|
|
169
|
-
border-radius:
|
|
179
|
+
border-radius: 8px;
|
|
170
180
|
padding: 4px;
|
|
171
181
|
display: flex;
|
|
172
182
|
flex-direction: column;
|
|
173
183
|
gap: 2px;
|
|
174
|
-
min-width:
|
|
184
|
+
min-width: 76px;
|
|
175
185
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
176
186
|
}
|
|
177
187
|
|
|
@@ -179,15 +189,40 @@
|
|
|
179
189
|
display: none;
|
|
180
190
|
}
|
|
181
191
|
|
|
182
|
-
.kzp
|
|
192
|
+
/* Scoped under .kzp and setting everything a theme's global `button` styles
|
|
193
|
+
tend to touch: the items inherit `line-height: 0` from the icon buttons
|
|
194
|
+
above, and host pages restyle buttons, which squashed this list. */
|
|
195
|
+
.kzp .kzp-speed-menu button {
|
|
196
|
+
display: flex;
|
|
183
197
|
justify-content: flex-start;
|
|
184
|
-
|
|
185
|
-
padding: 6px 10px;
|
|
198
|
+
align-items: center;
|
|
186
199
|
width: 100%;
|
|
200
|
+
min-height: 0;
|
|
201
|
+
height: auto;
|
|
202
|
+
margin: 0;
|
|
203
|
+
padding: 7px 12px;
|
|
204
|
+
border: 0;
|
|
205
|
+
border-radius: 4px;
|
|
206
|
+
box-shadow: none;
|
|
207
|
+
background: transparent;
|
|
208
|
+
color: #fff;
|
|
209
|
+
font-size: 13px;
|
|
210
|
+
font-weight: 500;
|
|
211
|
+
line-height: 1.2;
|
|
212
|
+
letter-spacing: normal;
|
|
213
|
+
text-transform: none;
|
|
214
|
+
text-align: left;
|
|
215
|
+
white-space: nowrap;
|
|
216
|
+
font-variant-numeric: tabular-nums;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.kzp .kzp-speed-menu button:hover {
|
|
220
|
+
background: rgba(255, 255, 255, 0.12);
|
|
187
221
|
}
|
|
188
222
|
|
|
189
|
-
.kzp-speed-menu button.kzp-menu-item--active {
|
|
190
|
-
background: rgba(255, 255, 255, 0.
|
|
223
|
+
.kzp .kzp-speed-menu button.kzp-menu-item--active {
|
|
224
|
+
background: rgba(255, 255, 255, 0.22);
|
|
225
|
+
font-weight: 600;
|
|
191
226
|
}
|
|
192
227
|
|
|
193
228
|
/* Captions (CC) control — reuses the speed menu's look for several tracks. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodezen/player",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Framework-agnostic, tracking-free HTML5 / YouTube / Vimeo media player core with a custom control bar. Emits progress events and accepts a resume position; the host owns all tracking and completion logic.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|