compass_twitter_bootstrap 2.0.1.2 → 2.0.3

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 (108) hide show
  1. data/README.md +17 -0
  2. data/build/convert.rb +2 -12
  3. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  4. data/stylesheets/_compass_twitter_bootstrap.scss +2 -2
  5. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +66 -0
  6. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +14 -293
  7. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +6 -1
  8. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +3 -15
  9. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +5 -3
  10. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +82 -39
  11. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +38 -30
  12. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +5 -5
  13. data/stylesheets/compass_twitter_bootstrap/_close.scss +13 -2
  14. data/stylesheets/compass_twitter_bootstrap/_code.scss +9 -9
  15. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +10 -8
  16. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +62 -49
  17. data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +267 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +141 -77
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +2 -5
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +4 -2
  21. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +63 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -3
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +275 -255
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +19 -12
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +146 -81
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +77 -52
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +8 -2
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +6 -5
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +9 -9
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +41 -19
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +4 -4
  32. data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +26 -0
  33. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +149 -0
  34. data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +17 -0
  35. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +146 -0
  36. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +41 -0
  37. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +4 -4
  38. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +42 -9
  39. data/stylesheets/compass_twitter_bootstrap/_tables.scss +60 -34
  40. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +18 -6
  41. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +7 -7
  42. data/stylesheets/compass_twitter_bootstrap/_type.scss +28 -11
  43. data/stylesheets/compass_twitter_bootstrap/_variables.scss +107 -9
  44. data/stylesheets/compass_twitter_bootstrap/_wells.scss +13 -2
  45. data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -2
  46. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +70 -0
  47. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +13 -224
  48. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +5 -1
  49. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +3 -14
  50. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +5 -3
  51. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +73 -36
  52. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +39 -28
  53. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +5 -5
  54. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +12 -2
  55. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -9
  56. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +5 -5
  57. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +57 -47
  58. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +515 -0
  59. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +140 -76
  60. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +2 -5
  61. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +4 -2
  62. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +85 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -3
  64. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +277 -260
  65. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +19 -12
  66. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +138 -78
  67. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +77 -51
  68. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +8 -2
  69. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +6 -5
  70. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +9 -9
  71. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +44 -19
  72. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +4 -3
  73. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +17 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +115 -0
  75. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +11 -0
  76. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +115 -0
  77. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +56 -0
  78. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +4 -4
  79. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +70 -7
  80. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +72 -34
  81. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +15 -5
  82. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +7 -7
  83. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +27 -11
  84. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +105 -8
  85. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +11 -2
  86. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  87. data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
  88. data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
  89. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  90. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  91. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  92. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  93. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  94. data/vendor/assets/javascripts/bootstrap-all.js +12 -0
  95. data/vendor/assets/javascripts/bootstrap-button.js +32 -34
  96. data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
  97. data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
  98. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  99. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  100. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  101. data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
  102. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  103. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  104. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  105. data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
  106. metadata +29 -9
  107. data/stylesheets/compass_twitter_bootstrap/_labels.scss +0 -32
  108. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +0 -42
@@ -0,0 +1,85 @@
1
+ // LABELS & BADGES
2
+ // ---------------
3
+
4
+ // Base classes
5
+
6
+ .label,
7
+ .badge
8
+ font-size: $baseFontSize * 0.846
9
+ font-weight: bold
10
+ line-height: 14px
11
+ // ensure proper line-height if floated
12
+ color: $white
13
+ vertical-align: baseline
14
+ white-space: nowrap
15
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
16
+ background-color: $grayLight
17
+
18
+ // Set unique padding and border-radii
19
+ .label
20
+ padding: 1px 4px 2px
21
+ +bootstrap-border-radius(3px)
22
+
23
+ .badge
24
+ padding: 1px 9px 2px
25
+ +bootstrap-border-radius(9px)
26
+
27
+ // Hover state, but only for links
28
+ a
29
+ &.label:hover,
30
+ &.badge:hover
31
+ color: $white
32
+ text-decoration: none
33
+ cursor: pointer
34
+
35
+ // Colors
36
+ // Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
37
+ // Important (red)
38
+
39
+ .label-important,
40
+ .badge-important
41
+ background-color: $errorText
42
+
43
+ .label-important[href],
44
+ .badge-important[href]
45
+ background-color: darken($errorText, 10%)
46
+
47
+ // Warnings (orange)
48
+
49
+ .label-warning,
50
+ .badge-warning
51
+ background-color: $orange
52
+
53
+ .label-warning[href],
54
+ .badge-warning[href]
55
+ background-color: darken($orange, 10%)
56
+
57
+ // Success (green)
58
+
59
+ .label-success,
60
+ .badge-success
61
+ background-color: $successText
62
+
63
+ .label-success[href],
64
+ .badge-success[href]
65
+ background-color: darken($successText, 10%)
66
+
67
+ // Info (turquoise)
68
+
69
+ .label-info,
70
+ .badge-info
71
+ background-color: $infoText
72
+
73
+ .label-info[href],
74
+ .badge-info[href]
75
+ background-color: darken($infoText, 10%)
76
+
77
+ // Inverse (black)
78
+
79
+ .label-inverse,
80
+ .badge-inverse
81
+ background-color: $grayDark
82
+
83
+ .label-inverse[href],
84
+ .badge-inverse[href]
85
+ background-color: darken($grayDark, 10%)
@@ -5,10 +5,10 @@
5
5
 
