Skip to content

Commit

Permalink
Fix: un-styled index
Browse files Browse the repository at this point in the history
  • Loading branch information
rg-wood committed Jul 26, 2024
1 parent 0bc5a7f commit d2a050f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
23 changes: 22 additions & 1 deletion assets/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,32 @@ html {
scroll-behavior: smooth;
}

vellum-doc {
--index-width: 250px;
}

vellum-doc::part(index) {
margin-top: 1.6rem;
padding-right: 1em;
padding-left: 1em;
border-right: none;
border-right: 2px solid black;
}

vellum-doc::part(index-h1) {
font-size: 1.4em;
text-transform: uppercase;
}

vellum-doc::part(index-h2) {
font-size: 1.3em;
}

vellum-doc::part(index-h3) {
font-size: 1em;
}

vellum-doc::part(index-h4) {
font-size: 0.8em;
}

article#document {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"markdown-it-replace-link": "^1.2.1",
"vellum-doc": "^0.8.0"
"vellum-doc": "^0.9.1"
},
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
Expand Down

0 comments on commit d2a050f

Please sign in to comment.