bootstrap-sass-rails 3.0.3.0 → 3.1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +1 -1
- data/README.md +24 -133
- data/app/assets/javascripts/twitter/bootstrap.js +1 -12
- data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -126
- data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -98
- data/app/assets/javascripts/twitter/bootstrap/button.js +1 -115
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +1 -217
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -179
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +1 -154
- data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -246
- data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -117
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -158
- data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -135
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -386
- data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -56
- data/app/assets/stylesheets/twitter/bootstrap.css.scss +1 -49
- data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -67
- data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +1 -51
- data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -23
- data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +1 -227
- data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -155
- data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -232
- data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -34
- data/app/assets/stylesheets/twitter/bootstrap/_code.scss +1 -53
- data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -29
- data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -187
- data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +1 -373
- data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +1 -237
- data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +1 -78
- data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -136
- data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -46
- data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +1 -64
- data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +1 -88
- data/app/assets/stylesheets/twitter/bootstrap/_media.scss +1 -56
- data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +1 -847
- data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -129
- data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +1 -616
- data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +1 -242
- data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +1 -406
- data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -55
- data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -85
- data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +1 -182
- data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +1 -133
- data/app/assets/stylesheets/twitter/bootstrap/_print.scss +1 -105
- data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +1 -80
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +1 -198
- data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -119
- data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +1 -231
- data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +1 -247
- data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +1 -38
- data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +1 -95
- data/app/assets/stylesheets/twitter/bootstrap/_type.scss +1 -281
- data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +1 -56
- data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +1 -642
- data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +1 -29
- data/lib/bootstrap-sass-rails.rb +1 -1
- data/lib/bootstrap/sass/rails/engine.rb +3 -8
- data/lib/bootstrap/sass/rails/version.rb +2 -1
- data/lib/generators/bootstrap/templates/USAGE +1 -1
- metadata +37 -17
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +0 -229
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/lib/bootstrap/sass/extensions.rb +0 -5
- data/lib/bootstrap/sass/extensions/functions.rb +0 -15
@@ -1,38 +1 @@
|
|
1
|
-
|
2
|
-
// Thumbnails
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Mixin and adjust the regular image class
|
7
|
-
.thumbnail {
|
8
|
-
display: block;
|
9
|
-
padding: $thumbnail-padding;
|
10
|
-
margin-bottom: $line-height-computed;
|
11
|
-
line-height: $line-height-base;
|
12
|
-
background-color: $thumbnail-bg;
|
13
|
-
border: 1px solid $thumbnail-border;
|
14
|
-
border-radius: $thumbnail-border-radius;
|
15
|
-
@include transition(all .2s ease-in-out);
|
16
|
-
|
17
|
-
> img,
|
18
|
-
a > img {
|
19
|
-
@include img-responsive();
|
20
|
-
margin-left: auto;
|
21
|
-
margin-right: auto;
|
22
|
-
}
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
// Image captions
|
27
|
-
.caption {
|
28
|
-
padding: $thumbnail-caption-padding;
|
29
|
-
color: $thumbnail-caption-color;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
// Add a hover state for linked versions only
|
34
|
-
a.thumbnail:hover,
|
35
|
-
a.thumbnail:focus,
|
36
|
-
a.thumbnail.active {
|
37
|
-
border-color: $link-color;
|
38
|
-
}
|
1
|
+
@import "bootstrap/thumbnails";
|
@@ -1,95 +1 @@
|
|
1
|
-
|
2
|
-
// Tooltips
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Base class
|
7
|
-
.tooltip {
|
8
|
-
position: absolute;
|
9
|
-
z-index: $zindex-tooltip;
|
10
|
-
display: block;
|
11
|
-
visibility: visible;
|
12
|
-
font-size: $font-size-small;
|
13
|
-
line-height: 1.4;
|
14
|
-
@include opacity(0);
|
15
|
-
|
16
|
-
&.in { @include opacity(.9); }
|
17
|
-
&.top { margin-top: -3px; padding: $tooltip-arrow-width 0; }
|
18
|
-
&.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; }
|
19
|
-
&.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; }
|
20
|
-
&.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
|
21
|
-
}
|
22
|
-
|
23
|
-
// Wrapper for the tooltip content
|
24
|
-
.tooltip-inner {
|
25
|
-
max-width: $tooltip-max-width;
|
26
|
-
padding: 3px 8px;
|
27
|
-
color: $tooltip-color;
|
28
|
-
text-align: center;
|
29
|
-
text-decoration: none;
|
30
|
-
background-color: $tooltip-bg;
|
31
|
-
border-radius: $border-radius-base;
|
32
|
-
}
|
33
|
-
|
34
|
-
// Arrows
|
35
|
-
.tooltip-arrow {
|
36
|
-
position: absolute;
|
37
|
-
width: 0;
|
38
|
-
height: 0;
|
39
|
-
border-color: transparent;
|
40
|
-
border-style: solid;
|
41
|
-
}
|
42
|
-
.tooltip {
|
43
|
-
&.top .tooltip-arrow {
|
44
|
-
bottom: 0;
|
45
|
-
left: 50%;
|
46
|
-
margin-left: -$tooltip-arrow-width;
|
47
|
-
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
48
|
-
border-top-color: $tooltip-arrow-color;
|
49
|
-
}
|
50
|
-
&.top-left .tooltip-arrow {
|
51
|
-
bottom: 0;
|
52
|
-
left: $tooltip-arrow-width;
|
53
|
-
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
54
|
-
border-top-color: $tooltip-arrow-color;
|
55
|
-
}
|
56
|
-
&.top-right .tooltip-arrow {
|
57
|
-
bottom: 0;
|
58
|
-
right: $tooltip-arrow-width;
|
59
|
-
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
60
|
-
border-top-color: $tooltip-arrow-color;
|
61
|
-
}
|
62
|
-
&.right .tooltip-arrow {
|
63
|
-
top: 50%;
|
64
|
-
left: 0;
|
65
|
-
margin-top: -$tooltip-arrow-width;
|
66
|
-
border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
|
67
|
-
border-right-color: $tooltip-arrow-color;
|
68
|
-
}
|
69
|
-
&.left .tooltip-arrow {
|
70
|
-
top: 50%;
|
71
|
-
right: 0;
|
72
|
-
margin-top: -$tooltip-arrow-width;
|
73
|
-
border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
|
74
|
-
border-left-color: $tooltip-arrow-color;
|
75
|
-
}
|
76
|
-
&.bottom .tooltip-arrow {
|
77
|
-
top: 0;
|
78
|
-
left: 50%;
|
79
|
-
margin-left: -$tooltip-arrow-width;
|
80
|
-
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
81
|
-
border-bottom-color: $tooltip-arrow-color;
|
82
|
-
}
|
83
|
-
&.bottom-left .tooltip-arrow {
|
84
|
-
top: 0;
|
85
|
-
left: $tooltip-arrow-width;
|
86
|
-
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
87
|
-
border-bottom-color: $tooltip-arrow-color;
|
88
|
-
}
|
89
|
-
&.bottom-right .tooltip-arrow {
|
90
|
-
top: 0;
|
91
|
-
right: $tooltip-arrow-width;
|
92
|
-
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
93
|
-
border-bottom-color: $tooltip-arrow-color;
|
94
|
-
}
|
95
|
-
}
|
1
|
+
@import "bootstrap/tooltip";
|
@@ -1,281 +1 @@
|
|
1
|
-
|
2
|
-
// Typography
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Headings
|
7
|
-
// -------------------------
|
8
|
-
|
9
|
-
h1, h2, h3, h4, h5, h6,
|
10
|
-
.h1, .h2, .h3, .h4, .h5, .h6 {
|
11
|
-
font-family: $headings-font-family;
|
12
|
-
font-weight: $headings-font-weight;
|
13
|
-
line-height: $headings-line-height;
|
14
|
-
color: $headings-color;
|
15
|
-
|
16
|
-
small,
|
17
|
-
.small {
|
18
|
-
font-weight: normal;
|
19
|
-
line-height: 1;
|
20
|
-
color: $headings-small-color;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
h1,
|
25
|
-
h2,
|
26
|
-
h3 {
|
27
|
-
margin-top: $line-height-computed;
|
28
|
-
margin-bottom: ($line-height-computed / 2);
|
29
|
-
|
30
|
-
small,
|
31
|
-
.small {
|
32
|
-
font-size: 65%;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
h4,
|
36
|
-
h5,
|
37
|
-
h6 {
|
38
|
-
margin-top: ($line-height-computed / 2);
|
39
|
-
margin-bottom: ($line-height-computed / 2);
|
40
|
-
|
41
|
-
small,
|
42
|
-
.small {
|
43
|
-
font-size: 75%;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
h1, .h1 { font-size: $font-size-h1; }
|
48
|
-
h2, .h2 { font-size: $font-size-h2; }
|
49
|
-
h3, .h3 { font-size: $font-size-h3; }
|
50
|
-
h4, .h4 { font-size: $font-size-h4; }
|
51
|
-
h5, .h5 { font-size: $font-size-h5; }
|
52
|
-
h6, .h6 { font-size: $font-size-h6; }
|
53
|
-
|
54
|
-
|
55
|
-
// Body text
|
56
|
-
// -------------------------
|
57
|
-
|
58
|
-
p {
|
59
|
-
margin: 0 0 ($line-height-computed / 2);
|
60
|
-
}
|
61
|
-
|
62
|
-
.lead {
|
63
|
-
margin-bottom: $line-height-computed;
|
64
|
-
font-size: floor($font-size-base * 1.15);
|
65
|
-
font-weight: 200;
|
66
|
-
line-height: 1.4;
|
67
|
-
|
68
|
-
@media (min-width: $screen-sm-min) {
|
69
|
-
font-size: ($font-size-base * 1.5);
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
|
74
|
-
// Emphasis & misc
|
75
|
-
// -------------------------
|
76
|
-
|
77
|
-
// Ex: 14px base font * 85% = about 12px
|
78
|
-
small,
|
79
|
-
.small { font-size: 85%; }
|
80
|
-
|
81
|
-
// Undo browser default styling
|
82
|
-
cite { font-style: normal; }
|
83
|
-
|
84
|
-
// Contextual emphasis
|
85
|
-
.text-muted {
|
86
|
-
color: $text-muted;
|
87
|
-
}
|
88
|
-
.text-primary {
|
89
|
-
color: $brand-primary;
|
90
|
-
&:hover {
|
91
|
-
color: darken($brand-primary, 10%);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
.text-warning {
|
95
|
-
color: $state-warning-text;
|
96
|
-
&:hover {
|
97
|
-
color: darken($state-warning-text, 10%);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
.text-danger {
|
101
|
-
color: $state-danger-text;
|
102
|
-
&:hover {
|
103
|
-
color: darken($state-danger-text, 10%);
|
104
|
-
}
|
105
|
-
}
|
106
|
-
.text-success {
|
107
|
-
color: $state-success-text;
|
108
|
-
&:hover {
|
109
|
-
color: darken($state-success-text, 10%);
|
110
|
-
}
|
111
|
-
}
|
112
|
-
.text-info {
|
113
|
-
color: $state-info-text;
|
114
|
-
&:hover {
|
115
|
-
color: darken($state-info-text, 10%);
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
// Alignment
|
120
|
-
.text-left { text-align: left; }
|
121
|
-
.text-right { text-align: right; }
|
122
|
-
.text-center { text-align: center; }
|
123
|
-
|
124
|
-
|
125
|
-
// Page header
|
126
|
-
// -------------------------
|
127
|
-
|
128
|
-
.page-header {
|
129
|
-
padding-bottom: (($line-height-computed / 2) - 1);
|
130
|
-
margin: ($line-height-computed * 2) 0 $line-height-computed;
|
131
|
-
border-bottom: 1px solid $page-header-border-color;
|
132
|
-
}
|
133
|
-
|
134
|
-
|
135
|
-
// Lists
|
136
|
-
// --------------------------------------------------
|
137
|
-
|
138
|
-
// Unordered and Ordered lists
|
139
|
-
ul,
|
140
|
-
ol {
|
141
|
-
margin-top: 0;
|
142
|
-
margin-bottom: ($line-height-computed / 2);
|
143
|
-
ul,
|
144
|
-
ol {
|
145
|
-
margin-bottom: 0;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
|
149
|
-
// List options
|
150
|
-
|
151
|
-
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
152
|
-
.list-unstyled {
|
153
|
-
padding-left: 0;
|
154
|
-
list-style: none;
|
155
|
-
}
|
156
|
-
|
157
|
-
// Inline turns list items into inline-block
|
158
|
-
.list-inline {
|
159
|
-
@extend .list-unstyled;
|
160
|
-
|
161
|
-
> li {
|
162
|
-
display: inline-block;
|
163
|
-
padding-left: 5px;
|
164
|
-
padding-right: 5px;
|
165
|
-
|
166
|
-
&:first-child {
|
167
|
-
padding-left: 0;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
}
|
171
|
-
|
172
|
-
// Description Lists
|
173
|
-
dl {
|
174
|
-
margin-top: 0; // Remove browser default
|
175
|
-
margin-bottom: $line-height-computed;
|
176
|
-
}
|
177
|
-
dt,
|
178
|
-
dd {
|
179
|
-
line-height: $line-height-base;
|
180
|
-
}
|
181
|
-
dt {
|
182
|
-
font-weight: bold;
|
183
|
-
}
|
184
|
-
dd {
|
185
|
-
margin-left: 0; // Undo browser default
|
186
|
-
}
|
187
|
-
|
188
|
-
// Horizontal description lists
|
189
|
-
//
|
190
|
-
// Defaults to being stacked without any of the below styles applied, until the
|
191
|
-
// grid breakpoint is reached (default of ~768px).
|
192
|
-
|
193
|
-
@media (min-width: $grid-float-breakpoint) {
|
194
|
-
.dl-horizontal {
|
195
|
-
dt {
|
196
|
-
float: left;
|
197
|
-
width: ($component-offset-horizontal - 20);
|
198
|
-
clear: left;
|
199
|
-
text-align: right;
|
200
|
-
@include text-overflow();
|
201
|
-
}
|
202
|
-
dd {
|
203
|
-
margin-left: $component-offset-horizontal;
|
204
|
-
@include clearfix(); // Clear the floated `dt` if an empty `dd` is present
|
205
|
-
}
|
206
|
-
}
|
207
|
-
}
|
208
|
-
|
209
|
-
// MISC
|
210
|
-
// ----
|
211
|
-
|
212
|
-
// Abbreviations and acronyms
|
213
|
-
abbr[title],
|
214
|
-
// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
|
215
|
-
abbr[data-original-title] {
|
216
|
-
cursor: help;
|
217
|
-
border-bottom: 1px dotted $abbr-border-color;
|
218
|
-
}
|
219
|
-
.initialism {
|
220
|
-
font-size: 90%;
|
221
|
-
text-transform: uppercase;
|
222
|
-
}
|
223
|
-
|
224
|
-
// Blockquotes
|
225
|
-
blockquote {
|
226
|
-
padding: ($line-height-computed / 2) $line-height-computed;
|
227
|
-
margin: 0 0 $line-height-computed;
|
228
|
-
border-left: 5px solid $blockquote-border-color;
|
229
|
-
p {
|
230
|
-
font-size: ($font-size-base * 1.25);
|
231
|
-
font-weight: 300;
|
232
|
-
line-height: 1.25;
|
233
|
-
}
|
234
|
-
p:last-child {
|
235
|
-
margin-bottom: 0;
|
236
|
-
}
|
237
|
-
small,
|
238
|
-
.small {
|
239
|
-
display: block;
|
240
|
-
line-height: $line-height-base;
|
241
|
-
color: $blockquote-small-color;
|
242
|
-
&:before {
|
243
|
-
content: '\2014 \00A0'; // EM DASH, NBSP
|
244
|
-
}
|
245
|
-
}
|
246
|
-
|
247
|
-
// Float right with text-align: right
|
248
|
-
&.pull-right {
|
249
|
-
padding-right: 15px;
|
250
|
-
padding-left: 0;
|
251
|
-
border-right: 5px solid $blockquote-border-color;
|
252
|
-
border-left: 0;
|
253
|
-
p,
|
254
|
-
small,
|
255
|
-
.small {
|
256
|
-
text-align: right;
|
257
|
-
}
|
258
|
-
small,
|
259
|
-
.small {
|
260
|
-
&:before {
|
261
|
-
content: '';
|
262
|
-
}
|
263
|
-
&:after {
|
264
|
-
content: '\00A0 \2014'; // NBSP, EM DASH
|
265
|
-
}
|
266
|
-
}
|
267
|
-
}
|
268
|
-
}
|
269
|
-
|
270
|
-
// Quotes
|
271
|
-
blockquote:before,
|
272
|
-
blockquote:after {
|
273
|
-
content: "";
|
274
|
-
}
|
275
|
-
|
276
|
-
// Addresses
|
277
|
-
address {
|
278
|
-
margin-bottom: $line-height-computed;
|
279
|
-
font-style: normal;
|
280
|
-
line-height: $line-height-base;
|
281
|
-
}
|
1
|
+
@import "bootstrap/type";
|
@@ -1,56 +1 @@
|
|
1
|
-
|
2
|
-
// Utility classes
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Floats
|
7
|
-
// -------------------------
|
8
|
-
|
9
|
-
.clearfix {
|
10
|
-
@include clearfix();
|
11
|
-
}
|
12
|
-
.center-block {
|
13
|
-
@include center-block();
|
14
|
-
}
|
15
|
-
.pull-right {
|
16
|
-
float: right !important;
|
17
|
-
}
|
18
|
-
.pull-left {
|
19
|
-
float: left !important;
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
// Toggling content
|
24
|
-
// -------------------------
|
25
|
-
|
26
|
-
// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
|
27
|
-
.hide {
|
28
|
-
display: none !important;
|
29
|
-
}
|
30
|
-
.show {
|
31
|
-
display: block !important;
|
32
|
-
}
|
33
|
-
.invisible {
|
34
|
-
visibility: hidden;
|
35
|
-
}
|
36
|
-
.text-hide {
|
37
|
-
@include text-hide();
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
// Hide from screenreaders and browsers
|
42
|
-
//
|
43
|
-
// Credit: HTML5 Boilerplate
|
44
|
-
|
45
|
-
.hidden {
|
46
|
-
display: none !important;
|
47
|
-
visibility: hidden !important;
|
48
|
-
}
|
49
|
-
|
50
|
-
|
51
|
-
// For Affix plugin
|
52
|
-
// -------------------------
|
53
|
-
|
54
|
-
.affix {
|
55
|
-
position: fixed;
|
56
|
-
}
|
1
|
+
@import "bootstrap/utilities";
|