Skip to content

Commit

Permalink
fix: update deno doc (denoland#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats authored Jul 25, 2024
1 parent e554e4e commit bde785a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: canary
deno-version: b305ba3e1c155a33139ec0d764f547ffde4d4de4

- name: "Reference: generate types"
working-directory: "reference_gen"
Expand Down
12 changes: 0 additions & 12 deletions overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
@apply md:mt-1 !important;
}

/* Remove the header from the TOC */

.ddoc > .toc > div > nav.documentNavigation > h3 {
@apply hidden !important;
}

/* Adjust spacing to account for removed header */

.ddoc .toc .documentNavigation {
Expand All @@ -34,12 +28,6 @@
@apply text-xl !important;
}

/* Shrink the ToC a bit as items were rarely long enough to fill it */

.ddoc > .toc {
width: 250px !important;
}

.ddoc .usageContent {
@apply bg-primary/5 border-primary/25 pt-3.5 pb-4 !important;
}
Expand Down
32 changes: 8 additions & 24 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,21 +221,10 @@ body:not(:has(.ddoc)) {

/* Custom DDOC styles for the Deno documentation */
.ddoc {
/* Categories panel */
> .toc {
@apply pt-0 !important;

#categoryPanel {
@apply border-r border-gray-000;

.documentNavigation {
> h3 {
margin: 0.75rem 0.75rem 0.5rem !important;
padding-bottom: 0.1rem;
@apply text-gray-4 font-normal text-xs border-b border-gray-000 leading-normal uppercase !important;
}
}
}

.documentNavigation > ul > li > a {
@apply text-gray-3 hover:bg-blue-50 rounded-lg hover:no-underline py-1.5 px-3.5 !important;
}

.contextLink {
Expand All @@ -244,13 +233,17 @@ body:not(:has(.ddoc)) {
text-decoration-color: rgba(9, 107, 218, 0.4) !important;
}

#content .toc .documentNavigation {
.documentNavigation {
> h3 {
@apply hidden !important;
}

> ul {
@apply border-l border-gray-000 !important;

> li > a {
@apply text-gray-3 hover:bg-blue-50 rounded-lg hover:no-underline py-1.5 px-3.5 !important;
}

> ul > li a {
@apply hover:bg-blue-50 rounded-lg hover:no-underline !important;
Expand All @@ -269,12 +262,3 @@ body:not(:has(.ddoc)) {
}
}
}

@media (min-width: 1024px) {
/* no category panel, category panel but no document navigation */
.ddoc:not(:has(> div.toc)),
.ddoc:has(> div.toc) > div:not(.toc) {
padding-top: 0.25rem !important;
padding-left: 0.5rem !important;
}
}

0 comments on commit bde785a

Please sign in to comment.