PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.6
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.6
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / youtube-performance / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.6, at blocks/youtube-performance/style.css

223 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ========================================
2 YouTube Performance Embed
3 ======================================== */
4
5 /* Theme safety */
6 .wp-block-blockenberg-youtube-performance,
7 .wp-block-blockenberg-youtube-performance .bkbg-ytp-wrap {
8 border: 0;
9 outline: 0;
10 }
11
12 .bkbg-ytp-wrap {
13 --bkbg-ytp-radius: 12px;
14 --bkbg-ytp-min-height: 260px;
15 --bkbg-ytp-play-size: 64px;
16 --bkbg-ytp-play-bg: #01adee;
17 --bkbg-ytp-play-color: #ffffff;
18 --bkbg-ytp-play-hover: 1.05;
19
20 width: 100%;
21 }
22
23 .bkbg-ytp-aspect {
24 width: 100%;
25 }
26
27 .bkbg-ytp-inner {
28 position: relative;
29 width: 100%;
30 min-height: var(--bkbg-ytp-min-height);
31 border-radius: var(--bkbg-ytp-radius);
32 overflow: hidden;
33 background: #0b1220;
34 }
35
36 .bkbg-ytp-wrap.has-shadow .bkbg-ytp-inner {
37 box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
38 }
39
40 .bkbg-ytp-media-layer {
41 position: absolute;
42 inset: 0;
43 }
44
45 .bkbg-ytp-poster-img {
46 width: 100%;
47 height: 100%;
48 display: block;
49 object-fit: cover;
50 transform: scale(1.02);
51 }
52
53 .bkbg-ytp-iframe {
54 position: absolute;
55 inset: 0;
56 width: 100%;
57 height: 100%;
58 border: 0;
59 }
60
61 .bkbg-ytp-embed {
62 position: absolute;
63 inset: 0;
64 }
65
66 .bkbg-ytp-overlay {
67 position: absolute;
68 inset: 0;
69 display: flex;
70 align-items: center;
71 justify-content: center;
72 padding: 18px;
73 z-index: 2;
74 }
75
76 .bkbg-ytp-wrap.is-playing .bkbg-ytp-media-layer,
77 .bkbg-ytp-wrap.is-playing .bkbg-ytp-play,
78 .bkbg-ytp-wrap.is-playing .bkbg-ytp-title {
79 display: none;
80 }
81
82 .bkbg-ytp-play {
83 position: absolute;
84 left: 50%;
85 top: 50%;
86 transform: translate(-50%, -50%);
87 width: var(--bkbg-ytp-play-size);
88 height: var(--bkbg-ytp-play-size);
89 border: 0;
90 background: var(--bkbg-ytp-play-bg);
91 color: var(--bkbg-ytp-play-color);
92 display: inline-flex;
93 align-items: center;
94 justify-content: center;
95 cursor: pointer;
96 box-shadow: 0 12px 28px rgba(0,0,0,0.25);
97 transition: transform 160ms ease, background 160ms ease;
98 z-index: 3;
99 }
100
101 .bkbg-ytp-wrap.is-play-circle .bkbg-ytp-play {
102 border-radius: 999px;
103 }
104
105 .bkbg-ytp-wrap.is-play-youtube .bkbg-ytp-play {
106 width: calc(var(--bkbg-ytp-play-size) * 1.65);
107 height: calc(var(--bkbg-ytp-play-size) * 1.08);
108 border-radius: calc(var(--bkbg-ytp-play-size) * 0.28);
109 background: var(--bkbg-ytp-play-bg);
110 }
111
112 .bkbg-ytp-wrap.is-play-rounded .bkbg-ytp-play {
113 border-radius: 16px;
114 }
115
116 .bkbg-ytp-wrap.is-play-square .bkbg-ytp-play {
117 border-radius: 8px;
118 }
119
120 .bkbg-ytp-play:hover {
121 transform: translate(-50%, -50%) scale(var(--bkbg-ytp-play-hover));
122 }
123
124 .bkbg-ytp-play:disabled {
125 opacity: 0.55;
126 cursor: not-allowed;
127 }
128
129 .bkbg-ytp-play-triangle {
130 width: 0;
131 height: 0;
132 border-left: calc(var(--bkbg-ytp-play-size) * 0.28) solid currentColor;
133 border-top: calc(var(--bkbg-ytp-play-size) * 0.17) solid transparent;
134 border-bottom: calc(var(--bkbg-ytp-play-size) * 0.17) solid transparent;
135 margin-left: calc(var(--bkbg-ytp-play-size) * 0.06);
136 }
137
138 .bkbg-ytp-title {
139 position: absolute;
140 left: 16px;
141 right: 16px;
142 bottom: 16px;
143 z-index: 3;
144 color: #fff;
145 font-weight: 700;
146 font-size: 15px;
147 text-shadow: 0 2px 10px rgba(0,0,0,0.55);
148 }
149
150 .bkbg-ytp-hint {
151 position: absolute;
152 top: 14px;
153 left: 14px;
154 right: 14px;
155 z-index: 3;
156 color: rgba(255,255,255,0.9);
157 font-size: 12px;
158 background: rgba(0,0,0,0.35);
159 padding: 8px 10px;
160 border-radius: 10px;
161 }
162
163 .bkbg-ytp-empty {
164 position: absolute;
165 inset: 0;
166 display: flex;
167 align-items: center;
168 justify-content: center;
169 text-align: center;
170 color: rgba(255,255,255,0.88);
171 padding: 18px;
172 }
173
174 /* Inspector helpers */
175 .bkbg-ytp-media {
176 display: grid;
177 gap: 10px;
178 }
179
180 .bkbg-ytp-media-thumb {
181 width: 100%;
182 height: 120px;
183 object-fit: cover;
184 border-radius: 10px;
185 border: 1px solid rgba(0,0,0,0.12);
186 }
187
188 .bkbg-ytp-media-placeholder {
189 width: 100%;
190 height: 120px;
191 border-radius: 10px;
192 border: 1px dashed rgba(0,0,0,0.25);
193 background: rgba(0,0,0,0.03);
194 display: flex;
195 align-items: center;
196 justify-content: center;
197 color: rgba(0,0,0,0.6);
198 font-size: 12px;
199 }
200
201 .bkbg-ytp-color-row {
202 display: flex;
203 align-items: center;
204 justify-content: space-between;
205 gap: 12px;
206 margin-top: 10px;
207 }
208
209 .bkbg-ytp-color-btn {
210 width: 30px;
211 height: 30px;
212 border-radius: 999px;
213 border: 2px solid #fff;
214 box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
215 cursor: pointer;
216 }
217
218 /* Editor-only: show overlay for poster */
219 .editor-styles-wrapper .bkbg-ytp-inner {
220 outline: 1px dashed rgba(0, 124, 186, 0.25);
221 outline-offset: -1px;
222 }
223