anjlab-bootstrap-rails 3.0.0.0.alpha1 → 3.0.0.rc1

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -27
  3. data/Rakefile +11 -35
  4. data/{vendor → app}/assets/javascripts/twitter/bootstrap.js +6 -6
  5. data/{vendor → app}/assets/javascripts/twitter/bootstrap/affix.js +9 -3
  6. data/{vendor → app}/assets/javascripts/twitter/bootstrap/alert.js +4 -2
  7. data/{vendor → app}/assets/javascripts/twitter/bootstrap/button.js +6 -4
  8. data/{vendor → app}/assets/javascripts/twitter/bootstrap/carousel.js +22 -12
  9. data/{vendor → app}/assets/javascripts/twitter/bootstrap/collapse.js +69 -43
  10. data/{vendor → app}/assets/javascripts/twitter/bootstrap/dropdown.js +22 -13
  11. data/{vendor → app}/assets/javascripts/twitter/bootstrap/modal.js +37 -38
  12. data/{vendor → app}/assets/javascripts/twitter/bootstrap/popover.js +11 -5
  13. data/{vendor → app}/assets/javascripts/twitter/bootstrap/scrollspy.js +6 -4
  14. data/{vendor → app}/assets/javascripts/twitter/bootstrap/tab.js +4 -2
  15. data/{vendor → app}/assets/javascripts/twitter/bootstrap/tooltip.js +49 -38
  16. data/{vendor → app}/assets/javascripts/twitter/bootstrap/transition.js +10 -1
  17. data/{vendor → app}/assets/stylesheets/twitter/bootstrap.scss +0 -0
  18. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_accordion.scss +7 -10
  19. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_alerts.scss +11 -34
  20. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_badges.scss +8 -15
  21. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_bootstrap.scss +0 -1
  22. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +23 -0
  23. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_button-groups.scss +23 -22
  24. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_buttons.scss +21 -24
  25. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_carousel.scss +46 -32
  26. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_close.scss +3 -3
  27. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_code.scss +6 -12
  28. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_component-animations.scss +10 -4
  29. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +46 -101
  30. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_forms.scss +139 -179
  31. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +155 -0
  32. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -4
  33. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_labels.scss +7 -31
  34. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +89 -0
  35. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_media.scss +8 -6
  36. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_mixins.scss +152 -131
  37. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_modals.scss +11 -12
  38. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_navbar.scss +90 -66
  39. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_navs.scss +56 -68
  40. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_normalize.scss +0 -0
  41. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_pager.scss +4 -3
  42. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +108 -0
  43. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_panels.scss +8 -2
  44. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_popovers.scss +22 -20
  45. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_print.scss +26 -0
  46. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +5 -18
  47. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +25 -25
  48. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +24 -8
  49. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +211 -0
  50. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +2 -3
  51. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_tooltip.scss +26 -2
  52. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_type.scss +31 -49
  53. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_utilities.scss +0 -0
  54. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_variables.scss +201 -54
  55. data/{vendor → app}/assets/stylesheets/twitter/bootstrap/_wells.scss +0 -0
  56. data/bootstrap-rails.gemspec +0 -1
  57. data/lib/bootstrap-rails/version.rb +1 -1
  58. metadata +54 -60
  59. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.eot +0 -0
  60. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.otf +0 -0
  61. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.svg +0 -175
  62. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.ttf +0 -0
  63. data/vendor/assets/fonts/twitter/glyphiconshalflings-regular.woff +0 -0
  64. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +0 -28
  65. data/vendor/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +0 -200
  66. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +0 -65
  67. data/vendor/assets/stylesheets/twitter/bootstrap/_list-group.scss +0 -96
  68. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +0 -87
  69. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +0 -242
