twitter_bootstrap_markup 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/.gitignore +4 -4
  2. data/Gemfile +4 -4
  3. data/README.md +28 -28
  4. data/Rakefile +1 -1
  5. data/lib/twitter_bootstrap_markup.rb +52 -52
  6. data/lib/twitter_bootstrap_markup/add_on.rb +8 -8
  7. data/lib/twitter_bootstrap_markup/alert.rb +35 -35
  8. data/lib/twitter_bootstrap_markup/badge.rb +4 -4
  9. data/lib/twitter_bootstrap_markup/brand.rb +8 -8
  10. data/lib/twitter_bootstrap_markup/breadcrumb.rb +21 -21
  11. data/lib/twitter_bootstrap_markup/button.rb +16 -16
  12. data/lib/twitter_bootstrap_markup/button_base.rb +44 -44
  13. data/lib/twitter_bootstrap_markup/control_group.rb +25 -25
  14. data/lib/twitter_bootstrap_markup/divider.rb +29 -29
  15. data/lib/twitter_bootstrap_markup/dropdown_button.rb +58 -58
  16. data/lib/twitter_bootstrap_markup/dropdown_link.rb +29 -29
  17. data/lib/twitter_bootstrap_markup/extended_input.rb +10 -10
  18. data/lib/twitter_bootstrap_markup/extension/hash.rb +10 -10
  19. data/lib/twitter_bootstrap_markup/fieldset.rb +17 -17
  20. data/lib/twitter_bootstrap_markup/form.rb +26 -26
  21. data/lib/twitter_bootstrap_markup/grid_column.rb +13 -13
  22. data/lib/twitter_bootstrap_markup/grid_row.rb +8 -8
  23. data/lib/twitter_bootstrap_markup/help.rb +23 -23
  24. data/lib/twitter_bootstrap_markup/icon.rb +17 -17
  25. data/lib/twitter_bootstrap_markup/input.rb +24 -24
  26. data/lib/twitter_bootstrap_markup/input_size.rb +21 -21
  27. data/lib/twitter_bootstrap_markup/label.rb +4 -4
  28. data/lib/twitter_bootstrap_markup/label_base.rb +32 -32
  29. data/lib/twitter_bootstrap_markup/link.rb +16 -16
  30. data/lib/twitter_bootstrap_markup/link_button.rb +17 -17
  31. data/lib/twitter_bootstrap_markup/nav_bar.rb +33 -33
  32. data/lib/twitter_bootstrap_markup/nav_container.rb +9 -9
  33. data/lib/twitter_bootstrap_markup/nav_header.rb +8 -8
  34. data/lib/twitter_bootstrap_markup/nav_list.rb +15 -15
  35. data/lib/twitter_bootstrap_markup/nav_list_container.rb +9 -9
  36. data/lib/twitter_bootstrap_markup/nav_tab.rb +9 -9
  37. data/lib/twitter_bootstrap_markup/nav_tab_container.rb +12 -12
  38. data/lib/twitter_bootstrap_markup/page_header.rb +16 -16
  39. data/lib/twitter_bootstrap_markup/pagination.rb +28 -28
  40. data/lib/twitter_bootstrap_markup/popover.rb +19 -19
  41. data/lib/twitter_bootstrap_markup/progress_bar.rb +42 -42
  42. data/lib/twitter_bootstrap_markup/select.rb +54 -54
  43. data/lib/twitter_bootstrap_markup/side_position.rb +14 -14
  44. data/lib/twitter_bootstrap_markup/submit.rb +9 -9
  45. data/lib/twitter_bootstrap_markup/tab.rb +13 -13
  46. data/lib/twitter_bootstrap_markup/tab_content.rb +28 -28
  47. data/lib/twitter_bootstrap_markup/table.rb +28 -28
  48. data/lib/twitter_bootstrap_markup/tag.rb +62 -62
  49. data/lib/twitter_bootstrap_markup/tag_builder.rb +21 -21
  50. data/lib/twitter_bootstrap_markup/textarea.rb +14 -14
  51. data/lib/twitter_bootstrap_markup/tooltip.rb +18 -18
  52. data/lib/twitter_bootstrap_markup/ul_container.rb +27 -27
  53. data/lib/twitter_bootstrap_markup/version.rb +3 -3
  54. data/lib/twitter_bootstrap_markup/well.rb +27 -27
  55. data/markup/alerts.html +74 -74
  56. data/markup/badges.html +64 -64
  57. data/markup/breadcrumbs.html +58 -58
  58. data/markup/buttons.html +94 -94
  59. data/markup/control_groups.html +76 -76
  60. data/markup/css/bootstrap-responsive.css +815 -815
  61. data/markup/css/bootstrap-responsive.min.css +9 -9
  62. data/markup/css/bootstrap.css +4914 -4914
  63. data/markup/css/bootstrap.min.css +727 -727
  64. data/markup/dropdown_buttons.html +247 -247
  65. data/markup/dropdown_links.html +111 -111
  66. data/markup/form_fields.html +87 -87
  67. data/markup/forms.html +80 -80
  68. data/markup/grid_system.html +86 -86
  69. data/markup/index.html +38 -38
  70. data/markup/js/bootstrap.js +1835 -1835
  71. data/markup/js/bootstrap.min.js +6 -6
  72. data/markup/js/jquery-1.7.2.js +9402 -9402
  73. data/markup/labels.html +64 -64
  74. data/markup/link_buttons.html +94 -94
  75. data/markup/nav_bars.html +103 -103
  76. data/markup/nav_lists.html +53 -53
  77. data/markup/paginations.html +67 -67
  78. data/markup/popovers.html +55 -55
  79. data/markup/progress_bars.html +92 -92
  80. data/markup/selects.html +123 -123
  81. data/markup/tabs.html +45 -45
  82. data/markup/textareas.html +89 -89
  83. data/markup/textboxes.html +94 -94
  84. data/markup/tooltips.html +55 -55
  85. data/spec/add_on_spec.rb +9 -9
  86. data/spec/alert_spec.rb +77 -77
  87. data/spec/badge_spec.rb +40 -28
  88. data/spec/brand_spec.rb +9 -9
  89. data/spec/breadcrumb_spec.rb +32 -32
  90. data/spec/button_spec.rb +51 -51
  91. data/spec/control_group_spec.rb +28 -28
  92. data/spec/divider_spec.rb +16 -16
  93. data/spec/dropdown_button_spec.rb +100 -100
  94. data/spec/dropdown_link_spec.rb +47 -47
  95. data/spec/fieldset_spec.rb +21 -21
  96. data/spec/form_fields_spec.rb +70 -70
  97. data/spec/form_spec.rb +34 -34
  98. data/spec/grid_system_spec.rb +68 -68
  99. data/spec/help_spec.rb +12 -12
  100. data/spec/icon_spec.rb +17 -17
  101. data/spec/input_spec.rb +10 -10
  102. data/spec/label_spec.rb +40 -28
  103. data/spec/link_button_spec.rb +51 -51
  104. data/spec/link_spec.rb +28 -28
  105. data/spec/nav_bar_spec.rb +37 -37
  106. data/spec/nav_list_spec.rb +39 -39
  107. data/spec/page_header_spec.rb +12 -12
  108. data/spec/pagination_spec.rb +17 -17
  109. data/spec/popover_spec.rb +14 -14
  110. data/spec/progress_bar_spec.rb +52 -52
  111. data/spec/select_spec.rb +59 -59
  112. data/spec/spec_helper.rb +11 -11
  113. data/spec/support/helpers/html_helper.rb +10 -10
  114. data/spec/table_spec.rb +32 -32
  115. data/spec/tabs_spec.rb +21 -21
  116. data/spec/tag_builder_spec.rb +37 -37
  117. data/spec/tag_spec.rb +51 -51
  118. data/spec/text_area_spec.rb +42 -42
  119. data/spec/textbox_spec.rb +59 -59
  120. data/spec/tooltip_spec.rb +14 -14
  121. data/spec/well_spec.rb +16 -16
  122. data/twitter_bootstrap_markup.gemspec +25 -25
  123. metadata +25 -9
