Debian Codegraph @

debian/missing-sources/bourbon/README.md

raw
1 [![Bourbon](http://images.thoughtbot.com/bourbon/bourbon-logo.svg)](http://bourbon.io)
2
3 [![GitHub release](https://img.shields.io/github/release/thoughtbot/bourbon.svg)](https://github.com/thoughtbot/bourbon/releases)
4 [![CircleCI branch](https://img.shields.io/circleci/project/thoughtbot/bourbon/master.svg)](https://circleci.com/gh/thoughtbot/bourbon/tree/master)
5
6 ## A simple and lightweight mixin library for Sass.
7
8 Bourbon is a library of pure Sass mixins that are designed to be simple and easy to use. No configuration required. The mixins aim to be as vanilla as possible, meaning they should be as close to the original CSS syntax as possible.
9
10 The mixins contain vendor specific prefixes for all CSS3 properties for support amongst modern browsers. The prefixes also ensure graceful degradation for older browsers that support only CSS3 prefixed properties. Bourbon uses SCSS syntax.
11
12 - **[Documentation](http://bourbon.io/docs)**
13 - **[Changelog](https://github.com/thoughtbot/bourbon/releases)**
14 - **[Issues & Bugs](https://github.com/thoughtbot/bourbon/issues)**
15
16 Follow the [@bourbonsass](https://twitter.com/bourbonsass) Twitter account
17 for updates.
18
19 ## Requirements
20
21 - [Sass](https://github.com/sass/sass) 3.4+ or [LibSass](https://github.com/sass/libsass) 3.1+
22
23 ## Installation
24
25 For command line help, visit our wiki page on Bourbon’s [command line interface](https://github.com/thoughtbot/bourbon/wiki/Command-Line-Interface).
26
27 1. Install the Bourbon gem using the [RubyGems](https://rubygems.org) package manager:
28
29 ```bash
30 gem install bourbon
31 ```
32
33 Alternatively, you can install Bourbon with [Bower](http://bower.io).
34
35 2. Install the Bourbon library into the current directory:
36
37 ```bash
38 bourbon install
39 ```
40
41 **Pro Tip:** You can target installation into a specific directory using the `path` flag:
42
43 ```bash
44 bourbon install --path my/custom/path/
45 ```
46
47 3. Import Bourbon at the beginning of your stylesheet:
48
49 ```scss
50 @import "bourbon/bourbon";
51 ```
52
53 It’s not recommended to add or modify the Bourbon files so that you can update them easily.
54
55 ## Installation for Ruby on Rails 3.1+
56
57 1. Add Bourbon to your Gemfile:
58
59 ```ruby
60 gem 'bourbon'
61 ```
62
63 2. Then run:
64
65 ```bash
66 bundle install
67 ```
68
69 3. Restart your server and rename `application.css` to `application.scss`:
70
71 ```bash
72 mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
73 ```
74
75 4. Delete _all_ Sprockets directives in `application.scss` (`require`, `require_tree` and `require_self`) and use Sass’s native `@import` instead. ([why?](http://pivotallabs.com/structure-your-sass-files-with-import))
76
77 5. Import Bourbon at the beginning of `application.scss`. All additional stylesheets should be imported below Bourbon:
78
79 ```scss
80 @import "bourbon";
81 @import "home";
82 @import "users";
83 ```
84
85 [Help! I’m getting an undefined mixin error.](https://github.com/thoughtbot/bourbon/wiki/Rails-Help-%5C-Undefined-mixin)
86
87 ## Installing with npm and using a Node-based asset pipeline
88
89 1. Add Bourbon as a dependency:
90
91 ```bash
92 npm install --save bourbon
93 ```
94
95 2. If you’re using [Eyeglass](http://eyeglass.rocks), skip to Step 3. Otherwise, you’ll need to add Bourbon to your node-sass `includePaths` option. `require("bourbon").includePaths` is an array of directories that you should pass to node-sass. How you do this depends on how node-sass is integrated into your project.
96
97 3. Import Bourbon into your Sass files:
98
99 ```scss
100 @import "bourbon";
101 ```
102
103 ## Installing older versions of Bourbon
104
105 1. Uninstall any Bourbon gem versions you already have:
106
107 ```bash
108 gem uninstall bourbon
109 ```
110
111 2. Reinstall the Bourbon gem, using the `-v` flag to specify the version you need:
112
113 ```bash
114 gem install bourbon -v 3.2.4
115 ```
116
117 3. Follow the [instructions above](#installation) to install Bourbon into your project.
118
119 ## Browser support
120
121 - Chrome 26+
122 - Firefox 29+
123 - Internet Explorer 9+
124 - Opera 15+
125 - Safari 6.1+
126
127 ## The Bourbon family
128
129 - [Bourbon](https://github.com/thoughtbot/bourbon): A simple and lightweight mixin library for Sass
130 - [Neat](https://github.com/thoughtbot/neat): A lightweight semantic grid framework for Sass and Bourbon
131 - [Bitters](https://github.com/thoughtbot/bitters): Scaffold styles, variables and structure for Bourbon projects
132 - [Refills](https://github.com/thoughtbot/refills): Prepackaged patterns and components built with Bourbon, Neat and Bitters
133
134 Also check out [Proteus](https://github.com/thoughtbot/proteus), a collection of useful starter kits to help you prototype faster. Each kit comes with Bourbon, Neat and Bitters out-of-the-box.
135
136 ## License
137
138 Copyright © 2011–2017 [thoughtbot, inc](http://thoughtbot.com).
139 Bourbon is free software,
140 and may be redistributed under the terms specified in the [license](LICENSE.md).
141
142 ## About thoughtbot
143
144 [<img src="http://thoughtbot.github.io/images/signature.svg" width="250" alt="thoughtbot logo">][hire]
145
146 Bourbon is maintained and funded by thoughtbot, inc.
147 The names and logos for thoughtbot are trademarks of thoughtbot, inc.
148
149 We love open source software!
150 See [our other projects][community] or
151 [hire us][hire] to design, develop, and grow your product.
152
153 [community]: https://thoughtbot.com/community?utm_source=github
154 [hire]: https://thoughtbot.com/hire-us?utm_source=github