Git Product home page Git Product logo

fibonacci.css's Introduction

fibonacci.css

Tiny Fibonacci CSS Framework By Jean-Charles Nadé

What happen if we use Fibonacci number for our css layout? Maybe 377 pixel and 13px as padding-top will looks better that arbitrary base 10 number like 350 and 10. Fibonacci.css provide shortcut for Fibonacci number for padding, margin, with and height. It's compatible with other grid system or framework like bootstrap.

Usage

<div class="w12 h11 p5 ml4" >
    This boxBox is 233px width, 144px height, 13px for padding and 5px as margin-left.
</div>

Shortcut:

  • w = width
  • h = height
  • p = padding
  • m = margin
  • pl = padding-left
  • pr = padding-right
  • pb = padding-bottom
  • pt = padding-top
  • ml = margin-left
  • mr = margin-right
  • mb = margin-bottom
  • mt = margin-top

Example:

  • m1 = margin at 1px
  • m2 = margin at 2px
  • m3 = margin at 3px
  • m4 = margin at 5px
  • m5 = margin at 8px
  • m6 = margin at 13px
  • m7 = margin at 21px
  • m8 = margin at 34px
  • m9 = margin at 55px
  • m10 = margin at 89px

fibonacci.css's People

Contributors

jcnade avatar

Stargazers

 avatar Clay Dunston avatar David J. Bradshaw avatar David Leuliette avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.