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

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,211 @@
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,
23
+ tbody,
24
+ tfoot {
25
+ > tr {
26
+ > th,
27
+ > td {
28
+ padding: $table-cell-padding;
29
+ line-height: $line-height-base;
30
+ vertical-align: top;
31
+ border-top: 1px solid $table-border-color;
32
+ }
33
+ }
34
+ }
35
+ // Bottom align for column headings
36
+ thead > tr > th {
37
+ vertical-align: bottom;
38
+ }
39
+ // Remove top border from thead by default
40
+ caption + thead,
41
+ colgroup + thead,
42
+ thead:first-child {
43
+ tr:first-child {
44
+ th, td {
45
+ border-top: 0;
46
+ }
47
+ }
48
+ }
49
+ // Account for multiple tbody instances
50
+ tbody + tbody {
51
+ border-top: 2px solid $table-border-color;
52
+ }
53
+
54
+ // Nesting
55
+ .table {
56
+ background-color: $body-bg;
57
+ }
58
+ }
59
+
60
+
61
+
62
+ // Condensed table w/ half padding
63
+ // -------------------------------
64
+
65
+ .table-condensed {
66
+ thead,
67
+ tbody,
68
+ tfoot {
69
+ > tr {
70
+ > th,
71
+ > td {
72
+ padding: $table-condensed-cell-padding;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+
79
+
80
+ // Bordered version
81
+ // ----------------
82
+
83
+ .table-bordered {
84
+ border: 1px solid $table-border-color;
85
+ > thead,
86
+ > tbody,
87
+ > tfoot {
88
+ > tr {
89
+ > th,
90
+ > td {
91
+ border: 1px solid $table-border-color;
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+
98
+
99
+ // Zebra-striping
100
+ // --------------
101
+
102
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
103
+ .table-striped {
104
+ > tbody {
105
+ > tr:nth-child(odd) {
106
+ > td,
107
+ > th {
108
+ background-color: $table-bg-accent;
109
+ }
110
+ }
111
+ }
112
+ }
113
+
114
+
115
+
116
+ // Hover effect
117
+ // ------------
118
+
119
+ // Placed here since it has to come after the potential zebra striping
120
+ .table-hover {
121
+ > tbody {
122
+ > tr:hover {
123
+ > td,
124
+ > th {
125
+ background-color: $table-bg-hover;
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+
132
+
133
+ // Table cell sizing
134
+ // -----------------
135
+
136
+ // Reset default table behavior
137
+ table col[class^="col-"] {
138
+ float: none;
139
+ display: table-column;
140
+ }
141
+ table {
142
+ td,
143
+ th {
144
+ &[class^="col-"] {
145
+ float: none;
146
+ display: table-cell;
147
+ }
148
+ }
149
+ }
150
+
151
+
152
+
153
+ // Table backgrounds
154
+ // -----------------
155
+ // Exact selectors below required to override `.table-striped` and prevent
156
+ // inheritance to nested tables.
157
+
158
+ .table > thead > tr,
159
+ .table > tbody > tr,
160
+ .table > tfoot > tr {
161
+ > td.active,
162
+ > th.active,
163
+ &.active > td,
164
+ &.active > th {
165
+ background-color: $table-bg-hover;
166
+ }
167
+ > td.success,
168
+ > th.success,
169
+ &.success > td,
170
+ &.success > th {
171
+ background-color: $state-success-bg;
172
+ border-color: $state-success-border;
173
+ }
174
+ > td.danger,
175
+ > th.danger,
176
+ &.danger > td,
177
+ &.danger > th {
178
+ background-color: $state-danger-bg;
179
+ border-color: $state-danger-border;
180
+ }
181
+ > td.warning,
182
+ > th.warning,
183
+ &.warning > td,
184
+ &.warning > th {
185
+ background-color: $state-warning-bg;
186
+ border-color: $state-warning-border;
187
+ }
188
+ }
189
+
190
+ // Hover states for `.table-hover`
191
+ // Note: this is not available for cells or rows within `thead` or `tfoot`.
192
+ .table-hover > tbody > tr {
193
+ > td.success:hover,
194
+ > th.success:hover,
195
+ &.success:hover > td {
196
+ background-color: darken($state-success-bg, 5%);
197
+ border-color: darken($state-success-border, 5%);
198
+ }
199
+ > td.danger:hover,
200
+ > th.danger:hover,
201
+ &.danger:hover > td {
202
+ background-color: darken($state-danger-bg, 5%);
203
+ border-color: darken($state-danger-border, 5%);
204
+ }
205
+ > td.warning:hover,
206
+ > th.warning:hover,
207
+ &.warning:hover > td {
208
+ background-color: darken($state-warning-bg, 5%);
209
+ border-color: darken($state-warning-border, 5%);
210
+ }
211
+ }
@@ -20,8 +20,9 @@
20
20
  .thumbnail {
21
21
  display: block;
22
22
  }
23
+ .thumbnail > img,
23
24
  .img-thumbnail {
24
- display: inline-block;
25
+ @include img-responsive();
25
26
  }
26
27
 
27
28
  // Add a hover state for linked versions only
@@ -32,8 +33,6 @@ a.thumbnail:focus {
32
33
 
33
34
  // Images and captions
34
35
  .thumbnail > img {
35
- display: block;
36
- max-width: 100%;
37
36
  margin-left: auto;
38
37
  margin-right: auto;
39
38
  }
@@ -9,7 +9,7 @@
9
9
  z-index: $zindex-tooltip;
10
10
  display: block;
11
11
  visibility: visible;
12
- font-size: $font-size-mini;
12
+ font-size: $font-size-small;
13
13
  line-height: 1.4;
14
14
  @include opacity(0);
15
15
 
@@ -22,7 +22,7 @@
22
22
 
23
23
  // Wrapper for the tooltip content
24
24
  .tooltip-inner {
25
- max-width: 200px;
25
+ max-width: $tooltip-max-width;
26
26
  padding: 3px 8px;
27
27
  color: $tooltip-color;
28
28
  text-align: center;
@@ -47,6 +47,18 @@
47
47
  border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
48
48
  border-top-color: $tooltip-arrow-color;
49
49
  }
50
+ &.top-left .tooltip-arrow {
51
+ bottom: 0;
52
+ left: 5px;
53
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
54
+ border-top-color: $tooltip-arrow-color;
55
+ }
56
+ &.top-right .tooltip-arrow {
57
+ bottom: 0;
58
+ right: 5px;
59
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
60
+ border-top-color: $tooltip-arrow-color;
61
+ }
50
62
  &.right .tooltip-arrow {
51
63
  top: 50%;
52
64
  left: 0;
@@ -68,4 +80,16 @@
68
80
  border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
69
81
  border-bottom-color: $tooltip-arrow-color;
70
82
  }
83
+ &.bottom-left .tooltip-arrow {
84
+ top: 0;
85
+ left: 5px;
86
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
87
+ border-bottom-color: $tooltip-arrow-color;
88
+ }
89
+ &.bottom-right .tooltip-arrow {
90
+ top: 0;
91
+ right: 5px;
92
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
93
+ border-bottom-color: $tooltip-arrow-color;
94
+ }
71
95
  }
@@ -11,9 +11,13 @@ p {
11
11
  }
12
12
  .lead {
13
13
  margin-bottom: $line-height-computed;
14
- font-size: ($font-size-base * 1.5);
14
+ font-size: ($font-size-base * 1.15);
15
15
  font-weight: 200;
16
16
  line-height: 1.4;
17
+
18
+ @media (min-width: 768px) {
19
+ font-size: ($font-size-base * 1.5);
20
+ }
17
21
  }
18
22
 
19
23
 
@@ -23,27 +27,18 @@ p {
23
27
  // Ex: 14px base font * 85% = about 12px
24
28
  small { font-size: 85%; }
25
29
 
26
- strong { font-weight: bold; }
27
- em { font-style: italic; }
30
+ // Undo browser default styling
28
31
  cite { font-style: normal; }
29
32
 
30
- // Utility classes
31
- .text-muted { color: $gray-light; }
32
- a.text-muted:hover,
33
- a.text-muted:focus { color: darken($gray-light, 10%); }
34
-
33
+ // Contextual emphasis
34
+ .text-muted { color: $text-muted; }
35
+ .text-primary { color: $brand-primary; }
35
36
  .text-warning { color: $state-warning-text; }
36
- a.text-warning:hover,
37
- a.text-warning:focus { color: darken($state-warning-text, 10%); }
38
-
39
37
  .text-danger { color: $state-danger-text; }
40
- a.text-danger:hover,
41
- a.text-danger:focus { color: darken($state-danger-text, 10%); }
42
-
43
38
  .text-success { color: $state-success-text; }
44
- a.text-success:hover,
45
- a.text-success:focus { color: darken($state-success-text, 10%); }
39
+ .text-info { color: $state-info-text; }
46
40
 
41
+ // Alignment
47
42
  .text-left { text-align: left; }
48
43
  .text-right { text-align: right; }
49
44
  .text-center { text-align: center; }
@@ -54,12 +49,13 @@ a.text-success:focus { color: darken($state-success-text, 10%); }
54
49
 
55
50
  h1, h2, h3, h4, h5, h6,
56
51
  .h1, .h2, .h3, .h4, .h5, .h6 {
52
+ font-family: $headings-font-family;
57
53
  font-weight: $headings-font-weight;
58
54
  line-height: $headings-line-height;
59
55
  small {
60
56
  font-weight: normal;
61
57
  line-height: 1;
62
- color: $gray-light;
58
+ color: $headings-small-color;
63
59
  }
64
60
  }
65
61
 
@@ -95,7 +91,7 @@ h4 small, .h4 small { font-size: $font-size-base; }
95
91
  .page-header {
96
92
  padding-bottom: (($line-height-computed / 2) - 1);
97
93
  margin: ($line-height-computed * 2) 0 $line-height-computed;
98
- border-bottom: 1px solid $gray-lighter;
94
+ border-bottom: 1px solid $page-header-border-color;
99
95
  }
100
96
 
101
97
 
@@ -106,24 +102,19 @@ h4 small, .h4 small { font-size: $font-size-base; }
106
102
  // Unordered and Ordered lists
107
103
  ul,
108
104
  ol {
109
- padding: 0;
110
- margin: 0 0 ($line-height-computed / 2) 25px;
111
- }
112
- ul ul,
113
- ul ol,
114
- ol ol,
115
- ol ul {
116
- margin-bottom: 0;
117
- }
118
- li {
119
- line-height: $line-height-base;
105
+ margin-top: 0;
106
+ margin-bottom: ($line-height-computed / 2);
107
+ ul,
108
+ ol{
109
+ margin-bottom: 0;
110
+ }
120
111
  }
121
112
 
122
113
  // List options
123
114
 
124
- // Unstyled keeps list items block level, just removes list-style
115
+ // Unstyled keeps list items block level, just removes default browser padding and list-style
125
116
  @mixin list-unstyled {
126
- margin-left: 0;
117
+ padding-left: 0;
127
118
  list-style: none;
128
119
  }
129
120
 
@@ -151,11 +142,10 @@ dt {
151
142
  font-weight: bold;
152
143
  }
153
144
  dd {
154
- margin-left: ($line-height-computed / 2);
145
+ margin-left: 0; // Undo browser default
155
146
  }
156
147
  // Horizontal layout (like forms)
157
148
  .dl-horizontal {
158
- @include clearfix(); // Ensure dl clears floats if empty dd elements present
159
149
  dt {
160
150
  float: left;
161
151
  width: ($component-offset-horizontal - 20);
@@ -164,6 +154,7 @@ dd {
164
154
  @include text-overflow();
165
155
  }
166
156
  dd {
157
+ @include clearfix(); // Clear the floated `dt` if an empty `dd` is present
167
158
  margin-left: $component-offset-horizontal;
168
159
  }
169
160
  }
@@ -171,21 +162,12 @@ dd {
171
162
  // MISC
172
163
  // ----
173
164
 
174
- // Horizontal rules
175
- hr {
176
- margin: $line-height-computed 0;
177
- border: 0;
178
- border-top: 1px solid $hr-border;
179
- border-bottom: 1px solid #fff;
180
- border-bottom: 1px solid rgba(255,255,255,.5);
181
- }
182
-
183
165
  // Abbreviations and acronyms
184
166
  abbr[title],
185
- // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
167
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
186
168
  abbr[data-original-title] {
187
169
  cursor: help;
188
- border-bottom: 1px dotted $gray-light;
170
+ border-bottom: 1px dotted $abbr-border-color;
189
171
  }
190
172
  abbr.initialism {
191
173
  font-size: 90%;
@@ -196,7 +178,7 @@ abbr.initialism {
196
178
  blockquote {
197
179
  padding: ($line-height-computed / 2) $line-height-computed;
198
180
  margin: 0 0 $line-height-computed;
199
- border-left: 5px solid $gray-lighter;
181
+ border-left: 5px solid $blockquote-border-color;
200
182
  p {
201
183
  font-size: ($font-size-base * 1.25);
202
184
  font-weight: 300;
@@ -208,9 +190,9 @@ blockquote {
208
190
  small {
209
191
  display: block;
210
192
  line-height: $line-height-base;
211
- color: $gray-light;
193
+ color: $blockquote-small-color;
212
194
  &:before {
213
- content: '\2014 \00A0';
195
+ content: '\2014 \00A0';// EM DASH, NBSP
214
196
  }
215
197
  }
216
198
 
@@ -219,7 +201,7 @@ blockquote {
219
201
  float: right;
220
202
  padding-right: 15px;
221
203
  padding-left: 0;
222
- border-right: 5px solid $gray-lighter;
204
+ border-right: 5px solid $blockquote-border-color;
223
205
  border-left: 0;
224
206
  p,
225
207
  small {
@@ -230,7 +212,7 @@ blockquote {
230
212
  content: '';
231
213
  }
232
214
  &:after {
233
- content: '\00A0 \2014';
215
+ content: '\00A0 \2014';// NBSP, EM DASH
234
216
  }
235
217
  }
236
218
  }