My (CSS) style | James’ Coffee Blog


’Cause we never go out of style, we never go out of style

Wait… that’s a Taylor Swift lyric. This blog post is about a different kind of style: CSS styles.

(Long-time readers, please disregard that this is the second blog post in which the topic is style and I referenced a Taylor Swift song.)

fLaMEd fury asked a thought-provoking question on their blog recently:

[…] for smaller projects, what do you call your style sheet?

For as far back as I remember, the stylesheet on this website has been at /assets/styles/styles.css.

My assets folder is where I put all images, videos, PDFs, and other multimedia resources that I share on this website. That folder has its own GitHub repository and is synced, using a GitHub Action, to my server’s assets folder. Within the assets folder there are several folders for development assets, including:

  • styles for stylesheets;
  • js for JavaScript resources, and;
  • fonts for fonts.

Most of the images are in the root assets folder. In hindsight, I should have put them in a folder called images. Every time I open the assets folder in Visual Studio Code the folder is big and I often lose my place when I am scrolling to other directories on the site. Perhaps that is a website cleanup task for one day! I will surely need to consult some friends on how to make the requisite redirects so as not to break the existing paths.



Source link

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top