mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.42k stars 25.6k forks source link

removing underline from list of posts #1499

Closed benslack19 closed 6 years ago

benslack19 commented 6 years ago

Environment informations


Expected behavior

(Sorry a bit of a noob here so wasn't sure if my request posted correctly. I'm re-posting here.)

Hello, thank you for making Minimal Mistakes! I think this is a great theme. Hopefully is a relatively simple question. Underlining the list of blog posts seems to be the default, so I'm just trying to figure out how to do that. You actually have what I'm looking for in the bottom right screenshot at this link.

While I don't have this yet, I'm looking to make a list of collections, so I'd like the "without underline list" to be the default style applied globally. Any tips?

mmistakes commented 6 years ago

This can be done with CSS using text-decoration: none.

Previously I did this to post titles in an archive, but that was short sighted of me. To make it more clear they are "link" and clickable I reverted back to the default styling of a <a> element... underlined.

You'll need to drop this into your CSS to override the theme's default.

.archive__item-title a {
  text-decoration: none;
}
benslack19 commented 6 years ago

OK thanks so much for the quick reply. Sorry I should've mentioned that I did see the CSS override from another post. I just wasn't sure where to put it. Do I just copy and paste it into the _layouts/archive.html page?

mmistakes commented 6 years ago

No, as per the stylesheet documentation:

To make basic tweaks to theme’s style it can be overridden by adding to <your_project>/assets/css/main.scss.

benslack19 commented 6 years ago

worked like a charm :-) thanks so much!