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
CAMEL-15371: underline links #452
Conversation
antora-ui-camel/src/css/doc.css
Outdated
@@ -149,6 +149,16 @@ | |||
.doc a { | |||
color: var(--link-font-color); | |||
word-break: break-word; | |||
text-decoration: underline; | |||
text-underline-position: under; |
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 bit looks a bit weird to me.
text-underline-position: under; |
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.
You require this particular line so that there is a minimum distance between the underline and the text.
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.
Right, so this is with text-underline-position: under
:
and without:
I think what you're reacting to is that the underline is quite noticeable, perhaps adding to make it lighter:
text-underline-position: under; | |
text-decoration-thickness: 1px; | |
text-decoration-style: dotted; |
Would help, this is how it renders in Firefox:
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 needs to be rebased.
e12b4d3
to
515a94f
Compare
Not sure about the underline being below the descenders. My personal preference would be text-decoration: underline;
text-decoration-style: dotted; There are some methods on different underline styles at css tricks and I remember reading about the underline journey at medium (for inspiration). @aashnajena and @Delawen any thoughts on this? |
@zregvart alright I got your concern about it but with those changes, it looks messy in chrome browser, I found a method using background-image and linear-gradient on the CSS tricks site.
If it's okay with you, I will implement it in this manner, it will create a neater effect of underline on each browser. |
use background image to created dotted effect
06a4368
to
9de533d
Compare
Does the |
@zregvart I have checked it, the |
Thanks @AemieJ |
No description provided.