anjlab-bootstrap-rails 3.0.0.3 → 3.0.1.0

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +0 -1
  4. data/app/assets/fonts/twitter/glyphicons-halflings-regular.eot +0 -0
  5. data/app/assets/fonts/twitter/glyphicons-halflings-regular.svg +200 -199
  6. data/app/assets/fonts/twitter/glyphicons-halflings-regular.ttf +0 -0
  7. data/app/assets/fonts/twitter/glyphicons-halflings-regular.woff +0 -0
  8. data/app/assets/javascripts/twitter/bootstrap.js +1 -2
  9. data/app/assets/javascripts/twitter/bootstrap/affix.js +3 -3
  10. data/app/assets/javascripts/twitter/bootstrap/alert.js +2 -2
  11. data/app/assets/javascripts/twitter/bootstrap/button.js +2 -2
  12. data/app/assets/javascripts/twitter/bootstrap/carousel.js +3 -3
  13. data/app/assets/javascripts/twitter/bootstrap/collapse.js +3 -3
  14. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +3 -3
  15. data/app/assets/javascripts/twitter/bootstrap/modal.js +3 -3
  16. data/app/assets/javascripts/twitter/bootstrap/popover.js +3 -3
  17. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +3 -3
  18. data/app/assets/javascripts/twitter/bootstrap/tab.js +4 -4
  19. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +3 -3
  20. data/app/assets/javascripts/twitter/bootstrap/transition.js +2 -2
  21. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +1 -1
  22. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +1 -1
  23. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +6 -1
  24. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -4
  25. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +12 -1
  26. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +3 -3
  27. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +1 -2
  28. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +10 -9
  29. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +13 -12
  30. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +22 -275
  31. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +1 -1
  32. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +15 -0
  33. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +91 -18
  34. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +1 -7
  35. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +9 -6
  36. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +32 -18
  37. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +4 -0
  38. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +6 -1
  39. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +2 -6
  40. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +0 -10
  41. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +1 -1
  42. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +15 -25
  43. data/app/assets/stylesheets/twitter/bootstrap/_theme.scss +3 -1
  44. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +5 -6
  45. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +20 -12
  46. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +11 -0
  47. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +3 -3
  48. data/lib/bootstrap-rails/version.rb +1 -1
  49. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: affix.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#affix
