Skip to content

A simple, lightweight CSS front-end framework to help you scaffold quickly.

Notifications You must be signed in to change notification settings

oelizondo/Andrea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Andrea

Yes, another front-end framework. Sue me.

Demo: Andrea

Installation and usage

There are several ways to install andrea:

  1. Clone this repo into your project.
  2. Copy and paste Raw.

Cloning the repo:

  <link rel="stylesheet" href="Andrea/andrea.css">

If you copy-and-pasted it:

  <link rel="stylesheet" href="path/to/andrea/Andrea/andrea.css">

And you're ready to start working. If you like Sass, then you can checkout the src folder to move things around, or import it directly into your project.

What does it come with?

A 12-column grid

  <div class="one"></div>
  <div class="two"></div>
  <div class="three"></div>
  <div class="four"></div>
  <div class="five"></div>
  <div class="six"></div>
  <div class="seven"></div>
  <div class="eight"></div>
  <div class="nine"></div>
  <div class="ten"></div>
  <div class="eleven"></div>
  <div class="twelve"></div>

  <div class="row"></div>

  <div class="container"></div>

Offsets.

To make an offset of the grid (like having only 3 columns in the center), then just do:

<div class="three flex-center"></div>

To to make it off-set.

Buttons

  <div class="button"></div>
  <div class="button-skeleton"></div>
  <div class="button-big"></div>

Base styles

Base styles have been included for the <hr>, <a href=""></a> and headings. Andrea comes with normalize as well.

Rules

We've included some resets that help you like:

body {
  margin: 0;
  padding: 0;
}

These rules are to make life easier, for example <div class="landing-height"></div> will create a div that has 100vh height to make landing websites easier.

Different ways of centering:

  • .flex-center Center the element with the class with flex.
  • .text-center Centers the text with the class using text-align: center.

Column:

  • .column-flow Makes the flow of the container column.

Vertical Align:

  • .vertical-align To the container, aligns its children vertically.

Other Aligns

  • .flex-left to align to the left.
  • .flex-right to align to the right.
  • .even-spaced to make the spaces between them even.

Soft Resets

  • .no-margin
  • .no-padding
  • .no-margin-or-padding

Mixins

Here are some useful mixins:

Rotate

  • @include rotate($some-degrees)
  • @include font-styles($some-family, $some-weight, $some-size, $some-color)

Version

Andrea is in version 0.0.3, or in an alpha stage. The main framework is done, but I expect to add layers of functionality in the future. This is not the final product so issues are welcome for improvement.

Contributing

Easiest way to get your environment running is command

 sass src/andrea.scss:src/andrea.css --watch
  • Make your changes.
  • Push.
  • Pull request to this master branch.

Rationale

No we don't need another web framework, and no I don't care. It was fun. That's it. And I'm not finished with it.

About

A simple, lightweight CSS front-end framework to help you scaffold quickly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages