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.
Files changed (66) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +24 -133
  3. data/app/assets/javascripts/twitter/bootstrap.js +1 -12
  4. data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -126
  5. data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -98
  6. data/app/assets/javascripts/twitter/bootstrap/button.js +1 -115
  7. data/app/assets/javascripts/twitter/bootstrap/carousel.js +1 -217
  8. data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -179
  9. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +1 -154
  10. data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -246
  11. data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -117
  12. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +1 -158
  13. data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -135
  14. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -386
  15. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -56
  16. data/app/assets/stylesheets/twitter/bootstrap.css.scss +1 -49
  17. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -67
  18. data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +1 -51
  19. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -23
  20. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +1 -227
  21. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -155
  22. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -232
  23. data/app/assets/stylesheets/twitter/bootstrap/_close.scss +1 -34
  24. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +1 -53
  25. data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -29
  26. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -187
  27. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +1 -373
  28. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +1 -237
  29. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +1 -78
  30. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -136
  31. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -46
  32. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +1 -64
  33. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +1 -88
  34. data/app/assets/stylesheets/twitter/bootstrap/_media.scss +1 -56
  35. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +1 -847
  36. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -129
  37. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +1 -616
  38. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +1 -242
  39. data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +1 -406
  40. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +1 -55
  41. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +1 -85
  42. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +1 -182
  43. data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +1 -133
  44. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +1 -105
  45. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +1 -80
  46. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +1 -198
  47. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -119
  48. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +1 -231
  49. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +1 -247
  50. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +1 -38
  51. data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +1 -95
  52. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +1 -281
  53. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +1 -56
  54. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +1 -642
  55. data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +1 -29
  56. data/lib/bootstrap-sass-rails.rb +1 -1
  57. data/lib/bootstrap/sass/rails/engine.rb +3 -8
  58. data/lib/bootstrap/sass/rails/version.rb +2 -1
  59. data/lib/generators/bootstrap/templates/USAGE +1 -1
  60. metadata +37 -17
  61. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  62. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +0 -229
  63. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  64. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  65. data/lib/bootstrap/sass/extensions.rb +0 -5
  66. data/lib/bootstrap/sass/extensions/functions.rb +0 -15
