Skip to content

Commit a67d772

Browse files
committed
Fix readDocButton
1 parent 3d6a1c3 commit a67d772

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/components/LandingPage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default function LandingPage() {
160160
<CodeBlock language="bash">{`php server.php start`}</CodeBlock>
161161
</div>
162162

163-
<Link className={styles.readFullDocButton} to="/docs/general/">
163+
<Link className={styles.readDocButton} to="/docs/general/">
164164
View Documentation
165165
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" strokeWidth="1.75" strokeLinecap="round" strokeLinejoin="round">
166166
<path d="M3 10h13" />

src/components/LandingPage/index.module.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177

178178
.primaryButton,
179179
.secondaryButton,
180-
.readFullDocButton {
180+
.readDocButton {
181181
display: inline-flex;
182182
align-items: center;
183183
justify-content: center;
@@ -191,7 +191,12 @@
191191
border-color 120ms ease-out,
192192
color 120ms ease-out,
193193
box-shadow 140ms ease-out;
194-
@apply rounded-xl px-6 md:px-8 py-3 gap-3 shadow hover:shadow-md;
194+
@apply py-3 gap-3;
195+
}
196+
197+
.primaryButton,
198+
.secondaryButton {
199+
@apply rounded-xl px-6 md:px-8 shadow hover:shadow-md;
195200
}
196201

197202
.primaryButton {
@@ -207,19 +212,20 @@
207212
text-decoration: none;
208213
}
209214

210-
.readFullDocButton {
211-
@apply px-0 shadow-none hover:shadow-none hover:no-underline;
215+
.readDocButton {
216+
@apply shadow-none hover:shadow-none hover:no-underline;
217+
padding-inline: 0;
212218
font-size: 1.05em;
213219
}
214220

215-
.readFullDocButton svg {
221+
.readDocButton svg {
216222
display: block;
217223
position: relative;
218224
top: 1px;
219225
transition: transform 160ms ease-out;
220226
}
221227

222-
.readFullDocButton:hover svg {
228+
.readDocButton:hover svg {
223229
transform: translateX(3px);
224230
}
225231

0 commit comments

Comments
 (0)