Skip to content

Commit f6537b8

Browse files
Switch hover back to default; minor styles adjustment (#2431)
1 parent 060b0d3 commit f6537b8

5 files changed

Lines changed: 14 additions & 12 deletions

File tree

_components/LandingPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ export default function LandingPage() {
111111
own? Check out our{" "}
112112
<a
113113
href="https://github.com/denoland/deno-docs?tab=readme-ov-file#examples"
114-
class="text-primary hover:underline focus:underline"
114+
class="text-primary underline"
115115
>
116116
GitHub repository
117117
</a>.
118118
</p>
119119
<p>
120120
<a
121121
href="/runtime/contributing/examples/"
122-
class="text-primary hover:underline focus:underline text-center mt-4 font-bold"
122+
class="text-primary underline mt-4 font-bold"
123123
>
124124
Commit an example and we'll send you stickers!
125125
</a>

_components/SidebarNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function SidebarCategoryHeading(props: {
133133
isActive?: boolean;
134134
}) {
135135
return (
136-
<h2 class="block uppercase py-2 pr-4 mt-4 text-foreground-secondary font-bold leading-none tracking-wide !border-0">
136+
<h2 class="block uppercase py-2 pr-4 mt-4 text-foreground-secondary font-bold leading-[1.2] text-balance tracking-wide !border-0">
137137
{props.title}
138138
</h2>
139139
);

_components/ThemeToggle.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ export default function () {
99
<img
1010
src="/img/light.svg"
1111
class="w-full block -translate-y-full dark:translate-y-0 transition-transform duration-200 easing-[0.86,0,0.07,1]"
12+
alt=""
1213
/>
1314
<img
1415
src="/img/dark.svg"
1516
class="w-full block -translate-y-full dark:translate-y-0 transition-transform duration-200 easing-[0.86,0,0.07,1]"
17+
alt=""
1618
/>
1719
<span class="sr-only">Toggle Theme</span>
1820
</button>

_includes/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export default function Layout(data: Lume.Data) {
1919
<meta charset="utf-8" />
2020
<meta name="viewport" content="width=device-width, initial-scale=1" />
2121
<title>{deleteBackticks(data.title)}</title>
22+
{data?.description &&
23+
<meta name="description" content={data.description} />}
2224
<link rel="icon" href="/favicon.ico" />
2325
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
2426
<script>

styles.css

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import "tailwindcss";
22

3-
@theme {
3+
@theme static {
44
--color-gray-50: #f5f5f5;
55
--color-gray-100: #e5eaea;
66
--color-gray-200: #d4d6d8;
@@ -40,7 +40,9 @@
4040
--color-deploy-800: #002633;
4141
--color-deploy-900: #001319;
4242
--color-deploy-950: #000a0d;
43+
}
4344

45+
@theme {
4446
--color-code-1: #01c2ff;
4547
--color-code-2: #00a341;
4648
--color-code-3: #ae01ff;
@@ -82,6 +84,7 @@
8284
}
8385

8486
@variant dark (&:where(.dark, .dark *));
87+
@custom-variant hover (&:hover);
8588
@custom-variant current (&:where([aria-current]));
8689
@custom-variant sidebar-open (&:where([data-open=true]));
8790

@@ -922,7 +925,7 @@
922925
}
923926

924927
[data-services-page="true"] {
925-
--color-primary: var(--color-deploy-300);
928+
--color-primary: var(--color-deploy-500);
926929
--color-header-highlight: var(--color-deploy-200);
927930
}
928931

@@ -1019,11 +1022,6 @@
10191022
@apply text-deploy-500 decoration-deploy-500/20 hover:decoration-deploy-500;
10201023
}
10211024

1022-
.learn-link {
1023-
@apply flex dark:text-foreground-primary gap-3 items-center font-normal
1024-
underline underline-offset-4;
1025-
}
1026-
10271025
.help-link {
10281026
@apply text-purple-600 dark:text-purple-300 decoration-purple-600/20
10291027
dark:decoration-purple-300/20 dark:hover:decoration-purple-300
@@ -1652,12 +1650,12 @@
16521650
}
16531651

16541652
.runtime-cta {
1655-
@apply no-underline text-gray-900! bg-runtime-300 border-0
1653+
@apply no-underline! text-gray-900! bg-runtime-300 border-0
16561654
hover:bg-runtime-200;
16571655
}
16581656

16591657
.deploy-cta {
1660-
@apply no-underline text-gray-900!;
1658+
@apply no-underline! text-gray-900!;
16611659
@apply bg-deploy-300 rounded-full border-0 hover:bg-deploy-200;
16621660
}
16631661

0 commit comments

Comments
 (0)