# CSS misc.

# Browser Compatibility

cross-browser-compatibility:


# Static site generators etc

Hugo (opens new window)

Jekyll


# ::before / ::after


# DefaultCSS & Reset


# CSS Variables

declare in:

 :root {
      --base: #ffc600;
      --spacing: 10px;
      --blur: 10px
    }

use it:

img {
	padding: var(--spacing);
}

# BEM Naming Convention

block__element--modifier

The block is the larger section that you want to display, e.g. a form. The element is an element of it, e.g. a button. The modifier specifies a variant of this element, e.g. a highlighted button. It is optional. In the HTML, this would look like this:

<button class=”form__button--highlighted”>Submit</button>

in CSS:

.form__button--highlighted {
...
}

# Minify / Unminify