Skip to content

Commit 175d879

Browse files
authored
style: update GitHub install button and theme toggle styles (#324)
1 parent e126e0b commit 175d879

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

src/components/GitHubInstallButtons/styles.module.css

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,28 @@
2626
}
2727

2828
.installButton {
29-
background: var(--primary, hsl(0 0% 9%));
30-
color: var(--primary-foreground, hsl(0 0% 98%));
31-
border-radius: 9999px;
29+
background: hsl(var(--primary, 0 0% 9%));
30+
color: hsl(var(--primary-foreground, 0 0% 98%));
31+
border-radius: 0.375rem;
3232
padding: 0.375rem 0.75rem;
33+
transition: all 0.2s ease;
3334
}
3435

3536
.installButton:hover {
36-
background: var(--primary-hover, hsl(0 0% 9% / 0.9));
37+
background: hsl(var(--primary-hover, 0 0% 9% / 0.9));
3738
text-decoration: none;
38-
color: var(--primary-foreground, hsl(0 0% 98%));
39+
color: hsl(var(--primary-foreground, 0 0% 98%));
40+
scale: 1.05;
3941
}
4042

4143
[data-theme='dark'] .installButton {
42-
background: var(--primary-dark, hsl(0 0% 98%));
43-
color: var(--primary-foreground-dark, hsl(0 0% 9%));
44+
background: hsl(var(--primary, 0 0% 98%));
45+
color: hsl(var(--primary-foreground, 0 0% 9%));
4446
}
4547

4648
[data-theme='dark'] .installButton:hover {
47-
background: var(--primary-dark-hover, hsl(0 0% 98% / 0.9));
48-
color: var(--primary-foreground-dark, hsl(0 0% 9%));
49+
background: hsl(var(--primary-dark-hover, 0 0% 98% / 0.9));
50+
color: hsl(var(--primary-foreground, 0 0% 9%));
4951
}
5052

5153
.icon {
@@ -63,4 +65,4 @@
6365
.container {
6466
display: none;
6567
}
66-
}
68+
}

src/css/custom.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
--chart-5: 115 100% 50%;
3636

3737
/* GitHub install button colors */
38-
--primary-hover: hsl(0 0% 9% / 0.9);
38+
--primary-hover: 0 0% 9% / 0.9;
3939
--ifm-color-gray-400: #9ca3af;
4040
--ifm-color-gray-200: #e5e7eb;
4141

@@ -77,7 +77,7 @@
7777
--ring: 0 0% 83.1%;
7878

7979
/* GitHub install button colors for dark mode */
80-
--primary-dark-hover: hsl(0 0% 98% / 0.9);
80+
--primary-dark-hover: 0 0% 98% / 0.9;
8181
--ifm-color-gray-400: #9ca3af;
8282
--ifm-color-gray-200: #e5e7eb;
8383

src/theme/Navbar/ColorModeToggle/styles.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@
1414
}
1515

1616
.themeToggle:hover {
17-
background-color: var(--accent, hsl(0 0% 96.1%));
18-
color: var(--accent-foreground, hsl(0 0% 9%));
17+
background-color: hsl(var(--accent, 0 0% 96.1%));
18+
color: hsl(var(--accent-foreground, 0 0% 9%));
1919
}
2020

2121
[data-theme='dark'] .themeToggle:hover {
22-
background-color: var(--accent, hsl(0 0% 14.9%));
23-
color: var(--accent-foreground, hsl(0 0% 98%));
22+
background-color: hsl(var(--accent, 0 0% 14.9%));
23+
color: hsl(var(--accent-foreground, 0 0% 98%));
2424
}
2525

2626
.themeToggle:focus-visible {
2727
outline: none;
28-
box-shadow: 0 0 0 1px var(--ring, hsl(0 0% 3.9%));
28+
box-shadow: 0 0 0 1px hsl(var(--ring, 0 0% 3.9%));
2929
}
3030

3131
[data-theme='dark'] .themeToggle:focus-visible {
32-
box-shadow: 0 0 0 1px var(--ring, hsl(0 0% 83.1%));
32+
box-shadow: 0 0 0 1px hsl(var(--ring, 0 0% 83.1%));
3333
}
3434

3535
.icon {

0 commit comments

Comments
 (0)