Skip to content

Commit c332645

Browse files
authored
Update placement for heading + styling for cards (#7130)
1 parent 9f1adf3 commit c332645

File tree

2 files changed

+18
-30
lines changed

2 files changed

+18
-30
lines changed

src/pages/index.module.scss

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -118,48 +118,36 @@
118118
}
119119
.tabBox {
120120
width: 100%;
121-
display: grid;
122-
grid-template-rows: auto 1fr;
121+
height: 100%;
123122
max-width: 100%;
124123
@media (min-width: 974px) {
125124
height: 100%;
126125
}
127126
.heading {
128-
background-color: var(--notfound-background);
129-
max-width: max-content;
130-
padding: 6px 12px;
131-
border: 1px solid var(--teal-600);
132-
border-bottom: none;
133-
position: relative;
134-
z-index: 2;
135-
color: var(--ifm-heading-color);
127+
margin-bottom: 24px;
128+
font-size: 24px;
129+
color: var(--primary-font-color);
136130
font-weight: 700;
137-
border-top-left-radius: 4px;
138-
border-top-right-radius: 4px;
139-
&::after {
140-
content: "";
141-
left: 0;
142-
position: absolute;
143-
width: 100%;
144-
height: 3px;
145-
background-color: var(--notfound-background);
146-
bottom: -2px;
147-
}
131+
font-family: Barlow;
132+
font-weight: 700;
133+
line-height: 110%; /* 26.4px */
134+
letter-spacing: -0.48px;
135+
padding: 8px 0;
148136
.leftIcon {
149137
color: var(--teal-600);
150138
}
151139
}
152140
.content {
153141
border: 1px solid var(--teal-600);
154-
border-top-right-radius: 8px;
155-
border-bottom-left-radius: 8px;
156-
border-bottom-right-radius: 8px;
142+
border-radius: 8px;
157143
background-color: var(--notfound-background);
158144
display: grid;
159-
grid-template-rows: 1fr auto;
160-
padding: 24px;
145+
grid-template-rows: auto 1fr auto;
146+
padding: 16px 24px 32px;
147+
height: 100%;
161148
> p {
162149
margin: 0;
150+
font-size: 14px;
163151
padding-bottom: 24px;
164152
}
165153
}

src/pages/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ const TabBox = ({icon, label, description, list, link}: any) => {
166166
return (
167167
<div>
168168
<div className={styles.tabBox}>
169-
<div className={styles.heading}>
170-
{icon && <Icon className={styles.leftIcon} btn="left" icon={icon} size='inherit' color='var(--teal-600)' /> }
171-
<span>{label}</span>
172-
</div>
173169
<div className={styles.content}>
170+
<div className={styles.heading}>
171+
{icon && <Icon className={styles.leftIcon} btn="left" icon={icon} size='inherit' color='var(--teal-600)' /> }
172+
<span>{label}</span>
173+
</div>
174174
<p dangerouslySetInnerHTML={{__html: description}}></p>
175175
<div className={styles.techGrid}>
176176
{list && list.length && list.map((l: any, idx: number) =>

0 commit comments

Comments
 (0)