sage icon indicating copy to clipboard operation
sage copied to clipboard

Boilerplate's style.css redundant with Bootstrap

Open elflo opened this issue 14 years ago • 7 comments

Comparing HTML5 Boilerplate's style.css and Bootstrap's reset.less, they look almost identical, which is logical since they're both based on Normalize.css.

Whatever styles seem to be missing from reset.less compared to style.css are included somewhere else in Bootstrap (like forms, inputs, tables, etc) and some styles from HTML5BP's style.css are even in conflict with Bootstrap's styles (the link definitions for example). I doubt there's more than a couple of HTML5BP's styles that Bootstrap is missing, apart maybe from the print styles.

Therefore, wouldn't it make more sense to simply remove the HTML5BP style.css entirely?

elflo avatar May 02 '12 17:05 elflo

what if you don't want to use bootstrap? it takes little effort to remove it and then you just have a h5bp base

retlehs avatar May 02 '12 18:05 retlehs

But isn't this a bootstrap-based theme? :) i get what you're saying, but then wouldn't it make more sense to not have both activated at the same time? How about leaving bootstrap enabled as it is now, but then deactivating boilerplate's css by default if you want to leave it included in the release?

elflo avatar May 02 '12 18:05 elflo

was just talking to @swalkinshaw about this and that sounds like a good solution

retlehs avatar May 02 '12 18:05 retlehs

Yeah, solution should be:

  • Leave the actual h5bp style.css file in the theme
  • Don't include in root_scripts

Want to do a pull req for this change @elflo?

swalkinshaw avatar May 02 '12 18:05 swalkinshaw

Nm I just did it.

swalkinshaw avatar May 02 '12 18:05 swalkinshaw

Hi,

I believe you might have left out a ")" after the "get_stylesheet_uri()" in your last commit on line 15 of roots_scripts.

nbeecroft avatar May 02 '12 20:05 nbeecroft

Thanks. That will teach me to use the built in GitHub editor :(.

swalkinshaw avatar May 02 '12 20:05 swalkinshaw