@ox-content/vite-plugin 3.0.0-alpha.1 → 3.0.0-alpha.11

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.
@@ -0,0 +1,87 @@
1
+ /* ox-content YouTube Plugin - iframe styles */
2
+
3
+ .ox-youtube {
4
+ margin: 1.5rem 0;
5
+ position: relative;
6
+ width: 100%;
7
+ aspect-ratio: 16 / 9;
8
+ border-radius: 4px;
9
+ overflow: hidden;
10
+ background: var(--octc-color-bg-alt);
11
+ }
12
+
13
+ .ox-youtube iframe {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ border: none;
20
+ }
21
+
22
+ /* Placeholder when iframe hasn't loaded */
23
+ .ox-youtube::before {
24
+ content: "";
25
+ position: absolute;
26
+ inset: 0;
27
+ background: linear-gradient(135deg, var(--octc-color-bg-alt) 0%, var(--octc-color-border) 100%);
28
+ z-index: -1;
29
+ }
30
+
31
+ /* Play button placeholder */
32
+ .ox-youtube-placeholder {
33
+ position: absolute;
34
+ inset: 0;
35
+ display: flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ cursor: pointer;
39
+ background-size: cover;
40
+ background-position: center;
41
+ }
42
+
43
+ .ox-youtube-placeholder::after {
44
+ content: "";
45
+ width: 68px;
46
+ height: 48px;
47
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23f00' d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z'/%3E%3Cpath fill='%23fff' d='M45 24L27 14v20'/%3E%3C/svg%3E")
48
+ center/contain no-repeat;
49
+ transition: transform 0.2s ease;
50
+ }
51
+
52
+ .ox-youtube-placeholder:hover::after {
53
+ transform: scale(1.1);
54
+ }
55
+
56
+ /* Title overlay */
57
+ .ox-youtube-title {
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ right: 0;
62
+ padding: 1rem;
63
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
64
+ color: #fff;
65
+ font-size: 0.875rem;
66
+ font-weight: 500;
67
+ }
68
+
69
+ /* Responsive adjustments */
70
+ @media (max-width: 640px) {
71
+ .ox-youtube {
72
+ margin-left: -0.75rem;
73
+ margin-right: -0.75rem;
74
+ border-radius: 0;
75
+ width: calc(100% + 1.5rem);
76
+ }
77
+ }
78
+
79
+ @media (prefers-reduced-motion: reduce) {
80
+ .ox-youtube-placeholder::after {
81
+ transition: none;
82
+ }
83
+
84
+ .ox-youtube-placeholder:hover::after {
85
+ transform: none;
86
+ }
87
+ }