less-rails-bootstrap 3.1.1.1 → 3.2.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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.travis.yml +5 -4
  4. data/Appraisals +10 -4
  5. data/Gemfile +0 -2
  6. data/ISSUES.md +6 -0
  7. data/README.md +6 -6
  8. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
  9. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +229 -0
  10. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  11. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
  12. data/app/assets/javascripts/twitter/bootstrap.js +12 -0
  13. data/app/assets/javascripts/twitter/bootstrap/affix.js +142 -0
  14. data/app/assets/javascripts/twitter/bootstrap/alert.js +92 -0
  15. data/app/assets/javascripts/twitter/bootstrap/button.js +110 -0
  16. data/app/assets/javascripts/twitter/bootstrap/carousel.js +223 -0
  17. data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
  18. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +151 -0
  19. data/app/assets/javascripts/twitter/bootstrap/modal.js +280 -0
  20. data/app/assets/javascripts/twitter/bootstrap/popover.js +113 -0
  21. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +170 -0
  22. data/app/assets/javascripts/twitter/bootstrap/tab.js +128 -0
  23. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +457 -0
  24. data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
  25. data/app/assets/stylesheets/twitter/bootstrap.less +1 -0
  26. data/app/frameworks/twitter/bootstrap/alerts.less +68 -0
  27. data/app/frameworks/twitter/bootstrap/badges.less +55 -0
  28. data/app/frameworks/twitter/bootstrap/bootstrap.less +50 -0
  29. data/app/frameworks/twitter/bootstrap/breadcrumbs.less +26 -0
  30. data/app/frameworks/twitter/bootstrap/button-groups.less +240 -0
  31. data/app/frameworks/twitter/bootstrap/buttons.less +157 -0
  32. data/app/frameworks/twitter/bootstrap/carousel.less +243 -0
  33. data/app/frameworks/twitter/bootstrap/close.less +33 -0
  34. data/app/frameworks/twitter/bootstrap/code.less +68 -0
  35. data/app/frameworks/twitter/bootstrap/component-animations.less +31 -0
  36. data/app/frameworks/twitter/bootstrap/dropdowns.less +215 -0
  37. data/app/frameworks/twitter/bootstrap/forms.less +540 -0
  38. data/app/frameworks/twitter/bootstrap/glyphicons.less +233 -0
  39. data/app/frameworks/twitter/bootstrap/grid.less +84 -0
  40. data/app/frameworks/twitter/bootstrap/input-groups.less +166 -0
  41. data/app/frameworks/twitter/bootstrap/jumbotron.less +48 -0
  42. data/app/frameworks/twitter/bootstrap/labels.less +64 -0
  43. data/app/frameworks/twitter/bootstrap/list-group.less +131 -0
  44. data/app/frameworks/twitter/bootstrap/media.less +56 -0
  45. data/app/frameworks/twitter/bootstrap/mixins.less +39 -0
  46. data/app/frameworks/twitter/bootstrap/mixins/alerts.less +14 -0
  47. data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +8 -0
  48. data/app/frameworks/twitter/bootstrap/mixins/border-radius.less +18 -0
  49. data/app/frameworks/twitter/bootstrap/mixins/buttons.less +50 -0
  50. data/app/frameworks/twitter/bootstrap/mixins/center-block.less +7 -0
  51. data/app/frameworks/twitter/bootstrap/mixins/clearfix.less +22 -0
  52. data/app/frameworks/twitter/bootstrap/mixins/forms.less +81 -0
  53. data/app/frameworks/twitter/bootstrap/mixins/gradients.less +59 -0
  54. data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +91 -0
  55. data/app/frameworks/twitter/bootstrap/mixins/grid.less +122 -0
  56. data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +21 -0
  57. data/app/frameworks/twitter/bootstrap/mixins/image.less +34 -0
  58. data/app/frameworks/twitter/bootstrap/mixins/labels.less +12 -0
  59. data/app/frameworks/twitter/bootstrap/mixins/list-group.less +29 -0
  60. data/app/frameworks/twitter/bootstrap/mixins/nav-divider.less +10 -0
  61. data/app/frameworks/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
  62. data/app/frameworks/twitter/bootstrap/mixins/opacity.less +8 -0
  63. data/app/frameworks/twitter/bootstrap/mixins/pagination.less +23 -0
  64. data/app/frameworks/twitter/bootstrap/mixins/panels.less +24 -0
  65. data/app/frameworks/twitter/bootstrap/mixins/progress-bar.less +10 -0
  66. data/app/frameworks/twitter/bootstrap/mixins/reset-filter.less +8 -0
  67. data/app/frameworks/twitter/bootstrap/mixins/resize.less +6 -0
  68. data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
  69. data/app/frameworks/twitter/bootstrap/mixins/size.less +10 -0
  70. data/app/frameworks/twitter/bootstrap/mixins/tab-focus.less +9 -0
  71. data/app/frameworks/twitter/bootstrap/mixins/table-row.less +28 -0
  72. data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +8 -0
  73. data/app/frameworks/twitter/bootstrap/mixins/text-overflow.less +8 -0
  74. data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
  75. data/app/frameworks/twitter/bootstrap/modals.less +150 -0
  76. data/app/frameworks/twitter/bootstrap/navbar.less +655 -0
  77. data/app/frameworks/twitter/bootstrap/navs.less +242 -0
  78. data/app/frameworks/twitter/bootstrap/normalize.less +425 -0
  79. data/app/frameworks/twitter/bootstrap/pager.less +55 -0
  80. data/app/frameworks/twitter/bootstrap/pagination.less +88 -0
  81. data/app/frameworks/twitter/bootstrap/panels.less +243 -0
  82. data/app/frameworks/twitter/bootstrap/popovers.less +133 -0
  83. data/app/frameworks/twitter/bootstrap/print.less +101 -0
  84. data/app/frameworks/twitter/bootstrap/progress-bars.less +105 -0
  85. data/app/frameworks/twitter/bootstrap/responsive-embed.less +34 -0
  86. data/app/frameworks/twitter/bootstrap/responsive-utilities.less +194 -0
  87. data/app/frameworks/twitter/bootstrap/scaffolding.less +150 -0
  88. data/app/frameworks/twitter/bootstrap/tables.less +233 -0
  89. data/app/frameworks/twitter/bootstrap/theme.less +258 -0
  90. data/app/frameworks/twitter/bootstrap/thumbnails.less +36 -0
  91. data/app/frameworks/twitter/bootstrap/tooltip.less +95 -0
  92. data/app/frameworks/twitter/bootstrap/type.less +313 -0
  93. data/app/frameworks/twitter/bootstrap/utilities.less +57 -0
  94. data/app/frameworks/twitter/bootstrap/variables.less +846 -0
  95. data/app/frameworks/twitter/bootstrap/wells.less +29 -0
  96. data/less-rails-bootstrap.gemspec +4 -2
  97. data/lib/less/rails/bootstrap/version.rb +1 -1
  98. data/scripts/update_bootstrap.sh +5 -4
  99. data/test/cases/generators/custom_bootstrap_generator_test.rb +1 -1
  100. metadata +51 -7
