Nodejs.org: UI - Lines appear on top of the commit links on hover in the release notes

Created on 15 Apr 2016  路  12Comments  路  Source: nodejs/nodejs.org

It's a minor issue, but I'm pretty sure you'd want to underline the link instead when I hover over it.

The below image shows the line when hovering over the first link.
screen shot 2016-04-15 at 10 10 45 am

Screenshot taken here: https://nodejs.org/en/blog/release/v4.3.1/

Most helpful comment

This seems to work well (just a quick test):

a:hover code {
  background-color: transparent;
  color: #fff;
}

So the hover effect just looks the same as for regular links.

All 12 comments

Can confirm.

I think it is a difficult problem.
Because we can not attach class to this elements.(because it is unfolded in markdown by metalsmith)

I tried to use {: .fuga} but could not apply class selector in metalsmith;(

https://github.com/nodejs/nodejs.org/blob/master/layouts/css/base.styl#L32

This does the trick:

a > code {
    padding: .25em;
}

It pads it as such where you cannot see the green background.

@kahwee I do not recommend it. Because it is not improved in IE11.

IE11 needs .32em.

Good note. I didn't have IE to test on. This is one way too:

a[href*="/commit/"] {
    background: #f0f0f0;
}

nice :+1:
however I notice this page has same problem... :cry:
how do we resolve above?

This doesn't scale well:

a[href*="/api/"], a[href*="/commit/"] {
    background-color: #f0f0f0;
}

What do you think?

I agree with your opinion. This code doesn't scale well.
The best is to attach a class but I think it difficult.
@fhemberger Do you have any thoughts?

This seems to work well (just a quick test):

a:hover code {
  background-color: transparent;
  color: #fff;
}

So the hover effect just looks the same as for regular links.

Was playing with this last day and ended up with the same solution proposed by @fhemberger.
I think it's the simplest one, and it's consistent with other links.

I feel the same way.

@fhemberger's solution looks good to me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fhemberger picture fhemberger  路  8Comments

khaosdoctor picture khaosdoctor  路  6Comments

markusdresch picture markusdresch  路  6Comments

JungMinu picture JungMinu  路  8Comments

Fishrock123 picture Fishrock123  路  4Comments