less-rails-bootstrap 2.0.10 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/lib/less/rails/bootstrap/version.rb +1 -1
  3. data/scripts/update_bootstrap.sh +33 -0
  4. data/test/cases/usage_css_spec.rb +2 -2
  5. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  6. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  7. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +28 -32
  8. data/vendor/assets/javascripts/twitter/bootstrap/button.js +29 -33
  9. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +27 -19
  10. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +44 -25
  11. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +18 -10
  12. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +25 -17
  13. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +13 -10
  14. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +43 -17
  15. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +12 -7
  16. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +40 -35
  17. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +30 -20
  18. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +25 -11
  19. data/vendor/frameworks/twitter/bootstrap/accordion.less +5 -0
  20. data/vendor/frameworks/twitter/bootstrap/bootstrap.less +2 -3
  21. data/vendor/frameworks/twitter/bootstrap/button-groups.less +55 -36
  22. data/vendor/frameworks/twitter/bootstrap/buttons.less +15 -11
  23. data/vendor/frameworks/twitter/bootstrap/close.less +12 -1
  24. data/vendor/frameworks/twitter/bootstrap/code.less +5 -5
  25. data/vendor/frameworks/twitter/bootstrap/component-animations.less +4 -4
  26. data/vendor/frameworks/twitter/bootstrap/dropdowns.less +15 -20
  27. data/vendor/frameworks/twitter/bootstrap/forms.less +58 -29
  28. data/vendor/frameworks/twitter/bootstrap/grid.less +1 -1
  29. data/vendor/frameworks/twitter/bootstrap/labels-badges.less +55 -0
  30. data/vendor/frameworks/twitter/bootstrap/layouts.less +2 -2
  31. data/vendor/frameworks/twitter/bootstrap/mixins.less +53 -36
  32. data/vendor/frameworks/twitter/bootstrap/modals.less +1 -1
  33. data/vendor/frameworks/twitter/bootstrap/navbar.less +65 -42
  34. data/vendor/frameworks/twitter/bootstrap/navs.less +36 -36
  35. data/vendor/frameworks/twitter/bootstrap/pager.less +1 -1
  36. data/vendor/frameworks/twitter/bootstrap/progress-bars.less +14 -6
  37. data/vendor/frameworks/twitter/bootstrap/reset.less +3 -3
  38. data/vendor/frameworks/twitter/bootstrap/responsive-1200px-min.less +23 -0
  39. data/vendor/frameworks/twitter/bootstrap/responsive-767px-max.less +149 -0
  40. data/vendor/frameworks/twitter/bootstrap/responsive-768px-979px.less +15 -0
  41. data/vendor/frameworks/twitter/bootstrap/responsive-navbar.less +146 -0
  42. data/vendor/frameworks/twitter/bootstrap/responsive-utilities.less +41 -0
  43. data/vendor/frameworks/twitter/bootstrap/responsive.less +14 -337
  44. data/vendor/frameworks/twitter/bootstrap/sprites.less +41 -8
  45. data/vendor/frameworks/twitter/bootstrap/tables.less +22 -5
  46. data/vendor/frameworks/twitter/bootstrap/thumbnails.less +11 -2
  47. data/vendor/frameworks/twitter/bootstrap/type.less +7 -6
  48. data/vendor/frameworks/twitter/bootstrap/variables.less +12 -8
  49. metadata +11 -4
@@ -6,8 +6,8 @@
6
6
  // ICONS
7
7
  // -----
8
8
 
9
- // All icons receive the styles of the <i> tag with a base class
10
- // of .i and are then given a unique class to add width, height,
9
+ // All icons receive the styles of the <i> tag with a base class
10
+ // of .i and are then given a unique class to add width, height,
11
11
  // and background-position. Your resulting HTML will look like
12
12
  // <i class="icon-inbox"></i>.
13
13
 
@@ -19,16 +19,16 @@
19
19
  display: inline-block;
20
20
  width: 14px;
21
21
  height: 14px;
22
+ .ie7-restore-right-whitespace();
22
23
  line-height: 14px;
23
24
  vertical-align: text-top;
24
- background-image: url(@iconSpritePath);
25
+ background-image: asset-url("@{iconSpritePath}");
25
26
  background-position: 14px 14px;
26
27
  background-repeat: no-repeat;
27
28
 
28
- .ie7-restore-right-whitespace();
29
29
  }
30
30
  .icon-white {
31
- background-image: url(@iconWhiteSpritePath);
31
+ background-image: asset-url("@{iconWhiteSpritePath}");
32
32
  }
33
33
 
34
34
  .icon-glass { background-position: 0 0; }
@@ -149,10 +149,43 @@
149
149
  .icon-comment { background-position: -240px -120px; }
150
150
  .icon-magnet { background-position: -264px -120px; }
151
151
  .icon-chevron-up { background-position: -288px -120px; }
152
- .icon-chevron-down { background-position: -313px -119px; } // 1px off
152
+ .icon-chevron-down { background-position: -313px -119px; } // 1px, 1px off
153
153
  .icon-retweet { background-position: -336px -120px; }
154
154
  .icon-shopping-cart { background-position: -360px -120px; }
155
155
  .icon-folder-close { background-position: -384px -120px; }
156
156
  .icon-folder-open { background-position: -408px -120px; }
157
- .icon-resize-vertical { background-position: -432px -119px; }
158
- .icon-resize-horizontal { background-position: -456px -118px; }
157
+ .icon-resize-vertical { background-position: -432px -119px; } // 1px, 1px off
158
+ .icon-resize-horizontal { background-position: -456px -118px; } // 1px, 2px off
159
+
160
+ .icon-hdd { background-position: 0 -144px; }
161
+ .icon-bullhorn { background-position: -24px -144px; }
162
+ .icon-bell { background-position: -48px -144px; }
163
+ .icon-certificate { background-position: -72px -144px; }
164
+ .icon-thumbs-up { background-position: -96px -144px; }
165
+ .icon-thumbs-down { background-position: -120px -144px; }
166
+ .icon-hand-right { background-position: -144px -144px; }
167
+ .icon-hand-left { background-position: -168px -144px; }
168
+ .icon-hand-up { background-position: -192px -144px; }
169
+ .icon-hand-down { background-position: -216px -144px; }
170
+ .icon-circle-arrow-right { background-position: -240px -144px; }
171
+ .icon-circle-arrow-left { background-position: -264px -144px; }
172
+ .icon-circle-arrow-up { background-position: -288px -144px; }
173
+ .icon-circle-arrow-down { background-position: -312px -144px; }
174
+ .icon-globe { background-position: -336px -144px; }
175
+ .icon-wrench { background-position: -360px -144px; }
176
+ .icon-tasks { background-position: -384px -144px; }
177
+ .icon-filter { background-position: -408px -144px; }
178
+ .icon-briefcase { background-position: -432px -144px; }
179
+ .icon-fullscreen { background-position: -456px -144px; }
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
@@ -9,9 +9,9 @@
9
9
 
10
10
  table {
11
11
  max-width: 100%;
12
+ background-color: @tableBackground;
12
13
  border-collapse: collapse;
13
14
  border-spacing: 0;
14
- background-color: @tableBackground;
15
15
  }
16
16
 
17
17
  // BASELINE STYLES
@@ -37,6 +37,8 @@ table {
37
37
  vertical-align: bottom;
38
38
  }
39
39
  // Remove top border from thead by default
40
+ caption + thead tr:first-child th,
41
+ caption + thead tr:first-child td,
40
42
  colgroup + thead tr:first-child th,
41
43
  colgroup + thead tr:first-child td,
42
44
  thead:first-child tr:first-child th,
