html-templates icon indicating copy to clipboard operation
html-templates copied to clipboard

Low quality HTML and CSS

Open naomiaz opened this issue 1 year ago • 2 comments

I'm trying to adjust the branding of the templates for a client, but it is an extreme mess. The HTML contains too many generic classes, and using ID selectors in CSS is bad practice in general because of specificity issues. Will this get fixed in the future?

naomiaz avatar Sep 26 '23 08:09 naomiaz

Agreed - I'm also confused as to why there's a boat load of styles that are imported by gulp, but we don't get access to those source files?

rovangju avatar Oct 12 '23 18:10 rovangju

I agree, it is a nightmare to fix / rewrite the styles. I used prettier formatter in VSCode and it then shows all the styles (gulp generated) in a readable format. I then inspect each element, find out its class and literally overwrite it in my own css with all the specificity. Besides, it uses Bootstrap 3. I tried to use BS 5 but it breaks the styles. BS 4 works but with some changes to the template. Another scary stuff is the Handlebar generated JS scripts. It makes it very difficult to understand certain behaviours like the form validation.

gopal-amlekar avatar Dec 09 '23 12:12 gopal-amlekar