mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Move styles from index.html to style.css #52

Closed mkasberg closed 3 years ago

mkasberg commented 3 years ago

We have two places in index.html using hardcoded style= attribute.

https://github.com/mkasberg/script-seed/blob/2a0b5db337accd223365f335bbcba6cbc9ac5470/index.html#L20

https://github.com/mkasberg/script-seed/blob/2a0b5db337accd223365f335bbcba6cbc9ac5470/index.html#L37

Instead of using style= in html, we should move these styles to style.css. That is, make a new CSS class (with the same style that's set in index.html), and change the html to have a class attribute rather than a style attribute. For example, <img class="github-banner" ... or <select class="language-select" ...