sass-rails-bootstrap 2.0.4 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/README.md +3 -3
  2. data/lib/sass-rails-bootstrap/sass_functions.rb +15 -0
  3. data/lib/sass-rails-bootstrap/version.rb +1 -1
  4. data/lib/sass-rails-bootstrap.rb +1 -0
  5. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +104 -0
  6. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +2 -2
  7. data/vendor/assets/javascripts/twitter/bootstrap/button.js +2 -2
  8. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +13 -6
  9. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +5 -4
  10. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +69 -19
  11. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +96 -75
  12. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +19 -9
  13. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +13 -13
  14. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +3 -3
  15. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +15 -15
  16. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +3 -4
  17. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +52 -37
  18. data/vendor/assets/javascripts/twitter/bootstrap.js +1 -0
  19. data/vendor/assets/stylesheets/twitter/_bootstrap-responsive.scss +5 -5
  20. data/vendor/assets/stylesheets/twitter/_bootstrap.scss +2 -1
  21. data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +3 -2
  22. data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.sass +14 -8
  23. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.sass +9 -9
  24. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +71 -23
  25. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +81 -66
  26. data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.sass +12 -3
  27. data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +4 -2
  28. data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +6 -4
  29. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +5 -2
  30. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +76 -13
  31. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +84 -41
  32. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.sass +13 -2
  33. data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.sass +4 -2
  34. data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.sass +15 -2
  35. data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +3 -2
  36. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +107 -76
  37. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.sass +8 -2
  38. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +234 -134
  39. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +130 -96
  40. data/vendor/assets/stylesheets/twitter/bootstrap/_pager.sass +5 -4
  41. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.sass +16 -8
  42. data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.sass +92 -38
  43. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +18 -13
  44. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +6 -2
  45. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.sass +9 -7
  46. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.sass +75 -60
  47. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.sass +7 -5
  48. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.sass +15 -6
  49. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.sass +17 -14
  50. data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.sass +24 -4
  51. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +13 -3
  52. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +50 -9
  53. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +9 -4
  54. data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.sass +46 -17
  55. data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +69 -67
  56. data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.sass +8 -2
  57. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +95 -26
  58. data/vendor/assets/stylesheets/twitter/bootstrap/_wells.sass +6 -5
  59. metadata +4 -2
@@ -1,15 +1,13 @@
1
- // Headings, body text, lists, code, and more for a versatile and durable typography system
2
- // ----------------------------------------------------------------------------------------
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
3
4
 
4
5
 
5
- // BODY TEXT
6
- // ---------
6
+ // Body text
7
+ // -------------------------
7
8
 
8
9
  p
9
10
  margin: 0 0 $baseLineHeight / 2
10
- small
11
- font-size: $baseFontSize - 2
12
- color: $grayLight
13
11
 
14
12
  .lead
15
13
  margin-bottom: $baseLineHeight
@@ -18,66 +16,88 @@ p
18
16
  line-height: $baseLineHeight * 1.5
19
17
 
20
18
 
21
- // HEADINGS
22
- // --------
19
+ // Emphasis & misc
20
+ // -------------------------
21
+
22
+ small
23
+ font-size: 85% // Ex: 14px base font * 85% = about 12px
24
+
25
+ strong
26
+ font-weight: bold
27
+
28
+ em
29
+ font-style: italic
30
+
31
+ cite
32
+ font-style: normal
33
+
34
+ .muted
35
+ color: $grayLight
36
+
37
+
38
+ // Headings
39
+ // -------------------------
23
40
 
24
41
  h1, h2, h3, h4, h5, h6
25
- margin: 0
42
+ margin: ($baseLineHeight / 2) 0
26
43
  font-family: $headingsFontFamily
27
44
  font-weight: $headingsFontWeight
28
45
  color: $headingsColor
29
46
  text-rendering: optimizelegibility // Fix the character spacing for headings
30
47
  small
31
48
  font-weight: normal
49
+ line-height: 1
32
50
  color: $grayLight
33
51
 
34
52
  h1
35
- font-size: 30px
36
- line-height: $baseLineHeight * 2
37
- small
38
- font-size: 18px
39
-
53
+ font-size: 36px
54
+ line-height: 40px
55
+
40
56
  h2
41
- font-size: 24px
42
- line-height: $baseLineHeight * 2
43
- small
44
- font-size: 18px
45
-
57
+ font-size: 30px
58
+ line-height: 40px
59
+
46
60
  h3
47
- font-size: 18px
48
- line-height: $baseLineHeight * 1.5
49
- small
50
- font-size: 14px
51
-
52
- h4, h5, h6
53
- line-height: $baseLineHeight
54
-
61
+ font-size: 24px
62
+ line-height: 40px
63
+
55
64
  h4