@@ -67,15 +69,21 @@ table {
67
69
 
68
70
  .table-bordered {
69
71
  border: 1px solid @tableBorder;
70
- border-left: 0;
71
72
  border-collapse: separate; // Done so we can round those corners!
72
73
  *border-collapse: collapsed; // IE7 can't round corners anyway
74
+ border-left: 0;
73
75
  .border-radius(4px);
74
76
  th,
75
77
  td {
76
78
  border-left: 1px solid @tableBorder;
77
79
  }
78
80
  // Prevent a double border
81
+ caption + thead tr:first-child th,
82
+ caption + tbody tr:first-child th,
83
+ caption + tbody tr:first-child td,
84
+ colgroup + thead tr:first-child th,
85
+ colgroup + tbody tr:first-child th,
86
+ colgroup + tbody tr:first-child td,
79
87
  thead:first-child tr:first-child th,
80
88
  tbody:first-child tr:first-child th,
81
89
  tbody:first-child tr:first-child td {
@@ -84,20 +92,29 @@ table {
84
92
  // For first th or td in the first row in the first thead or tbody
85
93
  thead:first-child tr:first-child th:first-child,
86
94
  tbody:first-child tr:first-child td:first-child {
87
- .border-radius(4px 0 0 0);
95
+ -webkit-border-top-left-radius: 4px;
96
+ border-top-left-radius: 4px;
97
+ -moz-border-radius-topleft: 4px;
88
98
  }
89
99
  thead:first-child tr:first-child th:last-child,
90
100
  tbody:first-child tr:first-child td:last-child {
91
- .border-radius(0 4px 0 0);
101
+ -webkit-border-top-right-radius: 4px;
102
+ border-top-right-radius: 4px;
103
+ -moz-border-radius-topright: 4px;
92
104
  }
93
105
  // For first th or td in the first row in the first thead or tbody
94
106
  thead:last-child tr:last-child th:first-child,
95
107
  tbody:last-child tr:last-child td:first-child {
96
108
  .border-radius(0 0 0 4px);
109
+ -webkit-border-bottom-left-radius: 4px;
110
+ border-bottom-left-radius: 4px;
111
+ -moz-border-radius-bottomleft: 4px;
97
112
  }
98
113
  thead:last-child tr:last-child th:last-child,
99
114
  tbody:last-child tr:last-child td:last-child {
100
- .border-radius(0 0 4px 0);
115
+ -webkit-border-bottom-right-radius: 4px;
116
+ border-bottom-right-radius: 4px;
117
+ -moz-border-radius-bottomright: 4px;
101
118
  }
102
119
  }
103
120
 
@@ -1,15 +1,23 @@
1
1
  // THUMBNAILS
2
2
  // ----------
3
3
 
4
+ // Make wrapper ul behave like the grid
4
5
  .thumbnails {
5
6
  margin-left: -@gridGutterWidth;
6
7
  list-style: none;
7
8
  .clearfix();
8
9
  }
10
+ // Fluid rows have no left margin
11
+ .row-fluid .thumbnails {
12
+ margin-left: 0;
13
+ }
14
+
15
+ // Float li to make thumbnails appear in a row
9
16
  .thumbnails > li {
10
- float: left;
11
- margin: 0 0 @baseLineHeight @gridGutterWidth;
17
+ margin-bottom: @baseLineHeight;
12
18
  }
19
+
20
+ // The actual thumbnail (can be `a` or `div`)
13
21
  .thumbnail {
14
22
  display: block;
15
23
  padding: 4px;
@@ -23,6 +31,7 @@ a.thumbnail:hover {
23
31
  border-color: @linkColor;
24
32
  .box-shadow(0 1px 4px rgba(0,105,214,.25));
25
33
  }
34
+
26
35
  // Images and captions
27
36
  .thumbnail > img {
28
37
  display: block;
@@ -52,8 +52,8 @@ h2 {
52
52
  }
53
53
  }
54
54
  h3 {
55
- line-height: @baseLineHeight * 1.5;
56
55
  font-size: 18px;
56
+ line-height: @baseLineHeight * 1.5;
57
57
  small {
58
58
  font-size: 14px;
59
59
  }
@@ -136,9 +136,10 @@ dd {
136
136
  .dl-horizontal {
137
137
  dt {
138
138
  float: left;
139
- clear: left;
140
139
  width: 120px;
140
+ clear: left;
141
141
  text-align: right;
142
+ .text-overflow();
142
143
  }
143
144
  dd {
144
145
  margin-left: 130px;
@@ -169,8 +170,8 @@ em {
169
170
 
170
171
  // Abbreviations and acronyms
171
172
  abbr[title] {
172
- border-bottom: 1px dotted #ddd;
173
173
  cursor: help;
174
+ border-bottom: 1px dotted #ddd;
174
175
  }
175
176
  abbr.initialism {
176
177
  font-size: 90%;
@@ -198,10 +199,10 @@ blockquote {
198
199
  // Float right with text-align: right
199
200
  &.pull-right {
200
201
  float: right;
201
- padding-left: 0;
202
202
  padding-right: 15px;
203
- border-left: 0;
203
+ padding-left: 0;
204
204
  border-right: 5px solid @grayLighter;
205
+ border-left: 0;
205
206
  p,
206
207
  small {
207
208
  text-align: right;
@@ -221,8 +222,8 @@ blockquote:after {
221
222
  address {
222
223
  display: block;
223
224
  margin-bottom: @baseLineHeight;
224
- line-height: @baseLineHeight;
225
225
  font-style: normal;
226
+ line-height: @baseLineHeight;
226
227
  }
227
228
 
228
229
  // Misc
@@ -45,10 +45,14 @@
45
45
 
46
46
  // Typography
47
47
  // -------------------------
48
+ @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
49
+ @serifFontFamily: Georgia, "Times New Roman", Times, serif;
50
+ @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
51
+
48
52
  @baseFontSize: 13px;
49
- @baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
53
+ @baseFontFamily: @sansFontFamily;
50
54
  @baseLineHeight: 18px;
51
- @altFontFamily: Georgia, "Times New Roman", Times, serif;
55
+ @altFontFamily: @serifFontFamily;
52
56
 
53
57
  @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
54
58
  @headingsFontWeight: bold; // instead of browser default, bold
@@ -67,7 +71,7 @@
67
71
  // -------------------------
68
72
  @btnBackground: @white;
69
73
  @btnBackgroundHighlight: darken(@white, 10%);
70
- @btnBorder: darken(@white, 20%);
74
+ @btnBorder: #ccc;
71
75
 
72
76
  @btnPrimaryBackground: @linkColor;
73
77
  @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
@@ -92,8 +96,9 @@
92
96
  // -------------------------
93
97
  @inputBackground: @white;
94
98
  @inputBorder: #ccc;
99
+ @inputBorderRadius: 3px;
95
100
  @inputDisabledBackground: @grayLighter;
96
-
101
+ @formActionsBackground: #f5f5f5;
97
102
 
98
103
  // Dropdowns
99
104
  // -------------------------
@@ -123,8 +128,8 @@
123
128
 
124
129
  // Sprite icons path
125
130
  // -------------------------
126
- @iconSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings.png");
127
- @iconWhiteSpritePath: asset-path("twitter/bootstrap/glyphicons-halflings-white.png");
131
+ @iconSpritePath: "twitter/bootstrap/glyphicons-halflings.png";
132
+ @iconWhiteSpritePath: "twitter/bootstrap/glyphicons-halflings-white.png";
128
133
 
129
134
 
130
135
  // Input placeholder text color
@@ -154,6 +159,7 @@
154
159
  @navbarSearchBackgroundFocus: @white;
155
160
  @navbarSearchBorder: darken(@navbarSearchBackground, 30%);
156
161
  @navbarSearchPlaceholderColor: #ccc;
162
+ @navbarBrandColor: @navbarLinkColor;
157
163
 
158
164
 
159
165
  // Hero unit
@@ -183,7 +189,6 @@
183
189
 
184
190
 
185
191
 
186
-
187
192
  // GRID
188
193
  // --------------------------------------------------
189
194
 
@@ -194,7 +199,6 @@
194
199
  @gridGutterWidth: 20px;
195
200
  @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
196
201
 
197
-
198
202
  // Fluid grid
199
203
  // -------------------------
200
204
  @fluidGridColumnWidth: 6.382978723%;
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 10
10
- version: 2.0.10
9
+ - 11
10
+ version: 2.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Collins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-05 00:00:00 Z
18
+ date: 2012-04-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: less-rails
@@ -98,6 +98,7 @@ files:
98
98
  - lib/less/rails/bootstrap.rb
99
99
  - lib/less/rails/bootstrap/engine.rb
100
100
  - lib/less/rails/bootstrap/version.rb
101
+ - scripts/update_bootstrap.sh
101
102
  - test/cases/engine_spec.rb
102
103
  - test/cases/usage_css_spec.rb
103
104
  - test/cases/usage_js_spec.rb
@@ -141,6 +142,7 @@ files:
141
142
  - vendor/frameworks/twitter/bootstrap/forms.less
142
143
  - vendor/frameworks/twitter/bootstrap/grid.less
143
144
  - vendor/frameworks/twitter/bootstrap/hero-unit.less
145
+ - vendor/frameworks/twitter/bootstrap/labels-badges.less
144
146
  - vendor/frameworks/twitter/bootstrap/labels.less
145
147
  - vendor/frameworks/twitter/bootstrap/layouts.less
146
148
  - vendor/frameworks/twitter/bootstrap/mixins.less
@@ -152,6 +154,11 @@ files:
152
154
  - vendor/frameworks/twitter/bootstrap/popovers.less
153
155
  - vendor/frameworks/twitter/bootstrap/progress-bars.less
154
156
  - vendor/frameworks/twitter/bootstrap/reset.less
157
+ - vendor/frameworks/twitter/bootstrap/responsive-1200px-min.less
158
+ - vendor/frameworks/twitter/bootstrap/responsive-767px-max.less
159
+ - vendor/frameworks/twitter/bootstrap/responsive-768px-979px.less
160
+ - vendor/frameworks/twitter/bootstrap/responsive-navbar.less
161
+ - vendor/frameworks/twitter/bootstrap/responsive-utilities.less
155
162
  - vendor/frameworks/twitter/bootstrap/responsive.less
156
163
  - vendor/frameworks/twitter/bootstrap/scaffolding.less
157
164
  - vendor/frameworks/twitter/bootstrap/sprites.less