@@ -1,155 +1 @@
1
- //
2
- // Buttons
3
- // --------------------------------------------------
4
-
5
-
6
- // Base styles
7
- // --------------------------------------------------
8
-
9
- .btn {
10
- display: inline-block;
11
- margin-bottom: 0; // For input.btn
12
- font-weight: $btn-font-weight;
13
- text-align: center;
14
- vertical-align: middle;
15
- cursor: pointer;
16
- background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
17
- border: 1px solid transparent;
18
- white-space: nowrap;
19
- @include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $border-radius-base);
20
- @include user-select(none);
21
-
22
- &:focus {
23
- @include tab-focus();
24
- }
25
-
26
- &:hover,
27
- &:focus {
28
- color: $btn-default-color;
29
- text-decoration: none;
30
- }
31
-
32
- &:active,
33
- &.active {
34
- outline: 0;
35
- background-image: none;
36
- @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
37
- }
38
-
39
- &.disabled,
40
- &[disabled],
41
- fieldset[disabled] & {
42
- cursor: not-allowed;
43
- pointer-events: none; // Future-proof disabling of clicks
44
- @include opacity(.65);
45
- @include box-shadow(none);
46
- }
47
- }
48
-
49
-
50
- // Alternate buttons
51
- // --------------------------------------------------
52
-
53
- .btn-default {
54
- @include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
55
- }
56
- .btn-primary {
57
- @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
58
- }
59
- // Warning appears as orange
60
- .btn-warning {
61
- @include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
62
- }
63
- // Danger and error appear as red
64
- .btn-danger {
65
- @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
66
- }
67
- // Success appears as green
68
- .btn-success {
69
- @include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
70
- }
71
- // Info appears as blue-green
72
- .btn-info {
73
- @include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
74
- }
75
-
76
-
77
- // Link buttons
78
- // -------------------------
79
-
80
- // Make a button look and behave like a link
81
- .btn-link {
82
- color: $link-color;
83
- font-weight: normal;
84
- cursor: pointer;
85
- border-radius: 0;
86
-
87
- &,
88
- &:active,
89
- &[disabled],
90
- fieldset[disabled] & {
91
- background-color: transparent;
92
- @include box-shadow(none);
93
- }
94
- &,
95
- &:hover,
96
- &:focus,
97
- &:active {
98
- border-color: transparent;
99
- }
100
- &:hover,
101
- &:focus {
102
- color: $link-hover-color;
103
- text-decoration: underline;
104
- background-color: transparent;
105
- }
106
- &[disabled],
107
- fieldset[disabled] & {
108
- &:hover,
109
- &:focus {
110
- color: $btn-link-disabled-color;
111
- text-decoration: none;
112
- }
113
- }
114
- }
115
-
116
-
117
- // Button Sizes
118
- // --------------------------------------------------
119
-
120
- .btn-lg {
121
- // line-height: ensure even-numbered height of button next to large input
122
- @include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
123
- }
124
- .btn-sm {
125
- // line-height: ensure proper height of button next to small input
126
- @include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
127
- }
128
- .btn-xs {
129
- @include button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $border-radius-small);
130
- }
131
-
132
-
133
- // Block button
134
- // --------------------------------------------------
135
-
136
- .btn-block {
137
- display: block;
138
- width: 100%;
139
- padding-left: 0;
140
- padding-right: 0;
141
- }
142
-
143
- // Vertically space out multiple block buttons
144
- .btn-block + .btn-block {
145
- margin-top: 5px;
146
- }
147
-
148
- // Specificity overrides
149
- input[type="submit"],
150
- input[type="reset"],
151
- input[type="button"] {
152
- &.btn-block {
153
- width: 100%;
154
- }
155
- }
1
+ @import "bootstrap/buttons";
@@ -1,232 +1 @@
1
- //
2
- // Carousel
3
- // --------------------------------------------------
4
-
5
-
6
- // Wrapper for the slide container and indicators
7
- .carousel {
8
- position: relative;
9
- }
10
-
11
- .carousel-inner {
12
- position: relative;
13
- overflow: hidden;
14
- width: 100%;
15
-
16
- > .item {
17
- display: none;
18
- position: relative;
19
- @include transition(.6s ease-in-out left);
20
-
21
- // Account for jankitude on images
22
- > img,
23
- > a > img {
24
- @include img-responsive();
25
- line-height: 1;
26
- }
27
- }
28
-
29
- > .active,
30
- > .next,
31
- > .prev { display: block; }
32
-
33
- > .active {
34
- left: 0;
35
- }
36
-
37
- > .next,
38
- > .prev {
39
- position: absolute;
40
- top: 0;
41
- width: 100%;
42
- }
43
-
44
- > .next {
45
- left: 100%;
46
- }
47
- > .prev {
48
- left: -100%;
49
- }
50
- > .next.left,
51
- > .prev.right {
52
- left: 0;
53
- }
54
-
55
- > .active.left {
56
- left: -100%;
57
- }
58
- > .active.right {
59
- left: 100%;
60
- }
61
-
62
- }
63
-
64
- // Left/right controls for nav
65
- // ---------------------------
66
-
67
- .carousel-control {
68
- position: absolute;
69
- top: 0;
70
- left: 0;
71
- bottom: 0;
72
- width: $carousel-control-width;
73
- @include opacity($carousel-control-opacity);
74
- font-size: $carousel-control-font-size;
75
- color: $carousel-control-color;
76
- text-align: center;
77
- text-shadow: $carousel-text-shadow;
78
- // We can't have this transition here because WebKit cancels the carousel
79
- // animation if you trip this while in the middle of another animation.
80
-
81
- // Set gradients for backgrounds
82
- &.left {
83
- @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
84
- }
85
- &.right {
86
- left: auto;
87
- right: 0;
88
- @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
89
- }
90
-
91
- // Hover/focus state
92
- &:hover,
93
- &:focus {
94
- outline: none;
95
- color: $carousel-control-color;
96
- text-decoration: none;
97
- @include opacity(.9);
98
- }
99
-
100
- // Toggles
101
- .icon-prev,
102
- .icon-next,
103
- .glyphicon-chevron-left,
104
- .glyphicon-chevron-right {
105
- position: absolute;
106
- top: 50%;
107
- z-index: 5;
108
- display: inline-block;
109
- }
110
- .icon-prev,
111
- .glyphicon-chevron-left {
112
- left: 50%;
113
- }
114
- .icon-next,
115
- .glyphicon-chevron-right {
116
- right: 50%;
117
- }
118
- .icon-prev,
119
- .icon-next {
120
- width: 20px;
121
- height: 20px;
122
- margin-top: -10px;
123
- margin-left: -10px;
124
- font-family: serif;
125
- }
126
-
127
- .icon-prev {
128
- &:before {
129
- content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
130
- }
131
- }
132
- .icon-next {
133
- &:before {
134
- content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
135
- }
136
- }
137
- }
138
-
139
- // Optional indicator pips
140
- //
141
- // Add an unordered list with the following class and add a list item for each
142
- // slide your carousel holds.
143
-
144
- .carousel-indicators {
145
- position: absolute;
146
- bottom: 10px;
147
- left: 50%;
148
- z-index: 15;
149
- width: 60%;
150
- margin-left: -30%;
151
- padding-left: 0;
152
- list-style: none;
153
- text-align: center;
154
-
155
- li {
156
- display: inline-block;
157
- width: 10px;
158
- height: 10px;
159
- margin: 1px;
160
- text-indent: -999px;
161
- border: 1px solid $carousel-indicator-border-color;
162
- border-radius: 10px;
163
- cursor: pointer;
164
-
165
- // IE8-9 hack for event handling
166
- //
167
- // Internet Explorer 8-9 does not support clicks on elements without a set
168
- // `background-color`. We cannot use `filter` since that's not viewed as a
169
- // background color by the browser. Thus, a hack is needed.
170
- //
171
- // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
172
- // set alpha transparency for the best results possible.
173
- background-color: #000 \9; // IE8
174
- background-color: rgba(0,0,0,0); // IE9
175
- }
176
- .active {
177
- margin: 0;
178
- width: 12px;
179
- height: 12px;
180
- background-color: $carousel-indicator-active-bg;
181
- }
182
- }
183
-
184
- // Optional captions
185
- // -----------------------------
186
- // Hidden by default for smaller viewports
187
- .carousel-caption {
188
- position: absolute;
189
- left: 15%;
190
- right: 15%;
191
- bottom: 20px;
192
- z-index: 10;
193
- padding-top: 20px;
194
- padding-bottom: 20px;
195
- color: $carousel-caption-color;
196
- text-align: center;
197
- text-shadow: $carousel-text-shadow;
198
- & .btn {
199
- text-shadow: none; // No shadow for button elements in carousel-caption
200
- }
201
- }
202
-
203
-
204
- // Scale up controls for tablets and up
205
- @media screen and (min-width: $screen-sm-min) {
206
-
207
- // Scale up the controls a smidge
208
- .carousel-control {
209
- .glyphicons-chevron-left,
210
- .glyphicons-chevron-right,
211
- .icon-prev,
212
- .icon-next {
213
- width: 30px;
214
- height: 30px;
215
- margin-top: -15px;
216
- margin-left: -15px;
217
- font-size: 30px;
218
- }
219
- }
220
-
221
- // Show and left align the captions
222
- .carousel-caption {
223
- left: 20%;
224
- right: 20%;
225
- padding-bottom: 30px;
226
- }
227
-
228
- // Move up the indicators
229
- .carousel-indicators {
230
- bottom: 20px;
231
- }
232
- }
1
+ @import "bootstrap/carousel";
@@ -1,34 +1 @@
1
- //
2
- // Close icons
3
- // --------------------------------------------------
4
-
5
-
6
- .close {
7
- float: right;
8
- font-size: ($font-size-base * 1.5);
9
- font-weight: $close-font-weight;
10
- line-height: 1;
11
- color: $close-color;
12
- text-shadow: $close-text-shadow;
13
- @include opacity(.2);
14
-
15
- &:hover,
16
- &:focus {
17
- color: $close-color;
18
- text-decoration: none;
19
- cursor: pointer;
20
- @include opacity(.5);
21
- }
22
- }
23
-
24
-
25
- // Additional properties for button version
26
- // iOS requires the button element instead of an anchor tag.
27
- // If you want the anchor version, it requires `href="#"`.
28
- button.close {
29
- padding: 0;
30
- cursor: pointer;
31
- background: transparent;
32
- border: 0;
33
- -webkit-appearance: none;
34
- }
1
+ @import "bootstrap/close";
@@ -1,53 +1 @@
1
- //
2
- // Code (inline and block)
3
- // --------------------------------------------------
4
-
5
-
6
- // Inline and block code styles
7
- code,
8
- kbd,
9
- pre,
10
- samp {
11
- font-family: $font-family-monospace;
12
- }
13
-
14
- // Inline code
15
- code {
16
- padding: 2px 4px;
17
- font-size: 90%;
18
- color: $code-color;
19
- background-color: $code-bg;
20
- white-space: nowrap;
21
- border-radius: $border-radius-base;
22
- }
23
-
24
- // Blocks of code
25
- pre {
26
- display: block;
27
- padding: (($line-height-computed - 1) / 2);
28
- margin: 0 0 ($line-height-computed / 2);
29
- font-size: ($font-size-base - 1); // 14px to 13px
30
- line-height: $line-height-base;
31
- word-break: break-all;
32
- word-wrap: break-word;
33
- color: $pre-color;
34
- background-color: $pre-bg;
35
- border: 1px solid $pre-border-color;
36
- border-radius: $border-radius-base;
37
-
38
- // Account for some code outputs that place code tags in pre tags
39
- code {
40
- padding: 0;
41
- font-size: inherit;
42
- color: inherit;
43
- white-space: pre-wrap;
44
- background-color: transparent;
45
- border-radius: 0;
46
- }
47
- }
48
-
49
- // Enable scrollable blocks of code
50
- .pre-scrollable {
51
- max-height: $pre-scrollable-max-height;
52
- overflow-y: scroll;
53
- }
1
+ @import "bootstrap/code";