@@ -0,0 +1,157 @@
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
+ .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
20
+ .user-select(none);
21
+
22
+ &,
23
+ &:active,
24
+ &.active {
25
+ &:focus {
26
+ .tab-focus();
27
+ }
28
+ }
29
+
30
+ &:hover,
31
+ &:focus {
32
+ color: @btn-default-color;
33
+ text-decoration: none;
34
+ }
35
+
36
+ &:active,
37
+ &.active {
38
+ outline: 0;
39
+ background-image: none;
40
+ .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
41
+ }
42
+
43
+ &.disabled,
44
+ &[disabled],
45
+ fieldset[disabled] & {
46
+ cursor: not-allowed;
47
+ pointer-events: none; // Future-proof disabling of clicks
48
+ .opacity(.65);
49
+ .box-shadow(none);
50
+ }
51
+ }
52
+
53
+
54
+ // Alternate buttons
55
+ // --------------------------------------------------
56
+
57
+ .btn-default {
58
+ .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
59
+ }
60
+ .btn-primary {
61
+ .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
62
+ }
63
+ // Success appears as green
64
+ .btn-success {
65
+ .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
66
+ }
67
+ // Info appears as blue-green
68
+ .btn-info {
69
+ .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
70
+ }
71
+ // Warning appears as orange
72
+ .btn-warning {
73
+ .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
74
+ }
75
+ // Danger and error appear as red
76
+ .btn-danger {
77
+ .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
78
+ }
79
+
80
+
81
+ // Link buttons
82
+ // -------------------------
83
+
84
+ // Make a button look and behave like a link
85
+ .btn-link {
86
+ color: @link-color;
87
+ font-weight: normal;
88
+ cursor: pointer;
89
+ border-radius: 0;
90
+
91
+ &,
92
+ &:active,
93
+ &[disabled],
94
+ fieldset[disabled] & {
95
+ background-color: transparent;
96
+ .box-shadow(none);
97
+ }
98
+ &,
99
+ &:hover,
100
+ &:focus,
101
+ &:active {
102
+ border-color: transparent;
103
+ }
104
+ &:hover,
105
+ &:focus {
106
+ color: @link-hover-color;
107
+ text-decoration: underline;
108
+ background-color: transparent;
109
+ }
110
+ &[disabled],
111
+ fieldset[disabled] & {
112
+ &:hover,
113
+ &:focus {
114
+ color: @btn-link-disabled-color;
115
+ text-decoration: none;
116
+ }
117
+ }
118
+ }
119
+
120
+
121
+ // Button Sizes
122
+ // --------------------------------------------------
123
+
124
+ .btn-lg {
125
+ // line-height: ensure even-numbered height of button next to large input
126
+ .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
127
+ }
128
+ .btn-sm {
129
+ // line-height: ensure proper height of button next to small input
130
+ .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
131
+ }
132
+ .btn-xs {
133
+ .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
134
+ }
135
+
136
+
137
+ // Block button
138
+ // --------------------------------------------------
139
+
140
+ .btn-block {
141
+ display: block;
142
+ width: 100%;
143
+ }
144
+
145
+ // Vertically space out multiple block buttons
146
+ .btn-block + .btn-block {
147
+ margin-top: 5px;
148
+ }
149
+
150
+ // Specificity overrides
151
+ input[type="submit"],
152
+ input[type="reset"],
153
+ input[type="button"] {
154
+ &.btn-block {
155
+ width: 100%;
156
+ }
157
+ }
@@ -0,0 +1,243 @@
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
+ .transition(.6s ease-in-out left);
20
+
21
+ // Account for jankitude on images
22
+ > img,
23
+ > a > img {
24
+ &:extend(.img-responsive);
25
+ line-height: 1;
26
+ }
27
+ }
28
+
29
+ > .active,
30
+ > .next,
31
+ > .prev {
32
+ display: block;
33
+ }
34
+
35
+ > .active {
36
+ left: 0;
37
+ }
38
+
39
+ > .next,
40
+ > .prev {
41
+ position: absolute;
42
+ top: 0;
43
+ width: 100%;
44
+ }
45
+
46
+ > .next {
47
+ left: 100%;
48
+ }
49
+ > .prev {
50
+ left: -100%;
51
+ }
52
+ > .next.left,
53
+ > .prev.right {
54
+ left: 0;
55
+ }
56
+
57
+ > .active.left {
58
+ left: -100%;
59
+ }
60
+ > .active.right {
61
+ left: 100%;
62
+ }
63
+
64
+ }
65
+
66
+ // Left/right controls for nav
67
+ // ---------------------------
68
+
69
+ .carousel-control {
70
+ position: absolute;
71
+ top: 0;
72
+ left: 0;
73
+ bottom: 0;
74
+ width: @carousel-control-width;
75
+ .opacity(@carousel-control-opacity);
76
+ font-size: @carousel-control-font-size;
77
+ color: @carousel-control-color;
78
+ text-align: center;
79
+ text-shadow: @carousel-text-shadow;
80
+ // We can't have this transition here because WebKit cancels the carousel
81
+ // animation if you trip this while in the middle of another animation.
82
+
83
+ // Set gradients for backgrounds
84
+ &.left {
85
+ #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
86
+ }
87
+ &.right {
88
+ left: auto;
89
+ right: 0;
90
+ #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
91
+ }
92
+
93
+ // Hover/focus state
94
+ &:hover,
95
+ &:focus {
96
+ outline: 0;
97
+ color: @carousel-control-color;
98
+ text-decoration: none;
99
+ .opacity(.9);
100
+ }
101
+
102
+ // Toggles
103
+ .icon-prev,
104
+ .icon-next,
105
+ .glyphicon-chevron-left,
106
+ .glyphicon-chevron-right {
107
+ position: absolute;
108
+ top: 50%;
109
+ z-index: 5;
110
+ display: inline-block;
111
+ }
112
+ .icon-prev,
113
+ .glyphicon-chevron-left {
114
+ left: 50%;
115
+ margin-left: -10px;
116
+ }
117
+ .icon-next,
118
+ .glyphicon-chevron-right {
119
+ right: 50%;
120
+ margin-right: -10px;
121
+ }
122
+ .icon-prev,
123
+ .icon-next {
124
+ width: 20px;
125
+ height: 20px;
126
+ margin-top: -10px;
127
+ font-family: serif;
128
+ }
129
+
130
+
131
+ .icon-prev {
132
+ &:before {
133
+ content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
134
+ }
135
+ }
136
+ .icon-next {
137
+ &:before {
138
+ content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
139
+ }
140
+ }
141
+ }
142
+
143
+ // Optional indicator pips
144
+ //
145
+ // Add an unordered list with the following class and add a list item for each
146
+ // slide your carousel holds.
147
+
148
+ .carousel-indicators {
149
+ position: absolute;
150
+ bottom: 10px;
151
+ left: 50%;
152
+ z-index: 15;
153
+ width: 60%;
154
+ margin-left: -30%;
155
+ padding-left: 0;
156
+ list-style: none;
157
+ text-align: center;
158
+
159
+ li {
160
+ display: inline-block;
161
+ width: 10px;
162
+ height: 10px;
163
+ margin: 1px;
164
+ text-indent: -999px;
165
+ border: 1px solid @carousel-indicator-border-color;
166
+ border-radius: 10px;
167
+ cursor: pointer;
168
+
169
+ // IE8-9 hack for event handling
170
+ //
171
+ // Internet Explorer 8-9 does not support clicks on elements without a set
172
+ // `background-color`. We cannot use `filter` since that's not viewed as a
173
+ // background color by the browser. Thus, a hack is needed.
174
+ //
175
+ // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
176
+ // set alpha transparency for the best results possible.
177
+ background-color: #000 \9; // IE8
178
+ background-color: rgba(0,0,0,0); // IE9
179
+ }
180
+ .active {
181
+ margin: 0;
182
+ width: 12px;
183
+ height: 12px;
184
+ background-color: @carousel-indicator-active-bg;
185
+ }
186
+ }
187
+
188
+ // Optional captions
189
+ // -----------------------------
190
+ // Hidden by default for smaller viewports
191
+ .carousel-caption {
192
+ position: absolute;
193
+ left: 15%;
194
+ right: 15%;
195
+ bottom: 20px;
196
+ z-index: 10;
197
+ padding-top: 20px;
198
+ padding-bottom: 20px;
199
+ color: @carousel-caption-color;
200
+ text-align: center;
201
+ text-shadow: @carousel-text-shadow;
202
+ & .btn {
203
+ text-shadow: none; // No shadow for button elements in carousel-caption
204
+ }
205
+ }
206
+
207
+
208
+ // Scale up controls for tablets and up
209
+ @media screen and (min-width: @screen-sm-min) {
210
+
211
+ // Scale up the controls a smidge
212
+ .carousel-control {
213
+ .glyphicon-chevron-left,
214
+ .glyphicon-chevron-right,
215
+ .icon-prev,
216
+ .icon-next {
217
+ width: 30px;
218
+ height: 30px;
219
+ margin-top: -15px;
220
+ font-size: 30px;
221
+ }
222
+ .glyphicon-chevron-left,
223
+ .icon-prev {
224
+ margin-left: -15px;
225
+ }
226
+ .glyphicon-chevron-right,
227
+ .icon-next {
228
+ margin-right: -15px;
229
+ }
230
+ }
231
+
232
+ // Show and left align the captions
233
+ .carousel-caption {
234
+ left: 20%;
235
+ right: 20%;
236
+ padding-bottom: 30px;
237
+ }
238
+
239
+ // Move up the indicators
240
+ .carousel-indicators {
241
+ bottom: 20px;
242
+ }
243
+ }
@@ -0,0 +1,33 @@
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
+ .opacity(.2);
14
+
15
+ &:hover,
16
+ &:focus {
17
+ color: @close-color;
18
+ text-decoration: none;
19
+ cursor: pointer;
20
+ .opacity(.5);
21
+ }
22
+
23
+ // Additional properties for button version
24
+ // iOS requires the button element instead of an anchor tag.
25
+ // If you want the anchor version, it requires `href="#"`.
26
+ button& {
27
+ padding: 0;
28
+ cursor: pointer;
29
+ background: transparent;
30
+ border: 0;
31
+ -webkit-appearance: none;
32
+ }
33
+ }
@@ -0,0 +1,68 @@
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
+ border-radius: @border-radius-base;
21
+ }
22
+
23
+ // User input typically entered via keyboard
24
+ kbd {
25
+ padding: 2px 4px;
26
+ font-size: 90%;
27
+ color: @kbd-color;
28
+ background-color: @kbd-bg;
29
+ border-radius: @border-radius-small;
30
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
+
32
+ kbd {
33
+ padding: 0;
34
+ font-size: 100%;
35
+ box-shadow: none;
36
+ }
37
+ }
38
+
39
+ // Blocks of code
40
+ pre {
41
+ display: block;
42
+ padding: ((@line-height-computed - 1) / 2);
43
+ margin: 0 0 (@line-height-computed / 2);
44
+ font-size: (@font-size-base - 1); // 14px to 13px
45
+ line-height: @line-height-base;
46
+ word-break: break-all;
47
+ word-wrap: break-word;
48
+ color: @pre-color;
49
+ background-color: @pre-bg;
50
+ border: 1px solid @pre-border-color;
51
+ border-radius: @border-radius-base;
52
+
53
+ // Account for some code outputs that place code tags in pre tags
54
+ code {
55
+ padding: 0;
56
+ font-size: inherit;
57
+ color: inherit;
58
+ white-space: pre-wrap;
59
+ background-color: transparent;
60
+ border-radius: 0;
61
+ }
62
+ }
63
+
64
+ // Enable scrollable blocks of code
65
+ .pre-scrollable {
66
+ max-height: @pre-scrollable-max-height;
67
+ overflow-y: scroll;
68
+ }