@drever/plugin-media 0.0.0-commit.g830214c62974
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/LICENSE +21 -0
- package/README.md +35 -0
- package/dist/index.d.mts +56 -0
- package/dist/index.mjs +62 -0
- package/dist/youtube.d.mts +20 -0
- package/dist/youtube.mjs +96 -0
- package/package.json +56 -0
- package/styles.css +101 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Drever contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @drever/plugin-media
|
|
2
|
+
|
|
3
|
+
Opt-in media components for Drever. The first component is a lazy,
|
|
4
|
+
privacy-enhanced YouTube embed with no third-party React runtime.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
pnpm add -D @drever/plugin-media
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { defineConfig } from "drever";
|
|
12
|
+
import mediaPlugin from "@drever/plugin-media";
|
|
13
|
+
|
|
14
|
+
export default defineConfig({
|
|
15
|
+
plugins: [mediaPlugin],
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Use a video id rather than a full URL and provide a meaningful title:
|
|
20
|
+
|
|
21
|
+
```mdx
|
|
22
|
+
<YouTube id="M7lc1UVf-VE" title="YouTube player API demo" start={30} aspectRatio="16:9" />
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`id` must be an 11-character YouTube video id. `start` accepts a non-negative
|
|
26
|
+
whole number of seconds. `aspectRatio` accepts `16:9`, `4:3`, `1:1`, or `9:16`.
|
|
27
|
+
Invalid values fail with a component-specific error.
|
|
28
|
+
|
|
29
|
+
The active audience slide receives a lazy iframe from `youtube-nocookie.com`;
|
|
30
|
+
leaving the slide removes its remote source so playback cannot continue over
|
|
31
|
+
the next slide. The component does not autoplay. Speaker previews, Document
|
|
32
|
+
View, PDF export, and print use a stable title and link instead of loading an
|
|
33
|
+
iframe or a remote thumbnail.
|
|
34
|
+
Privacy-enhanced mode limits storage before playback, but opening or playing the
|
|
35
|
+
video still connects to YouTube.
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { YouTubeAspectRatio, YouTubeProps } from "./youtube.mjs";
|
|
2
|
+
//#region src/index.d.ts
|
|
3
|
+
declare const mediaPlugin: {
|
|
4
|
+
readonly kind: "plugin";
|
|
5
|
+
readonly apiVersion: 1;
|
|
6
|
+
readonly id: "@drever/plugin-media";
|
|
7
|
+
readonly version: "0.0.0-commit.g830214c62974";
|
|
8
|
+
readonly baseURL: string;
|
|
9
|
+
readonly compilerTargets: readonly ["canonical"];
|
|
10
|
+
readonly runtime: {
|
|
11
|
+
readonly components: readonly [{
|
|
12
|
+
readonly name: "YouTube";
|
|
13
|
+
readonly module: {
|
|
14
|
+
readonly specifier: "./dist/youtube.mjs" | "./src/youtube.tsx";
|
|
15
|
+
readonly exportName: "YouTube";
|
|
16
|
+
};
|
|
17
|
+
readonly manifest: {
|
|
18
|
+
readonly description: "Embed a YouTube video on the active audience slide and render a stable link on non-interactive surfaces.";
|
|
19
|
+
readonly props: {
|
|
20
|
+
readonly id: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly description: "The 11-character YouTube video id, not a full URL.";
|
|
23
|
+
readonly required: true;
|
|
24
|
+
};
|
|
25
|
+
readonly title: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly description: "An accessible title describing the video.";
|
|
28
|
+
readonly required: true;
|
|
29
|
+
};
|
|
30
|
+
readonly start: {
|
|
31
|
+
readonly type: "number";
|
|
32
|
+
readonly description: "The whole number of seconds at which playback begins.";
|
|
33
|
+
readonly default: 0;
|
|
34
|
+
};
|
|
35
|
+
readonly aspectRatio: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly description: "The frame aspect ratio.";
|
|
38
|
+
readonly values: readonly ["16:9", "4:3", "1:1", "9:16"];
|
|
39
|
+
readonly default: "16:9";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly example: "<YouTube id=\"M7lc1UVf-VE\" title=\"YouTube player API demo\" start={30} />";
|
|
43
|
+
};
|
|
44
|
+
}];
|
|
45
|
+
readonly styles: readonly [{
|
|
46
|
+
readonly specifier: "./styles.css";
|
|
47
|
+
readonly layer: "component";
|
|
48
|
+
}];
|
|
49
|
+
};
|
|
50
|
+
readonly manifest: {
|
|
51
|
+
readonly title: "Drever Media";
|
|
52
|
+
readonly summary: "Adds privacy-enhanced media components with deterministic document and export output.";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { type YouTubeAspectRatio, type YouTubeProps, mediaPlugin as default, mediaPlugin };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { definePlugin } from "@drever/compiler";
|
|
2
|
+
//#region src/index.ts
|
|
3
|
+
const PACKAGE_ROOT = new URL("../", import.meta.url).href;
|
|
4
|
+
const mediaPlugin = definePlugin({
|
|
5
|
+
kind: "plugin",
|
|
6
|
+
apiVersion: 1,
|
|
7
|
+
id: "@drever/plugin-media",
|
|
8
|
+
version: "0.0.0-commit.g830214c62974",
|
|
9
|
+
baseURL: PACKAGE_ROOT,
|
|
10
|
+
compilerTargets: ["canonical"],
|
|
11
|
+
runtime: {
|
|
12
|
+
components: [{
|
|
13
|
+
name: "YouTube",
|
|
14
|
+
module: {
|
|
15
|
+
specifier: import.meta.url.endsWith(".ts") ? "./src/youtube.tsx" : "./dist/youtube.mjs",
|
|
16
|
+
exportName: "YouTube"
|
|
17
|
+
},
|
|
18
|
+
manifest: {
|
|
19
|
+
description: "Embed a YouTube video on the active audience slide and render a stable link on non-interactive surfaces.",
|
|
20
|
+
props: {
|
|
21
|
+
id: {
|
|
22
|
+
type: "string",
|
|
23
|
+
description: "The 11-character YouTube video id, not a full URL.",
|
|
24
|
+
required: true
|
|
25
|
+
},
|
|
26
|
+
title: {
|
|
27
|
+
type: "string",
|
|
28
|
+
description: "An accessible title describing the video.",
|
|
29
|
+
required: true
|
|
30
|
+
},
|
|
31
|
+
start: {
|
|
32
|
+
type: "number",
|
|
33
|
+
description: "The whole number of seconds at which playback begins.",
|
|
34
|
+
default: 0
|
|
35
|
+
},
|
|
36
|
+
aspectRatio: {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "The frame aspect ratio.",
|
|
39
|
+
values: [
|
|
40
|
+
"16:9",
|
|
41
|
+
"4:3",
|
|
42
|
+
"1:1",
|
|
43
|
+
"9:16"
|
|
44
|
+
],
|
|
45
|
+
default: "16:9"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
example: "<YouTube id=\"M7lc1UVf-VE\" title=\"YouTube player API demo\" start={30} />"
|
|
49
|
+
}
|
|
50
|
+
}],
|
|
51
|
+
styles: [{
|
|
52
|
+
specifier: "./styles.css",
|
|
53
|
+
layer: "component"
|
|
54
|
+
}]
|
|
55
|
+
},
|
|
56
|
+
manifest: {
|
|
57
|
+
title: "Drever Media",
|
|
58
|
+
summary: "Adds privacy-enhanced media components with deterministic document and export output."
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { mediaPlugin as default, mediaPlugin };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
//#region src/youtube.d.ts
|
|
3
|
+
declare const ASPECT_RATIOS: {
|
|
4
|
+
readonly "16:9": "16 / 9";
|
|
5
|
+
readonly "4:3": "4 / 3";
|
|
6
|
+
readonly "1:1": "1 / 1";
|
|
7
|
+
readonly "9:16": "9 / 16";
|
|
8
|
+
};
|
|
9
|
+
type YouTubeAspectRatio = keyof typeof ASPECT_RATIOS;
|
|
10
|
+
type YouTubeProps = Readonly<{
|
|
11
|
+
aspectRatio?: YouTubeAspectRatio;
|
|
12
|
+
id: string;
|
|
13
|
+
start?: number;
|
|
14
|
+
title: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare const activateYouTubeFrame: (frame: HTMLIFrameElement, source: string) => (() => void);
|
|
17
|
+
/** A lazy privacy-enhanced YouTube embed with stable non-interactive output. */
|
|
18
|
+
declare function YouTube({ aspectRatio: authoredAspectRatio, id: authoredId, start: authoredStart, title: authoredTitle }: YouTubeProps): ReactElement;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { YouTube, YouTubeAspectRatio, YouTubeProps, activateYouTubeFrame };
|
package/dist/youtube.mjs
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { useDreverRenderMode } from "@drever/core";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/youtube.tsx
|
|
5
|
+
const VIDEO_ID = /^[A-Za-z0-9_-]{11}$/u;
|
|
6
|
+
const ASPECT_RATIOS = {
|
|
7
|
+
"16:9": "16 / 9",
|
|
8
|
+
"4:3": "4 / 3",
|
|
9
|
+
"1:1": "1 / 1",
|
|
10
|
+
"9:16": "9 / 16"
|
|
11
|
+
};
|
|
12
|
+
const invalid = (property, requirement) => {
|
|
13
|
+
throw new TypeError(`YouTube: "${property}" must be ${requirement}.`);
|
|
14
|
+
};
|
|
15
|
+
const videoId = (value) => typeof value === "string" && VIDEO_ID.test(value) ? value : invalid("id", "an 11-character YouTube video id");
|
|
16
|
+
const videoTitle = (value) => {
|
|
17
|
+
if (typeof value !== "string" || value.trim().length === 0) return invalid("title", "a non-empty string");
|
|
18
|
+
return value.trim();
|
|
19
|
+
};
|
|
20
|
+
const startTime = (value) => {
|
|
21
|
+
if (value === void 0 || typeof value === "number" && Number.isSafeInteger(value) && value >= 0) return value ?? 0;
|
|
22
|
+
return invalid("start", "a non-negative whole number of seconds");
|
|
23
|
+
};
|
|
24
|
+
const aspectRatio = (value) => {
|
|
25
|
+
if (value === void 0) return "16:9";
|
|
26
|
+
if (typeof value === "string" && Object.hasOwn(ASPECT_RATIOS, value)) return value;
|
|
27
|
+
return invalid("aspectRatio", "one of \"16:9\", \"4:3\", \"1:1\", or \"9:16\"");
|
|
28
|
+
};
|
|
29
|
+
const embedUrl = (id, start) => {
|
|
30
|
+
const url = new URL(`https://www.youtube-nocookie.com/embed/${id}`);
|
|
31
|
+
if (start > 0) url.searchParams.set("start", String(start));
|
|
32
|
+
return url.href;
|
|
33
|
+
};
|
|
34
|
+
const watchUrl = (id, start) => {
|
|
35
|
+
const url = new URL("https://www.youtube.com/watch");
|
|
36
|
+
url.searchParams.set("v", id);
|
|
37
|
+
if (start > 0) url.searchParams.set("t", `${start}s`);
|
|
38
|
+
return url.href;
|
|
39
|
+
};
|
|
40
|
+
const activateYouTubeFrame = (frame, source) => {
|
|
41
|
+
frame.src = source;
|
|
42
|
+
return () => frame.removeAttribute("src");
|
|
43
|
+
};
|
|
44
|
+
const YouTubeFrame = ({ source, title }) => {
|
|
45
|
+
const frameRef = useRef(null);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const frame = frameRef.current;
|
|
48
|
+
if (frame === null) return;
|
|
49
|
+
return activateYouTubeFrame(frame, source);
|
|
50
|
+
}, [source]);
|
|
51
|
+
return /* @__PURE__ */ jsx("iframe", {
|
|
52
|
+
allow: "encrypted-media; picture-in-picture; web-share",
|
|
53
|
+
allowFullScreen: true,
|
|
54
|
+
"data-src": source,
|
|
55
|
+
loading: "lazy",
|
|
56
|
+
ref: frameRef,
|
|
57
|
+
referrerPolicy: "strict-origin-when-cross-origin",
|
|
58
|
+
title
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
/** A lazy privacy-enhanced YouTube embed with stable non-interactive output. */
|
|
62
|
+
function YouTube({ aspectRatio: authoredAspectRatio, id: authoredId, start: authoredStart, title: authoredTitle }) {
|
|
63
|
+
const id = videoId(authoredId);
|
|
64
|
+
const title = videoTitle(authoredTitle);
|
|
65
|
+
const start = startTime(authoredStart);
|
|
66
|
+
const ratio = aspectRatio(authoredAspectRatio);
|
|
67
|
+
const renderMode = useDreverRenderMode();
|
|
68
|
+
const interactive = renderMode === "audience";
|
|
69
|
+
return /* @__PURE__ */ jsx("figure", {
|
|
70
|
+
className: "drever-youtube",
|
|
71
|
+
"data-drever-media": "youtube",
|
|
72
|
+
"data-render-mode": renderMode,
|
|
73
|
+
style: { "--drever-youtube-aspect-ratio": ASPECT_RATIOS[ratio] },
|
|
74
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "drever-youtube__viewport",
|
|
76
|
+
children: [interactive ? /* @__PURE__ */ jsx(YouTubeFrame, {
|
|
77
|
+
source: embedUrl(id, start),
|
|
78
|
+
title
|
|
79
|
+
}) : null, /* @__PURE__ */ jsxs("a", {
|
|
80
|
+
className: "drever-youtube__fallback",
|
|
81
|
+
href: watchUrl(id, start),
|
|
82
|
+
rel: "noreferrer",
|
|
83
|
+
target: "_blank",
|
|
84
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
85
|
+
"aria-hidden": "true",
|
|
86
|
+
className: "drever-youtube__play"
|
|
87
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
88
|
+
className: "drever-youtube__copy",
|
|
89
|
+
children: [/* @__PURE__ */ jsx("strong", { children: title }), /* @__PURE__ */ jsx("small", { children: "Watch on YouTube" })]
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { YouTube, activateYouTubeFrame };
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@drever/plugin-media",
|
|
3
|
+
"version": "0.0.0-commit.g830214c62974",
|
|
4
|
+
"description": "Privacy-enhanced media components for Drever presentations.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Zhangdroid/drever.git",
|
|
9
|
+
"directory": "packages/plugin-media"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"styles.css",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"./styles.css"
|
|
19
|
+
],
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/index.d.mts",
|
|
23
|
+
"import": "./dist/index.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./styles.css": "./styles.css",
|
|
26
|
+
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@drever/compiler": "0.0.0-commit.g830214c62974",
|
|
33
|
+
"@drever/core": "0.0.0-commit.g830214c62974"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^24",
|
|
37
|
+
"@types/react": "19.2.17",
|
|
38
|
+
"@types/react-dom": "19.2.3",
|
|
39
|
+
"react": "19.3.0-canary-83840902-20260719",
|
|
40
|
+
"react-dom": "19.3.0-canary-83840902-20260719",
|
|
41
|
+
"typescript": "7.0.2",
|
|
42
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.5",
|
|
43
|
+
"vite-plus": "0.2.5"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": "19.3.0-canary-83840902-20260719"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=24.18.0"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "vp pack",
|
|
53
|
+
"check": "vp check",
|
|
54
|
+
"test": "vp test"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.drever-youtube {
|
|
2
|
+
--drever-youtube-aspect-ratio: 16 / 9;
|
|
3
|
+
color: inherit;
|
|
4
|
+
inline-size: 100%;
|
|
5
|
+
margin: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.drever-youtube__viewport {
|
|
9
|
+
aspect-ratio: var(--drever-youtube-aspect-ratio);
|
|
10
|
+
background:
|
|
11
|
+
radial-gradient(
|
|
12
|
+
circle at 18% 12%,
|
|
13
|
+
color-mix(in srgb, currentcolor 12%, transparent),
|
|
14
|
+
transparent 42%
|
|
15
|
+
),
|
|
16
|
+
color-mix(in srgb, currentcolor 5%, transparent);
|
|
17
|
+
border: 1px solid color-mix(in srgb, currentcolor 18%, transparent);
|
|
18
|
+
border-radius: var(--drever-youtube-radius, 1.25rem);
|
|
19
|
+
inline-size: 100%;
|
|
20
|
+
isolation: isolate;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.drever-youtube iframe,
|
|
26
|
+
.drever-youtube__fallback {
|
|
27
|
+
block-size: 100%;
|
|
28
|
+
border: 0;
|
|
29
|
+
inline-size: 100%;
|
|
30
|
+
inset: 0;
|
|
31
|
+
position: absolute;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.drever-youtube__fallback {
|
|
35
|
+
align-items: center;
|
|
36
|
+
color: inherit;
|
|
37
|
+
display: flex;
|
|
38
|
+
gap: 1rem;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
padding: clamp(1.25rem, 4vw, 3rem);
|
|
41
|
+
text-align: start;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.drever-youtube[data-render-mode="audience"] .drever-youtube__fallback {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.drever-youtube__play {
|
|
50
|
+
align-items: center;
|
|
51
|
+
background: currentcolor;
|
|
52
|
+
border-radius: 999px;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
flex: 0 0 auto;
|
|
55
|
+
block-size: 3.25rem;
|
|
56
|
+
inline-size: 3.25rem;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.drever-youtube__play::after {
|
|
61
|
+
border-block: 0.42rem solid transparent;
|
|
62
|
+
border-inline-start: 0.72rem solid Canvas;
|
|
63
|
+
content: "";
|
|
64
|
+
margin-inline-start: 0.14rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.drever-youtube__copy {
|
|
68
|
+
display: grid;
|
|
69
|
+
gap: 0.3rem;
|
|
70
|
+
max-inline-size: 30rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.drever-youtube__copy strong {
|
|
74
|
+
font: inherit;
|
|
75
|
+
font-weight: 650;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.drever-youtube__copy small {
|
|
79
|
+
color: color-mix(in srgb, currentcolor 64%, transparent);
|
|
80
|
+
font: inherit;
|
|
81
|
+
font-size: 0.72em;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.drever-youtube__fallback:is(:hover, :focus-visible) small {
|
|
85
|
+
color: currentcolor;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.drever-youtube__fallback:focus-visible {
|
|
89
|
+
outline: 2px solid currentcolor;
|
|
90
|
+
outline-offset: -0.35rem;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media print {
|
|
94
|
+
.drever-youtube iframe {
|
|
95
|
+
display: none !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.drever-youtube__fallback {
|
|
99
|
+
display: flex !important;
|
|
100
|
+
}
|
|
101
|
+
}
|