less-rails-bootstrap 3.1.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
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,55 @@
1
+ //
2
+ // Pager pagination
3
+ // --------------------------------------------------
4
+
5
+
6
+ .pager {
7
+ padding-left: 0;
8
+ margin: @line-height-computed 0;
9
+ list-style: none;
10
+ text-align: center;
11
+ &:extend(.clearfix all);
12
+ li {
13
+ display: inline;
14
+ > a,
15
+ > span {
16
+ display: inline-block;
17
+ padding: 5px 14px;
18
+ background-color: @pager-bg;
19
+ border: 1px solid @pager-border;
20
+ border-radius: @pager-border-radius;
21
+ }
22
+
23
+ > a:hover,
24
+ > a:focus {
25
+ text-decoration: none;
26
+ background-color: @pager-hover-bg;
27
+ }
28
+ }
29
+
30
+ .next {
31
+ > a,
32
+ > span {
33
+ float: right;
34
+ }
35
+ }
36
+
37
+ .previous {
38
+ > a,
39
+ > span {
40
+ float: left;
41
+ }
42
+ }
43
+
44
+ .disabled {
45
+ > a,
46
+ > a:hover,
47
+ > a:focus,
48
+ > span {
49
+ color: @pager-disabled-color;
50
+ background-color: @pager-bg;
51
+ cursor: not-allowed;
52
+ }
53
+ }
54
+
55
+ }
@@ -0,0 +1,88 @@
1
+ //
2
+ // Pagination (multiple pages)
3
+ // --------------------------------------------------
4
+ .pagination {
5
+ display: inline-block;
6
+ padding-left: 0;
7
+ margin: @line-height-computed 0;
8
+ border-radius: @border-radius-base;
9
+
10
+ > li {
11
+ display: inline; // Remove list-style and block-level defaults
12
+ > a,
13
+ > span {
14
+ position: relative;
15
+ float: left; // Collapse white-space
16
+ padding: @padding-base-vertical @padding-base-horizontal;
17
+ line-height: @line-height-base;
18
+ text-decoration: none;
19
+ color: @pagination-color;
20
+ background-color: @pagination-bg;
21
+ border: 1px solid @pagination-border;
22
+ margin-left: -1px;
23
+ }
24
+ &:first-child {
25
+ > a,
26
+ > span {
27
+ margin-left: 0;
28
+ .border-left-radius(@border-radius-base);
29
+ }
30
+ }
31
+ &:last-child {
32
+ > a,
33
+ > span {
34
+ .border-right-radius(@border-radius-base);
35
+ }
36
+ }
37
+ }
38
+
39
+ > li > a,
40
+ > li > span {
41
+ &:hover,
42
+ &:focus {
43
+ color: @pagination-hover-color;
44
+ background-color: @pagination-hover-bg;
45
+ border-color: @pagination-hover-border;
46
+ }
47
+ }
48
+
49
+ > .active > a,
50
+ > .active > span {
51
+ &,
52
+ &:hover,
53
+ &:focus {
54
+ z-index: 2;
55
+ color: @pagination-active-color;
56
+ background-color: @pagination-active-bg;
57
+ border-color: @pagination-active-border;
58
+ cursor: default;
59
+ }
60
+ }
61
+
62
+ > .disabled {
63
+ > span,
64
+ > span:hover,
65
+ > span:focus,
66
+ > a,
67
+ > a:hover,
68
+ > a:focus {
69
+ color: @pagination-disabled-color;
70
+ background-color: @pagination-disabled-bg;
71
+ border-color: @pagination-disabled-border;
72
+ cursor: not-allowed;
73
+ }
74
+ }
75
+ }
76
+
77
+ // Sizing
78
+ // --------------------------------------------------
79
+
80
+ // Large
81
+ .pagination-lg {
82
+ .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
83
+ }
84
+
85
+ // Small
86
+ .pagination-sm {
87
+ .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
88
+ }
@@ -0,0 +1,243 @@
1
+ //
2
+ // Panels
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .panel {
8
+ margin-bottom: @line-height-computed;
9
+ background-color: @panel-bg;
10
+ border: 1px solid transparent;
11
+ border-radius: @panel-border-radius;
12
+ .box-shadow(0 1px 1px rgba(0,0,0,.05));
13
+ }
14
+
15
+ // Panel contents
16
+ .panel-body {
17
+ padding: @panel-body-padding;
18
+ &:extend(.clearfix all);
19
+ }
20
+
21
+ // Optional heading
22
+ .panel-heading {
23
+ padding: @panel-heading-padding;
24
+ border-bottom: 1px solid transparent;
25
+ .border-top-radius((@panel-border-radius - 1));
26
+
27
+ > .dropdown .dropdown-toggle {
28
+ color: inherit;
29
+ }
30
+ }
31
+
32
+ // Within heading, strip any `h*` tag of its default margins for spacing.
33
+ .panel-title {
34
+ margin-top: 0;
35
+ margin-bottom: 0;
36
+ font-size: ceil((@font-size-base * 1.125));
37
+ color: inherit;
38
+
39
+ > a {
40
+ color: inherit;
41
+ }
42
+ }
43
+
44
+ // Optional footer (stays gray in every modifier class)
45
+ .panel-footer {
46
+ padding: @panel-footer-padding;
47
+ background-color: @panel-footer-bg;
48
+ border-top: 1px solid @panel-inner-border;
49
+ .border-bottom-radius((@panel-border-radius - 1));
50
+ }
51
+
52
+
53
+ // List groups in panels
54
+ //
55
+ // By default, space out list group content from panel headings to account for
56
+ // any kind of custom content between the two.
57
+
58
+ .panel {
59
+ > .list-group {
60
+ margin-bottom: 0;
61
+
62
+ .list-group-item {
63
+ border-width: 1px 0;
64
+ border-radius: 0;
65
+ }
66
+
67
+ // Add border top radius for first one
68
+ &:first-child {
69
+ .list-group-item:first-child {
70
+ border-top: 0;
71
+ .border-top-radius((@panel-border-radius - 1));
72
+ }
73
+ }
74
+ // Add border bottom radius for last one
75
+ &:last-child {
76
+ .list-group-item:last-child {
77
+ border-bottom: 0;
78
+ .border-bottom-radius((@panel-border-radius - 1));
79
+ }
80
+ }
81
+ }
82
+ }
83
+ // Collapse space between when there's no additional content.
84
+ .panel-heading + .list-group {
85
+ .list-group-item:first-child {
86
+ border-top-width: 0;
87
+ }
88
+ }
89
+ .list-group + .panel-footer {
90
+ border-top-width: 0;
91
+ }
92
+
93
+ // Tables in panels
94
+ //
95
+ // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
96
+ // watch it go full width.
97
+
98
+ .panel {
99
+ > .table,
100
+ > .table-responsive > .table,
101
+ > .panel-collapse > .table {
102
+ margin-bottom: 0;
103
+ }
104
+ // Add border top radius for first one
105
+ > .table:first-child,
106
+ > .table-responsive:first-child > .table:first-child {
107
+ .border-top-radius((@panel-border-radius - 1));
108
+
109
+ > thead:first-child,
110
+ > tbody:first-child {
111
+ > tr:first-child {
112
+ td:first-child,
113
+ th:first-child {
114
+ border-top-left-radius: (@panel-border-radius - 1);
115
+ }
116
+ td:last-child,
117
+ th:last-child {
118
+ border-top-right-radius: (@panel-border-radius - 1);
119
+ }
120
+ }
121
+ }
122
+ }
123
+ // Add border bottom radius for last one
124
+ > .table:last-child,
125
+ > .table-responsive:last-child > .table:last-child {
126
+ .border-bottom-radius((@panel-border-radius - 1));
127
+
128
+ > tbody:last-child,
129
+ > tfoot:last-child {
130
+ > tr:last-child {
131
+ td:first-child,
132
+ th:first-child {
133
+ border-bottom-left-radius: (@panel-border-radius - 1);
134
+ }
135
+ td:last-child,
136
+ th:last-child {
137
+ border-bottom-right-radius: (@panel-border-radius - 1);
138
+ }
139
+ }
140
+ }
141
+ }
142
+ > .panel-body + .table,
143
+ > .panel-body + .table-responsive {
144
+ border-top: 1px solid @table-border-color;
145
+ }
146
+ > .table > tbody:first-child > tr:first-child th,
147
+ > .table > tbody:first-child > tr:first-child td {
148
+ border-top: 0;
149
+ }
150
+ > .table-bordered,
151
+ > .table-responsive > .table-bordered {
152
+ border: 0;
153
+ > thead,
154
+ > tbody,
155
+ > tfoot {
156
+ > tr {
157
+ > th:first-child,
158
+ > td:first-child {
159
+ border-left: 0;
160
+ }
161
+ > th:last-child,
162
+ > td:last-child {
163
+ border-right: 0;
164
+ }
165
+ }
166
+ }
167
+ > thead,
168
+ > tbody {
169
+ > tr:first-child {
170
+ > td,
171
+ > th {
172
+ border-bottom: 0;
173
+ }
174
+ }
175
+ }
176
+ > tbody,
177
+ > tfoot {
178
+ > tr:last-child {
179
+ > td,
180
+ > th {
181
+ border-bottom: 0;
182
+ }
183
+ }
184
+ }
185
+ }
186
+ > .table-responsive {
187
+ border: 0;
188
+ margin-bottom: 0;
189
+ }
190
+ }
191
+
192
+
193
+ // Collapsable panels (aka, accordion)
194
+ //
195
+ // Wrap a series of panels in `.panel-group` to turn them into an accordion with
196
+ // the help of our collapse JavaScript plugin.
197
+
198
+ .panel-group {
199
+ margin-bottom: @line-height-computed;
200
+
201
+ // Tighten up margin so it's only between panels
202
+ .panel {
203
+ margin-bottom: 0;
204
+ border-radius: @panel-border-radius;
205
+ + .panel {
206
+ margin-top: 5px;
207
+ }
208
+ }
209
+
210
+ .panel-heading {
211
+ border-bottom: 0;
212
+ + .panel-collapse > .panel-body {
213
+ border-top: 1px solid @panel-inner-border;
214
+ }
215
+ }
216
+ .panel-footer {
217
+ border-top: 0;
218
+ + .panel-collapse .panel-body {
219
+ border-bottom: 1px solid @panel-inner-border;
220
+ }
221
+ }
222
+ }
223
+
224
+
225
+ // Contextual variations
226
+ .panel-default {
227
+ .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
228
+ }
229
+ .panel-primary {
230
+ .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
231
+ }
232
+ .panel-success {
233
+ .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
234
+ }
235
+ .panel-info {
236
+ .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
237
+ }
238
+ .panel-warning {
239
+ .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
240
+ }
241
+ .panel-danger {
242
+ .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
243
+ }
@@ -0,0 +1,133 @@
1
+ //
2
+ // Popovers
3
+ // --------------------------------------------------
4
+
5
+
6
+ .popover {
7
+ position: absolute;
8
+ top: 0;
9
+ left: 0;
10
+ z-index: @zindex-popover;
11
+ display: none;
12
+ max-width: @popover-max-width;
13
+ padding: 1px;
14
+ text-align: left; // Reset given new insertion method
15
+ background-color: @popover-bg;
16
+ background-clip: padding-box;
17
+ border: 1px solid @popover-fallback-border-color;
18
+ border: 1px solid @popover-border-color;
19
+ border-radius: @border-radius-large;
20
+ .box-shadow(0 5px 10px rgba(0,0,0,.2));
21
+
22
+ // Overrides for proper insertion
23
+ white-space: normal;
24
+
25
+ // Offset the popover to account for the popover arrow
26
+ &.top { margin-top: -@popover-arrow-width; }
27
+ &.right { margin-left: @popover-arrow-width; }
28
+ &.bottom { margin-top: @popover-arrow-width; }
29
+ &.left { margin-left: -@popover-arrow-width; }
30
+ }
31
+
32
+ .popover-title {
33
+ margin: 0; // reset heading margin
34
+ padding: 8px 14px;
35
+ font-size: @font-size-base;
36
+ font-weight: normal;
37
+ line-height: 18px;
38
+ background-color: @popover-title-bg;
39
+ border-bottom: 1px solid darken(@popover-title-bg, 5%);
40
+ border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;
41
+ }
42
+
43
+ .popover-content {
44
+ padding: 9px 14px;
45
+ }
46
+
47
+ // Arrows
48
+ //
49
+ // .arrow is outer, .arrow:after is inner
50
+
51
+ .popover > .arrow {
52
+ &,
53
+ &:after {
54
+ position: absolute;
55
+ display: block;
56
+ width: 0;
57
+ height: 0;
58
+ border-color: transparent;
59
+ border-style: solid;
60
+ }
61
+ }
62
+ .popover > .arrow {
63
+ border-width: @popover-arrow-outer-width;
64
+ }
65
+ .popover > .arrow:after {
66
+ border-width: @popover-arrow-width;
67
+ content: "";
68
+ }
69
+
70
+ .popover {
71
+ &.top > .arrow {
72
+ left: 50%;
73
+ margin-left: -@popover-arrow-outer-width;
74
+ border-bottom-width: 0;
75
+ border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
76
+ border-top-color: @popover-arrow-outer-color;
77
+ bottom: -@popover-arrow-outer-width;
78
+ &:after {
79
+ content: " ";
80
+ bottom: 1px;
81
+ margin-left: -@popover-arrow-width;
82
+ border-bottom-width: 0;
83
+ border-top-color: @popover-arrow-color;
84
+ }
85
+ }
86
+ &.right > .arrow {
87
+ top: 50%;
88
+ left: -@popover-arrow-outer-width;
89
+ margin-top: -@popover-arrow-outer-width;
90
+ border-left-width: 0;
91
+ border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
92
+ border-right-color: @popover-arrow-outer-color;
93
+ &:after {
94
+ content: " ";
95
+ left: 1px;
96
+ bottom: -@popover-arrow-width;
97
+ border-left-width: 0;
98
+ border-right-color: @popover-arrow-color;
99
+ }
100
+ }
101
+ &.bottom > .arrow {
102
+ left: 50%;
103
+ margin-left: -@popover-arrow-outer-width;
104
+ border-top-width: 0;
105
+ border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
106
+ border-bottom-color: @popover-arrow-outer-color;
107
+ top: -@popover-arrow-outer-width;
108
+ &:after {
109
+ content: " ";
110
+ top: 1px;
111
+ margin-left: -@popover-arrow-width;
112
+ border-top-width: 0;
113
+ border-bottom-color: @popover-arrow-color;
114
+ }
115
+ }
116
+
117
+ &.left > .arrow {
118
+ top: 50%;
119
+ right: -@popover-arrow-outer-width;
120
+ margin-top: -@popover-arrow-outer-width;
121
+ border-right-width: 0;
122
+ border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
123
+ border-left-color: @popover-arrow-outer-color;
124
+ &:after {
125
+ content: " ";
126
+ right: 1px;
127
+ border-right-width: 0;
128
+ border-left-color: @popover-arrow-color;
129
+ bottom: -@popover-arrow-width;
130
+ }
131
+ }
132
+
133
+ }