PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.13
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.13
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 / related-posts / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.13, at blocks/related-posts/style.css

104 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Related Posts Block — bkrp- prefix */
2 .bkrp-wrap { container-type: inline-size; }
3 .bkrp-heading {
4 font-family: var(--bkrp-ht-font-family, inherit);
5 font-size: var(--bkrp-ht-font-size-d, 20px);
6 font-weight: var(--bkrp-ht-font-weight, 700);
7 font-style: var(--bkrp-ht-font-style, normal);
8 text-decoration: var(--bkrp-ht-text-decoration, none);
9 text-transform: var(--bkrp-ht-text-transform, none);
10 line-height: var(--bkrp-ht-line-height-d, 1.3);
11 letter-spacing: var(--bkrp-ht-letter-spacing-d, normal);
12 word-spacing: var(--bkrp-ht-word-spacing-d, normal);
13 margin-bottom: 16px;
14 }
15 /* Heading specificity ≥ 0,2,0 for h2/h3/h4 to override editor theme styles */
16 .bkrp-wrap h2.bkrp-heading,
17 .bkrp-wrap h3.bkrp-heading,
18 .bkrp-wrap h4.bkrp-heading {
19 font-family: var(--bkrp-ht-font-family, inherit);
20 font-size: var(--bkrp-ht-font-size-d, 20px);
21 font-weight: var(--bkrp-ht-font-weight, 700);
22 font-style: var(--bkrp-ht-font-style, normal);
23 text-decoration: var(--bkrp-ht-text-decoration, none);
24 text-transform: var(--bkrp-ht-text-transform, none);
25 line-height: var(--bkrp-ht-line-height-d, 1.3);
26 letter-spacing: var(--bkrp-ht-letter-spacing-d, normal);
27 word-spacing: var(--bkrp-ht-word-spacing-d, normal);
28 margin-bottom: 16px;
29 }
30 .bkrp-note { font-size: 12px; color: #9ca3af; margin-top: 8px; }
31
32 .bkrp-layout-grid .bkrp-grid,
33 .bkrp-layout-carousel .bkrp-grid {
34 display: grid;
35 grid-template-columns: repeat(var(--bkrp-cols, 3), 1fr);
36 gap: var(--bkrp-gap, 20px);
37 }
38 .bkrp-layout-list .bkrp-grid { display: flex; flex-direction: column; gap: var(--bkrp-gap, 20px); }
39
40 .bkrp-card {
41 background: var(--bkrp-cBg, #fff);
42 border: 1px solid var(--bkrp-cBrd, #e5e7eb);
43 border-radius: var(--bkrp-cR, 10px);
44 overflow: hidden;
45 box-shadow: var(--bkrp-shadow, none);
46 transition: transform .2s;
47 text-decoration: none; color: inherit;
48 display: block;
49 }
50 .bkrp-card:hover { transform: translateY(-2px); }
51
52 .bkrp-layout-list .bkrp-card { display: flex; flex-direction: row; }
53 .bkrp-layout-list .bkrp-img-wrap { width: 120px; flex-shrink: 0; }
54
55 .bkrp-img-wrap img,
56 .bkrp-img-wrap { width: 100%; }
57 .bkrp-img-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
58
59 .bkrp-body { padding: 14px; }
60 .bkrp-date { font-size: .8em; color: #9ca3af; margin-bottom: 4px; }
61 .bkrp-title { font-size: 1em; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
62 .bkrp-excerpt { font-size: .88em; color: #6b7280; margin: 0; line-height: 1.5; }
63
64 /* Placeholder shimmer */
65 .bkrp-img-ph {
66 width: 100%; aspect-ratio: 16/9;
67 background: var(--bkrp-ph, #e5e7eb);
68 animation: bkrp-shimmer 1.4s infinite;
69 }
70 .bkrp-title-ph, .bkrp-date-ph, .bkrp-exc-ph {
71 height: 14px; border-radius: 4px;
72 background: var(--bkrp-ph, #e5e7eb);
73 animation: bkrp-shimmer 1.4s infinite;
74 margin-bottom: 8px;
75 }
76 .bkrp-title-ph { width: 80%; height: 18px; }
77 .bkrp-exc-ph { width: 60%; }
78 @keyframes bkrp-shimmer {
79 0%, 100% { opacity: 1; } 50% { opacity: .5; }
80 }
81
82 @media (max-width: 1024px) {
83 .bkrp-wrap .bkrp-heading {
84 font-size: var(--bkrp-ht-font-size-t, var(--bkrp-ht-font-size-d, 20px));
85 line-height: var(--bkrp-ht-line-height-t, var(--bkrp-ht-line-height-d, 1.3));
86 letter-spacing: var(--bkrp-ht-letter-spacing-t, var(--bkrp-ht-letter-spacing-d, normal));
87 word-spacing: var(--bkrp-ht-word-spacing-t, var(--bkrp-ht-word-spacing-d, normal));
88 }
89 }
90 @media (max-width: 767px) {
91 .bkrp-wrap .bkrp-heading {
92 font-size: var(--bkrp-ht-font-size-m, var(--bkrp-ht-font-size-t, var(--bkrp-ht-font-size-d, 20px)));
93 line-height: var(--bkrp-ht-line-height-m, var(--bkrp-ht-line-height-t, var(--bkrp-ht-line-height-d, 1.3)));
94 letter-spacing: var(--bkrp-ht-letter-spacing-m, var(--bkrp-ht-letter-spacing-t, var(--bkrp-ht-letter-spacing-d, normal)));
95 word-spacing: var(--bkrp-ht-word-spacing-m, var(--bkrp-ht-word-spacing-t, var(--bkrp-ht-word-spacing-d, normal)));
96 }
97 }
98
99 @container (max-width: 480px) {
100 .bkrp-layout-grid .bkrp-grid { grid-template-columns: 1fr; }
101 .bkrp-layout-list .bkrp-card { flex-direction: column; }
102 .bkrp-layout-list .bkrp-img-wrap { width: 100%; }
103 }
104