Skip to content

Commit

Permalink
Remove pagination for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Mar 19, 2024
1 parent 2b9840d commit 6a27454
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 70 deletions.
20 changes: 0 additions & 20 deletions packages/website/src/components/PostLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,6 @@ const PostLayout = ({ title, pageType, filePath, permalink, children }) => {
<h1 id={slug(title)}>{title}</h1>
{children}
</article>
<div className="row" id="pagination-container">
{prev && (
<a className="prev" href={prev.url}>
<span className="label">{prev.title}</span>
<span className="arrow">
<span className="tip"></span>
<span className="shaft"></span>
</span>
</a>
)}
{next && (
<a className="next" href={next.url}>
<span className="label">{next.title}</span>
<span className="arrow">
<span className="tip"></span>
<span className="shaft"></span>
</span>
</a>
)}
</div>
<div className={styles.editOnGitHub}>
<a
className={styles.editLink}
Expand Down
50 changes: 0 additions & 50 deletions packages/website/src/pages/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,41 +166,6 @@ svg .feat-3 {
text-align: center;
}

.prev,
.next,
.arrow {
display: inline-block;
height: 1em;
line-height: 1em;
}
.prev,
.prev .label,
.prev .arrow {
float: left;
}
.next,
.next .label,
.next .arrow {
float: right;
}
.prev .label,
.next .label {
font-size: 1.25rem;
display: inline-block;
height: 2em;
line-height: 2em;
}
.arrow {
padding: 0.33em 0.67em;
}
.prev:hover .arrow {
padding-left: 0.77em;
padding-right: 0.57em;
}
.next:hover .arrow {
padding-left: 0.57em;
padding-right: 0.77em;
}
.arrow .shaft {
background-color: #000;
border-bottom: 3px solid #fff;
Expand Down Expand Up @@ -1142,21 +1107,6 @@ body:not(.home) .navbar-link:before {
font-size: 1em;
}

#pagination-container {
font-size: 2.5rem;
max-width: var(--width-readable);
}
#pagination-container .prev:after {
content: 'Previous';
}
#pagination-container .next:before {
content: 'Next';
}
#pagination-container .next:before,
#pagination-container .prev:after {
font-family: 'Sofia Pro', sans-serif;
}

/*** Playground ***/

#playground-container .codepen {
Expand Down

0 comments on commit 6a27454

Please sign in to comment.