Skip to content

Commit faad166

Browse files
committed
feat(site): fix dropdown, dark mode and updated comparisons
1 parent 5056587 commit faad166

File tree

29 files changed

+1207
-316
lines changed

29 files changed

+1207
-316
lines changed

content/comparisons.md

Lines changed: 630 additions & 18 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 89 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"concurrently": "^9.1.0",
1616
"postcss": "^8.4.49",
1717
"postcss-cli": "^11.0.0",
18+
"postcss-nesting": "^13.0.2",
1819
"tailwindcss": "^4.0.0-beta.7"
1920
}
2021
}

postcss.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = {
22
plugins: {
3+
"postcss-nesting": {},
34
"@tailwindcss/postcss": {},
5+
"autoprefixer": {},
46
},
57
};

themes/aurelia-theme/assets/css/main.css

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
@import "tailwindcss";
22
@plugin "@tailwindcss/typography";
33

4+
@theme {
5+
--color-aurelia: #ed2b88;
6+
--color-aurelia-light: #ff4da1;
7+
--color-aurelia-blue: #003f8c;
8+
--color-aurelia-blue-light: #0066cc;
9+
10+
--animation-float-slow: float 8s ease-in-out infinite;
11+
--animation-float-delayed: float 6s ease-in-out infinite 2s;
12+
--animation-grid: grid 20s linear infinite;
13+
--animation-pulse: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
14+
--animation-pulse-slow: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
15+
--animation-pulse-slower: pulse 12s cubic-bezier(0.4, 0, 0.6, 1) infinite;
16+
--animation-pulse-delayed: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s;
17+
}
18+
19+
@variant dark (.dark &);
20+
421
@layer base {
522
:root {
623
--nav-height: 5rem;
724
}
825

9-
:root[data-theme="light"] {
10-
background-color: #f7fafc;
11-
color: #1a202c;
12-
}
13-
14-
:root[data-theme="dark"] {
15-
background-color: #1a202c;
16-
color: #f7fafc;
17-
}
18-
1926
/* Code block styling */
2027
.code-block {
21-
@apply bg-gray-50 rounded-lg p-1;
28+
@apply bg-gray-50 dark:bg-gray-800 rounded-lg p-1;
2229
}
2330

2431
.code-block .highlight {
@@ -31,57 +38,42 @@
3138

3239
/* Syntax highlighting colors */
3340
.highlight {
34-
@apply bg-gray-50;
41+
@apply bg-gray-50 dark:bg-gray-800;
3542
}
3643

3744
.highlight .nx {
38-
@apply text-violet-700;
45+
@apply text-violet-700 dark:text-violet-400;
3946
}
4047

4148
.highlight .s1, .highlight .s2 {
42-
@apply text-green-600;
49+
@apply text-green-600 dark:text-green-400;
4350
}
4451

4552
.highlight .k, .highlight .kd {
46-
@apply text-purple-600;
53+
@apply text-purple-600 dark:text-purple-400;
4754
}
4855

4956
.highlight .c1, .highlight .cm {
50-
@apply text-gray-500;
57+
@apply text-gray-500 dark:text-gray-400;
5158
}
5259

5360
.highlight .p {
54-
@apply text-gray-700;
61+
@apply text-gray-700 dark:text-gray-300;
5562
}
5663

5764
.highlight .o {
58-
@apply text-gray-900;
65+
@apply text-gray-900 dark:text-gray-100;
5966
}
6067

6168
.highlight .nt {
62-
@apply text-violet-600;
69+
@apply text-violet-600 dark:text-violet-400;
6370
}
6471

6572
.highlight .na {
66-
@apply text-amber-600;
73+
@apply text-amber-600 dark:text-amber-400;
6774
}
6875
}
6976

70-
@theme {
71-
--color-aurelia: #ed2b88;
72-
--color-aurelia-light: #ff4da1;
73-
--color-aurelia-blue: #003f8c;
74-
--color-aurelia-blue-light: #0066cc;
75-
76-
--animation-float-slow: float 8s ease-in-out infinite;
77-
--animation-float-delayed: float 6s ease-in-out infinite 2s;
78-
--animation-grid: grid 20s linear infinite;
79-
--animation-pulse: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
80-
--animation-pulse-slow: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
81-
--animation-pulse-slower: pulse 12s cubic-bezier(0.4, 0, 0.6, 1) infinite;
82-
--animation-pulse-delayed: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s;
83-
}
84-
8577
@layer keyframes {
8678
@keyframes float {
8779
0%,
@@ -151,6 +143,17 @@
151143
.oklch {
152144
color: unset;
153145
}
146+
147+
/* Dropdown menu styles */
148+
.dropdown-open {
149+
opacity: 1 !important;
150+
visibility: visible !important;
151+
transform: translateY(0) !important;
152+
}
153+
154+
.dropdown-active .dropdown-chevron {
155+
transform: rotate(180deg);
156+
}
154157
}
155158

156159
html {

0 commit comments

Comments
 (0)