Skip to content

Commit

Permalink
Merge pull request #382 from vordgi/rd-377
Browse files Browse the repository at this point in the history
rd-377 improve package links styles
  • Loading branch information
vordgi authored Nov 9, 2024
2 parents 31dcd67 + 67770d8 commit 745d176
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Read the documentation in a convenient interface at [robindoc.com/docs](https://

Robindoc is a framework for automatically creating documentation websites based on markdown files, built on React.js Server Components.

```tsx filename="app/docs/page.tsx"
```tsx filename="app/docs/page.tsx" switcher tab="TypeScript" clone="jsx|JavaScript|app/docs/page.jsx"
const DocumentationPage = () => (
<RobinProvider>
<Header logo={<Logo />} />
Expand Down
28 changes: 24 additions & 4 deletions site/src/components/ui/package-links/package-links.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
.package-links {
display: flex;
margin: 0 -6px;
margin-block-start: 12px;
margin-block-end: 28px;
}

.package-links-link {
font-weight: 500;
border-radius: 6px;
border-radius: 8px;
text-decoration: none;
color: inherit;
padding: 2px;
margin-right: 12px;
margin: 0 6px;

@media screen and (max-width: 480px) {
flex: 1;
text-align: center;
}

&:hover .package-links-link-inner {
background: inherit;
color: var(--body);
}
}

.package-links-link-inner {
display: block;
padding: 4px 12px;
padding: 6px 20px;
background-color: var(--body);
border-radius: 4px;
border-radius: 6px;
transition: background .15s, color .15s;
letter-spacing: 0.5px;

@media screen and (max-width: 480px) {
padding: 8px 20px;
font-weight: 700;
}
}

.package-links-link-npm {
Expand Down

0 comments on commit 745d176

Please sign in to comment.