56
- font-size: 14px
57
- small
58
- font-size: 12px
59
-
65
+ font-size: 18px
66
+ line-height: 20px
67
+
60
68
  h5
61
- font-size: 12px
62
-
69
+ font-size: 14px
70
+ line-height: 20px
71
+
63
72
  h6
64
- font-size: 11px
65
- color: $grayLight
66
- text-transform: uppercase
73
+ font-size: 12px
74
+ line-height: 20px
75
+
76
+ h1 small
77
+ font-size: 24px
78
+
79
+ h2 small
80
+ font-size: 18px
81
+
82
+ h3 small
83
+ font-size: 14px
84
+
85
+ h4 small
86
+ font-size: 14px
87
+
67
88
 
68
89
  // Page header
90
+ // -------------------------
91
+
69
92
  .page-header
70
- padding-bottom: $baseLineHeight - 1
71
- margin: $baseLineHeight 0
93
+ padding-bottom: ($baseLineHeight / 2) - 1
94
+ margin: $baseLineHeight 0 ($baseLineHeight * 1.5)
72
95
  border-bottom: 1px solid $grayLighter
73
-
74
- .page-header h1
75
- line-height: 1
76
96
 
77
97
 
78
98
 
79
- // LISTS
80
- // -----
99
+ // Lists
100
+ // --------------------------------------------------
81
101
 
82
102
  // Unordered and Ordered lists
83
103
  ul, ol
@@ -90,12 +110,6 @@ ol ol,
90
110
  ol ul
91
111
  margin-bottom: 0
92
112
 
93
- ul
94
- list-style: disc
95
-
96
- ol
97
- list-style: decimal
98
-
99
113
  li
100
114
  line-height: $baseLineHeight
101
115
 
@@ -115,7 +129,6 @@ dd
115
129
 
116
130
  dt
117
131
  font-weight: bold
118
- line-height: $baseLineHeight - 1 // fix jank Helvetica Neue font bug
119
132
 
120
133
  dd
121
134
  margin-left: $baseLineHeight / 2
@@ -142,16 +155,6 @@ hr
142
155
  border-top: 1px solid $hrBorder
143
156
  border-bottom: 1px solid $white
144
157
 
145
- // Emphasis
146
- strong
147
- font-weight: bold
148
-
149
- em
150
- font-style: italic
151
-
152
- .muted
153
- color: $grayLight
154
-
155
158
  // Abbreviations and acronyms
156
159
  abbr[title]
157
160
  cursor: help
@@ -185,6 +188,11 @@ blockquote
185
188
  p,
186
189
  small
187
190
  text-align: right
191
+ small
192
+ &:before
193
+ content: ''
194
+ &:after
195
+ content: '\00A0 \2014'
188
196
 
189
197
  // Quotes
190
198
  q:before,
@@ -199,9 +207,3 @@ address
199
207
  margin-bottom: $baseLineHeight
200
208
  font-style: normal
201
209
  line-height: $baseLineHeight
202
-
203
- // Misc
204
- small
205
- font-size: 100%
206
- cite
207
- font-style: normal
@@ -1,5 +1,7 @@
1
- // UTILITY CLASSES
2
- // ---------------
1
+ //
2
+ // Utility classes
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  // Quick floats
5
7
  .pull-right
@@ -17,3 +19,7 @@
17
19
  // Visibility
18
20
  .invisible
19
21
  visibility: hidden
22
+
23
+ // For Affix plugin
24
+ .affix
25
+ position: fixed
@@ -1,9 +1,9 @@
1
- // Variables to customize the look and feel of Bootstrap
2
- // -----------------------------------------------------
3
-
1
+ //
2
+ // Variables
3
+ // --------------------------------------------------
4
4
 
5
5
 
6
- // GLOBAL VALUES
6
+ // Global values
7
7
  // --------------------------------------------------
8
8
 
9
9
 
@@ -46,11 +46,11 @@ $linkColorHover: darken($linkColor, 15%)
46
46
  // -------------------------
47
47
  $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif
48
48
  $serifFontFamily: Georgia, "Times New Roman", Times, serif
49
- $monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace
49
+ $monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace
50
50
 
51
- $baseFontSize: 13px
51
+ $baseFontSize: 14px
52
52
  $baseFontFamily: $sansFontFamily
53
- $baseLineHeight: 18px
53
+ $baseLineHeight: 20px
54
54
  $altFontFamily: $serifFontFamily
55
55
 
56
56
  $headingsFontFamily: inherit // empty to use BS default, $baseFontFamily
@@ -73,7 +73,7 @@ $btnBackgroundHighlight: darken($white, 10%)
73
73
  $btnBorder: #ccc
