Skip to content

Commit 7b83cb4

Browse files
committed
Tweak PageLinks styles and spacing
Refine styling in PageLinks: update Separator to use gray color tokens and semibold font, adjust link class string for improved default/hover colors and transition effects, and reduce the container top margin from mt-20 to mt-8 for tighter vertical spacing.
1 parent 8d1ef38 commit 7b83cb4

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/PageLinks/PageLinks.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ import PropTypes from "prop-types";
55
const baseURL = "https://github.com/webpack/webpack.js.org/edit/main/";
66

77
function Separator() {
8-
return <span className="mx-5 text-black font-bold dark:text-white">·</span>;
8+
return (
9+
<span className="mx-5 text-gray-500 font-semibold dark:text-gray-300">
10+
·
11+
</span>
12+
);
913
}
1014

1115
const classes =
12-
"text-gray-500 dark:text-gray-500 text-sm cursor-pointer font-sans hover:underline";
16+
"text-gray-600 dark:text-gray-300 text-sm cursor-pointer font-sans hover:underline hover:text-gray-700 dark:hover:text-white transition-colors";
1317

1418
function _handlePrintClick(event) {
1519
event.preventDefault();
@@ -21,7 +25,7 @@ export default function PageLinks({ page = {} }) {
2125
const editLink = page.edit || Url.resolve(baseURL, page.path);
2226

2327
return (
24-
<div className="print:hidden mt-20">
28+
<div className="print:hidden mt-8">
2529
<a className={classes} href={editLink}>
2630
Edit this page
2731
</a>

0 commit comments

Comments
 (0)