CSS Framework

A CSS framework made with SASS

Index

How to use

Back to top
  1. Copy framework.js and framework.css into your project directory
  2. Add these lines to the head of your page.
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
    <link rel="stylesheet" href="framework.css">
  3. Add this line right before the end of thebody of your page.
    <script src="framework.js"></script>

Navbars

Back to top

Vertical Navbar

Horizontal Navbar

Horizontal Navbar with navigation links on the left side

Horizontal Navbar with navigation links on both sides

Responsive Navbar

Responsive Navbar with a textbox and a button

Dark Navbar

Colored Navbar

Themed Navbar

Themed responsive Navbar with a textbox and a button

Grid layout

Back to top

Minimum screen size breakpoints

Code Minimum screen size
xs 0px
sm 576px
md 768px
lg 992px
xl 1200px

Columns

1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
3
3
3
3
4
4
4
6
6
12

Usage: col-{breakpoint}-{size}
size can be anywhere from 1 to 12
breakpoint can be xs, sm, md, lg or xl

The grid can be divided into 12 equal columns. Applying col-xs-8 on a grid element extends it to the 3/4 of the width of the grid on xs sized screens (e.g mobile phones). Combining it with col-md-6 will make it so that it only covers half the grid width on md sized screens (e.g. tablets) but still covers 3/4 of the grid width on xs sized screens.

col-xs-8 and col-md-6

Offsets

Offset adds a margin to the left side of the grid element.

col-xs-8
with offset-xs-2

Forms

Back to top

Basic Form

Sign In

Themed Form

Sign In

Inline Form group

Inline Button group

Subscribe

Colors and themes

Back to top

Themes

Usage: Add theme-{color} class to the element.
Replace {color} with any preset color from the grid below.
ex. theme-navy sets an element's theme to navy blue.

Background

Usage: Add bg-{color} class to the element.
Replace {color} with any preset color from the grid below.
ex. bg-navy sets an element's background color to navy blue.

Text (with shadow)

Usage: Simply add the name of the color to the class of the element.
ex. blue changes an element's text color to blue.

Border

Back to top

Note: {border-width} can be anywhere from 0 to 10 (in pixels)

Border

Class: border

Simple Border

No border

Class: no-border

No Border

Border with custom width

Class: b-{border-width}

Simple Border

Border top

Class: bt-{border-width}

Top

Border bottom

Class: bb-{border-width}

Bottom

Border left

Class: bl-{border-width}

Left

Border right

Class: br-{border-width}

Right

Border left and right

Class: bx-{border-width}

Left and right

Border top and bottom

Class: by-{border-width}

Top and bottom

Padding

Back to top

Note: {padding-width} can be anywhere from 0 to 10 (in rems)

Around

Class: p-{padding-width}

Content inside the padded div

Top

Class: pt-{padding-width}

Content inside the padded div

Bottom

Class: pb-{padding-width}

Content inside the padded div

Left

Class: pl-{padding-width}

Content inside the padded div

Right

Class: pr-{padding-width}

Content inside the padded div

Top and bottom

Class: py-{padding-width}

Content inside the padded div

Left and right

Class: px-{padding-width}

Content inside the padded div

Margin

Back to top

Note: {margin-width} can be anywhere from 0 to 10 (in rems)

Around

Class: m-{margin-width}

Content with margin

Top

Class: mt-{margin-width}

Content with margin

Bottom

Class: mb-{margin-width}

Content with margin

Left

Class: ml-{margin-width}

Content with margin

Right

Class: mr-{margin-width}

Content with margin

Top and bottom

Class: my-{margin-width}

Content with margin

Left and right

Class: mx-{margin-width}

Content with margin

Utilities

Back to top

Display properties

Float and clearfix

Text alignment

Flexbox properties

Rounded corners

Border

Margin and padding

Others