@@ -1,96 +0,0 @@
1
- //
2
- // List groups
3
- // --------------------------------------------------
4
-
5
- // Base class
6
- //
7
- // Easily usable on <ul>, <ol>, or <div>.
8
- .list-group {
9
- // No need to set list-style: none; since .list-group-item is block level
10
- margin: 0 0 20px; // reset all margins because ul and ol
11
- background-color: $list-group-bg;
12
- }
13
-
14
- // Individual list items
15
- // -------------------------
16
-
17
- .list-group-item {
18
- position: relative;
19
- display: block;
20
- padding: 10px 30px 10px 15px;
21
- // Place the border on the list items and negative margin up for better styling
22
- margin-bottom: -1px;
23
- border: 1px solid $list-group-border;
24
- }
25
- // Round the first and last items
26
- .list-group-item:first-child {
27
- @include border-top-radius($border-radius-base);
28
- }
29
- .list-group-item:last-child {
30
- margin-bottom: 0;
31
- @include border-bottom-radius($border-radius-base);
32
- }
33
-
34
-
35
- // Custom content options
36
- // -------------------------
37
-
38
- .list-group-item-heading {
39
- margin-top: 0;
40
- margin-bottom: 5px;
41
- }
42
- .list-group-item-text {
43
- margin-bottom: 0;
44
- line-height: 1.3;
45
- }
46
-
47
- // Linked list items
48
- // -------------------------
49
-
50
- // Custom content within linked items
51
- a.list-group-item {
52
- .list-group-item-heading {
53
- color: #333;
54
- }
55
- .list-group-item-text {
56
- color: #555;
57
- }
58
- }
59
-
60
- // Hover state
61
- a.list-group-item:hover,
62
- a.list-group-item:focus {
63
- text-decoration: none;
64
- background-color: $list-group-hover-bg;
65
- }
66
-
67
- // Active class on item itself, not parent
68
- a.list-group-item.active {
69
- z-index: 2; // Place active items above their siblings for proper border styling
70
- color: $list-group-active-color;
71
- background-color: $list-group-active-bg;
72
- border-color: $list-group-active-border;
73
-
74
- // Force color to inherit for custom content
75
- .list-group-item-heading {
76
- color: inherit;
77
- }
78
- .list-group-item-text {
79
- color: lighten($list-group-active-bg, 40%);
80
- }
81
- }
82
-
83
- // Chevrons and badges within list items
84
- // -------------------------
85
-
86
- .list-group-item > .badge,
87
- .list-group-item > .glyphicon-chevron-right {
88
- float: right;
89
- margin-right: -15px;
90
- }
91
- .list-group-item > .glyphicon-chevron-right {
92
- margin-right: -15px;
93
- }
94
- .list-group-item > .glyphicon + .badge {
95
- margin-right: 5px;
96
- }
@@ -1,87 +0,0 @@
1
- //
2
- // Pagination (multiple pages)
3
- // --------------------------------------------------
4
- .pagination {
5
- display: inline-block;
6
- margin: $line-height-computed 0;
7
- border-radius: $border-radius-base;
8
- }
9
- .pagination > li {
10
- display: inline; // Remove list-style and block-level defaults
11
- }
12
- .pagination > li > a,
13
- .pagination > li > span {
14
- float: left; // Collapse white-space
15
- padding: 4px 12px;
16
- line-height: $line-height-base;
17
- text-decoration: none;
18
- background-color: $pagination-bg;
19
- border: 1px solid $pagination-border;
20
- border-left-width: 0;
21
- }
22
- .pagination > li > a:hover,
23
- .pagination > li > a:focus,
24
- .pagination > .active > a,
25
- .pagination > .active > span {
26
- background-color: $pagination-active-bg;
27
- }
28
- .pagination > .active > a,
29
- .pagination > .active > span {
30
- color: $gray-light;
31
- cursor: default;
32
- }
33
- .pagination > .disabled > span,
34
- .pagination > .disabled > a,
35
- .pagination > .disabled > a:hover,
36
- .pagination > .disabled > a:focus {
37
- color: $gray-light;
38
- background-color: $pagination-bg;
39
- cursor: default;
40
- }
41
- .pagination > li:first-child > a,
42
- .pagination > li:first-child > span {
43
- border-left-width: 1px;
44
- @include border-left-radius($border-radius-base);
45
- }
46
- .pagination > li:last-child > a,
47
- .pagination > li:last-child > span {
48
- @include border-right-radius($border-radius-base);
49
- }
50
-
51
-
52
- // Sizing
53
- // --------------------------------------------------
54
-
55
- // Large
56
- .pagination-large {
57
- > li > a,
58
- > li > span {
59
- padding: $padding-large-vertical $padding-large-horizontal;
60
- font-size: $font-size-large;
61
- }
62
- > li:first-child > a,
63
- > li:first-child > span {
64
- @include border-left-radius($border-radius-large);
65
- }
66
- > li:last-child > a,
67
- > li:last-child > span {
68
- @include border-right-radius($border-radius-large);
69
- }
70
- }
71
-
72
- // Small
73
- .pagination-small {
74
- > li > a,
75
- > li > span {
76
- padding: $padding-small-vertical $padding-small-horizontal;
77
- font-size: $font-size-small;
78
- }
79
- > li:first-child > a,
80
- > li:first-child > span {
81
- @include border-left-radius($border-radius-small);
82
- }
83
- > li:last-child > a,
84
- > li:last-child > span {
85
- @include border-right-radius($border-radius-small);
86
- }
87
- }
@@ -1,242 +0,0 @@
1
- //
2
- // Tables
3
- // --------------------------------------------------
4
-
5
-
6
- table {
7
- max-width: 100%;
8
- background-color: $table-bg;
9
- }
10
- th {
11
- text-align: left;
12
- }
13
-
14
-
15
- // BASELINE STYLES
16
- // ---------------
17
-
18
- .table {
19
- width: 100%;
20
- margin-bottom: $line-height-computed;
21
- // Cells
22
- thead > tr > th,
23
- tbody > tr > th,
24
- thead > tr > td,
25
- tbody > tr > td {
26
- padding: 8px;
27
- line-height: $line-height-base;
28
- vertical-align: top;
29
- border-top: 1px solid $table-border-color;
30
- }
31
- // Bottom align for column headings
32
- thead > tr > th {
33
- vertical-align: bottom;
34
- }
35
- // Remove top border from thead by default
36
- caption + thead tr:first-child th,
37
- caption + thead tr:first-child td,
38
- colgroup + thead tr:first-child th,
39
- colgroup + thead tr:first-child td,
40
- thead:first-child tr:first-child th,
41
- thead:first-child tr:first-child td {
42
- border-top: 0;
43
- }
44
- // Account for multiple tbody instances
45
- tbody + tbody {
46
- border-top: 2px solid $table-border-color;
47
- }
48
-
49
- // Nesting
50
- .table {
51
- background-color: $body-bg;
52
- }
53
- }
54
-
55
-
56
-
57
- // CONDENSED TABLE W/ HALF PADDING
58
- // -------------------------------
59
-
60
- .table-condensed {
61
- thead > tr > th,
62
- tbody > tr > th,
63
- thead > tr > td,
64
- tbody > tr > td {
65
- padding: 4px 5px;
66
- }
67
- }
68
-
69
-
70
-
71
- // BORDERED VERSION
72
- // ----------------
73
-
74
- .table-bordered {
75
- border: 1px solid $table-border-color;
76
- border-collapse: separate; // Done so we can round those corners!
77
- border-left: 0;
78
- border-radius: $border-radius-base;
79
-
80
- > thead > tr > th,
81
- > tbody > tr > th,
82
- > thead > tr > td,
83
- > tbody > tr > td {
84
- border-left: 1px solid $table-border-color;
85
- }
86
- // Prevent a double border
87
- > caption + thead > tr:first-child th,
88
- > caption + tbody > tr:first-child th,
89
- > caption + tbody > tr:first-child td,
90
- > colgroup + thead > tr:first-child th,
91
- > colgroup + tbody > tr:first-child th,
92
- > colgroup + tbody > tr:first-child td,
93
- > thead:first-child > tr:first-child th,
94
- > tbody:first-child > tr:first-child th,
95
- > tbody:first-child > tr:first-child td {
96
- border-top: 0;
97
- }
98
- // For first th/td in the first row in the first thead or tbody
99
- > thead:first-child > tr:first-child > th:first-child,
100
- > tbody:first-child > tr:first-child > td:first-child,
101
- > tbody:first-child > tr:first-child > th:first-child {
102
- border-top-left-radius: $border-radius-base;
103
- }
104
- // For last th/td in the first row in the first thead or tbody
105
- > thead:first-child > tr:first-child > th:last-child,
106
- > tbody:first-child > tr:first-child > td:last-child,
107
- > tbody:first-child > tr:first-child > th:last-child {
108
- border-top-right-radius: $border-radius-base;
109
- }
110
- // For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
111
- > thead:last-child > tr:last-child > th:first-child,
112
- > tbody:last-child > tr:last-child > td:first-child,
113
- > tbody:last-child > tr:last-child > th:first-child,
114
- > tfoot:last-child > tr:last-child > td:first-child,
115
- > tfoot:last-child > tr:last-child > th:first-child {
116
- border-bottom-left-radius: $border-radius-base;
117
- }
118
- // For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
119
- > thead:last-child > tr:last-child > th:last-child,
120
- > tbody:last-child > tr:last-child > td:last-child,
121
- > tbody:last-child > tr:last-child > th:last-child,
122
- > tfoot:last-child > tr:last-child > td:last-child,
123
- > tfoot:last-child > tr:last-child > th:last-child {
124
- border-bottom-right-radius: $border-radius-base;
125
- }
126
-
127
- // Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
128
- > tfoot + tbody:last-child > tr:last-child > td:first-child {
129
- border-bottom-left-radius: 0;
130
- }
131
- > tfoot + tbody:last-child > tr:last-child > td:last-child {
132
- border-bottom-right-radius: 0;
133
- }
134
-
135
- // Special fixes to round the left border on the first td/th
136
- > caption + thead > tr:first-child > th:first-child,
137
- > caption + tbody > tr:first-child > td:first-child,
138
- > colgroup + thead > tr:first-child > th:first-child,
139
- > colgroup + tbody > tr:first-child > td:first-child {
140
- border-top-left-radius: $border-radius-base;
141
- }
142
- > caption + thead > tr:first-child > th:last-child,
143
- > caption + tbody > tr:first-child > td:last-child,
144
- > colgroup + thead > tr:first-child > th:last-child,
145
- > colgroup + tbody > tr:first-child > td:last-child {
146
- border-top-right-radius: $border-radius-base;
147
- }
148
-
149
- }
150
-
151
-
152
-
153
- // ZEBRA-STRIPING
154
- // --------------
155
-
156
- // Default zebra-stripe styles (alternating gray and transparent backgrounds)
157
- .table-striped {
158
- > tbody {
159
- > tr:nth-child(odd) > td,
160
- > tr:nth-child(odd) > th {
161
- background-color: $table-bg-accent;
162
- }
163
- }
164
- }
165
-
166
-
167
-
168
- // HOVER EFFECT
169
- // ------------
170
-
171
- // Placed here since it has to come after the potential zebra striping
172
- .table-hover {
173
- > tbody {
174
- > tr:hover > td,
175
- > tr:hover > th {
176
- background-color: $table-bg-hover;
177
- }
178
- }
179
- }
180
-
181
-
182
-
183
- // TABLE CELL SIZING
184
- // -----------------
185
-
186
- // Reset default table behavior
187
- table col[class*="col-span-"] {
188
- float: none;
189
- display: table-column;
190
- }
191
- table td[class*="col-span-"],
192
- table th[class*="col-span-"] {
193
- float: none;
194
- display: table-cell;
195
- }
196
-
197
- // TABLE BACKGROUNDS
198
- // -----------------
199
- // Exact selectors below required to override .table-striped
200
-
201
- .table > tbody > tr {
202
- > td.success,
203
- > th.success,
204
- &.success > td {
205
- background-color: $state-success-bg;
206
- border-color: $state-success-border;
207
- }
208
- > td.danger,
209
- > th.danger,
210
- &.danger > td {
211
- background-color: $state-danger-bg;
212
- border-color: $state-danger-border;
213
- }
214
- > td.warning,
215
- > th.warning,
216
- &.warning > td {
217
- background-color: $state-warning-bg;
218
- border-color: $state-warning-border;
219
- }
220
- }
221
-
222
- // Hover states for .table-hover
223
- .table-hover > tbody > tr {
224
- > td.success:hover,
225
- > th.success:hover,
226
- &.success:hover > td {
227
- background-color: darken($state-success-bg, 5%);
228
- border-color: darken($state-success-border, 5%);
229
- }
230
- > td.danger:hover,
231
- > th.danger:hover,
232
- &.danger:hover > td {
233
- background-color: darken($state-danger-bg, 5%);
234
- border-color: darken($state-danger-border, 5%);
235
- }
236
- > td.warning:hover,
237
- > th.warning:hover,
238
- &.warning:hover > td {
239
- background-color: darken($state-warning-bg, 5%);
240
- border-color: darken($state-warning-border, 5%);
241
- }
242
- }