-
Notifications
You must be signed in to change notification settings - Fork 1
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
More dvc.org implementation fixes #140
Conversation
h1:first-child { | ||
@apply lg:h-14 pb-2; | ||
@apply pb-2 min-h-[3.5rem]; |
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.
min-h over h fixes an issue where line broken titles were off
* { | ||
@apply scroll-mt-14; | ||
} | ||
|
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.
scroll margin now is on the header, since it's pretty much coupled. We use Tailwind's 14
(3.5rem
) but this makes me think we may want to specify a tailwind custom value.
@@ -44,6 +44,7 @@ | |||
h4, | |||
h5, | |||
h6 { | |||
@apply scroll-mt-5; |
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.
scroll-pt-top
on the body makes up for the sticky header exactly, and elements that want to have a little extra space can set scroll-mt
to be used in addition.
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.
Nice addition. I think we can add them to other linkers as well like details link
, args link
etc which also provide hash links beside headers.
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.
LGTM!
@@ -44,6 +44,7 @@ | |||
h4, | |||
h5, | |||
h6 { | |||
@apply scroll-mt-5; |
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.
Nice addition. I think we can add them to other linkers as well like details link
, args link
etc which also provide hash links beside headers.
For use with iterative/dvc.org#4118, which will depend on this being merged and shipped to fix some issues.