HTML and SASS/CSS API Documentation

Documentation for the webpage as of commit "moved main.scss in prep for transition to firebase" .


General Layout

<html lang="en">
   <head />
      <div class="container-fluid" style="height:100%;">

        <div class="row" id="header-row">
          <div class="col-lg-6" id="logo" />
          <div class="col-lg-6" id="main-nav"/>

        <div class="row" id="main-row">
            <div class="col-lg-2" id="left-col" />
            <div class="col-12 col-lg-8 main website-api-docs-page in-posts" id="main-col" />
            <div class="col-lg-2" id="right-col" />
        <div class="row" id="footer-row" />


All classes are defined by Bootstrap except for the following:

Class Name Location Description
main .container-fill > div[2] > div[2] Element which contains main content.
{page.title}-page .main Element which contains content of page
in-{page.collection} .main Element which contains content of a page in page.collection


ID Name Description
logo Column containing logo for site
main-nav Column containing nav for site
header-row Header
main-row Bootstrap row for the main content
left-col Left column in main content
main-col Main column, where page.content is inserted
right-col Right column in main content
footer-row Footer


Information is separated into different areas. Selectors are excluded from the __init__ folder, and global variable declaration is excluded from the base and pages folders (except for base/theme.scss).

All folders have an _init.scss file which imports all of the files in its directory in the correct order.

├── base.scss             - base.scss imports everything
├── __init__/             - __init__/ holds the initialization stuff, i.e.
│   ├── mixins/...          the global mixins, color settings, and theme for the site.
│   ├── theme.scss
│   └── vars              - Holds values for use in the site. Should be referenced by
│       ├── colors.scss     __init__/theme.scss, and by nobody else.
│       └── fonts.scss
├── base/                 - Holds base config settings. config.scss only selects by tag,
│   ├── config.scss         and site.scss selects by class and id, setting the arrangement
│   ├── site.scss           of the site. syntax.scss handles class selectors for syntax
│   ├── header-footer.scss  highlighting of pre > code blocks. header-footer.scss handles
│   └── syntax.scss         styling of header & footer.
└── pages/                - Page specific css stuff.
    ├── home.scss
    ├── post.scss
    └── resources.scss

Initialization variables

Holds mixins in mixins.scss, most notably dynamic-extend, and the site theme in theme.scss. Variables should first be declared in theme.scss before being used elsewhere.