@@ -1,248 +1,248 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <title>Twitter Bootstrap Markup</title>
5
- <!--[if lt IE 9]>
6
- <script src='http://html5shim.googlecode/svn/trunk/html5.js' type='text/javascript'></script>
7
- <![endif]-->
8
- <link href="css/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
9
- <meta content='width=device-width, initial-scale=1.0' name='viewport'>
10
- </head>
11
- <body>
12
- <div class="container">
13
- <h2>Dropdown Buttons</h2>
14
- <table class="table table-bordered table-striped">
15
- <thead>
16
- <tr>
17
- <th class="span2">Name</th>
18
- <th>Component</th>
19
- </tr>
20
- </thead>
21
- <tbody>
22
- <tr>
23
- <td>Default</td>
24
- <td id="default">
25
- <div class="btn-group">
26
- <button class="btn dropdown-toggle" data-toggle="dropdown">
27
- Select option
28
- <span class="caret"></span>
29
- </button>
30
- <ul class="dropdown-menu">
31
- <li>
32
- <a href="#1">Option 1</a>
33
- </li>
34
- <li>
35
- <a href="#2">Option 2</a>
36
- </li>
37
- </ul>
38
- </div>
39
- </td>
40
- </tr>
41
- <tr>
42
- <td>Primary</td>
43
- <td id="primary">
44
- <div class="btn-group">
45
- <button class="btn dropdown-toggle btn-primary" data-toggle="dropdown">
46
- Select option
47
- <span class="caret"></span>
48
- </button>
49
- <ul class="dropdown-menu">
50
- <li>
51
- <a href="#1">Option 1</a>
52
- </li>
53
- <li>
54
- <a href="#2">Option 2</a>
55
- </li>
56
- </ul>
57
- </div>
58
- </td>
59
- </tr>
60
- <tr>
61
- <td>Info</td>
62
- <td id="info">
63
- <div class="btn-group">
64
- <button class="btn dropdown-toggle btn-info" data-toggle="dropdown">
65
- Select option
66
- <span class="caret"></span>
67
- </button>
68
- <ul class="dropdown-menu">
69
- <li><a href="#1">Option 1</a></li>
70
- <li><a href="#2">Option 2</a></li>
71
- </ul>
72
- </div>
73
- </td>
74
- </tr>
75
- <tr>
76
- <td>Success</td>
77
- <td id="success">
78
- <div class="btn-group">
79
- <button class="btn dropdown-toggle btn-success" data-toggle="dropdown">
80
- Select option
81
- <span class="caret"></span>
82
- </button>
83
- <ul class="dropdown-menu">
84
- <li><a href="#1">Option 1</a></li>
85
- <li><a href="#2">Option 2</a></li>
86
- </ul>
87
- </div>
88
- </td>
89
- </tr>
90
- <tr>
91
- <td>Warning</td>
92
- <td id="warning">
93
- <div class="btn-group">
94
- <button class="btn dropdown-toggle btn-warning" data-toggle="dropdown">
95
- Select option
96
- <span class="caret"></span>
97
- </button>
98
- <ul class="dropdown-menu">
99
- <li><a href="#1">Option 1</a></li>
100
- <li><a href="#2">Option 2</a></li>
101
- </ul>
102
- </div>
103
- </td>
104
- </tr>
105
- <tr>
106
- <td>Danger</td>
107
- <td id="danger">
108
- <div class="btn-group">
109
- <button class="btn dropdown-toggle btn-danger" data-toggle="dropdown">
110
- Select option
111
- <span class="caret"></span>
112
- </button>
113
- <ul class="dropdown-menu">
114
- <li><a href="#1">Option 1</a></li>
115
- <li><a href="#2">Option 2</a></li>
116
- </ul>
117
- </div>
118
- </td>
119
- </tr>
120
- <tr>
121
- <td>Inverse</td>
122
- <td id="inverse">
123
- <div class="btn-group">
124
- <button class="btn dropdown-toggle btn-inverse" data-toggle="dropdown">
125
- Select option
126
- <span class="caret"></span>
127
- </button>
128
- <ul class="dropdown-menu">
129
- <li><a href="#1">Option 1</a></li>
130
- <li><a href="#2">Option 2</a></li>
131
- </ul>
132
- </div>
133
- </td>
134
- </tr>
135
- <tr>
136
- <td>Large</td>
137
- <td id="large">
138
- <div class="btn-group">
139
- <button class="btn dropdown-toggle btn-large" data-toggle="dropdown">
140
- Select option
141
- <span class="caret"></span>
142
- </button>
143
- <ul class="dropdown-menu">
144
- <li><a href="#1">Option 1</a></li>
145
- <li><a href="#2">Option 2</a></li>
146
- </ul>
147
- </div>
148
- </td>
149
- </tr>
150
- <tr>
151
- <td>Small</td>
152
- <td id="small">
153
- <div class="btn-group">
154
- <button class="btn dropdown-toggle btn-small" data-toggle="dropdown">
155
- Select option
156
- <span class="caret"></span>
157
- </button>
158
- <ul class="dropdown-menu">
159
- <li><a href="#1">Option 1</a></li>
160
- <li><a href="#2">Option 2</a></li>
161
- </ul>
162
- </div>
163
- </td>
164
- </tr>
165
- <tr>
166
- <td>Mini</td>
167
- <td id="mini">
168
- <div class="btn-group">
169
- <button class="btn dropdown-toggle btn-mini" data-toggle="dropdown">
170
- Select option
171
- <span class="caret"></span>
172
- </button>
173
- <ul class="dropdown-menu">
174
- <li><a href="#1">Option 1</a></li>
175
- <li><a href="#2">Option 2</a></li>
176
- </ul>
177
- </div>
178
- </td>
179
- </tr>
180
- <tr>
181
- <td>Mixed</td>
182
- <td id="mixed">
183
- <div class="btn-group">
184
- <button class="btn dropdown-toggle btn-primary btn-large" data-toggle="dropdown">
185
- Select option
186
- <span class="caret"></span>
187
- </button>
188
- <ul class="dropdown-menu">
189
- <li><a href="#1">Option 1</a></li>
190
- <li><a href="#2">Option 2</a></li>
191
- </ul>
192
- </div>
193
- </td>
194
- </tr>
195
- <tr>
196
- <td>Image</td>
197
- <td id="image">
198
- <div class="btn-group">
199
- <button class="btn dropdown-toggle" data-toggle="dropdown">
200
- Select option
201
- <span class="caret"></span>
202
- </button>
203
- <ul class="dropdown-menu">
204
- <li>
205
- <a href="#1">
206
- <i class="icon-search"></i>
207
- Option 1
208
- </a>
209
- </li>
210
- <li>
211
- <a href="#2">
212
- <i class="icon-star"></i>
213
- Option 2
214
- </a>
215
- </li>
216
- </ul>
217
- </div>
218
- </td>
219
- </tr>
220
- <tr>
221
- <td>Divider</td>
222
- <td id="divider">
223
- <div class="btn-group">
224
- <button class="btn dropdown-toggle" data-toggle="dropdown">
225
- Select option
226
- <span class="caret"></span>
227
- </button>
228
- <ul class="dropdown-menu">
229
- <li>
230
- <a href="#1">Option 1</a>
231
- </li>
232
- <li class="divider">
233
- </li>
234
- <li>
235
- <a href="#2">Option 2</a>
236
- </li>
237
- </ul>
238
- </div>
239
- </td>
240
- </tr>
241
- </tbody>
242
- </table>
243
- <a href="index.html">back to index</a>
244
- </div>
245
- <script src="js/jquery-1.7.2.js" type="text/javascript"></script>
246
- <script src="js/bootstrap.js" type="text/javascript"></script>
247
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>Twitter Bootstrap Markup</title>
5
+ <!--[if lt IE 9]>
6
+ <script src='http://html5shim.googlecode/svn/trunk/html5.js' type='text/javascript'></script>
7
+ <![endif]-->
8
+ <link href="css/bootstrap.css" media="screen" rel="stylesheet" type="text/css" />
9
+ <meta content='width=device-width, initial-scale=1.0' name='viewport'>
10
+ </head>
11
+ <body>
12
+ <div class="container">
13
+ <h2>Dropdown Buttons</h2>
14
+ <table class="table table-bordered table-striped">
15
+ <thead>
16
+ <tr>
17
+ <th class="span2">Name</th>
18
+ <th>Component</th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ <tr>
23
+ <td>Default</td>
24
+ <td id="default">
25
+ <div class="btn-group">
26
+ <button class="btn dropdown-toggle" data-toggle="dropdown">
27
+ Select option
28
+ <span class="caret"></span>
29
+ </button>
30
+ <ul class="dropdown-menu">
31
+ <li>
32
+ <a href="#1">Option 1</a>
33
+ </li>
34
+ <li>
35
+ <a href="#2">Option 2</a>
36
+ </li>
37
+ </ul>
38
+ </div>
39
+ </td>
40
+ </tr>
41
+ <tr>
42
+ <td>Primary</td>
43
+ <td id="primary">
44
+ <div class="btn-group">
45
+ <button class="btn dropdown-toggle btn-primary" data-toggle="dropdown">
46
+ Select option
47
+ <span class="caret"></span>
48
+ </button>
49
+ <ul class="dropdown-menu">
50
+ <li>
51
+ <a href="#1">Option 1</a>
52
+ </li>
53
+ <li>
54
+ <a href="#2">Option 2</a>
55
+ </li>
56
+ </ul>
57
+ </div>
58
+ </td>
59
+ </tr>
60
+ <tr>
61
+ <td>Info</td>
62
+ <td id="info">
63
+ <div class="btn-group">
64
+ <button class="btn dropdown-toggle btn-info" data-toggle="dropdown">
65
+ Select option
66
+ <span class="caret"></span>
67
+ </button>
68
+ <ul class="dropdown-menu">
69
+ <li><a href="#1">Option 1</a></li>
70
+ <li><a href="#2">Option 2</a></li>
71
+ </ul>
72
+ </div>
73
+ </td>
74
+ </tr>
75
+ <tr>
76
+ <td>Success</td>
77
+ <td id="success">
78
+ <div class="btn-group">
79
+ <button class="btn dropdown-toggle btn-success" data-toggle="dropdown">
80
+ Select option
81
+ <span class="caret"></span>
82
+ </button>
83
+ <ul class="dropdown-menu">
84
+ <li><a href="#1">Option 1</a></li>
85
+ <li><a href="#2">Option 2</a></li>
86
+ </ul>
87
+ </div>
88
+ </td>
89
+ </tr>
90
+ <tr>
91
+ <td>Warning</td>
92
+ <td id="warning">
93
+ <div class="btn-group">
94
+ <button class="btn dropdown-toggle btn-warning" data-toggle="dropdown">
95
+ Select option
96
+ <span class="caret"></span>
97
+ </button>
98
+ <ul class="dropdown-menu">
99
+ <li><a href="#1">Option 1</a></li>
100
+ <li><a href="#2">Option 2</a></li>
101
+ </ul>
102
+ </div>
103
+ </td>
104
+ </tr>
105
+ <tr>
106
+ <td>Danger</td>
107
+ <td id="danger">
108
+ <div class="btn-group">
109
+ <button class="btn dropdown-toggle btn-danger" data-toggle="dropdown">
110
+ Select option
111
+ <span class="caret"></span>
112
+ </button>
113
+ <ul class="dropdown-menu">
114
+ <li><a href="#1">Option 1</a></li>
115
+ <li><a href="#2">Option 2</a></li>
116
+ </ul>
117
+ </div>
118
+ </td>
119
+ </tr>
120
+ <tr>
121
+ <td>Inverse</td>
122
+ <td id="inverse">
123
+ <div class="btn-group">
124
+ <button class="btn dropdown-toggle btn-inverse" data-toggle="dropdown">
125
+ Select option
126
+ <span class="caret"></span>
127
+ </button>
128
+ <ul class="dropdown-menu">
129
+ <li><a href="#1">Option 1</a></li>
130
+ <li><a href="#2">Option 2</a></li>
131
+ </ul>
132
+ </div>
133
+ </td>
134
+ </tr>
135
+ <tr>
136
+ <td>Large</td>
137
+ <td id="large">
138
+ <div class="btn-group">
139
+ <button class="btn dropdown-toggle btn-large" data-toggle="dropdown">
140
+ Select option
141
+ <span class="caret"></span>
142
+ </button>
143
+ <ul class="dropdown-menu">
144
+ <li><a href="#1">Option 1</a></li>
145
+ <li><a href="#2">Option 2</a></li>
146
+ </ul>
147
+ </div>
148
+ </td>
149
+ </tr>
150
+ <tr>
151
+ <td>Small</td>
152
+ <td id="small">
153
+ <div class="btn-group">
154
+ <button class="btn dropdown-toggle btn-small" data-toggle="dropdown">
155
+ Select option
156
+ <span class="caret"></span>
157
+ </button>
158
+ <ul class="dropdown-menu">
159
+ <li><a href="#1">Option 1</a></li>
160
+ <li><a href="#2">Option 2</a></li>
161
+ </ul>
162
+ </div>
163
+ </td>
164
+ </tr>
165
+ <tr>
166
+ <td>Mini</td>
167
+ <td id="mini">
168
+ <div class="btn-group">
169
+ <button class="btn dropdown-toggle btn-mini" data-toggle="dropdown">
170
+ Select option
171
+ <span class="caret"></span>
172
+ </button>
173
+ <ul class="dropdown-menu">
174
+ <li><a href="#1">Option 1</a></li>
175
+ <li><a href="#2">Option 2</a></li>
176
+ </ul>
177
+ </div>
178
+ </td>
179
+ </tr>
180
+ <tr>
181
+ <td>Mixed</td>
182
+ <td id="mixed">
183
+ <div class="btn-group">
184
+ <button class="btn dropdown-toggle btn-primary btn-large" data-toggle="dropdown">
185
+ Select option
186
+ <span class="caret"></span>
187
+ </button>
188
+ <ul class="dropdown-menu">
189
+ <li><a href="#1">Option 1</a></li>
190
+ <li><a href="#2">Option 2</a></li>
191
+ </ul>
192
+ </div>
193
+ </td>
194
+ </tr>
195
+ <tr>
196
+ <td>Image</td>
197
+ <td id="image">
198
+ <div class="btn-group">
199
+ <button class="btn dropdown-toggle" data-toggle="dropdown">
200
+ Select option
201
+ <span class="caret"></span>
202
+ </button>
203
+ <ul class="dropdown-menu">
204
+ <li>
205
+ <a href="#1">
206
+ <i class="icon-search"></i>
207
+ Option 1
208
+ </a>
209
+ </li>
210
+ <li>
211
+ <a href="#2">
212
+ <i class="icon-star"></i>
213
+ Option 2
214
+ </a>
215
+ </li>
216
+ </ul>
217
+ </div>
218
+ </td>
219
+ </tr>
220
+ <tr>
221
+ <td>Divider</td>
222
+ <td id="divider">
223
+ <div class="btn-group">
224
+ <button class="btn dropdown-toggle" data-toggle="dropdown">
225
+ Select option
226
+ <span class="caret"></span>
227
+ </button>
228
+ <ul class="dropdown-menu">
229
+ <li>
230
+ <a href="#1">Option 1</a>
231
+ </li>
232
+ <li class="divider">
233
+ </li>
234
+ <li>
235
+ <a href="#2">Option 2</a>
236
+ </li>
237
+ </ul>
238
+ </div>
239
+ </td>
240
+ </tr>
241
+ </tbody>
242
+ </table>
243
+ <a href="index.html">back to index</a>
244
+ </div>
245
+ <script src="js/jquery-1.7.2.js" type="text/javascript"></script>
246
+ <script src="js/bootstrap.js" type="text/javascript"></script>
247
+ </body>
248
248
  </html>