2
+ * Bootstrap: affix.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#affix
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  /* ========================================================================
2
- * Bootstrap: alert.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#alerts
2
+ * Bootstrap: alert.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#alerts
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /* ========================================================================
2
- * Bootstrap: button.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#buttons
2
+ * Bootstrap: button.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#buttons
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
6
6
  *
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: carousel.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#carousel
2
+ * Bootstrap: carousel.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#carousel
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: collapse.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#collapse
2
+ * Bootstrap: collapse.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#collapse
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: dropdown.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#dropdowns
2
+ * Bootstrap: dropdown.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#dropdowns
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: modal.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#modals
2
+ * Bootstrap: modal.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#modals
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: popover.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#popovers
2
+ * Bootstrap: popover.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#popovers
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: scrollspy.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#scrollspy
2
+ * Bootstrap: scrollspy.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#scrollspy
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: tab.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#tabs
2
+ * Bootstrap: tab.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#tabs
4
4
  * ========================================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@
30
30
  Tab.prototype.show = function () {
31
31
  var $this = this.element
32
32
  var $ul = $this.closest('ul:not(.dropdown-menu)')
33
- var selector = $this.attr('data-target')
33
+ var selector = $this.data('target')
34
34
 
35
35
  if (!selector) {
36
36
  selector = $this.attr('href')
@@ -1,9 +1,9 @@
1
1
  /* ========================================================================
2
- * Bootstrap: tooltip.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#tooltip
2
+ * Bootstrap: tooltip.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#tooltip
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ========================================================================
6
- * Copyright 2012 Twitter, Inc.
6
+ * Copyright 2013 Twitter, Inc.
7
7
  *
8
8
  * Licensed under the Apache License, Version 2.0 (the "License");
9
9
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  /* ========================================================================
2
- * Bootstrap: transition.js v3.0.0
3
- * http://twbs.github.com/bootstrap/javascript.html#transitions
2
+ * Bootstrap: transition.js v3.0.1
3
+ * http://getbootstrap.com/javascript/#transitions
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
6
6
  *
@@ -15,7 +15,7 @@
15
15
  // Headings for larger alerts
16
16
  h4 {
17
17
  margin-top: 0;
18
- // Specified for the h4 to prevent conflicts of changing @headingsColor
18
+ // Specified for the h4 to prevent conflicts of changing @headings-color
19
19
  color: inherit;
20
20
  }
21
21
  // Provide class for links that match alerts
@@ -11,7 +11,7 @@
11
11
  border-radius: $border-radius-base;
12
12
  > li {
13
13
  display: inline-block;
14
- &+li:before {
14
+ + li:before {
15
15
  content: "#{$breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
16
16
  padding: 0 5px;
17
17
  color: $breadcrumb-color;
@@ -19,7 +19,7 @@
19
19
  }
20
20
  }
21
21
  .dropup {
22
- & .btn-default .caret {
22
+ .btn-default .caret {
23
23
  border-bottom-color: $btn-default-color;
24
24
  }
25
25
  .btn-primary,
@@ -150,6 +150,11 @@
150
150
  // Remove the gradient and set the same inset shadow as the :active state
151
151
  .btn-group.open .dropdown-toggle {
152
152
  @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
153
+
154
+ // Show no shadow for `.btn-link` since it has no other button styles.
155
+ &.btn-link {
156
+ @include box-shadow(none);
157
+ }
153
158
  }
154
159
 
155
160
 
@@ -9,18 +9,15 @@
9
9
  // Core styles
10
10
  .btn {
11
11
  display: inline-block;
12
- padding: $padding-base-vertical $padding-base-horizontal;
13
12
  margin-bottom: 0; // For input.btn
14
- font-size: $font-size-base;
15
13
  font-weight: $btn-font-weight;
16
- line-height: $line-height-base;
17
14
  text-align: center;
18
15
  vertical-align: middle;
19
16
  cursor: pointer;
20
17
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
21
18
  border: 1px solid transparent;
22
- border-radius: $border-radius-base;
23
19
  white-space: nowrap;
20
+ @include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $border-radius-base);
24
21
  @include user-select(none);
25
22
 
26
23
  &:focus {
@@ -75,7 +75,7 @@
75
75
  color: $carousel-control-color;
76
76
  text-align: center;
77
77
  text-shadow: $carousel-text-shadow;
78
- // We can't have this transition here because webkit cancels the carousel
78
+ // We can't have this transition here because WebKit cancels the carousel
79
79
  // animation if you trip this while in the middle of another animation.
80
80
 
81
81
  // Set gradients for backgrounds
@@ -160,6 +160,17 @@
160
160
  border: 1px solid $carousel-indicator-border-color;
161
161
  border-radius: 10px;
162
162
  cursor: pointer;
163
+
164
+ // IE8-9 hack for event handling
165
+ //
166
+ // Internet Explorer 8-9 does not support clicks on elements without a set
167
+ // `background-color`. We cannot use `filter` since that's not viewed as a
168
+ // background color by the browser. Thus, a hack is needed.
169
+ //
170
+ // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
171
+ // set alpha transparency for the best results possible.
172
+ background-color: #000 \9; // IE8
173
+ background-color: rgba(0,0,0,0); // IE9
163
174
  }
164
175
  .active {
165
176
  margin: 0;
@@ -1,11 +1,11 @@
1
1
  //
2
- // Code (inline and blocK)
2
+ // Code (inline and block)
3
3
  // --------------------------------------------------
4
4
 
5
5
 
6
6
  // Inline and block code styles
7
7
  code,
8
- kdb,
8
+ kbd,
9
9
  pre,
10
10
  samp {
11
11
  font-family: $font-family-monospace;
@@ -42,7 +42,7 @@ pre {
42
42
  color: inherit;
43
43
  white-space: pre-wrap;
44
44
  background-color: transparent;
45
- border: 0;
45
+ border-radius: 0;
46
46
  }
47
47
  }
48
48
 
@@ -16,7 +16,6 @@
16
16
  // Firefox fix for https://github.com/twbs/bootstrap/issues/9538. Once fixed,
17
17
  // we can just straight up remove this.
18
18
  border-bottom: 0 dotted;
19
- content: "";
20
19
  }
21
20
 
22
21
  // The dropdown wrapper (div)
@@ -167,7 +166,7 @@
167
166
  // Firefox fix for https://github.com/twbs/bootstrap/issues/9538. Once this
168
167
  // gets fixed, restore `border-top: 0;`.
169
168
  border-top: 0 dotted;
170
- border-bottom: 4px solid $dropdown-caret-color;
169
+ border-bottom: $caret-width-base solid $dropdown-caret-color;
171
170
  content: "";
172
171
  }
173
172
  // Different positioning for bottom up menu
@@ -92,14 +92,6 @@ output {
92
92
  vertical-align: middle;
93
93
  }
94
94
 
95
- // Placeholder
96
- //
97
- // Placeholder text gets special styles because when browsers invalidate entire
98
- // lines if it doesn't understand a selector/
99
- .form-control {
100
- @include placeholder();
101
- }
102
-
103
95
 
104
96
  // Common form controls
105
97
  //
@@ -142,6 +134,12 @@ output {
142
134
  // Customize the `:focus` state to imitate native WebKit styles.
143
135
  @include form-control-focus();
144
136
 
137
+ // Placeholder
138
+ //
139
+ // Placeholder text gets special styles because when browsers invalidate entire
140
+ // lines if it doesn't understand a selector/
141
+ @include placeholder();
142
+
145
143
  // Disabled and read-only inputs
146
144
  // Note: HTML5 says that controls under a fieldset > legend:first-child won't
147
145
  // be disabled if the fieldset is disabled. Due to implementation difficulty,
@@ -262,7 +260,6 @@ input[type="checkbox"],
262
260
 
263
261
  .form-control-static {
264
262
  margin-bottom: 0; // Remove default margin from `p`
265
- padding-top: ($padding-base-vertical + 1);
266
263
  }
267
264
 
268
265
 
@@ -351,6 +348,10 @@ input[type="checkbox"],
351
348
  @include make-row();
352
349
  }
353
350
 
351
+ .form-control-static {
352
+ padding-top: ($padding-base-vertical + 1);
353
+ }
354
+
354
355
  // Only right align form labels here when the columns stop stacking
355
356
  @media (min-width: $screen-sm-min) {
356
357
  .control-label {
@@ -14,7 +14,7 @@
14
14
  src: font-url('#{$icon-font-path}#{$icon-font-name}.eot?#iefix') format('embedded-opentype'),
15
15
  font-url('#{$icon-font-path}#{$icon-font-name}.woff') format('woff'),
16
16
  font-url('#{$icon-font-path}#{$icon-font-name}.ttf') format('truetype'),
17
- font-url('#{$icon-font-path}#{$icon-font-name}.svg#glyphicons-halflingsregular') format('svg');
17
+ font-url('#{$icon-font-path}#{$icon-font-name}.svg#glyphicons_halflingsregular') format('svg');
18
18
  }
19
19
 
20
20
  // Catchall baseclass
@@ -27,8 +27,9 @@
27
27
  font-weight: normal;
28
28
  line-height: 1;
29
29
  -webkit-font-smoothing: antialiased;
30
+ -moz-osx-font-smoothing: grayscale;
30
31
 
31
- &:empty{
32
+ &:empty {
32
33
  width: 1em;
33
34
  }
34
35
  }
@@ -72,6 +73,7 @@
72
73
  .glyphicon-repeat { &:before { content: "\e030"; } }
73
74
  .glyphicon-refresh { &:before { content: "\e031"; } }
74
75
  .glyphicon-list-alt { &:before { content: "\e032"; } }
76
+ .glyphicon-lock { &:before { content: "\e033"; } }
75
77
  .glyphicon-flag { &:before { content: "\e034"; } }
76
78
  .glyphicon-headphones { &:before { content: "\e035"; } }
77
79
  .glyphicon-volume-off { &:before { content: "\e036"; } }
@@ -82,7 +84,9 @@
82
84
  .glyphicon-tag { &:before { content: "\e041"; } }
83
85
  .glyphicon-tags { &:before { content: "\e042"; } }
84
86
  .glyphicon-book { &:before { content: "\e043"; } }
87
+ .glyphicon-bookmark { &:before { content: "\e044"; } }
85
88
  .glyphicon-print { &:before { content: "\e045"; } }
89
+ .glyphicon-camera { &:before { content: "\e046"; } }
86
90
  .glyphicon-font { &:before { content: "\e047"; } }
87
91
  .glyphicon-bold { &:before { content: "\e048"; } }
88
92
  .glyphicon-italic { &:before { content: "\e049"; } }
@@ -136,10 +140,12 @@
136
140
  .glyphicon-exclamation-sign { &:before { content: "\e101"; } }
137
141
  .glyphicon-gift { &:before { content: "\e102"; } }
138
142
  .glyphicon-leaf { &:before { content: "\e103"; } }
143
+ .glyphicon-fire { &:before { content: "\e104"; } }
139
144
  .glyphicon-eye-open { &:before { content: "\e105"; } }
140
145
  .glyphicon-eye-close { &:before { content: "\e106"; } }
141
146
  .glyphicon-warning-sign { &:before { content: "\e107"; } }
142
147
  .glyphicon-plane { &:before { content: "\e108"; } }
148
+ .glyphicon-calendar { &:before { content: "\e109"; } }
143
149
  .glyphicon-random { &:before { content: "\e110"; } }
144
150
  .glyphicon-comment { &:before { content: "\e111"; } }
145
151
  .glyphicon-magnet { &:before { content: "\e112"; } }
@@ -153,6 +159,7 @@
153
159
  .glyphicon-resize-horizontal { &:before { content: "\e120"; } }
154
160
  .glyphicon-hdd { &:before { content: "\e121"; } }
155
161
  .glyphicon-bullhorn { &:before { content: "\e122"; } }
162
+ .glyphicon-bell { &:before { content: "\e123"; } }
156
163
  .glyphicon-certificate { &:before { content: "\e124"; } }
157
164
  .glyphicon-thumbs-up { &:before { content: "\e125"; } }
158
165
  .glyphicon-thumbs-down { &:before { content: "\e126"; } }
@@ -165,13 +172,17 @@
165
172
  .glyphicon-circle-arrow-up { &:before { content: "\e133"; } }
166
173
  .glyphicon-circle-arrow-down { &:before { content: "\e134"; } }
167
174
  .glyphicon-globe { &:before { content: "\e135"; } }
175
+ .glyphicon-wrench { &:before { content: "\e136"; } }
168
176
  .glyphicon-tasks { &:before { content: "\e137"; } }
169
177
  .glyphicon-filter { &:before { content: "\e138"; } }
178
+ .glyphicon-briefcase { &:before { content: "\e139"; } }
170
179
  .glyphicon-fullscreen { &:before { content: "\e140"; } }
171
180
  .glyphicon-dashboard { &:before { content: "\e141"; } }
181
+ .glyphicon-paperclip { &:before { content: "\e142"; } }
172
182
  .glyphicon-heart-empty { &:before { content: "\e143"; } }
173
183
  .glyphicon-link { &:before { content: "\e144"; } }
174
184
  .glyphicon-phone { &:before { content: "\e145"; } }
185
+ .glyphicon-pushpin { &:before { content: "\e146"; } }
175
186
  .glyphicon-usd { &:before { content: "\e148"; } }
176
187
  .glyphicon-gbp { &:before { content: "\e149"; } }
177
188
  .glyphicon-sort { &:before { content: "\e150"; } }
@@ -224,13 +235,3 @@
224
235
  .glyphicon-cloud-upload { &:before { content: "\e198"; } }
225
236
  .glyphicon-tree-conifer { &:before { content: "\e199"; } }
226
237
  .glyphicon-tree-deciduous { &:before { content: "\e200"; } }
227
- .glyphicon-briefcase { &:before { content: "\1f4bc"; } }
228
- .glyphicon-calendar { &:before { content: "\1f4c5"; } }
229
- .glyphicon-pushpin { &:before { content: "\1f4cc"; } }
230
- .glyphicon-paperclip { &:before { content: "\1f4ce"; } }
231
- .glyphicon-camera { &:before { content: "\1f4f7"; } }
232
- .glyphicon-lock { &:before { content: "\1f512"; } }
233
- .glyphicon-bell { &:before { content: "\1f514"; } }
234
- .glyphicon-bookmark { &:before { content: "\1f516"; } }
235
- .glyphicon-fire { &:before { content: "\1f525"; } }
236
- .glyphicon-wrench { &:before { content: "\1f527"; } }
@@ -2,7 +2,6 @@
2
2
  // Grid system
3
3
  // --------------------------------------------------
4
4
 
5
-
6
5
  // Set the container width, and override it for fixed navbars in media queries
7
6
  .container {
8
7
  @include container-fixed();
@@ -14,61 +13,7 @@
14
13
  }
15
14
 
16
15
  // Common styles for small and large grid columns
17
- .col-xs-1,
18
- .col-xs-2,
19
- .col-xs-3,
20
- .col-xs-4,
21
- .col-xs-5,
22
- .col-xs-6,
23
- .col-xs-7,
24
- .col-xs-8,
25
- .col-xs-9,
26
- .col-xs-10,
27
- .col-xs-11,
28
- .col-xs-12,
29
- .col-sm-1,
30
- .col-sm-2,
31
- .col-sm-3,
32
- .col-sm-4,
33
- .col-sm-5,
34
- .col-sm-6,
35
- .col-sm-7,
36
- .col-sm-8,
37
- .col-sm-9,
38
- .col-sm-10,
39
- .col-sm-11,
40
- .col-sm-12,
41
- .col-md-1,
42
- .col-md-2,
43
- .col-md-3,
44
- .col-md-4,
45
- .col-md-5,
46
- .col-md-6,
47
- .col-md-7,
48
- .col-md-8,
49
- .col-md-9,
50
- .col-md-10,
51
- .col-md-11,
52
- .col-md-12,
53
- .col-lg-1,
54
- .col-lg-2,
55
- .col-lg-3,
56
- .col-lg-4,
57
- .col-lg-5,
58
- .col-lg-6,
59
- .col-lg-7,
60
- .col-lg-8,
61
- .col-lg-9,
62
- .col-lg-10,
63
- .col-lg-11,
64
- .col-lg-12 {
65
- position: relative;
66
- // Prevent columns from collapsing when empty
67
- min-height: 1px;
68
- // Inner gutter via padding
69
- padding-left: ($grid-gutter-width / 2);
70
- padding-right: ($grid-gutter-width / 2);
71
- }
16
+ @include make-grid-columns();
72
17
 
73
18
 
74
19
  // Extra small grid
@@ -79,31 +24,11 @@
79
24
  // Note that `.col-xs-12` doesn't get floated on purpose--there's no need since
80
25
  // it's full-width.
81
26
 
82
- .col-xs-1,
83
- .col-xs-2,
84
- .col-xs-3,
85
- .col-xs-4,
86
- .col-xs-5,
87
- .col-xs-6,
88
- .col-xs-7,
89
- .col-xs-8,
90
- .col-xs-9,
91
- .col-xs-10,
92
- .col-xs-11 {
93
- float: left;
94
- }
95
- .col-xs-1 { width: percentage((1 / $grid-columns)); }
96
- .col-xs-2 { width: percentage((2 / $grid-columns)); }
97
- .col-xs-3 { width: percentage((3 / $grid-columns)); }
98
- .col-xs-4 { width: percentage((4 / $grid-columns)); }
99
- .col-xs-5 { width: percentage((5 / $grid-columns)); }
100
- .col-xs-6 { width: percentage((6 / $grid-columns)); }
101
- .col-xs-7 { width: percentage((7 / $grid-columns)); }
102
- .col-xs-8 { width: percentage((8 / $grid-columns)); }
103
- .col-xs-9 { width: percentage((9 / $grid-columns)); }
104
- .col-xs-10 { width: percentage((10/ $grid-columns)); }
105
- .col-xs-11 { width: percentage((11/ $grid-columns)); }
106
- .col-xs-12 { width: 100%; }
27
+ @include make-grid-columns-float(xs);
28
+ @include make-grid($grid-columns, xs, width);
29
+ @include make-grid($grid-columns, xs, pull);
30
+ @include make-grid($grid-columns, xs, push);
31
+ @include make-grid($grid-columns, xs, offset);
107
32
 
108
33
 
109
34
  // Small grid
@@ -119,69 +44,11 @@
119
44
  width: $container-sm;
120
45
  }
121
46
 
122
- .col-sm-1,
123
- .col-sm-2,
124
- .col-sm-3,
125
- .col-sm-4,
126
- .col-sm-5,
127
- .col-sm-6,
128
- .col-sm-7,
129
- .col-sm-8,
130
- .col-sm-9,
131
- .col-sm-10,
132
- .col-sm-11 {
133
- float: left;
134
- }
135
- .col-sm-1 { width: percentage((1 / $grid-columns)); }
136
- .col-sm-2 { width: percentage((2 / $grid-columns)); }
137
- .col-sm-3 { width: percentage((3 / $grid-columns)); }
138
- .col-sm-4 { width: percentage((4 / $grid-columns)); }
139
- .col-sm-5 { width: percentage((5 / $grid-columns)); }
140
- .col-sm-6 { width: percentage((6 / $grid-columns)); }
141
- .col-sm-7 { width: percentage((7 / $grid-columns)); }
142
- .col-sm-8 { width: percentage((8 / $grid-columns)); }
143
- .col-sm-9 { width: percentage((9 / $grid-columns)); }
144
- .col-sm-10 { width: percentage((10/ $grid-columns)); }
145
- .col-sm-11 { width: percentage((11/ $grid-columns)); }
146
- .col-sm-12 { width: 100%; }
147
-
148
- // Push and pull columns for source order changes
149
- .col-sm-push-1 { left: percentage((1 / $grid-columns)); }
150
- .col-sm-push-2 { left: percentage((2 / $grid-columns)); }
151
- .col-sm-push-3 { left: percentage((3 / $grid-columns)); }
152
- .col-sm-push-4 { left: percentage((4 / $grid-columns)); }
153
- .col-sm-push-5 { left: percentage((5 / $grid-columns)); }
154
- .col-sm-push-6 { left: percentage((6 / $grid-columns)); }
155
- .col-sm-push-7 { left: percentage((7 / $grid-columns)); }
156
- .col-sm-push-8 { left: percentage((8 / $grid-columns)); }
157
- .col-sm-push-9 { left: percentage((9 / $grid-columns)); }
158
- .col-sm-push-10 { left: percentage((10/ $grid-columns)); }
159
- .col-sm-push-11 { left: percentage((11/ $grid-columns)); }
160
-
161
- .col-sm-pull-1 { right: percentage((1 / $grid-columns)); }
162
- .col-sm-pull-2 { right: percentage((2 / $grid-columns)); }
163
- .col-sm-pull-3 { right: percentage((3 / $grid-columns)); }
164
- .col-sm-pull-4 { right: percentage((4 / $grid-columns)); }
165
- .col-sm-pull-5 { right: percentage((5 / $grid-columns)); }
166
- .col-sm-pull-6 { right: percentage((6 / $grid-columns)); }
167
- .col-sm-pull-7 { right: percentage((7 / $grid-columns)); }
168
- .col-sm-pull-8 { right: percentage((8 / $grid-columns)); }
169
- .col-sm-pull-9 { right: percentage((9 / $grid-columns)); }
170
- .col-sm-pull-10 { right: percentage((10/ $grid-columns)); }
171
- .col-sm-pull-11 { right: percentage((11/ $grid-columns)); }
172
-
173
- // Offsets
174
- .col-sm-offset-1 { margin-left: percentage((1 / $grid-columns)); }
175
- .col-sm-offset-2 { margin-left: percentage((2 / $grid-columns)); }
176
- .col-sm-offset-3 { margin-left: percentage((3 / $grid-columns)); }
177
- .col-sm-offset-4 { margin-left: percentage((4 / $grid-columns)); }
178
- .col-sm-offset-5 { margin-left: percentage((5 / $grid-columns)); }
179
- .col-sm-offset-6 { margin-left: percentage((6 / $grid-columns)); }
180
- .col-sm-offset-7 { margin-left: percentage((7 / $grid-columns)); }
181
- .col-sm-offset-8 { margin-left: percentage((8 / $grid-columns)); }
182
- .col-sm-offset-9 { margin-left: percentage((9 / $grid-columns)); }
183
- .col-sm-offset-10 { margin-left: percentage((10/ $grid-columns)); }
184
- .col-sm-offset-11 { margin-left: percentage((11/ $grid-columns)); }
47
+ @include make-grid-columns-float(sm);
48
+ @include make-grid($grid-columns, sm, width);
49
+ @include make-grid($grid-columns, sm, pull);
50
+ @include make-grid($grid-columns, sm, push);
51
+ @include make-grid($grid-columns, sm, offset);
185
52
  }
186
53
 
187
54
 
@@ -196,72 +63,12 @@
196
63
  .container {
197
64
  width: $container-md;
198
65
  }
199
- .col-md-1,
200
- .col-md-2,
201
- .col-md-3,
202
- .col-md-4,
203
- .col-md-5,
204
- .col-md-6,
205
- .col-md-7,
206
- .col-md-8,
207
- .col-md-9,
208
- .col-md-10,
209
- .col-md-11 {
210
- float: left;
211
- }
212
- .col-md-1 { width: percentage((1 / $grid-columns)); }
213
- .col-md-2 { width: percentage((2 / $grid-columns)); }
214
- .col-md-3 { width: percentage((3 / $grid-columns)); }
215
- .col-md-4 { width: percentage((4 / $grid-columns)); }
216
- .col-md-5 { width: percentage((5 / $grid-columns)); }
217
- .col-md-6 { width: percentage((6 / $grid-columns)); }
218
- .col-md-7 { width: percentage((7 / $grid-columns)); }
219
- .col-md-8 { width: percentage((8 / $grid-columns)); }
220
- .col-md-9 { width: percentage((9 / $grid-columns)); }
221
- .col-md-10 { width: percentage((10/ $grid-columns)); }
222
- .col-md-11 { width: percentage((11/ $grid-columns)); }
223
- .col-md-12 { width: 100%; }
224
66
 
225
- // Push and pull columns for source order changes
226
- .col-md-push-0 { left: auto; }
227
- .col-md-push-1 { left: percentage((1 / $grid-columns)); }
228
- .col-md-push-2 { left: percentage((2 / $grid-columns)); }
229
- .col-md-push-3 { left: percentage((3 / $grid-columns)); }
230
- .col-md-push-4 { left: percentage((4 / $grid-columns)); }
231
- .col-md-push-5 { left: percentage((5 / $grid-columns)); }
232
- .col-md-push-6 { left: percentage((6 / $grid-columns)); }
233
- .col-md-push-7 { left: percentage((7 / $grid-columns)); }
234
- .col-md-push-8 { left: percentage((8 / $grid-columns)); }
235
- .col-md-push-9 { left: percentage((9 / $grid-columns)); }
236
- .col-md-push-10 { left: percentage((10/ $grid-columns)); }
237
- .col-md-push-11 { left: percentage((11/ $grid-columns)); }
238
-
239
- .col-md-pull-0 { right: auto; }
240
- .col-md-pull-1 { right: percentage((1 / $grid-columns)); }
241
- .col-md-pull-2 { right: percentage((2 / $grid-columns)); }
242
- .col-md-pull-3 { right: percentage((3 / $grid-columns)); }
243
- .col-md-pull-4 { right: percentage((4 / $grid-columns)); }
244
- .col-md-pull-5 { right: percentage((5 / $grid-columns)); }
245
- .col-md-pull-6 { right: percentage((6 / $grid-columns)); }
246
- .col-md-pull-7 { right: percentage((7 / $grid-columns)); }
247
- .col-md-pull-8 { right: percentage((8 / $grid-columns)); }
248
- .col-md-pull-9 { right: percentage((9 / $grid-columns)); }
249
- .col-md-pull-10 { right: percentage((10/ $grid-columns)); }
250
- .col-md-pull-11 { right: percentage((11/ $grid-columns)); }
251
-
252
- // Offsets
253
- .col-md-offset-0 { margin-left: 0; }
254
- .col-md-offset-1 { margin-left: percentage((1 / $grid-columns)); }
255
- .col-md-offset-2 { margin-left: percentage((2 / $grid-columns)); }
256
- .col-md-offset-3 { margin-left: percentage((3 / $grid-columns)); }
257
- .col-md-offset-4 { margin-left: percentage((4 / $grid-columns)); }
258
- .col-md-offset-5 { margin-left: percentage((5 / $grid-columns)); }
259
- .col-md-offset-6 { margin-left: percentage((6 / $grid-columns)); }
260
- .col-md-offset-7 { margin-left: percentage((7 / $grid-columns)); }
261
- .col-md-offset-8 { margin-left: percentage((8 / $grid-columns)); }
262
- .col-md-offset-9 { margin-left: percentage((9 / $grid-columns)); }
263
- .col-md-offset-10 { margin-left: percentage((10/ $grid-columns)); }
264
- .col-md-offset-11 { margin-left: percentage((11/ $grid-columns)); }
67
+ @include make-grid-columns-float(md);
68
+ @include make-grid($grid-columns, md, width);
69
+ @include make-grid($grid-columns, md, pull);
70
+ @include make-grid($grid-columns, md, push);
71
+ @include make-grid($grid-columns, md, offset);
265
72
  }
266
73
 
267
74
 
@@ -277,70 +84,10 @@
277
84
  width: $container-lg;
278
85
  }
279
86
 
280
- .col-lg-1,
281
- .col-lg-2,
282
- .col-lg-3,
283
- .col-lg-4,
284
- .col-lg-5,
285
- .col-lg-6,
286
- .col-lg-7,
287
- .col-lg-8,
288
- .col-lg-9,
289
- .col-lg-10,
290
- .col-lg-11 {
291
- float: left;
292
- }
293
- .col-lg-1 { width: percentage((1 / $grid-columns)); }
294
- .col-lg-2 { width: percentage((2 / $grid-columns)); }
295
- .col-lg-3 { width: percentage((3 / $grid-columns)); }
296
- .col-lg-4 { width: percentage((4 / $grid-columns)); }
297
- .col-lg-5 { width: percentage((5 / $grid-columns)); }
298
- .col-lg-6 { width: percentage((6 / $grid-columns)); }
299
- .col-lg-7 { width: percentage((7 / $grid-columns)); }
300
- .col-lg-8 { width: percentage((8 / $grid-columns)); }
301
- .col-lg-9 { width: percentage((9 / $grid-columns)); }
302
- .col-lg-10 { width: percentage((10/ $grid-columns)); }
303
- .col-lg-11 { width: percentage((11/ $grid-columns)); }
304
- .col-lg-12 { width: 100%; }
305
-
306
- // Push and pull columns for source order changes
307
- .col-lg-push-0 { left: auto; }
308
- .col-lg-push-1 { left: percentage((1 / $grid-columns)); }
309
- .col-lg-push-2 { left: percentage((2 / $grid-columns)); }
310
- .col-lg-push-3 { left: percentage((3 / $grid-columns)); }
311
- .col-lg-push-4 { left: percentage((4 / $grid-columns)); }
312
- .col-lg-push-5 { left: percentage((5 / $grid-columns)); }
313
- .col-lg-push-6 { left: percentage((6 / $grid-columns)); }
314
- .col-lg-push-7 { left: percentage((7 / $grid-columns)); }
315
- .col-lg-push-8 { left: percentage((8 / $grid-columns)); }
316
- .col-lg-push-9 { left: percentage((9 / $grid-columns)); }
317
- .col-lg-push-10 { left: percentage((10/ $grid-columns)); }
318
- .col-lg-push-11 { left: percentage((11/ $grid-columns)); }
319
-
320
- .col-lg-pull-0 { right: auto; }
321
- .col-lg-pull-1 { right: percentage((1 / $grid-columns)); }
322
- .col-lg-pull-2 { right: percentage((2 / $grid-columns)); }
323
- .col-lg-pull-3 { right: percentage((3 / $grid-columns)); }
324
- .col-lg-pull-4 { right: percentage((4 / $grid-columns)); }
325
- .col-lg-pull-5 { right: percentage((5 / $grid-columns)); }
326
- .col-lg-pull-6 { right: percentage((6 / $grid-columns)); }
327
- .col-lg-pull-7 { right: percentage((7 / $grid-columns)); }
328
- .col-lg-pull-8 { right: percentage((8 / $grid-columns)); }
329
- .col-lg-pull-9 { right: percentage((9 / $grid-columns)); }
330
- .col-lg-pull-10 { right: percentage((10/ $grid-columns)); }
331
- .col-lg-pull-11 { right: percentage((11/ $grid-columns)); }
332
-
333
- // Offsets
334
- .col-lg-offset-0 { margin-left: 0; }
335
- .col-lg-offset-1 { margin-left: percentage((1 / $grid-columns)); }
336
- .col-lg-offset-2 { margin-left: percentage((2 / $grid-columns)); }
337
- .col-lg-offset-3 { margin-left: percentage((3 / $grid-columns)); }
338
- .col-lg-offset-4 { margin-left: percentage((4 / $grid-columns)); }
339
- .col-lg-offset-5 { margin-left: percentage((5 / $grid-columns)); }
340
- .col-lg-offset-6 { margin-left: percentage((6 / $grid-columns)); }
341
- .col-lg-offset-7 { margin-left: percentage((7 / $grid-columns)); }
342
- .col-lg-offset-8 { margin-left: percentage((8 / $grid-columns)); }
343
- .col-lg-offset-9 { margin-left: percentage((9 / $grid-columns)); }
344
- .col-lg-offset-10 { margin-left: percentage((10/ $grid-columns)); }
345
- .col-lg-offset-11 { margin-left: percentage((11/ $grid-columns)); }
87
+ @include make-grid-columns-float(lg);
88
+ @include make-grid($grid-columns, lg, width);
89
+ @include make-grid($grid-columns, lg, pull);
90
+ @include make-grid($grid-columns, lg, push);
91
+ @include make-grid($grid-columns, lg, offset);
346
92
  }
93
+