/open-brackets

Primary LanguageCSSGNU General Public License v3.0GPL-3.0

jxf-dot-me

This is the source repository for John Feminella's site.

References

Ideas are liberally taken from:

Installation

Install Yarn: https://yarnpkg.com/lang/en/docs/install/

brew install yarn

Install Hugo: https://gohugo.io/overview/installing/

brew install hugo

Install Dependencies

yarn

Run server

gulp serve

Code Style

  • When using semantic class names (i.e. home-list instead of g-r-c-6-12), extend any necessary unsemantic classes via Sass @extends, to avoid duplicating code.
.home-list {
  @extend .p1;
  @extend .mx1;
  @extend .g-r-c-6-12;
}
.block {}
.block-element {}
.block-element__sub-element {}
.block-element--modifier {}
  • How CSS files are organized:

    • base: Reset styles, base styles like typography, layout, colors, blockquotes. Any styles for tags like pre
    • components: Modular components like .list, .hero
    • utilities: Reusable utilities like text and responsive utilities