Giter Site home page Giter Site logo

bedrock's Introduction

Bedrock

Bedrock is a highly un-opinionated and minimal front-end baseline built in LESS

Frameworks are too limiting. If your truly handwriting code only so much of it can be reused. Your classnames, IDs and markup structure should match what's best for the project. Bedrock attempts to avoid telling how to write your code and instead allows you to just write it.

Quick Start

  • Using Bower run bower install bedrock

Usage

In your less file(s) use @import 'path/to/bedrock/bedrock'; or cherry pick individual mixing as needed @import 'path/to/bedrock/mixins/border-radius';

Browser and Polyfill Support

Out of the box, Bedrock supports IE9 up. But it is CSS3PIE for IE7 & IE8 as well as BoxSizing for IE7.

Enable Support

@support-ie7: true;
@support-ie8: true;
@support-pie: true;

The above support vars are set to false by default

Declaring Paths

CSS3Pie

If @support-pie is set to true, you will want to declare your path to your .htc file. The default is:

@pie_url: '/PIE.htc';

Boxsizing

If @support-ie7 is set to true, you will need to declare your path the box sizing polyfill. The default is:

@boxsizing_url: '/boxsizing.htc';

Legacy Support

If updating a pre Bedrock 1.0.0 website enable IE7 & IE8.

Example

@import 'bower_components/bedrock/bedrock';
@support-ie8: true;

h1 {
	#transparent .color(green, 0.5);
}

ToDos

Modularize support for:

  • firefox >3.6
  • safari >4.0
  • mobile/safari (iOS) >3.2
  • mobile/safari (iOS) >4.3
  • android browser >3.0
  • blackberry browser >7.0

Change Log

1.2.0 .size() mixin takes width before height, following traditional syntax. Also added .placeholder() mixin.

1.3.0 #sprite mixin set added

bedrock's People

Contributors

aebsr avatar cwood avatar lettertwo avatar matthewwithanm avatar ryanbagwell avatar

Watchers

 avatar  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.