74
74
 
75
75
  $btnPrimaryBackground: $linkColor
76
- $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15deg)
76
+ $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 20deg)
77
77
 
78
78
  $btnInfoBackground: #5bc0de
79
79
  $btnInfoBackgroundHighlight: #2f96b4
@@ -87,7 +87,7 @@ $btnWarningBackgroundHighlight: $orange
87
87
  $btnDangerBackground: #ee5f5b
88
88
  $btnDangerBackgroundHighlight: #bd362f
89
89
 
90
- $btnInverseBackground: $gray
90
+ $btnInverseBackground: #444
91
91
  $btnInverseBackgroundHighlight: $grayDarker
92
92
 
93
93
 
@@ -104,12 +104,16 @@ $formActionsBackground: #f5f5f5
104
104
  // -------------------------
105
105
  $dropdownBackground: $white
106
106
  $dropdownBorder: rgba(0, 0, 0, 0.2)
107
- $dropdownLinkColor: $grayDark
108
- $dropdownLinkColorHover: $white
109
- $dropdownLinkBackgroundHover: $linkColor
110
107
  $dropdownDividerTop: #e5e5e5
111
108
  $dropdownDividerBottom: $white
112
109
 
110
+ $dropdownLinkColor: $grayDark
111
+
112
+ $dropdownLinkColorActive: $dropdownLinkColor
113
+ $dropdownLinkBackgroundActive: $linkColor
114
+
115
+ $dropdownLinkColorHover: $white
116
+ $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive
113
117
 
114
118
 
115
119
  // COMPONENT VARIABLES
@@ -121,7 +125,7 @@ $dropdownDividerBottom: $white
121
125
  // Try to avoid customizing these :)
122
126
  $zindexDropdown: 1000
123
127
  $zindexPopover: 1010
124
- $zindexTooltip: 1020
128
+ $zindexTooltip: 1030
125
129
  $zindexFixedNavbar: 1030
126
130
  $zindexModalBackdrop: 1040
127
131
  $zindexModal: 1050
@@ -143,24 +147,55 @@ $placeholderText: $grayLight
143
147
  $hrBorder: $grayLighter
144
148
 
145
149
 
150
+ // Wells
151
+ // -------------------------
152
+ $wellBackground: #f5f5f5
153
+
154
+
146
155
  // Navbar
147
156
  // -------------------------
157
+ $navbarCollapseWidth: 979px
158
+
148
159
  $navbarHeight: 40px
149
- $navbarBackground: $grayDarker
150
- $navbarBackgroundHighlight: $grayDark
160
+ $navbarBackgroundHighlight: #ffffff
161
+ $navbarBackground: darken($navbarBackgroundHighlight, 5%)
162
+ $navbarBorder: darken($navbarBackground, 12%)
163
+
164
+ $navbarText: $gray
165
+ $navbarLinkColor: $gray
166
+ $navbarLinkColorHover: $grayDark
167
+ $navbarLinkColorActive: $gray
151
168
 
152
- $navbarText: $grayLight
153
- $navbarLinkColor: $grayLight
154
- $navbarLinkColorHover: $white
155
- $navbarLinkColorActive: $navbarLinkColorHover
156
169
  $navbarLinkBackgroundHover: transparent
157
- $navbarLinkBackgroundActive: $navbarBackground
170
+ $navbarLinkBackgroundActive: darken($navbarBackground, 5%)
171
+
158
172
  $navbarBrandColor: $navbarLinkColor
159
173
 
160
- $navbarSearchBackground: lighten($navbarBackground, 25%)
161
- $navbarSearchBackgroundFocus: $white
162
- $navbarSearchBorder: darken($navbarSearchBackground, 30%)
163
- $navbarSearchPlaceholderColor: #ccc
174
+ // Inverted navbar
175
+ $navbarInverseBackground: #111111
176
+ $navbarInverseBackgroundHighlight: #222222
177
+ $navbarInverseBorder: #252525
178
+
179
+ $navbarInverseText: $grayLight
180
+ $navbarInverseLinkColor: $grayLight
181
+ $navbarInverseLinkColorHover: $white
182
+ $navbarInverseLinkColorActive: $navbarInverseLinkColorHover
183
+ $navbarInverseLinkBackgroundHover: transparent
184
+ $navbarInverseLinkBackgroundActive: $navbarInverseBackground
185
+
186
+ $navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%)
187
+ $navbarInverseSearchBackgroundFocus: $white
188
+ $navbarInverseSearchBorder: $navbarInverseBackground
189
+ $navbarInverseSearchPlaceholderColor: #ccc
190
+
191
+ $navbarInverseBrandColor: $navbarInverseLinkColor
192
+
193
+
194
+ // Pagination
195
+ // -------------------------
196
+ $paginationBackground: #fff
197
+ $paginationBorder: #ddd
198
+ $paginationActiveBackground: #f5f5f5
164
199
 
