Skip to content

Commit 20a6f82

Browse files
committed
fix: linting
1 parent 692dc8c commit 20a6f82

5 files changed

Lines changed: 35 additions & 34 deletions

File tree

modules/blox-tailwind/assets/css/framework/base.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,19 @@
1313

1414
/* Gradient Mesh Animations */
1515
@keyframes float {
16-
0%, 100% {
16+
0%,
17+
100% {
1718
transform: translateY(0) translateX(0);
1819
}
20+
1921
25% {
2022
transform: translateY(-20px) translateX(10px);
2123
}
24+
2225
50% {
2326
transform: translateY(-10px) translateX(-10px);
2427
}
28+
2529
75% {
2630
transform: translateY(-30px) translateX(5px);
2731
}
@@ -31,6 +35,7 @@
3135
from {
3236
transform: rotate(0deg);
3337
}
38+
3439
to {
3540
transform: rotate(360deg);
3641
}

modules/blox-tailwind/assets/css/hb-search.css

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
/* Animations */
44
@keyframes spin {
5-
to { transform: rotate(360deg); }
5+
to {
6+
transform: rotate(360deg);
7+
}
68
}
79

810
.animate-spin {
@@ -34,14 +36,15 @@
3436

3537
/* Smooth transitions */
3638
.search-modal-enter {
37-
animation: slideInUp 0.2s ease-out;
39+
animation: slide-in-up 0.2s ease-out;
3840
}
3941

40-
@keyframes slideInUp {
42+
@keyframes slide-in-up {
4143
from {
4244
opacity: 0;
4345
transform: translateY(1rem) scale(0.95);
4446
}
47+
4548
to {
4649
opacity: 1;
4750
transform: translateY(0) scale(1);
@@ -50,29 +53,24 @@
5053

5154
/* Loading skeleton */
5255
.search-skeleton {
53-
background: linear-gradient(
54-
90deg,
55-
rgb(229 231 235) 25%,
56-
rgb(243 244 246) 50%,
57-
rgb(229 231 235) 75%
58-
);
56+
background: linear-gradient(90deg, rgb(229 231 235) 25%, rgb(243 244 246) 50%, rgb(229 231 235) 75%);
5957
background-size: 200% 100%;
6058
animation: shimmer 1.5s infinite;
6159
}
6260

6361
.dark .search-skeleton {
64-
background: linear-gradient(
65-
90deg,
66-
rgb(55 65 81) 25%,
67-
rgb(75 85 99) 50%,
68-
rgb(55 65 81) 75%
69-
);
62+
background: linear-gradient(90deg, rgb(55 65 81) 25%, rgb(75 85 99) 50%, rgb(55 65 81) 75%);
7063
background-size: 200% 100%;
7164
}
7265

7366
@keyframes shimmer {
74-
0% { background-position: 200% 0; }
75-
100% { background-position: -200% 0; }
67+
0% {
68+
background-position: 200% 0;
69+
}
70+
71+
100% {
72+
background-position: -200% 0;
73+
}
7674
}
7775

7876
/* Keyboard navigation highlight - handled by Alpine :class binding */
@@ -85,4 +83,4 @@
8583
.search-result:focus-visible {
8684
outline: 2px solid rgb(59 130 246);
8785
outline-offset: -2px;
88-
}
86+
}

modules/blox-tailwind/assets/js/hb-search.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
// Search is handled by Alpine.js component in search-modal.html
33

44
// Additional keyboard shortcuts and utilities
5-
document.addEventListener('DOMContentLoaded', () => {
6-
console.log('✓ Hugo Blox Search initialized (Pagefind Headless API)');
7-
5+
document.addEventListener("DOMContentLoaded", () => {
6+
console.log("✓ Hugo Blox Search initialized (Pagefind Headless API)");
7+
88
// Handle search toggle buttons
9-
const searchButtons = document.querySelectorAll('[data-search-toggle]');
10-
searchButtons.forEach(button => {
11-
button.addEventListener('click', (e) => {
9+
const searchButtons = document.querySelectorAll("[data-search-toggle]");
10+
searchButtons.forEach((button) => {
11+
button.addEventListener("click", (e) => {
1212
const prefilledQuery = button.dataset.searchQuery;
13-
14-
if (window.Alpine && Alpine.store('search')) {
15-
Alpine.store('search').open = true;
16-
13+
14+
if (window.Alpine && Alpine.store("search")) {
15+
Alpine.store("search").open = true;
16+
1717
// Pre-fill query if specified
1818
if (prefilledQuery) {
1919
setTimeout(() => {
2020
const searchInput = document.querySelector('[x-ref="searchInput"]');
2121
if (searchInput) {
2222
searchInput.value = prefilledQuery;
23-
searchInput.dispatchEvent(new Event('input'));
23+
searchInput.dispatchEvent(new Event("input"));
2424
}
2525
}, 100);
2626
}
2727
}
2828
});
2929
});
30-
30+
3131
// Note: Keyboard navigation (arrow keys, Enter) is handled by Alpine.js in search-modal.html
32-
});
32+
});

modules/blox-tailwind/blox/faq/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
"categories": ["content", "interactive"],
77
"preview": "preview.svg"
88
}
9-

modules/blox-tailwind/blox/faq/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,3 @@
9292
}
9393
}
9494
}
95-

0 commit comments

Comments
 (0)