bourbon 2.0.0.rc1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/_config.yml +42 -0
- data/_includes/animation.html +20 -0
- data/_includes/appearance.html +8 -0
- data/_includes/background-image.html +36 -0
- data/_includes/background-size.html +12 -0
- data/_includes/border-image.html +11 -0
- data/_includes/border-radius.html +26 -0
- data/_includes/box-shadow.html +20 -0
- data/_includes/box-sizing.html +8 -0
- data/_includes/buttons.html +52 -0
- data/_includes/clearfix.html +11 -0
- data/_includes/columns.html +9 -0
- data/_includes/compact.html +9 -0
- data/_includes/complete-list.html +115 -0
- data/_includes/flex-box.html +23 -0
- data/_includes/flex-grid.html +28 -0
- data/_includes/font-family.html +21 -0
- data/_includes/footer.html +37 -0
- data/_includes/golden-ratio.html +16 -0
- data/_includes/grid-width.html +15 -0
- data/_includes/hide-text.html +12 -0
- data/_includes/html5-input-types.html +22 -0
- data/_includes/inline-block.html +8 -0
- data/_includes/intro.html +5 -0
- data/_includes/linear-gradient-function.html +21 -0
- data/_includes/linear-gradient.html +24 -0
- data/_includes/modular-scale.html +20 -0
- data/_includes/navigation.html +43 -0
- data/_includes/position.html +18 -0
- data/_includes/radial-gradient-function.html +24 -0
- data/_includes/radial-gradient.html +26 -0
- data/_includes/timing-functions.html +47 -0
- data/_includes/tint-shade.html +13 -0
- data/_includes/transform-origin.html +8 -0
- data/_includes/transform.html +10 -0
- data/_includes/transitions.html +9 -0
- data/_includes/user-select.html +8 -0
- data/_site/images/border.png +0 -0
- data/_site/images/bourbon-logo.png +0 -0
- data/_site/index.html +890 -0
- data/_site/stylesheets/style.css +1226 -0
- data/app/assets/stylesheets/_bourbon.scss +4 -0
- data/app/assets/stylesheets/addons/_button.scss +11 -7
- data/app/assets/stylesheets/addons/_font-face.scss +12 -0
- data/app/assets/stylesheets/addons/_position.scss +42 -0
- data/app/assets/stylesheets/css3/_animation.scss +9 -27
- data/app/assets/stylesheets/css3/_appearance.scss +1 -5
- data/app/assets/stylesheets/css3/_background-size.scss +1 -5
- data/app/assets/stylesheets/css3/_border-radius.scss +8 -19
- data/app/assets/stylesheets/css3/_box-shadow.scss +1 -3
- data/app/assets/stylesheets/css3/_box-sizing.scss +1 -3
- data/app/assets/stylesheets/css3/_columns.scss +10 -30
- data/app/assets/stylesheets/css3/_flex-box.scss +11 -26
- data/app/assets/stylesheets/css3/_prefixer.scss +12 -0
- data/app/assets/stylesheets/css3/_transform.scss +2 -10
- data/app/assets/stylesheets/css3/_transition.scss +9 -25
- data/app/assets/stylesheets/css3/_user-select.scss +1 -4
- data/app/assets/stylesheets/functions/_transition-property-name.scss +22 -0
- data/doc/README.md +36 -0
- data/images/border.png +0 -0
- data/images/bourbon-logo.png +0 -0
- data/index.html +80 -0
- data/lib/bourbon/sass_extensions/functions/compact.rb +3 -2
- data/lib/bourbon/version.rb +1 -1
- data/readme.md +8 -8
- data/stylesheets/sass/_animation-keyframes.scss +31 -0
- data/stylesheets/sass/_base.scss +304 -0
- data/stylesheets/sass/_demos.scss +198 -0
- data/stylesheets/sass/_mixins.scss +21 -0
- data/stylesheets/sass/_normalize.scss +264 -0
- data/stylesheets/sass/_pygments-theme-dark.scss +38 -0
- data/stylesheets/sass/_pygments-theme-light.scss +37 -0
- data/stylesheets/sass/style.scss +10 -0
- data/stylesheets/style.css +1226 -0
- metadata +69 -11
@@ -0,0 +1,21 @@
|
|
1
|
+
<section id="font-family">
|
2
|
+
<h2>Font-Family <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/addons/_font-family.scss">View source</a></h2>
|
3
|
+
<p>Bourbon defines four default font-families as variables for the sake of convenience:</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
font-family: $helvetica;
|
7
|
+
font-family: $georgia;
|
8
|
+
font-family: $lucida-grande;
|
9
|
+
font-family: $monospace;
|
10
|
+
font-family: $verdana;
|
11
|
+
{% endhighlight %}
|
12
|
+
|
13
|
+
<h3>CSS Output</h3>
|
14
|
+
{% highlight scss %}
|
15
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
16
|
+
font-family: Georgia, Cambria, "Times New Roman", Times, serif;
|
17
|
+
font-family: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
|
18
|
+
font-family: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
|
19
|
+
font-family: Verdana, Geneva, sans-serif;
|
20
|
+
{% endhighlight %}
|
21
|
+
</section>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<section id="browser-support">
|
2
|
+
<h2>Browser Support & Pull Requests</h2>
|
3
|
+
<p>Bourbon aims to provide support for CSS3 properties that are not yet fully supported in modern stable browsers.</p>
|
4
|
+
<p>A general rule when submitting a pull request for a new mixin, ask yourself the following: Do the following browsers <em>only</em> support the CSS3 properties using vendor specific prefixes?</p>
|
5
|
+
<p>If the answer is yes, there is a high chance the mixin will be accepted via a pull request. </p>
|
6
|
+
<ul>
|
7
|
+
<li>Firefox 3.6+</li>
|
8
|
+
<li>Safari 4.0+</li>
|
9
|
+
<li>Chrome 4.0+</li>
|
10
|
+
<li>Opera 10+</li>
|
11
|
+
<li>IE 9+</li>
|
12
|
+
</ul>
|
13
|
+
|
14
|
+
<p><strong>Bourbon does not intend to support IE filters.</strong></p>
|
15
|
+
|
16
|
+
<p>Resources for checking browser support:</p>
|
17
|
+
<ul>
|
18
|
+
<li><a href="https://developer.mozilla.org/en-US/">MDN - Moz Dev Network</a></li>
|
19
|
+
<li><a href="https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions">Mozilla CSS Extensions</a></li>
|
20
|
+
<li><a href="http://css-infos.net/properties/webkit.php">Webkit CSS Properties</a></li>
|
21
|
+
<li><a href="http://msdn.microsoft.com/en-us/library/ms531207(v=VS.85).aspx">MSDN - Microsoft Dev Network</a></p></li>
|
22
|
+
</ul>
|
23
|
+
</section>
|
24
|
+
|
25
|
+
<section id="credits">
|
26
|
+
<a href="http://thoughtbot.com"><img src="http://thoughtbot.com/images/tm/logo.png"/></a>
|
27
|
+
|
28
|
+
<h3>Got questions? Need help?</h3>
|
29
|
+
<p>Tweet at <a href="http://twitter.com/phillapier">Phil LaPier</a> on twiiter.</p>
|
30
|
+
|
31
|
+
<h3>Credits</h3>
|
32
|
+
<p>Bourbon is maintained and funded by <a href="http://thoughtbot.com/community">thoughtbot</a>.</p>
|
33
|
+
<p>The names and logos for thoughtbot are trademarks of thoughtbot, inc.</p>
|
34
|
+
|
35
|
+
<h3>License</h3>
|
36
|
+
<p>Bourbon is Copyright © 2011 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.</p>
|
37
|
+
</section>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<section id="golden-ratio">
|
2
|
+
<h2>Golden Ratio <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_modular-scale.scss">View Source</a></h2>
|
3
|
+
<p>Returns the golden ratio of a given number. Must provide a pixel or em value for the first argument. Also takes a required integer for an increment value: ...-3, -2, -1, 0, 1, 2, 3...</p>
|
4
|
+
<p>Note: The golden-ratio function can be wrapped in sass's <code>abs()</code>, <code>floor()</code>, or <code>ceil()</code> functions to get the absolute value, round down, or round up respectively.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
// Positive number will increment up the golden-ratio
|
8
|
+
font-size: golden-ratio(14px, 1);
|
9
|
+
// returns: 22.652px
|
10
|
+
|
11
|
+
// Negative number will increment down the golden-ratio
|
12
|
+
font-size: golden-ratio(14px, -1);
|
13
|
+
// returns: 8.653px
|
14
|
+
{% endhighlight %}
|
15
|
+
<p>Resources: <a href="http://modularscale.com/">modularscale.com</a> & <a href="http://goldenratiocalculator.com/">goldenrationcalculator.com</a></p>
|
16
|
+
</section>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<section id="grid-width">
|
2
|
+
<h2>Grid Width <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_grid-width.scss">View source</a></h2>
|
3
|
+
<p>Easily setup and follow a grid based design. Check out <a href="http://gridulator.com/">gridulator.com</a></p>
|
4
|
+
<p>The <code>$gw-column</code> and <code>$gw-gutter</code> variables must be defined in your base stylesheet to properly use the grid-width function.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
$gw-column: 100px; // Column Width
|
8
|
+
$gw-gutter: 40px; // Gutter Width
|
9
|
+
|
10
|
+
div {
|
11
|
+
width: grid-width(4); // returns 520px;
|
12
|
+
margin-left: $gw-gutter; // returns 40px;
|
13
|
+
}
|
14
|
+
{% endhighlight %}
|
15
|
+
</section>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<section id="hide-text">
|
2
|
+
<h2>Hide Text<a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/addons/_hide-text.scss">View Source</a></h2>
|
3
|
+
<p>Hide-text is an image replacement mixin. It is based off the <a href="https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757c9e03dda4e463fb0d4db5a5f82d7">HTML5-Boilerplate image-replacement</a>.</p>
|
4
|
+
<p>This image replacement technique is an alternative to the text-indent technique, which has <a href="http://nicolasgallagher.com/another-css-image-replacement-technique/">performance and other benefits</a>.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
div {
|
8
|
+
@include hide-text;
|
9
|
+
background-image: url(logo.png);
|
10
|
+
}
|
11
|
+
{% endhighlight %}
|
12
|
+
</section>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<section id="html5-input-types">
|
2
|
+
<h2>HTML5 Input Types <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/addons/_html5-input-types.scss">View source</a></h2>
|
3
|
+
<p>This addon generates a variable which contains a list of all html5 input types that render as text-based inputs, excluding textarea. In other words, it allows for easy targeting of all inputs that mimic <code>input[type="text"]</code>.</p>
|
4
|
+
<p>Note: You must use interpolation with the variable—<code>#{}</code>.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
#{$all-text-inputs} {
|
8
|
+
border: 1px solid green;
|
9
|
+
}
|
10
|
+
{% endhighlight %}
|
11
|
+
|
12
|
+
<h3>CSS Output</h3>
|
13
|
+
{% highlight scss %}
|
14
|
+
input[type="email"], input[type="number"], input[type="password"], input[type="search"],
|
15
|
+
input[type="tel"], input[type="text"], input[type="url"], input[type="color"],
|
16
|
+
input[type="date"], input[type="datetime"], input[type="datetime-local"],
|
17
|
+
input[type="month"], input[type="time"], input[type="week"] {
|
18
|
+
border: 1px solid green;
|
19
|
+
}
|
20
|
+
{% endhighlight %}
|
21
|
+
|
22
|
+
</section>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<section id="inline-block">
|
2
|
+
<h2>Inline Block <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_inline-block.scss">View source</a></h2>
|
3
|
+
<p>The inline-block mixin provides support for the inline-block property in IE6 and IE7.</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
@include inline-block;
|
7
|
+
{% endhighlight %}
|
8
|
+
</section>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<section id="intro">
|
2
|
+
<p>Bourbon is a comprehensive library of sass mixins that are designed to be simple and easy to use. No configuration required.<br> The mixins aim to be as vanilla as possible, meaning they should be as close to the original CSS syntax as possible.</p>
|
3
|
+
<p>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.</p>
|
4
|
+
<p><a href="http://github.com/thoughtbot/bourbon#readme">Install Bourbon</a><a href="http://github.com/thoughtbot/bourbon">View on Github</a></p>
|
5
|
+
</section>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<section id="linear-gradient-function">
|
2
|
+
<h2>Linear Gradient <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_linear-gradient.scss">View source</a></h2>
|
3
|
+
<p>Outputs a linear-gradient. Use in conjunction with the <a href="#background-image">background-image mixin.</a> The function takes the same arguments as the <a href="#linear-gradient">linear-gradient mixin</a>.</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
@include background-image(linear-gradient(white 0, yellow 50%, transparent 50%));
|
7
|
+
{% endhighlight %}
|
8
|
+
|
9
|
+
<br>
|
10
|
+
<p>Optional variables can be passed to control the deprecated <code>-webkit-gradient()</code> function (iOS 4):
|
11
|
+
<br>
|
12
|
+
<code>$deprecated-pos1</code>, <code>$deprecated-pos2</code></p>
|
13
|
+
|
14
|
+
{% highlight scss %}
|
15
|
+
@include linear-gradient(#1e5799, #3dc3d1, $deprecated-pos1: left center, $deprecated-pos2: left top);
|
16
|
+
{% endhighlight %}
|
17
|
+
|
18
|
+
<h3>Demo</h3>
|
19
|
+
<section class="demo">
|
20
|
+
</section>
|
21
|
+
</section>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<section id="linear-gradient">
|
2
|
+
<h2>Linear Gradient <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_linear-gradient.scss">View source</a></h2>
|
3
|
+
<p>Gradient Position is optional, default is <code>top</code>. Position can be a degree (<code>90deg</code>). Mixin supports up to 10 color-stops.</p>
|
4
|
+
<p>This mixin will output a fallback <code>background-color: #first-color;</code> declaration. A <code>$fallback</code> argument can be passed to change the fallback color.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
@include linear-gradient(#1e5799, #2989d8);
|
8
|
+
@include linear-gradient(top, #8fdce5, #3dc3d1);
|
9
|
+
@include linear-gradient(top, #8fdce5, #3dc3d1, $fallback: red);
|
10
|
+
@include linear-gradient(50deg, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
|
11
|
+
{% endhighlight %}
|
12
|
+
|
13
|
+
<br>
|
14
|
+
<p>Optional variables can be passed to control the deprecated <code>-webkit-gradient()</code> function (iOS 4):
|
15
|
+
<br>
|
16
|
+
<code>$deprecated-pos1</code>, <code>$deprecated-pos2</code></p>
|
17
|
+
|
18
|
+
{% highlight scss %}
|
19
|
+
@include linear-gradient(#1e5799, #3dc3d1, $deprecated-pos1: left center, $deprecated-pos2: left top);
|
20
|
+
{% endhighlight %}
|
21
|
+
|
22
|
+
<h3>Demo</h3>
|
23
|
+
<section class="demo"></section>
|
24
|
+
</section>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<section id="modular-scale">
|
2
|
+
<h2>Modular Scale <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_modular-scale.scss">View Source</a></h2>
|
3
|
+
<p>Returns the modular scale of a given number. Must provide a number value for the first argument. The second argument is a required integer for an increment value: ...-3, -2, -1, 0, 1, 2, 3... The third value is the ratio number.</p>
|
4
|
+
<p>Note: The function can be wrapped in sass's <code>abs()</code>, <code>floor()</code>, or <code>ceil()</code> functions to get the absolute value, round down, or round up respectively.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
div {
|
8
|
+
// Increment Up GR with positive value
|
9
|
+
font-size: modular-scale(14px, 1, 1.618); // returns: 22.652px
|
10
|
+
|
11
|
+
// Increment Down GR with negative value
|
12
|
+
font-size: modular-scale(14px, -1, 1.618); // returns: 8.653px
|
13
|
+
|
14
|
+
// Can be used with ceil(round up) or floor(round down)
|
15
|
+
font-size: floor( modular-scale(14px, 1, 1.618) ); // returns: 22px
|
16
|
+
font-size: ceil( modular-scale(14px, 1, 1.618) ); // returns: 23px
|
17
|
+
}
|
18
|
+
{% endhighlight %}
|
19
|
+
<p>Resources: <a href="http://modularscale.com/">modularscale.com</a> & <a href="http://goldenratiocalculator.com/">goldenrationcalculator.com</a></p>
|
20
|
+
</section>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<nav class="fixed-nav">
|
2
|
+
<ul>
|
3
|
+
<!-- <input type="search" placeholder="Search..."></input> -->
|
4
|
+
<li><a href="https://github.com/thoughtbot/bourbon">Github / Install</a></li>
|
5
|
+
<li class="title"><a href="#mixins"><h3>Mixins</h3></a></li>
|
6
|
+
<li><a href="#animations">Animations</a></li>
|
7
|
+
<li><a href="#appearance">Appearance</a></li>
|
8
|
+
<li><a href="#background-image">Background-image</a></li>
|
9
|
+
<li><a href="#background-size">Background-size</a></li>
|
10
|
+
<li><a href="#border-image">Border-image</a></li>
|
11
|
+
<li><a href="#border-radius">Border-radius</a></li>
|
12
|
+
<li><a href="#box-shadow">Box-shadow</a></li>
|
13
|
+
<li><a href="#box-sizing">Box-sizing</a></li>
|
14
|
+
<li><a href="#columns">Columns</a></li>
|
15
|
+
<li><a href="#flex-box">Flex Box</a></li>
|
16
|
+
<li><a href="#inline-block">Inline-block</a></li>
|
17
|
+
<li><a href="#linear-gradient">Linear-gradient</a></li>
|
18
|
+
<li><a href="#radial-gradient">Radial-gradient</a></li>
|
19
|
+
<li><a href="#transform">Transform</a></li>
|
20
|
+
<li><a href="#transitions">Transitions</a></li>
|
21
|
+
<li><a href="#user-select">User Select</a></li>
|
22
|
+
|
23
|
+
<li class="title"><a href="#functions"><h3>Functions</h3></a><li>
|
24
|
+
<li><a href="#compact">Compact</a></li>
|
25
|
+
<li><a href="#flex-grid">Flex Grid</a></li>
|
26
|
+
<li><a href="#golden-ratio">Golden Ratio</a></li>
|
27
|
+
<li><a href="#grid-width">Grid Width</a></li>
|
28
|
+
<li><a href="#linear-gradient-function">Linear-gradient</a></li>
|
29
|
+
<li><a href="#modular-scale">Modular Scale</a></li>
|
30
|
+
<li><a href="#radial-gradient-function">Radial-gradient</a></li>
|
31
|
+
<li><a href="#tint-shade">Tint & Shade</a></li>
|
32
|
+
|
33
|
+
<li class="title"><a href="#add-ons"><h3>Add-ons</h3></a><li>
|
34
|
+
<li><a href="#buttons">Buttons</a></li>
|
35
|
+
<li><a href="#clearfix">Clearfix</a></li>
|
36
|
+
<li><a href="#font-family">Font Family</a></li>
|
37
|
+
<li><a href="#hide-text">Hide Text</a></li>
|
38
|
+
<li><a href="#html5-input-types">HTML5 Input Types</a></li>
|
39
|
+
<li><a href="#timing-functions">Timing Functions</a></li>
|
40
|
+
|
41
|
+
<li class="title complete-list"><a href="#complete-list"><h3>Complete List</h3></a><li>
|
42
|
+
</ul>
|
43
|
+
</nav>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<section id="position">
|
2
|
+
<h2>Position <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/addons/_position.scss">View source</a></h2>
|
3
|
+
<p>Shorthand notation for setting the position of elements in your page.</p>
|
4
|
+
<p>The first parameter is optional, with a default value of relative. The second parameter is a space delimited list of values that follow the standard CSS shorthand notation.</p>
|
5
|
+
<p>Note: unit-less values will be ignored. In the example above, this means that selectors will not be generated for the right and bottom positions, while the top position is set to 0px.</p>
|
6
|
+
|
7
|
+
<p>Instead of writing:</p>
|
8
|
+
{% highlight scss %}
|
9
|
+
position: relative;
|
10
|
+
top: 0px;
|
11
|
+
left: 100px;
|
12
|
+
{% endhighlight %}
|
13
|
+
|
14
|
+
<p>Your can write:</p>
|
15
|
+
{% highlight scss %}
|
16
|
+
@include position(relative, 0px 0 0 100px);
|
17
|
+
{% endhighlight %}
|
18
|
+
</section>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<section id="radial-gradient-function">
|
2
|
+
<h2>Radial Gradient <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_radial-gradient.scss">View source</a></h2>
|
3
|
+
<p>Outputs a radial-gradient. Use in conjunction with the <a href="#background-image">background-image mixin.</a> The function takes the same arguments as the <a href="#radial-gradient">radial-gradient mixin</a>.</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
@include background-image( radial-gradient(#1e5799, #3dc3d1) );
|
7
|
+
@include background-image( radial-gradient(50% 50%, circle cover, #1e5799, #3dc3d1) );
|
8
|
+
@include background-image( radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef) );
|
9
|
+
{% endhighlight %}
|
10
|
+
|
11
|
+
<br>
|
12
|
+
<p>Optional variables can be passed to control the deprecated <code>-webkit-gradient()</code> function (iOS 4):
|
13
|
+
<br>
|
14
|
+
<code>$deprecated-pos1</code>, <code>$deprecated-pos2</code>, <code>$deprecated-radius1</code>, <code>$deprecated-radius2</code></p>
|
15
|
+
|
16
|
+
{% highlight scss %}
|
17
|
+
@include radial-gradient(#1e5799, #3dc3d1,
|
18
|
+
$deprecated-pos1: left center, $deprecated-pos2: left top,
|
19
|
+
$deprecated-radius1: 50, $deprecated-radius2: 360);
|
20
|
+
{% endhighlight %}
|
21
|
+
<h3>Demo</h3>
|
22
|
+
<section class="demo">
|
23
|
+
</section>
|
24
|
+
</section>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<section id="radial-gradient">
|
2
|
+
<h2>Radial Gradient <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_radial-gradient.scss">View source</a></h2>
|
3
|
+
<p>Takes up to 10 gradients. See also the <a href="#background-image">background-image mixin</a>.</p>
|
4
|
+
<p>This mixin will output a fallback <code>background-color: #first-color;</code> declaration. A <code>$fallback</code> argument can be passed to change the fallback color.</p>
|
5
|
+
|
6
|
+
{% highlight scss %}
|
7
|
+
@include radial-gradient(#1e5799, #3dc3d1);
|
8
|
+
@include radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef);
|
9
|
+
@include radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef, $fallback: red);
|
10
|
+
{% endhighlight %}
|
11
|
+
|
12
|
+
<br>
|
13
|
+
<p>Optional variables can be passed to control the deprecated <code>-webkit-gradient()</code> function (iOS 4):
|
14
|
+
<br>
|
15
|
+
<code>$deprecated-pos1</code>, <code>$deprecated-pos2</code>, <code>$deprecated-radius1</code>, <code>$deprecated-radius2</code></p>
|
16
|
+
|
17
|
+
{% highlight scss %}
|
18
|
+
@include radial-gradient(#1e5799, #3dc3d1,
|
19
|
+
$deprecated-pos1: left center, $deprecated-pos2: left top,
|
20
|
+
$deprecated-radius1: 50, $deprecated-radius2: 360);
|
21
|
+
{% endhighlight %}
|
22
|
+
|
23
|
+
<h3>Demo</h3>
|
24
|
+
<section class="demo">
|
25
|
+
</section>
|
26
|
+
</section>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<section id="timing-functions">
|
2
|
+
<h2>Timing Functions <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/addons/_timing-functions.scss">View source</a></h2>
|
3
|
+
<p>These CSS cubic-bezier timing functions are variables that can be used with CSS3 animations and transitions. The provided timing functions are the same as the jQuery UI demo: <a href="http://jqueryui.com/demos/effect/easing.html">easing functions</a>.</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
@include transition(all, 5s, $ease-in-circ);
|
7
|
+
{% endhighlight %}
|
8
|
+
|
9
|
+
|
10
|
+
<h3>Demo</h3>
|
11
|
+
<p>Many of the timing functions below may look the same in this demo, but in complex animations, they are intricately different.</p>
|
12
|
+
<section class="demo">
|
13
|
+
<ul>
|
14
|
+
<li><code>$ease-in-quad</code><div class="box ease-in-quad"></div></li>
|
15
|
+
<li><code>$ease-out-quad</code><div class="box ease-in-quad"></div></li>
|
16
|
+
<li><code>$ease-in-out-quad</code><div class="box ease-in-quad"></div></li>
|
17
|
+
|
18
|
+
<li><code>$ease-in-cubic</code><div class="box ease-in-cubic"></div></li>
|
19
|
+
<li><code>$ease-out-cubic</code><div class="box ease-in-cubic"></div></li>
|
20
|
+
<li><code>$ease-in-out-cubic</code><div class="box ease-in-cubic"></div></li>
|
21
|
+
|
22
|
+
<li><code>$ease-in-quart</code><div class="box ease-in-quart"></div></li>
|
23
|
+
<li><code>$ease-out-quart</code><div class="box ease-in-quart"></div></li>
|
24
|
+
<li><code>$ease-in-out-quart</code><div class="box ease-in-quart"></div></li>
|
25
|
+
|
26
|
+
<li><code>$ease-in-quint</code><div class="box ease-in-quint"></div></li>
|
27
|
+
<li><code>$ease-out-quint</code><div class="box ease-in-quint"></div></li>
|
28
|
+
<li><code>$ease-in-out-quint</code><div class="box ease-in-quint"></div></li>
|
29
|
+
|
30
|
+
<li><code>$ease-in-sine</code><div class="box ease-in-sine"></div></li>
|
31
|
+
<li><code>$ease-out-sine</code><div class="box ease-in-sine"></div></li>
|
32
|
+
<li><code>$ease-in-out-sine</code><div class="box ease-in-sine"></div></li>
|
33
|
+
|
34
|
+
<li><code>$ease-in-expo</code><div class="box ease-in-expo"></div></li>
|
35
|
+
<li><code>$ease-out-expo</code><div class="box ease-in-expo"></div></li>
|
36
|
+
<li><code>$ease-in-out-expo</code><div class="box ease-in-expo"></div></li>
|
37
|
+
|
38
|
+
<li><code>$ease-in-circ</code><div class="box ease-in-circ"></div></li>
|
39
|
+
<li><code>$ease-out-circ</code><div class="box ease-in-circ"></div></li>
|
40
|
+
<li><code>$ease-in-out-circ</code><div class="box ease-in-circ"></div></li>
|
41
|
+
|
42
|
+
<li><code>$ease-in-back</code><div class="box ease-in-back"></div></li>
|
43
|
+
<li><code>$ease-out-back</code><div class="box ease-out-back"></div></li>
|
44
|
+
<li><code>$ease-in-out-back</code><div class="box ease-in-out-back"></div></li>
|
45
|
+
<ul>
|
46
|
+
</section>
|
47
|
+
</section>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<section id="tint-shade">
|
2
|
+
<h2>Tint & Shade <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/functions/_tint-shade.scss">View source</a></h2>
|
3
|
+
<p>Tint and Shade are different from <code>lighten()</code> and <code>darken()</code> functions that are built into sass.</p>
|
4
|
+
<p>Tint is a mix of color with white.<br>
|
5
|
+
Shade is a mix of color with black.<br>
|
6
|
+
Both take a color and a percent argument.</p>
|
7
|
+
|
8
|
+
{% highlight scss %}
|
9
|
+
background: tint(red, 40%);
|
10
|
+
background: shade(blue, 60%);
|
11
|
+
{% endhighlight %}
|
12
|
+
|
13
|
+
</section>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<section id="transform">
|
2
|
+
<h2>Transform & Transform-origin <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_transform.scss">View source</a></h2>
|
3
|
+
|
4
|
+
{% highlight scss %}
|
5
|
+
@include transform(translateY(50px));
|
6
|
+
|
7
|
+
@include transform-origin(center top);
|
8
|
+
{% endhighlight %}
|
9
|
+
|
10
|
+
</section>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<section id="transitions">
|
2
|
+
<h2>Transitions <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_transition.scss">View source</a></h2>
|
3
|
+
<p>Shorthand mixin: Supports multiple parentheses-delimited values for each variable.</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
@include transition (all 2.0s ease-in-out);
|
7
|
+
@include transition (opacity 1.0s ease-in 0s, width 2.0s ease-in 2s);
|
8
|
+
{% endhighlight %}
|
9
|
+
</section>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<section id="user-select">
|
2
|
+
<h2>User-select <a class="view-source" href="https://github.com/thoughtbot/bourbon/blob/master/app/assets/stylesheets/css3/_user-select.scss">View source</a></h2>
|
3
|
+
<p>Controls the appearance (only) of selection. This does not have any affect on actual selection operation.</p>
|
4
|
+
|
5
|
+
{% highlight scss %}
|
6
|
+
@include user-select(none);
|
7
|
+
{% endhighlight %}
|
8
|
+
</section>
|
Binary file
|
Binary file
|