165
200
 
166
201
  // Hero unit
@@ -189,6 +224,23 @@ $infoBackground: #d9edf7
189
224
  $infoBorder: darken(adjust-hue($infoBackground, -10), 7%)
190
225
 
191
226
 
227
+ // Tooltips and popovers
228
+ // -------------------------
229
+ $tooltipColor: #fff
230
+ $tooltipBackground: #000
231
+ $tooltipArrowWidth: 5px
232
+ $tooltipArrowColor: $tooltipBackground
233
+
234
+ $popoverBackground: #fff
235
+ $popoverArrowWidth: 10px
236
+ $popoverArrowColor: #fff
237
+ $popoverTitleBackground: darken($popoverBackground, 3%)
238
+
239
+ // Special enhancement for popovers
240
+ $popoverArrowOuterWidth: $popoverArrowWidth + 1
241
+ $popoverArrowOuterColor: rgba(0,0,0,.25)
242
+
243
+
192
244
 
193
245
  // GRID
194
246
  // --------------------------------------------------
@@ -200,9 +252,26 @@ $gridColumnWidth: 60px
200
252
  $gridGutterWidth: 20px
201
253
  $gridRowWidth: $gridColumns * $gridColumnWidth + $gridGutterWidth * ($gridColumns - 1)
202
254
 
255
+ // 1200px min
256
+ $gridColumnWidth1200: 70px
257
+ $gridGutterWidth1200: 30px
258
+ $gridRowWidth1200: $gridColumns * $gridColumnWidth1200 + $gridGutterWidth1200 * ($gridColumns - 1)
259
+
260
+ // 768px-979px
261
+ $gridColumnWidth768: 42px
262
+ $gridGutterWidth768: 20px
263
+ $gridRowWidth768: $gridColumns * $gridColumnWidth768 + $gridGutterWidth768 * ($gridColumns - 1)
264
+
203
265
 
204
266
  // Fluid grid
205
267
  // -------------------------
206
- $fluidGridColumnWidth: 6.382978723%
207
- $fluidGridGutterWidth: 2.127659574%
268
+ $fluidGridColumnWidth: percentage($gridColumnWidth / $gridRowWidth)
269
+ $fluidGridGutterWidth: percentage($gridGutterWidth / $gridRowWidth)
270
+
271
+ // 1200px min
272
+ $fluidGridColumnWidth1200: percentage($gridColumnWidth1200 / $gridRowWidth1200)
273
+ $fluidGridGutterWidth1200: percentage($gridGutterWidth1200 / $gridRowWidth1200)
208
274
 
275
+ // 768px-979px
276
+ $fluidGridColumnWidth768: percentage($gridColumnWidth768 / $gridRowWidth768)
277
+ $fluidGridGutterWidth768: percentage($gridGutterWidth768 / $gridRowWidth768)
@@ -1,13 +1,14 @@
1
- // WELLS
2
- // -----
1
+ //
2
+ // Wells
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .well
5
7
  min-height: 20px
6
8
  padding: 19px
7
9
  margin-bottom: 20px
8
- background-color: #f5f5f5
9
- border: 1px solid #eee
10
- border: 1px solid rgba(0,0,0,.05)
10
+ background-color: $wellBackground
11
+ border: 1px solid darken($wellBackground, 7%)
11
12
  +border-radius(4px)
12
13
  +box-shadow(inset 0 1px 1px rgba(0,0,0,.05))
13
14
  blockquote
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -36,6 +36,7 @@ extra_rdoc_files: []
36
36
  files:
37
37
  - lib/sass-rails-bootstrap/engine.rb
38
38
  - lib/sass-rails-bootstrap/version.rb
39
+ - lib/sass-rails-bootstrap/sass_functions.rb
39
40
  - lib/sass-rails-bootstrap.rb
40
41
  - vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png
41
42
  - vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png
@@ -83,6 +84,7 @@ files:
83
84
  - vendor/assets/javascripts/twitter/bootstrap/dropdown.js
84
85
  - vendor/assets/javascripts/twitter/bootstrap/typeahead.js
85
86
  - vendor/assets/javascripts/twitter/bootstrap/carousel.js
87
+ - vendor/assets/javascripts/twitter/bootstrap/affix.js
86
88
  - vendor/assets/javascripts/twitter/bootstrap/tab.js
87
89
  - vendor/assets/javascripts/twitter/bootstrap/popover.js
88
90
  - vendor/assets/javascripts/twitter/bootstrap/scrollspy.js