6
6
  // Container (centered, fixed-width layouts)
7
7
  .container
8
- +container-fixed
8
+ +bootstrap-container-fixed
9
9
 
10
10
  // Fluid layouts (left aligned, with sidebar, min- & max-width content)
11
11
  .container-fluid
12
- padding-left: $gridGutterWidth
13
12
  padding-right: $gridGutterWidth
14
- +clearfix
13
+ padding-left: $gridGutterWidth
14
+ +bootstrap-clearfix
@@ -8,7 +8,7 @@
8
8
  // Clearfix
9
9
  // --------
10
10
  // For clearing floats like a boss h5bp.com/q
11
- =clearfix
11
+ =bootstrap-clearfix
12
12
  *zoom: 1
13
13
  &:before,
14
14
  &:after
@@ -19,23 +19,23 @@
19
19
 
20
20
  // Webkit-style focus
21
21
  // ------------------
22
- =tab-focus
22
+ =bootstrap-tab-focus
23
23
  // Default
24
- outline: thin dotted
24
+ outline: thin dotted #333
25
25
  // Webkit
26
26
  outline: 5px auto -webkit-focus-ring-color
27
27
  outline-offset: -2px
28
28
 
29
29
  // Center-align a block level element
30
30
  // ----------------------------------
31
- =center-block
31
+ =bootstrap-center-block
32
32
  display: block
33
33
  margin-left: auto
34
34
  margin-right: auto
35
35
 
36
36
  // IE7 inline-block
37
37
  // ----------------
38
- =ie7-inline-block
38
+ =bootstrap-ie7-inline-block
39
39
  *display: inline
