Skip to content
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

Automatically add nice header linking behavior #280

Merged
merged 4 commits into from Mar 4, 2019
Merged

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jan 9, 2019

This adjusts the current header link styleguide to look and behave
more like GitHub header links.

Closes #230

@nex3 nex3 requested a review from jina January 9, 2019 23:54
}

&:target {
animation-name: highlight-header;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered animation-duration, animation-name

}
}

&:hover a.anchor::after {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying class selectors with an element.

a {
h1, h2, h3, h4, h5, h6 {
a.anchor {
display: block;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properties should be ordered background, border, display, float, margin, vertical-align, width


a {
h1, h2, h3, h4, h5, h6 {
a.anchor {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid qualifying class selectors with an element.

.sl-c-link-header {

a {
h1, h2, h3, h4, h5, h6 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each selector in a comma sequence should be on its own single line

@@ -61,3 +61,15 @@
body
end
end

after_render do |content, path, locs|

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/UnusedBlockArgument: Unused block argument - locs. If it's necessary, use _ or _locs as an argument name to indicate that it won't be used.

@jina jina merged commit 7cc3b1b into wip.reference Mar 4, 2019
@jina jina deleted the link-headers branch March 4, 2019 21:16
asaf400 pushed a commit to asaf400/ass-site that referenced this pull request Apr 18, 2024
* Make link headers look and work more like GitHub's

* Automatically generate links for all headers

* Flash headers when they're selected

* update readme
asaf400 pushed a commit to asaf400/ass-site that referenced this pull request Apr 18, 2024
* Make link headers look and work more like GitHub's

* Automatically generate links for all headers

* Flash headers when they're selected

* update readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants