bootstrap-sass-rails-rtl 2.0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +14 -0
- data/README.md +115 -0
- data/Rakefile +37 -0
- data/lib/bootstrap-sass-rails-rtl.rb +9 -0
- data/lib/bootstrap/sass/extensions.rb +5 -0
- data/lib/bootstrap/sass/extensions/functions.rb +15 -0
- data/lib/bootstrap/sass/rails.rb +2 -0
- data/lib/bootstrap/sass/rails/engine.rb +9 -0
- data/lib/bootstrap/sass/rails/version.rb +7 -0
- data/test/cases/usage_css_spec.rb +216 -0
- data/test/cases/usage_js_spec.rb +40 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +3 -0
- data/test/dummy/app/assets/javascripts/individual.js +1 -0
- data/test/dummy/app/assets/stylesheets/application-rtl.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/individual-rtl.css.scss +11 -0
- data/test/dummy/app/assets/stylesheets/individual.css.scss +11 -0
- data/test/dummy/app/assets/stylesheets/sprockets-rtl.css +3 -0
- data/test/dummy/app/assets/stylesheets/sprockets.css +3 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +49 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/spec_helper.rb +13 -0
- data/test/support/helpers.rb +35 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +90 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +96 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +169 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +157 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +100 -0
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +218 -0
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +151 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +135 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +275 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +61 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +285 -0
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +62 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +59 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +24 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +190 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +193 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +57 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +142 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +589 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +612 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +90 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +358 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +364 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +56 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +150 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +153 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +41 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +178 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +175 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +47 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +232 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +206 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +27 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_alerts.scss +59 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_breadcrumbs.scss +24 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_button-groups.scss +190 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_buttons.scss +193 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_close.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_code.scss +57 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_component-animations.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_dropdowns.scss +142 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_forms.scss +589 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_hero-unit.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_labels-badges.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_mixins.scss +612 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_modals.scss +90 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navbar.scss +358 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navs.scss +364 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pager.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pagination.scss +56 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_reset.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-1200px-min.scss +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-767px-max.scss +150 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-navbar.scss +153 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-utilities.scss +41 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive.scss +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_scaffolding.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_sprites.scss +178 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tables.scss +175 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_thumbnails.scss +47 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_type.scss +232 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_variables.scss +206 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_wells.scss +27 -0
- data/vendor/assets/stylesheets/twitter/bootstrap_rtl.css.scss +62 -0
- metadata +276 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
// BREADCRUMBS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
.breadcrumb {
|
5
|
+
padding: 7px 14px;
|
6
|
+
margin: 0 0 $baseLineHeight;
|
7
|
+
list-style: none;
|
8
|
+
@include gradient-vertical($white, #f5f5f5);
|
9
|
+
border: 1px solid #ddd;
|
10
|
+
@include border-radius(3px);
|
11
|
+
@include box-shadow(inset 0 1px 0 $white);
|
12
|
+
li {
|
13
|
+
display: inline-block;
|
14
|
+
@include ie7-inline-block();
|
15
|
+
text-shadow: 0 1px 0 $white;
|
16
|
+
}
|
17
|
+
.divider {
|
18
|
+
padding: 0 5px;
|
19
|
+
color: $grayLight;
|
20
|
+
}
|
21
|
+
.active a {
|
22
|
+
color: $grayDark;
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,190 @@
|
|
1
|
+
// BUTTON GROUPS
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
|
5
|
+
// Make the div behave like a button
|
6
|
+
.btn-group {
|
7
|
+
position: relative;
|
8
|
+
@include clearfix(); // clears the floated buttons
|
9
|
+
@include ie7-restore-left-whitespace();
|
10
|
+
}
|
11
|
+
|
12
|
+
// Space out series of button groups
|
13
|
+
.btn-group + .btn-group {
|
14
|
+
margin-left: 5px;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Optional: Group multiple button groups together for a toolbar
|
18
|
+
.btn-toolbar {
|
19
|
+
margin-top: $baseLineHeight / 2;
|
20
|
+
margin-bottom: $baseLineHeight / 2;
|
21
|
+
.btn-group {
|
22
|
+
display: inline-block;
|
23
|
+
@include ie7-inline-block();
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// Float them, remove border radius, then re-add to first and last elements
|
28
|
+
.btn-group > .btn {
|
29
|
+
position: relative;
|
30
|
+
float: left;
|
31
|
+
margin-left: -1px;
|
32
|
+
@include border-radius(0);
|
33
|
+
}
|
34
|
+
// 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
|
35
|
+
.btn-group > .btn:first-child {
|
36
|
+
margin-left: 0;
|
37
|
+
-webkit-border-top-left-radius: 4px;
|
38
|
+
-moz-border-radius-topleft: 4px;
|
39
|
+
border-top-left-radius: 4px;
|
40
|
+
-webkit-border-bottom-left-radius: 4px;
|
41
|
+
-moz-border-radius-bottomleft: 4px;
|
42
|
+
border-bottom-left-radius: 4px;
|
43
|
+
}
|
44
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
45
|
+
.btn-group > .btn:last-child,
|
46
|
+
.btn-group > .dropdown-toggle {
|
47
|
+
-webkit-border-top-right-radius: 4px;
|
48
|
+
-moz-border-radius-topright: 4px;
|
49
|
+
border-top-right-radius: 4px;
|
50
|
+
-webkit-border-bottom-right-radius: 4px;
|
51
|
+
-moz-border-radius-bottomright: 4px;
|
52
|
+
border-bottom-right-radius: 4px;
|
53
|
+
}
|
54
|
+
// Reset corners for large buttons
|
55
|
+
.btn-group > .btn.large:first-child {
|
56
|
+
margin-left: 0;
|
57
|
+
-webkit-border-top-left-radius: 6px;
|
58
|
+
-moz-border-radius-topleft: 6px;
|
59
|
+
border-top-left-radius: 6px;
|
60
|
+
-webkit-border-bottom-left-radius: 6px;
|
61
|
+
-moz-border-radius-bottomleft: 6px;
|
62
|
+
border-bottom-left-radius: 6px;
|
63
|
+
}
|
64
|
+
.btn-group > .btn.large:last-child,
|
65
|
+
.btn-group > .large.dropdown-toggle {
|
66
|
+
-webkit-border-top-right-radius: 6px;
|
67
|
+
-moz-border-radius-topright: 6px;
|
68
|
+
border-top-right-radius: 6px;
|
69
|
+
-webkit-border-bottom-right-radius: 6px;
|
70
|
+
-moz-border-radius-bottomright: 6px;
|
71
|
+
border-bottom-right-radius: 6px;
|
72
|
+
}
|
73
|
+
|
74
|
+
// On hover/focus/active, bring the proper btn to front
|
75
|
+
.btn-group > .btn:hover,
|
76
|
+
.btn-group > .btn:focus,
|
77
|
+
.btn-group > .btn:active,
|
78
|
+
.btn-group > .btn.active {
|
79
|
+
z-index: 2;
|
80
|
+
}
|
81
|
+
|
82
|
+
// On active and open, don't show outline
|
83
|
+
.btn-group .dropdown-toggle:active,
|
84
|
+
.btn-group.open .dropdown-toggle {
|
85
|
+
outline: 0;
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
// Split button dropdowns
|
91
|
+
// ----------------------
|
92
|
+
|
93
|
+
// Give the line between buttons some depth
|
94
|
+
.btn-group > .dropdown-toggle {
|
95
|
+
padding-left: 8px;
|
96
|
+
padding-right: 8px;
|
97
|
+
@include box-shadow("inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
98
|
+
*padding-top: 4px;
|
99
|
+
*padding-bottom: 4px;
|
100
|
+
}
|
101
|
+
.btn-group > .btn-mini.dropdown-toggle {
|
102
|
+
padding-left: 5px;
|
103
|
+
padding-right: 5px;
|
104
|
+
}
|
105
|
+
.btn-group > .btn-small.dropdown-toggle {
|
106
|
+
*padding-top: 4px;
|
107
|
+
*padding-bottom: 4px;
|
108
|
+
}
|
109
|
+
.btn-group > .btn-large.dropdown-toggle {
|
110
|
+
padding-left: 12px;
|
111
|
+
padding-right: 12px;
|
112
|
+
}
|
113
|
+
|
114
|
+
.btn-group.open {
|
115
|
+
|
116
|
+
// The clickable button for toggling the menu
|
117
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
118
|
+
.dropdown-toggle {
|
119
|
+
background-image: none;
|
120
|
+
@include box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
121
|
+
}
|
122
|
+
|
123
|
+
// Keep the hover's background when dropdown is open
|
124
|
+
.btn.dropdown-toggle {
|
125
|
+
background-color: $btnBackgroundHighlight;
|
126
|
+
}
|
127
|
+
.btn-primary.dropdown-toggle {
|
128
|
+
background-color: $btnPrimaryBackgroundHighlight;
|
129
|
+
}
|
130
|
+
.btn-warning.dropdown-toggle {
|
131
|
+
background-color: $btnWarningBackgroundHighlight;
|
132
|
+
}
|
133
|
+
.btn-danger.dropdown-toggle {
|
134
|
+
background-color: $btnDangerBackgroundHighlight;
|
135
|
+
}
|
136
|
+
.btn-success.dropdown-toggle {
|
137
|
+
background-color: $btnSuccessBackgroundHighlight;
|
138
|
+
}
|
139
|
+
.btn-info.dropdown-toggle {
|
140
|
+
background-color: $btnInfoBackgroundHighlight;
|
141
|
+
}
|
142
|
+
.btn-inverse.dropdown-toggle {
|
143
|
+
background-color: $btnInverseBackgroundHighlight;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
// Reposition the caret
|
149
|
+
.btn .caret {
|
150
|
+
margin-top: 7px;
|
151
|
+
margin-left: 0;
|
152
|
+
}
|
153
|
+
.btn:hover .caret,
|
154
|
+
.open.btn-group .caret {
|
155
|
+
@include opacity(100);
|
156
|
+
}
|
157
|
+
// Carets in other button sizes
|
158
|
+
.btn-mini .caret {
|
159
|
+
margin-top: 5px;
|
160
|
+
}
|
161
|
+
.btn-small .caret {
|
162
|
+
margin-top: 6px;
|
163
|
+
}
|
164
|
+
.btn-large .caret {
|
165
|
+
margin-top: 6px;
|
166
|
+
border-left-width: 5px;
|
167
|
+
border-right-width: 5px;
|
168
|
+
border-top-width: 5px;
|
169
|
+
}
|
170
|
+
// Upside down carets for .dropup
|
171
|
+
.dropup .btn-large .caret {
|
172
|
+
border-bottom: 5px solid $black;
|
173
|
+
border-top: 0;
|
174
|
+
}
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
// Account for other colors
|
179
|
+
.btn-primary,
|
180
|
+
.btn-warning,
|
181
|
+
.btn-danger,
|
182
|
+
.btn-info,
|
183
|
+
.btn-success,
|
184
|
+
.btn-inverse {
|
185
|
+
.caret {
|
186
|
+
border-top-color: $white;
|
187
|
+
border-bottom-color: $white;
|
188
|
+
@include opacity(75);
|
189
|
+
}
|
190
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
// BUTTON STYLES
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// --------------------------------------------------
|
7
|
+
|
8
|
+
// Core
|
9
|
+
.btn {
|
10
|
+
display: inline-block;
|
11
|
+
@include ie7-inline-block();
|
12
|
+
padding: 4px 10px 4px;
|
13
|
+
margin-bottom: 0; // For input.btn
|
14
|
+
font-size: $baseFontSize;
|
15
|
+
line-height: $baseLineHeight;
|
16
|
+
*line-height: 20px;
|
17
|
+
color: $grayDark;
|
18
|
+
text-align: center;
|
19
|
+
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
20
|
+
@include gradient-vertical-three-colors($white, $white, 25%, darken($white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
|
21
|
+
vertical-align: middle;
|
22
|
+
cursor: pointer;
|
23
|
+
@include buttonBackground($btnBackground, $btnBackgroundHighlight);
|
24
|
+
border: 1px solid $btnBorder;
|
25
|
+
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
26
|
+
border-bottom-color: darken($btnBorder, 10%);
|
27
|
+
@include border-radius(4px);
|
28
|
+
|
29
|
+
@include ie7-restore-left-whitespace(); // Give IE7 some love
|
30
|
+
@include box-shadow("inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
31
|
+
}
|
32
|
+
|
33
|
+
// Hover state
|
34
|
+
.btn:hover {
|
35
|
+
color: $grayDark;
|
36
|
+
text-decoration: none;
|
37
|
+
background-color: darken($white, 10%);
|
38
|
+
*background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
|
39
|
+
background-position: 0 -15px;
|
40
|
+
|
41
|
+
// transition is only when going to hover, otherwise the background
|
42
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
43
|
+
@include transition(background-position .1s linear);
|
44
|
+
}
|
45
|
+
|
46
|
+
// Focus state for keyboard and accessibility
|
47
|
+
.btn:focus {
|
48
|
+
@include tab-focus();
|
49
|
+
}
|
50
|
+
|
51
|
+
// Active state
|
52
|
+
.btn.active,
|
53
|
+
.btn:active {
|
54
|
+
@include box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
55
|
+
background-color: darken($white, 10%);
|
56
|
+
background-color: darken($white, 15%) \9; /* IE6-9 */
|
57
|
+
background-image: none;
|
58
|
+
outline: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Disabled state
|
62
|
+
.btn.disabled,
|
63
|
+
.btn[disabled] {
|
64
|
+
cursor: default;
|
65
|
+
background-color: darken($white, 10%);
|
66
|
+
background-image: none;
|
67
|
+
@include opacity(65);
|
68
|
+
@include box-shadow(none);
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
// Button Sizes
|
73
|
+
// --------------------------------------------------
|
74
|
+
|
75
|
+
// Large
|
76
|
+
.btn-large {
|
77
|
+
padding: 9px 14px;
|
78
|
+
font-size: $baseFontSize + 2px;
|
79
|
+
line-height: normal;
|
80
|
+
@include border-radius(5px);
|
81
|
+
}
|
82
|
+
.btn-large [class^="icon-"] {
|
83
|
+
margin-top: 1px;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Small
|
87
|
+
.btn-small {
|
88
|
+
padding: 5px 9px;
|
89
|
+
font-size: $baseFontSize - 2px;
|
90
|
+
line-height: $baseLineHeight - 2px;
|
91
|
+
}
|
92
|
+
.btn-small [class^="icon-"] {
|
93
|
+
margin-top: -1px;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Mini
|
97
|
+
.btn-mini {
|
98
|
+
padding: 2px 6px;
|
99
|
+
font-size: $baseFontSize - 2px;
|
100
|
+
line-height: $baseLineHeight - 4px;
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
// Alternate buttons
|
105
|
+
// --------------------------------------------------
|
106
|
+
|
107
|
+
// Set text color
|
108
|
+
// -------------------------
|
109
|
+
.btn-primary,
|
110
|
+
.btn-primary:hover,
|
111
|
+
.btn-warning,
|
112
|
+
.btn-warning:hover,
|
113
|
+
.btn-danger,
|
114
|
+
.btn-danger:hover,
|
115
|
+
.btn-success,
|
116
|
+
.btn-success:hover,
|
117
|
+
.btn-info,
|
118
|
+
.btn-info:hover,
|
119
|
+
.btn-inverse,
|
120
|
+
.btn-inverse:hover {
|
121
|
+
color: $white;
|
122
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
123
|
+
}
|
124
|
+
// Provide *some* extra contrast for those who can get it
|
125
|
+
.btn-primary.active,
|
126
|
+
.btn-warning.active,
|
127
|
+
.btn-danger.active,
|
128
|
+
.btn-success.active,
|
129
|
+
.btn-info.active,
|
130
|
+
.btn-inverse.active {
|
131
|
+
color: rgba(255,255,255,.75);
|
132
|
+
}
|
133
|
+
|
134
|
+
// Set the backgrounds
|
135
|
+
// -------------------------
|
136
|
+
.btn {
|
137
|
+
// reset here as of 2.0.3 due to Recess property order
|
138
|
+
border-color: #ccc;
|
139
|
+
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
|
140
|
+
}
|
141
|
+
.btn-primary {
|
142
|
+
@include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
|
143
|
+
}
|
144
|
+
// Warning appears are orange
|
145
|
+
.btn-warning {
|
146
|
+
@include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
|
147
|
+
}
|
148
|
+
// Danger and error appear as red
|
149
|
+
.btn-danger {
|
150
|
+
@include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
|
151
|
+
}
|
152
|
+
// Success appears as green
|
153
|
+
.btn-success {
|
154
|
+
@include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
|
155
|
+
}
|
156
|
+
// Info appears as a neutral blue
|
157
|
+
.btn-info {
|
158
|
+
@include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
|
159
|
+
}
|
160
|
+
// Inverse appears as dark gray
|
161
|
+
.btn-inverse {
|
162
|
+
@include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
// Cross-browser Jank
|
167
|
+
// --------------------------------------------------
|
168
|
+
|
169
|
+
button.btn,
|
170
|
+
input[type="submit"].btn {
|
171
|
+
|
172
|
+
// Firefox 3.6 only I believe
|
173
|
+
&::-moz-focus-inner {
|
174
|
+
padding: 0;
|
175
|
+
border: 0;
|
176
|
+
}
|
177
|
+
|
178
|
+
// IE7 has some default padding on button controls
|
179
|
+
*padding-top: 2px;
|
180
|
+
*padding-bottom: 2px;
|
181
|
+
&.btn-large {
|
182
|
+
*padding-top: 7px;
|
183
|
+
*padding-bottom: 7px;
|
184
|
+
}
|
185
|
+
&.btn-small {
|
186
|
+
*padding-top: 3px;
|
187
|
+
*padding-bottom: 3px;
|
188
|
+
}
|
189
|
+
&.btn-mini {
|
190
|
+
*padding-top: 1px;
|
191
|
+
*padding-bottom: 1px;
|
192
|
+
}
|
193
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
// CAROUSEL
|
2
|
+
// --------
|
3
|
+
|
4
|
+
.carousel {
|
5
|
+
position: relative;
|
6
|
+
margin-bottom: $baseLineHeight;
|
7
|
+
line-height: 1;
|
8
|
+
}
|
9
|
+
|
10
|
+
.carousel-inner {
|
11
|
+
overflow: hidden;
|
12
|
+
width: 100%;
|
13
|
+
position: relative;
|
14
|
+
}
|
15
|
+
|
16
|
+
.carousel {
|
17
|
+
|
18
|
+
.item {
|
19
|
+
display: none;
|
20
|
+
position: relative;
|
21
|
+
@include transition(.6s ease-in-out left);
|
22
|
+
}
|
23
|
+
|
24
|
+
// Account for jankitude on images
|
25
|
+
.item > img {
|
26
|
+
display: block;
|
27
|
+
line-height: 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
.active,
|
31
|
+
.next,
|
32
|
+
.prev { display: block; }
|
33
|
+
|
34
|
+
.active {
|
35
|
+
left: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
.next,
|
39
|
+
.prev {
|
40
|
+
position: absolute;
|
41
|
+
top: 0;
|
42
|
+
width: 100%;
|
43
|
+
}
|
44
|
+
|
45
|
+
.next {
|
46
|
+
left: 100%;
|
47
|
+
}
|
48
|
+
.prev {
|
49
|
+
left: -100%;
|
50
|
+
}
|
51
|
+
.next.left,
|
52
|
+
.prev.right {
|
53
|
+
left: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.active.left {
|
57
|
+
left: -100%;
|
58
|
+
}
|
59
|
+
.active.right {
|
60
|
+
left: 100%;
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
// Left/right controls for nav
|
66
|
+
// ---------------------------
|
67
|
+
|
68
|
+
.carousel-control {
|
69
|
+
position: absolute;
|
70
|
+
top: 40%;
|
71
|
+
left: 15px;
|
72
|
+
width: 40px;
|
73
|
+
height: 40px;
|
74
|
+
margin-top: -20px;
|
75
|
+
font-size: 60px;
|
76
|
+
font-weight: 100;
|
77
|
+
line-height: 30px;
|
78
|
+
color: $white;
|
79
|
+
text-align: center;
|
80
|
+
background: $grayDarker;
|
81
|
+
border: 3px solid $white;
|
82
|
+
@include border-radius(23px);
|
83
|
+
@include opacity(50);
|
84
|
+
|
85
|
+
// we can't have this transition here
|
86
|
+
// because webkit cancels the carousel
|
87
|
+
// animation if you trip this while
|
88
|
+
// in the middle of another animation
|
89
|
+
// ;_;
|
90
|
+
// .transition(opacity .2s linear);
|
91
|
+
|
92
|
+
// Reposition the right one
|
93
|
+
&.right {
|
94
|
+
left: auto;
|
95
|
+
right: 15px;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Hover state
|
99
|
+
&:hover {
|
100
|
+
color: $white;
|
101
|
+
text-decoration: none;
|
102
|
+
@include opacity(90);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Caption for text below images
|
107
|
+
// -----------------------------
|
108
|
+
|
109
|
+
.carousel-caption {
|
110
|
+
position: absolute;
|
111
|
+
left: 0;
|
112
|
+
right: 0;
|
113
|
+
bottom: 0;
|
114
|
+
padding: 10px 15px 5px;
|
115
|
+
background: $grayDark;
|
116
|
+
background: rgba(0,0,0,.75);
|
117
|
+
}
|
118
|
+
.carousel-caption h4,
|
119
|
+
.carousel-caption p {
|
120
|
+
color: $white;
|
121
|
+
}
|