GithubHelp home page GithubHelp logo

bento-css's Introduction

Bento CSS

Bento CSS is a scss based mini CSS framework. It is meant to pair well with Bootstrap's grid system and will be soon integrated as part of scss partial files.

To use the framework use the css file located stylesheets/style.css.

Components

Buttons

screen shot 2017-03-02 at 1 42 58 am

<button class="btn">Default Button</button>

<button class="btn-outline">Outlined Button</button>

<button class="btn--green">Green Button</button>

<button class="btn--red">Red Button</button>

<button class="btn--yellow">Yellow Button</button>

Forms

screen shot 2017-03-02 at 1 50 23 am

Regular Text Input

<div class="input-group col-lg-6 col-sm-6">
    <label class="label">Label</label>
    <input class="input" type="text" placeholder="Example">
</div>

Dropdown Select

<div class="input-group col-lg-6 col-sm-6">
    <label class="label">Label</label>
    <select class="select">
         <option>Option 1</option>
         <option>Option 2</option>
         <option>Option 3</option>
         <option>Option 4</option>
    </select>
    <span class="select-arrow"></span>
</div>

Checkbox

<div class="input-group col-lg-12 col-sm-12">
    <input class="checkbox" type="checkbox" id="first" name="first"> 
    <label class="label" for="first">Option 1</label>

    <input type="checkbox" class="checkbox" id="second" name="second"> 
    <label class="label" for="second">Option 2</label>
</div>

Radio Buttons

<div class="input-group col-lg-12 col-sm-12">
     <input class="radio" type="radio" name="group" id="third">
     <label for="third" class="label">Option 1</label>

     <input class="radio" type="radio" name="group" id="fourth">
     <label for="fourth" class="label">Option 2</label>
</div>

Helper Classes

Clearfix

<div class="clearfix">
... FLoating elements
</div>

Margin Top

Margin top is great for spacing between components vertically.

<div class="m-top--1">
... 1 representing 1rem (goes up to 5)
</div>

Padding Top

Padding top is better used only in rare occasions i.e. Pushing content down hidden by a fixed navigation bar.

<div class="pad-top--1">
... 1 representing 1rem (goes up to 5)
</div>

Text Alignment

<p class="align-left">Text</p>
<p class="align-right">Text</p>
<p class="align-center">Text</p>

Floats

<div class="left"> ... </div>
<div class="right"> ... </div>

Centering

<div class="center"> ... </div>

Work in progress

  • Navigation Bar and Dropdown
  • Status Feedback
  • Tooltips
  • Empty State Call to action
  • Modals

bento-css's People

Contributors

ashiq-r31 avatar

Watchers

James Cloos avatar  avatar

bento-css's Issues

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.