PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
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 / category-grid / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/category-grid/style.css

139 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Category Grid — style */
2 .bkcg-wrap {
3 box-sizing: border-box;
4 }
5
6 .bkcg-wrap *,
7 .bkcg-wrap *::before,
8 .bkcg-wrap *::after {
9 box-sizing: inherit;
10 }
11
12 .bkcg-grid {
13 display: grid;
14 }
15
16 .bkcg-card {
17 text-decoration: none;
18 color: inherit;
19 display: flex;
20 }
21
22 /* Hover animation */
23 .bkcg-grid[data-animate="1"] .bkcg-card {
24 transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
25 }
26
27 .bkcg-grid[data-animate="1"] .bkcg-card:hover {
28 transform: translateY(-4px);
29 box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
30 }
31
32 .bkcg-grid[data-animate="1"] .bkcg-card:hover .bkcg-arrow {
33 transform: translateX(4px);
34 }
35
36 .bkcg-arrow {
37 display: inline-block;
38 transition: transform 0.2s ease;
39 }
40
41 /* Icon picker support */
42 .bkcg-icon svg { width: 1em; height: 1em; fill: currentColor; }
43 .bkcg-icon .dashicons { font-size: inherit; width: 1em; height: 1em; line-height: 1; }
44 .bkcg-icon .bkbg-icon-img { width: 1em; height: 1em; object-fit: contain; }
45
46 .bkcg-name {
47 font-family: var(--bkcg-n-font-family, inherit);
48 font-size: var(--bkcg-n-font-size-d, 16px);
49 font-weight: var(--bkcg-n-font-weight, 700);
50 line-height: var(--bkcg-n-line-height-d, 1.3);
51 text-transform: var(--bkcg-n-text-transform, none);
52 font-style: var(--bkcg-n-font-style, normal);
53 text-decoration: var(--bkcg-n-text-decoration, none);
54 letter-spacing: var(--bkcg-n-letter-spacing-d, normal);
55 word-spacing: var(--bkcg-n-word-spacing-d, normal);
56 }
57
58 .bkcg-count {
59 display: inline-block;
60 white-space: nowrap;
61 }
62
63 .bkcg-desc {
64 font-family: var(--bkcg-d-font-family, inherit);
65 font-size: var(--bkcg-d-font-size-d, 13px);
66 font-weight: var(--bkcg-d-font-weight, inherit);
67 line-height: var(--bkcg-d-line-height-d, 1.5);
68 text-transform: var(--bkcg-d-text-transform, none);
69 font-style: var(--bkcg-d-font-style, normal);
70 text-decoration: var(--bkcg-d-text-decoration, none);
71 letter-spacing: var(--bkcg-d-letter-spacing-d, normal);
72 word-spacing: var(--bkcg-d-word-spacing-d, normal);
73 display: -webkit-box;
74 -webkit-box-orient: vertical;
75 overflow: hidden;
76 -webkit-line-clamp: 2;
77 line-clamp: 2;
78 }
79
80 /* Loading placeholder */
81 .bkcg-grid:empty::before {
82 content: '';
83 grid-column: 1 / -1;
84 display: block;
85 height: 120px;
86 background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
87 background-size: 200% 100%;
88 animation: bkcgShimmer 1.5s infinite;
89 border-radius: 8px;
90 }
91
92 @keyframes bkcgShimmer {
93 0% { background-position: 200% 0; }
94 100% { background-position: -200% 0; }
95 }
96
97 /* ── Typography responsive ── */
98 @media (max-width: 1024px) {
99 .bkcg-name {
100 font-size: var(--bkcg-n-font-size-t, var(--bkcg-n-font-size-d, 16px));
101 line-height: var(--bkcg-n-line-height-t, var(--bkcg-n-line-height-d, 1.3));
102 letter-spacing: var(--bkcg-n-letter-spacing-t, var(--bkcg-n-letter-spacing-d, normal));
103 word-spacing: var(--bkcg-n-word-spacing-t, var(--bkcg-n-word-spacing-d, normal));
104 }
105 .bkcg-desc {
106 font-size: var(--bkcg-d-font-size-t, var(--bkcg-d-font-size-d, 13px));
107 line-height: var(--bkcg-d-line-height-t, var(--bkcg-d-line-height-d, 1.5));
108 letter-spacing: var(--bkcg-d-letter-spacing-t, var(--bkcg-d-letter-spacing-d, normal));
109 word-spacing: var(--bkcg-d-word-spacing-t, var(--bkcg-d-word-spacing-d, normal));
110 }
111 }
112 @media (max-width: 767px) {
113 .bkcg-name {
114 font-size: var(--bkcg-n-font-size-m, var(--bkcg-n-font-size-t, var(--bkcg-n-font-size-d, 16px)));
115 line-height: var(--bkcg-n-line-height-m, var(--bkcg-n-line-height-t, var(--bkcg-n-line-height-d, 1.3)));
116 letter-spacing: var(--bkcg-n-letter-spacing-m, var(--bkcg-n-letter-spacing-t, var(--bkcg-n-letter-spacing-d, normal)));
117 word-spacing: var(--bkcg-n-word-spacing-m, var(--bkcg-n-word-spacing-t, var(--bkcg-n-word-spacing-d, normal)));
118 }
119 .bkcg-desc {
120 font-size: var(--bkcg-d-font-size-m, var(--bkcg-d-font-size-t, var(--bkcg-d-font-size-d, 13px)));
121 line-height: var(--bkcg-d-line-height-m, var(--bkcg-d-line-height-t, var(--bkcg-d-line-height-d, 1.5)));
122 letter-spacing: var(--bkcg-d-letter-spacing-m, var(--bkcg-d-letter-spacing-t, var(--bkcg-d-letter-spacing-d, normal)));
123 word-spacing: var(--bkcg-d-word-spacing-m, var(--bkcg-d-word-spacing-t, var(--bkcg-d-word-spacing-d, normal)));
124 }
125 }
126
127 /* Responsive */
128 @media (max-width: 768px) {
129 .bkcg-grid {
130 grid-template-columns: repeat(2, 1fr) !important;
131 }
132 }
133
134 @media (max-width: 480px) {
135 .bkcg-grid {
136 grid-template-columns: 1fr !important;
137 }
138 }
139