-
Notifications
You must be signed in to change notification settings - Fork 4
Add GitHub style markdown alerts #325
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
base: gh-pages
Are you sure you want to change the base?
Conversation
|
That seems to work okay, and looks okay too. @braver for a quick look maybe.
Nothing that can't be improved later as well. |
static/style/readme.css
Outdated
| text-decoration: none; | ||
| } | ||
| .markdown-anchor:after { | ||
| content: "⎆"; |
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.
I'd prefer https://primer.style/octicons/icon/link-16/, or perhaps ⌘ ("place of interest") or just →..., but the link icon would be ideal.
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 ⌘ totally is a Mac thing. It is like a trademark.
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 ⌘ totally is a Mac thing. It is like a trademark.
I also have that sense.
- If you want ASCII,
#is decent. ¶might imply that any paragraph can be linked, not just headings.- Or there's any number of fun symbols in Unicode like Kaste already had.
- "It's a bookmark, and it's here:"
⮱
- "It's a bookmark, and it's here:"
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.
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.
static/style/readme.css
Outdated
| } | ||
|
|
||
| a { | ||
| color: hsl(31.78deg 88.74% 37.93%); |
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.
This kind of goes back to our earlier discussion about color contrast: it's the wrong kind of orange. It's not our "brand" color. And because we already set the expectation with a certain kind of orange everywhere else, these links are now obviously different somehow. My first reaction was that maybe they were links I already visited ... it looks wrong to my eye.
I don't mind the underlines by the way, more links should have underlines for various reasons.
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.
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.
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.
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.
static/style/readme.css
Outdated
| :root[data-theme='dark'] & { | ||
| &.markdown-alert-note, | ||
| &.markdown-alert-tip, | ||
| &.markdown-alert-important, | ||
| &.markdown-alert-warning, | ||
| &.markdown-alert-caution { | ||
| border-left-color: hsl(32.77deg 70.44% 55.43%); |
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.
Note that you can probably just nest :root[data-theme='dark'] in the previous selector, instead of repeating all the alerts styles here. Or of course introduce a new color variable in colors.css and set up the dark variant there.
Yeah, I don't see a real need there as long as we avoid obvious signal colors (red/green). It's clear enough to call attention to itself by just existing, I don't think need to make it any more complicated than that. I hardly ever see them in the wild anyway. |









Fixes #296
Also adds header anchors for deep linking into the readme.