sass_twitter_bootstrap 0.1.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +59 -0
- data/lib/sass_twitter_bootstrap.rb +3 -0
- data/stylesheets/_bootstrap.sass +67 -0
- data/stylesheets/sass_twitter_bootstrap/_accordion.sass +24 -0
- data/stylesheets/sass_twitter_bootstrap/_alerts.sass +65 -0
- data/stylesheets/sass_twitter_bootstrap/_bootstrap.sass +1 -0
- data/stylesheets/sass_twitter_bootstrap/_breadcrumbs.sass +18 -0
- data/stylesheets/sass_twitter_bootstrap/_button-groups.sass +129 -0
- data/stylesheets/sass_twitter_bootstrap/_buttons.sass +166 -0
- data/stylesheets/sass_twitter_bootstrap/_carousel.sass +95 -0
- data/stylesheets/sass_twitter_bootstrap/_close.sass +16 -0
- data/stylesheets/sass_twitter_bootstrap/_code.sass +51 -0
- data/stylesheets/sass_twitter_bootstrap/_component-animations.sass +16 -0
- data/stylesheets/sass_twitter_bootstrap/_dropdowns.sass +120 -0
- data/stylesheets/sass_twitter_bootstrap/_forms.sass +482 -0
- data/stylesheets/sass_twitter_bootstrap/_grid.sass +8 -0
- data/stylesheets/sass_twitter_bootstrap/_hero-unit.sass +17 -0
- data/stylesheets/sass_twitter_bootstrap/_labels.sass +42 -0
- data/stylesheets/sass_twitter_bootstrap/_layouts.sass +14 -0
- data/stylesheets/sass_twitter_bootstrap/_mixins.sass +487 -0
- data/stylesheets/sass_twitter_bootstrap/_modals.sass +84 -0
- data/stylesheets/sass_twitter_bootstrap/_navbar.sass +268 -0
- data/stylesheets/sass_twitter_bootstrap/_navs.sass +326 -0
- data/stylesheets/sass_twitter_bootstrap/_pager.sass +29 -0
- data/stylesheets/sass_twitter_bootstrap/_pagination.sass +53 -0
- data/stylesheets/sass_twitter_bootstrap/_popovers.sass +55 -0
- data/stylesheets/sass_twitter_bootstrap/_print.sass +15 -0
- data/stylesheets/sass_twitter_bootstrap/_progress-bars.sass +89 -0
- data/stylesheets/sass_twitter_bootstrap/_reset.sass +130 -0
- data/stylesheets/sass_twitter_bootstrap/_scaffolding.sass +25 -0
- data/stylesheets/sass_twitter_bootstrap/_sprites.sass +394 -0
- data/stylesheets/sass_twitter_bootstrap/_tables.sass +134 -0
- data/stylesheets/sass_twitter_bootstrap/_thumbnails.sass +34 -0
- data/stylesheets/sass_twitter_bootstrap/_tooltip.sass +43 -0
- data/stylesheets/sass_twitter_bootstrap/_type.sass +193 -0
- data/stylesheets/sass_twitter_bootstrap/_utilities.sass +20 -0
- data/stylesheets/sass_twitter_bootstrap/_variables.sass +101 -0
- data/stylesheets/sass_twitter_bootstrap/_wells.sass +15 -0
- data/templates/project/bootstrap.sass +67 -0
- data/templates/project/manifest.rb +20 -0
- data/templates/project/responsive.sass +255 -0
- metadata +110 -0
data/README.markdown
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# Compass
|
2
|
+
|
3
|
+
Build Status: ![Build Status](https://secure.travis-ci.org/chriseppstein/compass.png)
|
4
|
+
|
5
|
+
A [Sass][sass]-based CSS Meta-Framework that allows you to mix and match any of the following CSS frameworks:
|
6
|
+
|
7
|
+
- [Compass Core][compass_core_website] - [Wiki Documentation][compass_core_wiki]
|
8
|
+
- [Blueprint][blueprint_website] - [Wiki Documentation][bleuprint_wiki]
|
9
|
+
- [960][ninesixty_website] - [Wiki Documentation][ninesixty_wiki]
|
10
|
+
- [Susy][susy_website] - [Wiki Documentation][susy_wiki]
|
11
|
+
- [YUI][yui_website] - [Wiki Documentation][yui_wiki]
|
12
|
+
- New frameworks and extensions are [tracked on the wiki][plugins_wiki] as they are created.
|
13
|
+
- Other frameworks can be added relatively easily. Create your own!
|
14
|
+
|
15
|
+
## Compass Provides
|
16
|
+
|
17
|
+
1. A [command line tool][command_line_wiki] for managing your Sass projects.
|
18
|
+
2. Simple integration with [Ruby-on-Rails][ruby_on_rails_wiki], [Merb][merb_wiki], [StaticMatic][staticmatic], and even [non-ruby application servers][command_line_wiki].
|
19
|
+
3. Loads of Sass mixins to make building your website a snap.
|
20
|
+
|
21
|
+
## Quick Start
|
22
|
+
|
23
|
+
$ (sudo) gem install compass
|
24
|
+
$ compass create my_compass_project --using blueprint
|
25
|
+
$ cd my_compass_project
|
26
|
+
$ compass watch
|
27
|
+
|
28
|
+
## More Information
|
29
|
+
Please see the [wiki][wiki]
|
30
|
+
|
31
|
+
## Author
|
32
|
+
Compass is written by [Chris Eppstein][chris_eppstein].<br>
|
33
|
+
Chris is the Software Architect of [Caring.com][caring.com] and a member of the [Sass][sass] core team.
|
34
|
+
|
35
|
+
## License
|
36
|
+
Copyright (c) 2008-2009 Christopher M. Eppstein<br>
|
37
|
+
All Rights Reserved.<br>
|
38
|
+
Released under a [slightly modified MIT License][license].
|
39
|
+
|
40
|
+
[sass]: http://sass-lang.com/ "Syntactically Awesome StyleSheets"
|
41
|
+
[compass_core_website]: http://github.com/chriseppstein/compass/tree/master/frameworks/compass
|
42
|
+
[compass_core_wiki]: http://github.com/chriseppstein/compass/wikis/compass-core-documentation
|
43
|
+
[blueprint_website]: http://blueprintcss.org/
|
44
|
+
[bleuprint_wiki]: http://github.com/chriseppstein/compass/wikis/blueprint-documentation
|
45
|
+
[yui_website]: http://developer.yahoo.com/yui/grids/
|
46
|
+
[yui_wiki]: http://github.com/chriseppstein/compass/wikis/yui-documentation
|
47
|
+
[plugins_wiki]: http://github.com/chriseppstein/compass/wikis/compass-plugins
|
48
|
+
[ninesixty_website]: http://960.gs/
|
49
|
+
[ninesixty_wiki]: http://github.com/chriseppstein/compass/wikis/960gs-documentation
|
50
|
+
[command_line_wiki]: http://wiki.github.com/chriseppstein/compass/command-line-tool
|
51
|
+
[wiki]: http://github.com/chriseppstein/compass/wikis/home
|
52
|
+
[ruby_on_rails_wiki]: http://wiki.github.com/chriseppstein/compass/ruby-on-rails-integration
|
53
|
+
[merb_wiki]: http://wiki.github.com/chriseppstein/compass/merb-integration
|
54
|
+
[staticmatic]: https://github.com/mindeavor/staticmatic2
|
55
|
+
[chris_eppstein]: http://chriseppstein.github.com
|
56
|
+
[caring.com]: http://www.caring.com/ "Senior Care Resources"
|
57
|
+
[license]: http://github.com/chriseppstein/compass/tree/master/LICENSE.markdown
|
58
|
+
[susy_website]: http://www.oddbird.net/susy/
|
59
|
+
[susy_wiki]: http://github.com/chriseppstein/compass/wikis/susy-documentation
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v2.0.1
|
3
|
+
*
|
4
|
+
* Copyright 2012 Twitter, Inc
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9
|
+
|
10
|
+
// Core variables and mixins
|
11
|
+
@import variables
|
12
|
+
|
13
|
+
// Modify this for custom colors, font-sizes, etc
|
14
|
+
@import mixins
|
15
|
+
|
16
|
+
// CSS Reset
|
17
|
+
@import reset
|
18
|
+
|
19
|
+
// Grid system and page structure
|
20
|
+
@import scaffolding
|
21
|
+
@import grid
|
22
|
+
@import layouts
|
23
|
+
|
24
|
+
// Base CSS
|
25
|
+
@import type
|
26
|
+
@import code
|
27
|
+
@import forms
|
28
|
+
@import tables
|
29
|
+
|
30
|
+
// Components: common
|
31
|
+
@import sprites
|
32
|
+
@import dropdowns
|
33
|
+
@import wells
|
34
|
+
@import component-animations
|
35
|
+
@import close
|
36
|
+
|
37
|
+
// Components: Buttons & Alerts
|
38
|
+
@import buttons
|
39
|
+
@import button-groups
|
40
|
+
@import alerts
|
41
|
+
|
42
|
+
// Note: alerts share common CSS with buttons and thus have styles in buttons
|
43
|
+
|
44
|
+
// Components: Nav
|
45
|
+
@import navs
|
46
|
+
@import navbar
|
47
|
+
@import breadcrumbs
|
48
|
+
@import pagination
|
49
|
+
@import pager
|
50
|
+
|
51
|
+
// Components: Popovers
|
52
|
+
@import modals
|
53
|
+
@import tooltip
|
54
|
+
@import popovers
|
55
|
+
|
56
|
+
// Components: Misc
|
57
|
+
@import thumbnails
|
58
|
+
@import labels
|
59
|
+
@import progress-bars
|
60
|
+
@import accordion
|
61
|
+
@import carousel
|
62
|
+
@import hero-unit
|
63
|
+
|
64
|
+
// Utility classes
|
65
|
+
@import utilities
|
66
|
+
|
67
|
+
// Has to be last to override when necessary
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// ACCORDION
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
// Parent container
|
5
|
+
.accordion
|
6
|
+
margin-bottom: $baseLineHeight
|
7
|
+
|
8
|
+
// Group == heading + body
|
9
|
+
.accordion-group
|
10
|
+
margin-bottom: 2px
|
11
|
+
border: 1px solid #e5e5e5
|
12
|
+
+border-radius(4px)
|
13
|
+
|
14
|
+
.accordion-heading
|
15
|
+
border-bottom: 0
|
16
|
+
|
17
|
+
.accordion-heading .accordion-toggle
|
18
|
+
display: block
|
19
|
+
padding: 8px 15px
|
20
|
+
|
21
|
+
// Inner needs the styles because you can't animate properly with any styles on the element
|
22
|
+
.accordion-inner
|
23
|
+
padding: 9px 15px
|
24
|
+
border-top: 1px solid #e5e5e5
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// ALERT STYLES
|
2
|
+
// ------------
|
3
|
+
|
4
|
+
// Base alert styles
|
5
|
+
.alert
|
6
|
+
padding: 8px 35px 8px 14px
|
7
|
+
margin-bottom: $baseLineHeight
|
8
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
|
9
|
+
background-color: $warningBackground
|
10
|
+
border: 1px solid $warningBorder
|
11
|
+
+border-radius(4px)
|
12
|
+
|
13
|
+
.alert,
|
14
|
+
.alert-heading
|
15
|
+
color: $warningText
|
16
|
+
|
17
|
+
// Adjust close link position
|
18
|
+
.alert .close
|
19
|
+
position: relative
|
20
|
+
top: -2px
|
21
|
+
right: -21px
|
22
|
+
line-height: 18px
|
23
|
+
|
24
|
+
// Alternate styles
|
25
|
+
// ----------------
|
26
|
+
|
27
|
+
.alert-success
|
28
|
+
background-color: $successBackground
|
29
|
+
border-color: $successBorder
|
30
|
+
|
31
|
+
.alert-success,
|
32
|
+
.alert-success .alert-heading
|
33
|
+
color: $successText
|
34
|
+
|
35
|
+
.alert-danger,
|
36
|
+
.alert-error
|
37
|
+
background-color: $errorBackground
|
38
|
+
border-color: $errorBorder
|
39
|
+
|
40
|
+
.alert-danger,
|
41
|
+
.alert-error,
|
42
|
+
.alert-danger .alert-heading,
|
43
|
+
.alert-error .alert-heading
|
44
|
+
color: $errorText
|
45
|
+
|
46
|
+
.alert-info
|
47
|
+
background-color: $infoBackground
|
48
|
+
border-color: $infoBorder
|
49
|
+
|
50
|
+
.alert-info,
|
51
|
+
.alert-info .alert-heading
|
52
|
+
color: $infoText
|
53
|
+
|
54
|
+
// Block alerts
|
55
|
+
// ------------------------
|
56
|
+
.alert-block
|
57
|
+
padding-top: 14px
|
58
|
+
padding-bottom: 14px
|
59
|
+
|
60
|
+
.alert-block > p,
|
61
|
+
.alert-block > ul
|
62
|
+
margin-bottom: 0
|
63
|
+
|
64
|
+
.alert-block p + p
|
65
|
+
margin-top: 5px
|
@@ -0,0 +1 @@
|
|
1
|
+
// This is your framework's main stylesheet. Use it to import all default modules.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// BREADCRUMBS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
.breadcrumb
|
5
|
+
padding: 7px 14px
|
6
|
+
margin: 0 0 $baseLineHeight
|
7
|
+
+gradient-vertical(white, #f5f5f5)
|
8
|
+
border: 1px solid #ddd
|
9
|
+
+border-radius(3px)
|
10
|
+
+box-shadow(inset 0 1px 0 $white)
|
11
|
+
li
|
12
|
+
display: inline
|
13
|
+
text-shadow: 0 1px 0 $white
|
14
|
+
.divider
|
15
|
+
padding: 0 5px
|
16
|
+
color: $grayLight
|
17
|
+
.active a
|
18
|
+
color: $grayDark
|
@@ -0,0 +1,129 @@
|
|
1
|
+
// BUTTON GROUPS
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
// Make the div behave like a button
|
5
|
+
.btn-group
|
6
|
+
position: relative
|
7
|
+
+clearfix
|
8
|
+
// clears the floated buttons
|
9
|
+
+ie7-restore-left-whitespace
|
10
|
+
|
11
|
+
// Space out series of button groups
|
12
|
+
.btn-group + .btn-group
|
13
|
+
margin-left: 5px
|
14
|
+
|
15
|
+
// Optional: Group multiple button groups together for a toolbar
|
16
|
+
.btn-toolbar
|
17
|
+
margin-top: $baseLineHeight / 2
|
18
|
+
margin-bottom: $baseLineHeight / 2
|
19
|
+
.btn-group
|
20
|
+
display: inline-block
|
21
|
+
+ie7-inline-block
|
22
|
+
|
23
|
+
// Float them, remove border radius, then re-add to first and last elements
|
24
|
+
.btn-group .btn
|
25
|
+
position: relative
|
26
|
+
float: left
|
27
|
+
margin-left: -1px
|
28
|
+
+border-radius(0)
|
29
|
+
|
30
|
+
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
31
|
+
.btn-group .btn:first-child
|
32
|
+
margin-left: 0
|
33
|
+
-webkit-border-top-left-radius: 4px
|
34
|
+
-moz-border-radius-topleft: 4px
|
35
|
+
border-top-left-radius: 4px
|
36
|
+
-webkit-border-bottom-left-radius: 4px
|
37
|
+
-moz-border-radius-bottomleft: 4px
|
38
|
+
border-bottom-left-radius: 4px
|
39
|
+
|
40
|
+
.btn-group .btn:last-child,
|
41
|
+
.btn-group .dropdown-toggle
|
42
|
+
-webkit-border-top-right-radius: 4px
|
43
|
+
-moz-border-radius-topright: 4px
|
44
|
+
border-top-right-radius: 4px
|
45
|
+
-webkit-border-bottom-right-radius: 4px
|
46
|
+
-moz-border-radius-bottomright: 4px
|
47
|
+
border-bottom-right-radius: 4px
|
48
|
+
|
49
|
+
// Reset corners for large buttons
|
50
|
+
.btn-group .btn.large:first-child
|
51
|
+
margin-left: 0
|
52
|
+
-webkit-border-top-left-radius: 6px
|
53
|
+
-moz-border-radius-topleft: 6px
|
54
|
+
border-top-left-radius: 6px
|
55
|
+
-webkit-border-bottom-left-radius: 6px
|
56
|
+
-moz-border-radius-bottomleft: 6px
|
57
|
+
border-bottom-left-radius: 6px
|
58
|
+
|
59
|
+
.btn-group .btn.large:last-child,
|
60
|
+
.btn-group .large.dropdown-toggle
|
61
|
+
-webkit-border-top-right-radius: 6px
|
62
|
+
-moz-border-radius-topright: 6px
|
63
|
+
border-top-right-radius: 6px
|
64
|
+
-webkit-border-bottom-right-radius: 6px
|
65
|
+
-moz-border-radius-bottomright: 6px
|
66
|
+
border-bottom-right-radius: 6px
|
67
|
+
|
68
|
+
// On hover/focus/active, bring the proper btn to front
|
69
|
+
|
70
|
+
.btn-group .btn:hover,
|
71
|
+
.btn-group .btn:focus,
|
72
|
+
.btn-group .btn:active,
|
73
|
+
.btn-group .btn.active
|
74
|
+
z-index: 2
|
75
|
+
|
76
|
+
// On active and open, don't show outline
|
77
|
+
|
78
|
+
.btn-group .dropdown-toggle:active,
|
79
|
+
.btn-group.open .dropdown-toggle
|
80
|
+
outline: 0
|
81
|
+
|
82
|
+
// Split button dropdowns
|
83
|
+
// ----------------------
|
84
|
+
|
85
|
+
// Give the line between buttons some depth
|
86
|
+
.btn-group .dropdown-toggle
|
87
|
+
padding-left: 8px
|
88
|
+
padding-right: 8px
|
89
|
+
$shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05)
|
90
|
+
+box-shadow($shadow)
|
91
|
+
*padding-top: 5px
|
92
|
+
*padding-bottom: 5px
|
93
|
+
|
94
|
+
.btn-group.open
|
95
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
96
|
+
// make the menu appear below buttons that appeared later on the page
|
97
|
+
*z-index: $zindexDropdown
|
98
|
+
// Reposition menu on open and round all corners
|
99
|
+
.dropdown-menu
|
100
|
+
display: block
|
101
|
+
margin-top: 1px
|
102
|
+
+border-radius(5px)
|
103
|
+
.dropdown-toggle
|
104
|
+
background-image: none
|
105
|
+
$shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)
|
106
|
+
+box-shadow($shadow)
|
107
|
+
|
108
|
+
// Reposition the caret
|
109
|
+
.btn .caret
|
110
|
+
margin-top: 7px
|
111
|
+
margin-left: 0
|
112
|
+
|
113
|
+
.btn:hover .caret,
|
114
|
+
.open.btn-group .caret
|
115
|
+
+opacity(100)
|
116
|
+
|
117
|
+
// Account for other colors
|
118
|
+
|
119
|
+
.btn-primary,
|
120
|
+
.btn-danger,
|
121
|
+
.btn-info,
|
122
|
+
.btn-success
|
123
|
+
.caret
|
124
|
+
border-top-color: $white
|
125
|
+
+opacity(75)
|
126
|
+
|
127
|
+
// Small button dropdowns
|
128
|
+
.btn-small .caret
|
129
|
+
margin-top: 4px
|
@@ -0,0 +1,166 @@
|
|
1
|
+
// BUTTON STYLES
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
// Base styles
|
5
|
+
// --------------------------------------------------
|
6
|
+
|
7
|
+
// Core
|
8
|
+
.btn
|
9
|
+
display: inline-block
|
10
|
+
padding: 4px 10px 4px
|
11
|
+
margin-bottom: 0
|
12
|
+
// For input.btn
|
13
|
+
font-size: $baseFontSize
|
14
|
+
line-height: $baseLineHeight
|
15
|
+
color: $grayDark
|
16
|
+
text-align: center
|
17
|
+
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75)
|
18
|
+
vertical-align: middle
|
19
|
+
+buttonBackground($white, darken($white, 10%))
|
20
|
+
border: 1px solid #ccc
|
21
|
+
border-bottom-color: #bbb
|
22
|
+
+border-radius(4px)
|
23
|
+
$shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05)
|
24
|
+
+box-shadow($shadow)
|
25
|
+
cursor: pointer
|
26
|
+
// Give IE7 some love
|
27
|
+
+reset-filter
|
28
|
+
+ie7-restore-left-whitespace
|
29
|
+
|
30
|
+
// Hover state
|
31
|
+
.btn:hover
|
32
|
+
color: $grayDark
|
33
|
+
text-decoration: none
|
34
|
+
background-color: darken($white, 10%)
|
35
|
+
background-position: 0 -15px
|
36
|
+
// transition is only when going to hover, otherwise the background
|
37
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
38
|
+
+transition(background-position 0.1s linear)
|
39
|
+
|
40
|
+
// Focus state for keyboard and accessibility
|
41
|
+
.btn:focus
|
42
|
+
+tab-focus
|
43
|
+
|
44
|
+
// Active state
|
45
|
+
|
46
|
+
.btn.active,
|
47
|
+
.btn:active
|
48
|
+
background-image: none
|
49
|
+
$shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)
|
50
|
+
+box-shadow($shadow)
|
51
|
+
background-color: darken($white, 10%)
|
52
|
+
background-color: darken($white, 15%) #{"\9"}
|
53
|
+
outline: 0
|
54
|
+
|
55
|
+
// Disabled state
|
56
|
+
|
57
|
+
.btn.disabled,
|
58
|
+
.btn[disabled]
|
59
|
+
cursor: default
|
60
|
+
background-image: none
|
61
|
+
background-color: darken($white, 10%)
|
62
|
+
+opacity(65)
|
63
|
+
+box-shadow(none)
|
64
|
+
|
65
|
+
// Button Sizes
|
66
|
+
// --------------------------------------------------
|
67
|
+
|
68
|
+
// Large
|
69
|
+
.btn-large
|
70
|
+
padding: 9px 14px
|
71
|
+
font-size: $baseFontSize + 2px
|
72
|
+
line-height: normal
|
73
|
+
+border-radius(5px)
|
74
|
+
|
75
|
+
.btn-large [class^="icon-"]
|
76
|
+
margin-top: 1px
|
77
|
+
|
78
|
+
// Small
|
79
|
+
.btn-small
|
80
|
+
padding: 5px 9px
|
81
|
+
font-size: $baseFontSize - 2px
|
82
|
+
line-height: $baseLineHeight - 2px
|
83
|
+
|
84
|
+
.btn-small [class^="icon-"]
|
85
|
+
margin-top: -1px
|
86
|
+
|
87
|
+
// Mini
|
88
|
+
.btn-mini
|
89
|
+
padding: 2px 6px
|
90
|
+
font-size: $baseFontSize - 2px
|
91
|
+
line-height: $baseLineHeight - 4px
|
92
|
+
|
93
|
+
// Alternate buttons
|
94
|
+
// --------------------------------------------------
|
95
|
+
|
96
|
+
// Set text color
|
97
|
+
// -------------------------
|
98
|
+
|
99
|
+
.btn-primary,
|
100
|
+
.btn-primary:hover,
|
101
|
+
.btn-warning,
|
102
|
+
.btn-warning:hover,
|
103
|
+
.btn-danger,
|
104
|
+
.btn-danger:hover,
|
105
|
+
.btn-success,
|
106
|
+
.btn-success:hover,
|
107
|
+
.btn-info,
|
108
|
+
.btn-info:hover,
|
109
|
+
.btn-inverse,
|
110
|
+
.btn-inverse:hover
|
111
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
112
|
+
color: $white
|
113
|
+
|
114
|
+
// Provide *some* extra contrast for those who can get it
|
115
|
+
|
116
|
+
.btn-primary.active,
|
117
|
+
.btn-warning.active,
|
118
|
+
.btn-danger.active,
|
119
|
+
.btn-success.active,
|
120
|
+
.btn-info.active,
|
121
|
+
.btn-dark.active
|
122
|
+
color: rgba(255, 255, 255, 0.75)
|
123
|
+
|
124
|
+
// Set the backgrounds
|
125
|
+
// -------------------------
|
126
|
+
.btn-primary
|
127
|
+
+buttonBackground($primaryButtonBackground, adjust-hue($primaryButtonBackground, 20))
|
128
|
+
|
129
|
+
// Warning appears are orange
|
130
|
+
.btn-warning
|
131
|
+
+buttonBackground(lighten($orange, 15%), $orange)
|
132
|
+
|
133
|
+
// Danger and error appear as red
|
134
|
+
.btn-danger
|
135
|
+
+buttonBackground(#ee5f5b, #bd362f)
|
136
|
+
|
137
|
+
// Success appears as green
|
138
|
+
.btn-success
|
139
|
+
+buttonBackground(#62c462, #51a351)
|
140
|
+
|
141
|
+
// Info appears as a neutral blue
|
142
|
+
.btn-info
|
143
|
+
+buttonBackground(#5bc0de, #2f96b4)
|
144
|
+
|
145
|
+
// Inverse appears as dark gray
|
146
|
+
.btn-inverse
|
147
|
+
+buttonBackground(#454545, #262626)
|
148
|
+
|
149
|
+
// Cross-browser Jank
|
150
|
+
// --------------------------------------------------
|
151
|
+
|
152
|
+
button.btn,
|
153
|
+
input[type="submit"].btn
|
154
|
+
// Firefox 3.6 only I believe
|
155
|
+
&::-moz-focus-inner
|
156
|
+
padding: 0
|
157
|
+
border: 0
|
158
|
+
// IE7 has some default padding on button controls
|
159
|
+
*padding-top: 2px
|
160
|
+
*padding-bottom: 2px
|
161
|
+
&.large
|
162
|
+
*padding-top: 7px
|
163
|
+
*padding-bottom: 7px
|
164
|
+
&.small
|
165
|
+
*padding-top: 3px
|
166
|
+
*padding-bottom: 3px
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// CAROUSEL
|
2
|
+
// --------
|
3
|
+
|
4
|
+
.carousel
|
5
|
+
position: relative
|
6
|
+
margin-bottom: $baseLineHeight
|
7
|
+
line-height: 1
|
8
|
+
|
9
|
+
.carousel-inner
|
10
|
+
overflow: hidden
|
11
|
+
width: 100%
|
12
|
+
position: relative
|
13
|
+
|
14
|
+
.carousel
|
15
|
+
.item
|
16
|
+
display: none
|
17
|
+
position: relative
|
18
|
+
+transition(0.6s ease-in-out left)
|
19
|
+
// Account for jankitude on images
|
20
|
+
.item > img
|
21
|
+
display: block
|
22
|
+
line-height: 1
|
23
|
+
.active,
|
24
|
+
.next,
|
25
|
+
.prev
|
26
|
+
display: block
|
27
|
+
.active
|
28
|
+
left: 0
|
29
|
+
.next,
|
30
|
+
.prev
|
31
|
+
position: absolute
|
32
|
+
top: 0
|
33
|
+
width: 100%
|
34
|
+
.next
|
35
|
+
left: 100%
|
36
|
+
.prev
|
37
|
+
left: -100%
|
38
|
+
.next.left,
|
39
|
+
.prev.right
|
40
|
+
left: 0
|
41
|
+
.active.left
|
42
|
+
left: -100%
|
43
|
+
.active.right
|
44
|
+
left: 100%
|
45
|
+
|
46
|
+
// Left/right controls for nav
|
47
|
+
// ---------------------------
|
48
|
+
|
49
|
+
.carousel-control
|
50
|
+
position: absolute
|
51
|
+
top: 40%
|
52
|
+
left: 15px
|
53
|
+
width: 40px
|
54
|
+
height: 40px
|
55
|
+
margin-top: -20px
|
56
|
+
font-size: 60px
|
57
|
+
font-weight: 100
|
58
|
+
line-height: 30px
|
59
|
+
color: $white
|
60
|
+
text-align: center
|
61
|
+
background: $grayDarker
|
62
|
+
border: 3px solid $white
|
63
|
+
+border-radius(23px)
|
64
|
+
+opacity(50)
|
65
|
+
// we can't have this transition here
|
66
|
+
// because webkit cancels the carousel
|
67
|
+
// animation if you trip this while
|
68
|
+
// in the middle of another animation
|
69
|
+
// ;_;
|
70
|
+
// .transition(opacity .2s linear);
|
71
|
+
// Reposition the right one
|
72
|
+
&.right
|
73
|
+
left: auto
|
74
|
+
right: 15px
|
75
|
+
// Hover state
|
76
|
+
&:hover
|
77
|
+
color: $white
|
78
|
+
text-decoration: none
|
79
|
+
+opacity(90)
|
80
|
+
|
81
|
+
// Caption for text below images
|
82
|
+
// -----------------------------
|
83
|
+
|
84
|
+
.carousel-caption
|
85
|
+
position: absolute
|
86
|
+
left: 0
|
87
|
+
right: 0
|
88
|
+
bottom: 0
|
89
|
+
padding: 10px 15px 5px
|
90
|
+
background: $grayDark
|
91
|
+
background: rgba(0, 0, 0, 0.75)
|
92
|
+
|
93
|
+
.carousel-caption h4,
|
94
|
+
.carousel-caption p
|
95
|
+
color: $white
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// CLOSE ICONS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
.close
|
5
|
+
float: right
|
6
|
+
font-size: 20px
|
7
|
+
font-weight: bold
|
8
|
+
line-height: $baseLineHeight
|
9
|
+
color: $black
|
10
|
+
text-shadow: 0 1px 0 rgba(255, 255, 255, 1)
|
11
|
+
+opacity(20)
|
12
|
+
&:hover
|
13
|
+
color: $black
|
14
|
+
text-decoration: none
|
15
|
+
+opacity(40)
|
16
|
+
cursor: pointer
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// Code.less
|
2
|
+
// Code typography styles for the <code> and <pre> elements
|
3
|
+
// --------------------------------------------------------
|
4
|
+
|
5
|
+
// Inline and block code styles
|
6
|
+
|
7
|
+
code,
|
8
|
+
pre
|
9
|
+
padding: 0 3px 2px
|
10
|
+
+font-family-monospace
|
11
|
+
font-size: $baseFontSize - 1
|
12
|
+
color: $grayDark
|
13
|
+
+border-radius(3px)
|
14
|
+
|
15
|
+
// Inline code
|
16
|
+
code
|
17
|
+
padding: 3px 4px
|
18
|
+
color: #d14
|
19
|
+
background-color: #f7f7f9
|
20
|
+
border: 1px solid #e1e1e8
|
21
|
+
|
22
|
+
// Blocks of code
|
23
|
+
pre
|
24
|
+
display: block
|
25
|
+
padding: ($baseLineHeight - 1) / 2
|
26
|
+
margin: 0 0 $baseLineHeight / 2
|
27
|
+
font-size: 12px
|
28
|
+
line-height: $baseLineHeight
|
29
|
+
background-color: #f5f5f5
|
30
|
+
border: 1px solid #ccc
|
31
|
+
// fallback for IE7-8
|
32
|
+
border: 1px solid rgba(0, 0, 0, 0.15)
|
33
|
+
+border-radius(4px)
|
34
|
+
white-space: pre
|
35
|
+
white-space: pre-wrap
|
36
|
+
word-break: break-all
|
37
|
+
word-wrap: break-word
|
38
|
+
// Make prettyprint styles more spaced out for readability
|
39
|
+
&.prettyprint
|
40
|
+
margin-bottom: $baseLineHeight
|
41
|
+
// Account for some code outputs that place code tags in pre tags
|
42
|
+
code
|
43
|
+
padding: 0
|
44
|
+
color: inherit
|
45
|
+
background-color: transparent
|
46
|
+
border: 0
|
47
|
+
|
48
|
+
// Enable scrollable blocks of code
|
49
|
+
.pre-scrollable
|
50
|
+
max-height: 340px
|
51
|
+
overflow-y: scroll
|