-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove upstreamed ddoc stylings and update README #571
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,149 +1,9 @@ | ||
/* Deno Doc Overrides */ | ||
|
||
div.ddoc { | ||
@apply flex h-screen p-4 pt-2 lg:p-2 lg:pt-0; | ||
} | ||
|
||
/* First column: fixed width of 290px */ | ||
.ddoc > :first-child { | ||
@apply w-[290px] flex-shrink-0; | ||
} | ||
|
||
/* Second column: takes up the remaining space */ | ||
.ddoc > :nth-child(2) { | ||
@apply flex-grow; | ||
} | ||
|
||
.toc { | ||
@apply hidden; | ||
} | ||
|
||
.ddoc > .toc { | ||
@apply hidden md:flex md:flex-col !important; | ||
} | ||
|
||
.ddoc > div > div#content > div.toc { | ||
@apply hidden xl:flex xl:flex-col !important; | ||
} | ||
|
||
.ddoc > .toc { | ||
@apply h-full max-h-screen border-r border-gray-000; | ||
} | ||
|
||
.ddoc .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; | ||
} | ||
|
||
.ddoc .documentNavigation > ul { | ||
@apply flex-grow overflow-y-auto; | ||
} | ||
|
||
.ddoc .documentNavigation > ul > li { | ||
@apply mt-0.5 mx-3; | ||
} | ||
|
||
.ddoc .documentNavigation > ul > li > a { | ||
@apply text-gray-3 text-sm py-1.5 px-3.5 hover:bg-blue-50 rounded-lg hover:no-underline !important; | ||
} | ||
|
||
.ddoc > div:not(.toc) { | ||
@apply flex flex-col; | ||
} | ||
|
||
#content { | ||
@apply mt-4 flex flex-row justify-between !important; | ||
} | ||
|
||
#content > main { | ||
@apply pb-0 flex flex-col gap-3 flex-grow !important; | ||
} | ||
|
||
#content > .toc { | ||
@apply flex-shrink-0 min-w-[250px] max-w-[300px] !important; | ||
} | ||
|
||
#content > main > section + div { | ||
@apply max-w-[75ch] !important; | ||
} | ||
|
||
.ddoc .markdown { | ||
@apply max-w-[40ch] sm:max-w-screen-sm md:max-w-screen-md lg:max-w-[75ch] !important; | ||
} | ||
|
||
/* This comes from gfm css, should be replaced with something in our color palette once we establish it. */ | ||
.ddoc .markdown :not(pre) > code { | ||
background-color: var(--color-neutral-muted) !important; | ||
} | ||
|
||
.ddoc .markdown pre { | ||
@apply border-gray-000 !important; | ||
} | ||
|
||
.ddoc .max-w-prose { | ||
@apply max-w-[75ch] !important; | ||
} | ||
|
||
.ddoc > div > div#content > div.toc > div > nav.documentNavigation > h3 { | ||
@apply hidden !important; | ||
} | ||
|
||
.ddoc > div > div#content > div.toc > div > nav.documentNavigation > ul { | ||
@apply border-l border-gray-000 text-gray-1 text-[.8rem] leading-none !important; | ||
} | ||
|
||
.ddoc | ||
> div | ||
> div#content | ||
> div.toc | ||
> div | ||
> nav.documentNavigation | ||
> ul | ||
> li:has(> a) { | ||
@apply pb-0 !important; | ||
} | ||
|
||
.ddoc nav.documentNavigation li:has(> ul) { | ||
@apply mt-0 !important; | ||
/* CSS styles here */ | ||
} | ||
|
||
.ddoc | ||
> div | ||
> div#content | ||
> div.toc | ||
> div | ||
> nav.documentNavigation | ||
> ul | ||
> li | ||
> ul | ||
> li { | ||
@apply mt-1 !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
.ddoc | ||
> div | ||
> div#content | ||
> div.toc | ||
> div | ||
> nav.documentNavigation | ||
> ul | ||
> li | ||
> ul | ||
> li | ||
> a { | ||
@apply hover:bg-blue-50 rounded-lg hover:no-underline p-1 !important; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
.ddoc:not(:has(> div.toc)), | ||
.ddoc:has(> div.toc) > div:not(.toc) { | ||
padding-top: 0.25rem !important; | ||
padding-left: 0.5rem !important; | ||
} | ||
} | ||
|
||
.ddoc .usageContent { | ||
@apply bg-primary/5 border-primary/25 pt-3.5 pb-4 !important; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The styles here that adjust the ToC position are still necessary because if all of ddoc is in a grid it doesn't anchor the navigation content to the left with a fixed width so I think ddoc should be a flex where the categories list is on the left and the rest of the content takes up the rest of the space.
We could either keep that in here until the next deno_doc pass or migrate it to styles.css as something that is a deno-docs specific interpretation