Skip to content

Commit 23db4df

Browse files
committed
docs: fix Overview component style
1 parent 9ff3cd7 commit 23db4df

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed
Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
11
.root {
2-
margin-top: 36px;
3-
4-
h2 {
5-
font-size: 23px;
6-
font-weight: 600;
7-
line-height: 1;
8-
margin: 0 0 20px;
9-
padding-top: 0;
10-
border-top: 0;
11-
color: var(--rp-c-text-1);
12-
transition: color 0.5s;
13-
}
2+
margin-top: 32px;
143

15-
ul a {
16-
letter-spacing: -0.01em;
17-
margin-bottom: 1em;
18-
transition: color 0.5s;
4+
ul {
5+
list-style: none;
6+
padding-left: 0;
197
margin: 0;
8+
}
9+
10+
a {
2011
font-size: 15px;
21-
font-weight: 500;
22-
line-height: 2.2;
2312
margin-top: 8px;
2413
color: var(--rp-c-text-code);
2514
opacity: 0.9;
26-
transition: color 0.5s;
15+
transition: color 0.3s;
2716
word-break: break-all;
2817
}
2918

3019
a:hover {
31-
transition: color 0.5s;
32-
color: var(--rp-c-brand-dark);
20+
color: var(--rp-c-link);
3321
}
3422
}
3523

24+
.title {
25+
font-size: 21px;
26+
font-weight: 600;
27+
line-height: 1;
28+
margin: 4px 0 20px;
29+
color: var(--rp-c-text-1);
30+
}
31+
32+
.title a {
33+
font-size: 21px;
34+
color: var(--rp-c-link);
35+
}
36+
3637
.group {
3738
break-inside: avoid;
3839
margin-bottom: 28px;
3940
background-color: var(--rp-c-bg-soft);
4041
border-radius: 12px;
41-
padding: 28px 32px;
42+
padding: 24px 28px;
4243
transition: background-color 0.5s;
4344
}
4445

@@ -51,13 +52,11 @@
5152
@media (min-width: 768px) {
5253
.root {
5354
columns: 2;
54-
min-width: 648px;
5555
}
5656
}
5757

58-
@media (min-width: 1024px) {
58+
@media (min-width: 1300px) {
5959
.root {
6060
columns: 3;
61-
min-width: 904px;
6261
}
6362
}

website/theme/components/ConfigOverview.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function Overview() {
6666
const Nodes = OVERVIEW_GROUPS.map((group) => (
6767
<div key={group.name} className={styles.overviewGroups}>
6868
<div className={styles.group}>
69-
<h2>{group.name}</h2>
69+
<div className={styles.title}>{group.name}</div>
7070
<ul>
7171
{group.items?.map((item) => (
7272
<li key={item}>
@@ -127,9 +127,9 @@ export function BuildOverview() {
127127
const Nodes = BUILD_OVERVIEW_GROUPS.map((group) => (
128128
<div key={group.name} className={styles.overviewGroups}>
129129
<div className={styles.group}>
130-
<h2>
131-
<Link href={tUrl(`/config/build/${group.name}`)}> {group.name}</Link>
132-
</h2>
130+
<div className={styles.title}>
131+
<Link href={tUrl(`/config/build/${group.name}`)}>{group.name}</Link>
132+
</div>
133133
<ul>
134134
{group.items?.map((item) => (
135135
<li key={item}>

0 commit comments

Comments
 (0)