40
40
  /* IE7 inline-block hack
41
41
  *zoom: 1
@@ -46,237 +46,131 @@
46
46
  // right version is for icons, which come before. Applying both is ok, but it will
47
47
  // mean that space between those elements will be .6em (~2 space characters) in IE7,
48
48
  // instead of the 1 space in other browsers.
49
- =ie7-restore-left-whitespace
49
+ =bootstrap-ie7-restore-left-whitespace
50
50
  *margin-left: .3em
51
51
  &:first-child
52
52
  *margin-left: 0
53
53
 
54
- =ie7-restore-right-whitespace
54
+ =bootstrap-ie7-restore-right-whitespace
55
55
  *margin-right: .3em
56
56
  &:last-child
57
57
  *margin-left: 0
58
58
 
59
59
  // Sizing shortcuts
60
60
  // -------------------------
61
- =size($height: 5px, $width: 5px)
61
+ =bootstrap-size($height, $width)
62
62
  width: $width
63
63
  height: $height
64
64
 
65
- =square($size: 5px)
66
- +size($size, $size)
65
+ =bootstrap-square($size)
66
+ +bootstrap-size($size, $size)
67
67
 
68
68
  // Placeholder text
69
69
  // -------------------------
70
- =placeholder($color: $placeholderText)
70
+ =bootstrap-placeholder($color: $placeholderText)
71
71
  \:-moz-placeholder
72
72
  color: $color
73
73
  \::-webkit-input-placeholder
74
74
  color: $color
75
75
 
76
+ // Text overflow
77
+ // -------------------------
78
+ // Requires inline-block or block for proper styling
79
+ =bootstrap-text-overflow
80
+ overflow: hidden
81
+ text-overflow: ellipsis
82
+ white-space: nowrap
83
+
84
+ // CSS image replacement
85
+ // -------------------------
86
+ // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
87
+ =bootstrap-hide-text
88
+ font: 0 / 0 a
89
+ color: transparent
90
+ text-shadow: none
91
+ background-color: transparent
92
+ border: 0
93
+
76
94
  // FONTS
77
95
  // --------------------------------------------------
78
- =font-family-serif
79
- font-family: Georgia, "Times New Roman", Times, serif
80
-
81
- =font-family-sans-serif
82
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
96
+ =bootstrap-font-family-serif
97
+ font-family: $serifFontFamily
83
98
 
84
- =font-family-monospace
85
- font-family: Menlo, Monaco, "Courier New", monospace
99
+ =bootstrap-font-family-sans-serif
100
+ font-family: $sansFontFamily
86
101
 
87
- =font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
88
- font-family: Georgia, "Times New Roman", Times, serif
89
- +shorthand($size, $weight, $lineHeight)
102
+ =bootstrap-font-family-monospace
103
+ font-family: $monoFontFamily
90
104
 
91
- =font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
105
+ =bootstrap-font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
92
106
  font-size: $size
93
107
  font-weight: $weight
94
108
  line-height: $lineHeight
95
109
 
96
- =font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
97
- +font-family-serif
98
- +font-shorthand($size, $weight, $lineHeight)
110
+ =bootstrap-font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
111
+ +bootstrap-font-family-serif
112
+ +bootstrap-font-shorthand($size, $weight, $lineHeight)
99
113
 
100
- =font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
101
- +font-family-sans-serif
102
- +font-shorthand($size, $weight, $lineHeight)
114
+ =bootstrap-font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
115
+ +bootstrap-font-family-sans-serif
116
+ +bootstrap-font-shorthand($size, $weight, $lineHeight)
103
117
 
104
- =font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
105
- +font-family-monospace
106
- +font-shorthand($size, $weight, $lineHeight)
118
+ =bootstrap-font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
119
+ +bootstrap-font-family-monospace
120
+ +bootstrap-font-shorthand($size, $weight, $lineHeight)
107
121
 
108
- // GRID SYSTEM
122
+ // FORMS
109
123
  // --------------------------------------------------
110
124
 
111
- // Site container
112
- // -------------------------
113
- =container-fixed
114
- width: $gridRowWidth
115
- margin-left: auto
116
- margin-right: auto
117
- +clearfix
118
-
119
- // Le grid system
120
- =gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns)
121
- width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
122
-
123
- =gridSystem-offset($gridColumnWidth, $gridGutterWidth, $columns)
124
- margin-left: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1) + $gridGutterWidth * 2
125
-
126
- =gridSystem-gridColumn($gridGutterWidth)
127
- float: left
128
- margin-left: $gridGutterWidth
129
-
130
- // Take these values and mixins, and make 'em do their thang
131
- =gridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth)
132
- // Row surrounds the columns
133
- .row
134
- margin-left: $gridGutterWidth * -1
135
- +clearfix
136
- // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
137
- [class*="span"]
138
- +gridSystem-gridColumn($gridGutterWidth)
139
- // Default columns
140
- .span1
141
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1)
142
- .span2
143
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2)
144
- .span3
145
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3)
146
- .span4
147
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4)
148
- .span5
149
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5)
150
- .span6
151
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6)
152
- .span7
153
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7)
154
- .span8
155
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8)
156
- .span9
157
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9)
158
- .span10
159
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10)
160
- .span11
161
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11)
162
- .span12,
163
- .container
164
- +gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12)
165
- // Offset column options
166
- .offset1
167
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 1)
168
- .offset2
169
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 2)
170
- .offset3
171
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 3)
172
- .offset4
173
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 4)
174
- .offset5
175
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 5)
176
- .offset6
177
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 6)
178
- .offset7
179
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 7)
180
- .offset8
181
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 8)
182
- .offset9
183
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 9)
184
- .offset10
185
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 10)
186
- .offset11
187
- +gridSystem-offset($gridColumnWidth, $gridGutterWidth, 11)
188
-
189
- // Fluid grid system
190
- // -------------------------
191
- =fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns)
192
- width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1)
193
-
194
- =fluidGridSystem-gridColumn($fluidGridGutterWidth)
195
- float: left
196
- margin-left: $fluidGridGutterWidth
197
-
198
- // Take these values and mixins, and make 'em do their thang
199
- =fluidGridSystem-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth)
200
- // Row surrounds the columns
201
- .row-fluid
202
- width: 100%
203
- +clearfix
204
- // Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
205
- > [class*="span"]
206
- +fluidGridSystem-gridColumn($fluidGridGutterWidth)
207
- > [class*="span"]:first-child
208
- margin-left: 0
209
- // Default columns
210
- .span1
211
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1)
212
- .span2
213
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2)
214
- .span3
215
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3)
216
- .span4
217
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4)
218
- .span5
219
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5)
220
- .span6
221
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6)
222
- .span7
223
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7)
224
- .span8
225
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8)
226
- .span9
227
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9)
228
- .span10
229
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10)
230
- .span11
231
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11)
232
- .span12
233
- +fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12)
234
-
235
- // Input grid system
236
- // -------------------------
237
- =inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns)
238
- width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1) - 10
239
-
240
- =inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth)
125
+ // Block level inputs
126
+ =bootstrap-input-block-level
127
+ display: block
128
+ width: 100%
129
+ min-height: 28px
130
+ // Make inputs at least the height of their button counterpart
131
+ +bootstrap-box-sizing(border-box)
132
+ // Makes inputs behave like true block-level elements
133
+
134
+ // Mixin for form field states
135
+ =bootstrap-formFieldState($textColor: #555555, $borderColor: #cccccc, $backgroundColor: #f5f5f5)
136
+ // Set the text color
137
+ > label,
138
+ .help-block,
139
+ .help-inline
140
+ color: $textColor
141
+ // Style inputs accordingly
241
142
  input,
242
- textarea,
243
- .uneditable-input
244
- &.span1
245
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1)
246
- &.span2
247
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2)
248
- &.span3
249
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3)
250
- &.span4
251
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4)
252
- &.span5
253
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5)
254
- &.span6
255
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6)
256
- &.span7
257
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7)
258
- &.span8
259
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8)
260
- &.span9
261
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9)
262
- &.span10
263
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10)
264
- &.span11
265
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11)
266
- &.span12
267
- +inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12)
143
+ select,
144
+ textarea
145
+ color: $textColor
146
+ border-color: $borderColor
147
+ &:focus
148
+ border-color: darken($borderColor, 10%)
149
+ +bootstrap-box-shadow(0 0 6px lighten($borderColor, 20%))
150
+ // Give a small background color for input-prepend/-append
151
+ .input-prepend .add-on,
152
+ .input-append .add-on
153
+ color: $textColor
154
+ background-color: $backgroundColor
155
+ border-color: $textColor
268
156
 
269
157
  // CSS3 PROPERTIES
270
158
  // --------------------------------------------------
271
159
 
160
+ // Border Radius
161
+ =bootstrap-border-radius($radius)
162
+ -webkit-border-radius: $radius
163
+ -moz-border-radius: $radius
164
+ border-radius: $radius
165
+
272
166
  // Drop shadows
273
- =box-shadow($shadow: 0 1px 3px rgba(0, 0, 0, 0.25))
167
+ =bootstrap-box-shadow($shadow)
274
168
  -webkit-box-shadow: $shadow
275
169
  -moz-box-shadow: $shadow
276
170
  box-shadow: $shadow
277
171
 
278
172
  // Transitions
279
- =transition($transition)
173
+ =bootstrap-transition($transition)
280
174
  -webkit-transition: $transition
281
175
  -moz-transition: $transition
282
176
  -ms-transition: $transition
@@ -284,78 +178,90 @@
284
178
  transition: $transition
285
179
 
286
180
  // Transformations
287
- =rotate($degrees)
181
+ =bootstrap-rotate($degrees)
288
182
  -webkit-transform: rotate($degrees)
289
183
  -moz-transform: rotate($degrees)
290
184
  -ms-transform: rotate($degrees)
291
185
  -o-transform: rotate($degrees)
292
186
  transform: rotate($degrees)
293
187
 
294
- =scale($ratio)
188
+ =bootstrap-scale($ratio)
295
189
  -webkit-transform: scale($ratio)
296
190
  -moz-transform: scale($ratio)
297
191
  -ms-transform: scale($ratio)
298
192
  -o-transform: scale($ratio)
299
193
  transform: scale($ratio)
300
194
 
301
- =translate($x: 0, $y: 0)
195
+ =bootstrap-translate($x, $y)
302
196
  -webkit-transform: translate($x, $y)
303
197
  -moz-transform: translate($x, $y)
304
198
  -ms-transform: translate($x, $y)
305
199
  -o-transform: translate($x, $y)
306
200
  transform: translate($x, $y)
307
201
 
308
- =skew($x: 0, $y: 0)
309
- -webkit-transform: translate($x, $y)
310
- -moz-transform: translate($x, $y)
311
- -ms-transform: translate($x, $y)
312
- -o-transform: translate($x, $y)
313
- transform: translate($x, $y)
314
-
315
- =skew($x: 0, $y: 0)
202
+ =bootstrap-skew($x, $y)
316
203
  -webkit-transform: skew($x, $y)
317
204
  -moz-transform: skew($x, $y)
318
205
  -ms-transform: skew($x, $y)
319
206
  -o-transform: skew($x, $y)
320
207
  transform: skew($x, $y)
321
208
 
209
+ =bootstrap-translate3d($x, $y, $z)
210
+ -webkit-transform: translate($x, $y, $z)
211
+ -moz-transform: translate($x, $y, $z)
212
+ -ms-transform: translate($x, $y, $z)
213
+ -o-transform: translate($x, $y, $z)
214
+ transform: translate($x, $y, $z)
215
+
216
+ // Backface visibility
217
+ // Prevent browsers from flickering when using CSS 3D transforms.
218
+ // Default value is `visible`, but can be changed to `hidden
219
+ // See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
220
+ =bootstrap-backface-visibility($visibility)
221
+ -webkit-backface-visibility: $visibility
222
+ -moz-backface-visibility: $visibility
223
+ -ms-backface-visibility: $visibility
224
+ backface-visibility: $visibility
225
+
322
226
  // Background clipping
323
227
  // Heads up: FF 3.6 and under need "padding" instead of "padding-box"
324
- =background-clip($clip)
228
+ =bootstrap-background-clip($clip)
325
229
  -webkit-background-clip: $clip
326
230
  -moz-background-clip: $clip
327
231
  background-clip: $clip
328
232
 
329
233
  // Background sizing
330
- =background-size($size)
234
+ =bootstrap-background-size($size)
331
235
  -webkit-background-size: $size
332
236
  -moz-background-size: $size
333
237
  -o-background-size: $size
334
238
  background-size: $size
335
239
 
336
240
  // Box sizing
337
- =box-sizing($boxmodel)
241
+ =bootstrap-box-sizing($boxmodel)
338
242
  -webkit-box-sizing: $boxmodel
339
243
  -moz-box-sizing: $boxmodel
244
+ -ms-box-sizing: $boxmodel
340
245
  box-sizing: $boxmodel
341
246
 
342
247
  // User select
343
248
  // For selecting text on the page
344
- =user-select($select)
249
+ =bootstrap-user-select($select)
345
250
  -webkit-user-select: $select
346
251
  -moz-user-select: $select
252
+ -ms-user-select: $select
347
253
  -o-user-select: $select
348
254
  user-select: $select
349
255
 
350
256
  // Resize anything
351
- =resizable($direction: both)
257
+ =bootstrap-resizable($direction)
352
258
  resize: $direction
353
259
  // Options: horizontal, vertical, both
354
260
  overflow: auto
355
261
  // Safari fix
356
262
 
357
263
  // CSS3 Content Columns
358
- =content-columns($columnCount, $columnGap: $gridColumnGutter)
264
+ =bootstrap-content-columns($columnCount, $columnGap: $gridGutterWidth)
359
265
  -webkit-column-count: $columnCount
360
266
  -moz-column-count: $columnCount
361
267
  column-count: $columnCount
@@ -363,33 +269,36 @@
363
269
  -moz-column-gap: $columnGap
364
270
  column-gap: $columnGap
365
271
 
272
+ // Opacity
273
+ =bootstrap-opacity($opacity)
274
+ opacity: $opacity / 100
275
+ filter: unquote("alpha(opacity=#{$opacity})")
276
+
366
277
  // BACKGROUNDS
367
278
  // --------------------------------------------------
368
279
 
369
280
  // Add an alphatransparency value to any background or border color (via Elyse Holladay)
370
- =translucent-background($color: $white, $alpha: 1)
281
+ =bootstrap-translucent-background($color: $white, $alpha: 1)
371
282
  background-color: hsla(hue($color), saturation($color), lightness($color), $alpha)
372
283
 
373
- =translucent-border($color: $white, $alpha: 1)
284
+ =bootstrap-translucent-border($color: $white, $alpha: 1)
374
285
  border-color: hsla(hue($color), saturation($color), lightness($color), $alpha)
375
- +background-clip(padding-box)
286
+ +bootstrap-background-clip(padding-box)
376
287
 
377
288
  // Gradient Bar Colors for buttons and alerts
378
- =gradientBar($primaryColor, $secondaryColor)
379
- +gradient-vertical($primaryColor, $secondaryColor)
289
+ =bootstrap-gradientBar($primaryColor, $secondaryColor)
290
+ +bootstrap-gradient-vertical($primaryColor, $secondaryColor)
380
291
  border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%)
381
292
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) fadein(rgba(0, 0, 0, 0.1), 15%)
382
293
 
383
294
  // Gradients
384
- =gradient-horizontal($startColor: #555555, $endColor: #333333)
295
+ =bootstrap-gradient-horizontal($startColor: #555555, $endColor: #333333)
385
296
  background-color: $endColor
386
- background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor))
387
- // Konqueror
388
297
  background-image: -moz-linear-gradient(left, $startColor, $endColor)
389
298
  // FF 3.6+
390
299
  background-image: -ms-linear-gradient(left, $startColor, $endColor)
391
300
  // IE10
392
- background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor))
301
+ background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor))
393
302
  // Safari 4+, Chrome 2+
394
303
  background-image: -webkit-linear-gradient(left, $startColor, $endColor)
395
304
  // Safari 5.1+, Chrome 10+
@@ -401,26 +310,25 @@
401
310
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1)
402
311
  // IE9 and down
403
312
 
404
- =gradient-vertical($startColor: #555555, $endColor: #333333)
405
- background-color: $endColor
406
- background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor))
407
- // Konqueror
313
+ =bootstrap-gradient-vertical($startColor: #555555, $endColor: #333333)
314
+ background-color: mix($startColor, $endColor, 60%)
408
315
  background-image: -moz-linear-gradient(top, $startColor, $endColor)
409
316
  // FF 3.6+
410
317
  background-image: -ms-linear-gradient(top, $startColor, $endColor)
411
318
  // IE10
412
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor))
319
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor))
413
320
  // Safari 4+, Chrome 2+
414
321
  background-image: -webkit-linear-gradient(top, $startColor, $endColor)
415
322
  // Safari 5.1+, Chrome 10+
416
323
  background-image: -o-linear-gradient(top, $startColor, $endColor)
417
324
  // Opera 11.10
418
- //background-image: linear-gradient(top left, $startColor, $endColor); // The standard
325
+ background-image: linear-gradient(top, $startColor, $endColor)
326
+ // The standard
419
327
  background-repeat: repeat-x
420
328
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0)
421
329
  // IE9 and down
422
330
 
423
- =gradient-directional($startColor: #555555, $endColor: #333333, $deg: 45deg)
331
+ =bootstrap-gradient-directional($startColor: #555555, $endColor: #333333, $deg: 45deg)
424
332
  background-color: $endColor
425
333
  background-repeat: repeat-x
426
334
  background-image: -moz-linear-gradient($deg, $startColor, $endColor)
@@ -434,8 +342,8 @@
434
342
  background-image: linear-gradient($deg, $startColor, $endColor)
435
343
  // The standard
436
344
 
437
- =gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
438
- background-color: $endColor
345
+ =bootstrap-gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
346
+ background-color: mix($midColor, $endColor, 80%)
439
347
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor))
440
348
  background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor)
441
349
  background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor)
@@ -444,84 +352,193 @@
444
352
  background-image: linear-gradient($startColor, $midColor $colorStop, $endColor)
445
353
  background-repeat: no-repeat
446
354
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0)
447
- // IE9 and down, gets no color-stop at all the proper fallback
448
-
449
- =gradient-radial($centerColor: #555555, $outsideColor: #333333)
450
- background-color: $outsideColor
451
- background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($centerColor), to($outsideColor))
452
- background-image: -webkit-radial-gradient(circle, $centerColor, $outsideColor)
453
- background-image: -moz-radial-gradient(circle, $centerColor, $outsideColor)
454
- background-image: -ms-radial-gradient(circle, $centerColor, $outsideColor)
355
+ // IE9 and down, gets no color-stop at all for proper fallback
356
+
357
+ =bootstrap-gradient-radial($innerColor: #555555, $outerColor: #333333)
358
+ background-color: $outerColor
359
+ background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($innerColor), to($outerColor))
360
+ background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor)
361
+ background-image: -moz-radial-gradient(circle, $innerColor, $outerColor)
362
+ background-image: -ms-radial-gradient(circle, $innerColor, $outerColor)
363
+ background-image: -o-radial-gradient(circle, $innerColor, $outerColor)
455
364
  background-repeat: no-repeat
456
- // Opera cannot do radial gradients yet
457
365
 
458
- =gradient-striped($color, $angle: -45deg)
366
+ =bootstrap-gradient-striped($color, $angle: -45deg)
459
367
  background-color: $color
460
368
  background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent))
461
369
  background-image: -webkit-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
462
370
  background-image: -moz-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
463
371
  background-image: -ms-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
464
372
  background-image: -o-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
465
- //background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
466
-
467
- // Gradient Bar Colors for buttons and alerts
468
- =gradientBar($primaryColor, $secondaryColor)
469
- +gradient-vertical($primaryColor, $secondaryColor)
470
- border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%)
471
- border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) fade-in(rgba(0, 0, 0, 0.1), 0.15)
373
+ background-image: linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
472
374
 
473
375
  // Reset filters for IE
474
- =reset-filter
376
+ =bootstrap-reset-filter
475
377
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false)
476
378
 
477
- // Mixin for generating button backgrounds
478
- // ---------------------------------------
479
- =buttonBackground($startColor, $endColor)
379
+ // COMPONENT MIXINS
380
+ // --------------------------------------------------
381
+
382
+ // Horizontal dividers
383
+ // -------------------------
384
+ // Dividers (basically an hr) within dropdowns and nav lists
385
+ =bootstrap-nav-divider
386
+ // IE7 needs a set width since we gave a height. Restricting just
387
+ // to IE7 to keep the 1px left/right space in other browsers.
388
+ // It is unclear where IE is getting the extra space that we need
389
+ // to negative-margin away, but so it goes.
390
+ *width: 100%
391
+ height: 1px
392
+ margin: $baseLineHeight / 2 - 1 1px
393
+ // 8px 1px
394
+ *margin: -5px 0 5px
395
+ overflow: hidden
396
+ background-color: #e5e5e5
397
+ border-bottom: 1px solid $white
398
+
399
+ // Button backgrounds
400
+ // ------------------
401
+ =bootstrap-buttonBackground($startColor, $endColor)
480
402
  // gradientBar will set the background to a pleasing blend of these, to support IE<=9
481
- +gradientBar($startColor, $endColor)
482
- +reset-filter
403
+ +bootstrap-gradientBar($startColor, $endColor)
404
+ *background-color: $endColor
405
+ /* Darken IE7 buttons by default so they stand out more given they won't have borders
406
+ +bootstrap-reset-filter
483
407
  // in these cases the gradient won't cover the background, so we override
484
408
  &:hover, &:active, &.active, &.disabled, &[disabled]
485
409
  background-color: $endColor
410
+ *background-color: darken($endColor, 5%)
486
411
  // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
487
412
  &:active,
488
413
  &.active
489
- background-color: darken($endColor, 10%) e("\9")
414
+ background-color: darken($endColor, 10%) \9
490
415
 
491
- // COMPONENT MIXINS
492
- // --------------------------------------------------
416
+ // Navbar vertical align
417
+ // -------------------------
418
+ // Vertically center elements in the navbar.
419
+ // Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
420
+ =bootstrap-navbarVerticalAlign($elementHeight)
421
+ margin-top: ($navbarHeight - $elementHeight) / 2
493
422
 
494
- // POPOVER ARROWS
423
+ // Popover arrows
495
424
  // -------------------------
496
425
  // For tipsies and popovers
497
- =popoverArrow-top($arrowWidth: 5px)
426
+ =bootstrap-popoverArrow-top($arrowWidth: 5px, $color: $black)
498
427
  bottom: 0
499
428
  left: 50%
500
429
  margin-left: -$arrowWidth
501
430
  border-left: $arrowWidth solid transparent
502
431
  border-right: $arrowWidth solid transparent
503
- border-top: $arrowWidth solid $black
432
+ border-top: $arrowWidth solid $color
504
433
 
505
- =popoverArrow-left($arrowWidth: 5px)
434
+ =bootstrap-popoverArrow-left($arrowWidth: 5px, $color: $black)
506
435
  top: 50%
507
436
  right: 0
508
437
  margin-top: -$arrowWidth
509
438
  border-top: $arrowWidth solid transparent
510
439
  border-bottom: $arrowWidth solid transparent
511
- border-left: $arrowWidth solid $black
440
+ border-left: $arrowWidth solid $color
512
441
 
513
- =popoverArrow-bottom($arrowWidth: 5px)
442
+ =bootstrap-popoverArrow-bottom($arrowWidth: 5px, $color: $black)
514
443
  top: 0
515
444
  left: 50%
516
445
  margin-left: -$arrowWidth
517
446
  border-left: $arrowWidth solid transparent
518
447
  border-right: $arrowWidth solid transparent
519
- border-bottom: $arrowWidth solid $black
448
+ border-bottom: $arrowWidth solid $color
520
449
 
521
- =popoverArrow-right($arrowWidth: 5px)
450
+ =bootstrap-popoverArrow-right($arrowWidth: 5px, $color: $black)
522
451
  top: 50%
523
452
  left: 0
524
453
  margin-top: -$arrowWidth
525
454
  border-top: $arrowWidth solid transparent
526
455
  border-bottom: $arrowWidth solid transparent
527
- border-right: $arrowWidth solid $black
456
+ border-right: $arrowWidth solid $color
457
+
458
+ // Grid System
459
+ // -----------
460
+
461
+ // Centered container element
462
+ =bootstrap-container-fixed
463
+ margin-right: auto
464
+ margin-left: auto
465
+ +bootstrap-clearfix
466
+
467
+ // Table columns
468
+ =bootstrap-tableColumns($columnSpan: 1)
469
+ float: none
470
+ // undo default grid column styles
471
+ width: $gridColumnWidth * $columnSpan + $gridGutterWidth * ($columnSpan - 1) - 16
472
+ // 16 is total padding on left and right of table cells
473
+ margin-left: 0
474
+ // undo default grid column styles
475
+
476
+ // Make a Grid
477
+ // Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
478
+ =bootstrap-makeRow
479
+ margin-left: $gridGutterWidth * -1
480
+ +bootstrap-clearfix
481
+
482
+ =bootstrap-makeColumn($columns: 1, $offset: 0)
483
+ float: left
484
+ margin-left: $gridColumnWidth * $offset + $gridGutterWidth * ($offset - 1) + $gridGutterWidth * 2
485
+ width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
486
+
487
+ // The Grid
488
+ =bootstrap-grid-core-offset($columns, $gridColumnWidth, $gridGutterWidth)
489
+ margin-left: $gridColumnWidth * $columns + $gridGutterWidth * ($columns + 1)
490
+
491
+ =bootstrap-grid-core-span($columns, $gridColumnWidth, $gridGutterWidth)
492
+ width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
493
+
494
+ =bootstrap-grid-core($gridColumnWidth, $gridGutterWidth)
495
+ .row
496
+ margin-left: $gridGutterWidth * -1
497
+ +bootstrap-clearfix
498
+ [class*="span"]
499
+ float: left
500
+ margin-left: $gridGutterWidth
501
+ // Set the container width, and override it for fixed navbars in media queries
502
+ .container,
503
+ .navbar-fixed-top .container,
504
+ .navbar-fixed-bottom .container
505
+ +bootstrap-grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth)
506
+ // generate .spanX and .offsetX
507
+ @for $i from 1 through $gridColumns
508
+ .span#{$i}
509
+ +bootstrap-grid-core-span($i, $gridColumnWidth, $gridGutterWidth)
510
+ .offset#{$i}
511
+ +bootstrap-grid-core-offset($i, $gridColumnWidth, $gridGutterWidth)
512
+
513
+ =bootstrap-grid-fluid-span($columns, $fluidGridColumnWidth, $fluidGridGutterWidth)
514
+ width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1)
515
+ *width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1) - 0.5 / ($gridRowWidth / 1px) * 100 * 1%
516
+
517
+ =bootstrap-grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth)
518
+ .row-fluid
519
+ width: 100%
520
+ +bootstrap-clearfix
521
+ [class*="span"]
522
+ +bootstrap-input-block-level
523
+ float: left
524
+ margin-left: $fluidGridGutterWidth
525
+ *margin-left: $fluidGridGutterWidth - 0.5 / ($gridRowWidth / 1px) * 100 * 1%
526
+ [class*="span"]:first-child
527
+ margin-left: 0
528
+ // generate .spanX
529
+ @for $i from 1 through $gridColumns
530
+ .span#{$i}
531
+ +bootstrap-grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth)
532
+
533
+ =bootstrap-grid-input-span($columns, $gridColumnWidth, $gridGutterWidth)
534
+ width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1) - 10
535
+
536
+ =bootstrap-grid-input($gridColumnWidth, $gridGutterWidth)
537
+ input,
538
+ textarea,
539
+ .uneditable-input
540
+ margin-left: 0
541
+ // override margin-left from core grid system
542
+ @for $i from 1 through $gridColumns
543
+ input.span#{$i}, textarea.span#{$i}, .uneditable-input.span#{$i}
544
+ +bootstrap-grid-input-span($i, $gridColumnWidth, $gridGutterWidth)