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,11 +1,13 @@
1
- // BUTTON GROUPS
2
- // -------------
1
+ //
2
+ // Button groups
3
+ // --------------------------------------------------
3
4
 
4
5
 
5
6
  // Make the div behave like a button
6
7
  .btn-group
7
8
  position: relative
8
- +clearfix // clears the floated buttons
9
+ font-size: 0 // remove as part 1 of font-size inline-block hack
10
+ white-space: nowrap // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
9
11
  +ie7-restore-left-whitespace
10
12
 
11
13
  // Space out series of button groups
@@ -14,18 +16,37 @@
14
16
 
15
17
  // Optional: Group multiple button groups together for a toolbar
16
18
  .btn-toolbar
19
+ font-size: 0 // Hack to remove whitespace that results from using inline-block
17
20
  margin-top: $baseLineHeight / 2
18
21
  margin-bottom: $baseLineHeight / 2
19
22
  .btn-group
20
23
  display: inline-block
21
24
  +ie7-inline-block
25
+ .btn + .btn,
26
+ .btn-group + .btn,
27
+ .btn + .btn-group
28
+ margin-left: 5px
22
29
 
23
30
  // Float them, remove border radius, then re-add to first and last elements
24
31
  .btn-group > .btn
25
32
  position: relative
26
- float: left
27
- margin-left: -1px
28
33
  +border-radius(0)
34
+
35
+ .btn-group > .btn + .btn
36
+ margin-left: -1px
37
+
38
+ .btn-group > .btn,
39
+ .btn-group > .dropdown-menu
40
+ font-size: $baseFontSize // redeclare as part 2 of font-size inline-block hack
41
+
42
+ // Reset fonts for other sizes
43
+ .btn-group > .btn-mini
44
+ font-size: 11px
45
+ .btn-group > .btn-small
46
+ font-size: 12px
47
+
48
+ .btn-group > .btn-large
49
+ font-size: 16px
29
50
 
30
51
  // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
31
52
  .btn-group > .btn:first-child
@@ -84,25 +105,29 @@
84
105
  // ----------------------
85
106
 
86
107
  // Give the line between buttons some depth
87
- .btn-group > .dropdown-toggle
108
+ .btn-group > .btn + .dropdown-toggle
88
109
  padding-left: 8px
89
110
  padding-right: 8px
90
111
  $shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)
91
112
  +box-shadow($shadow)
92
- *padding-top: 4px
93
- *padding-bottom: 4px
113
+ *padding-top: 5px
114
+ *padding-bottom: 5px
94
115
 
95
- .btn-group > .btn-mini.dropdown-toggle
116
+ .btn-group > .btn-mini + .dropdown-toggle
96
117
  padding-left: 5px
97
118
  padding-right: 5px
119
+ *padding-top: 2px
120
+ *padding-bottom: 2px
98
121
 
99
- .btn-group > .btn-small.dropdown-toggle
100
- *padding-top: 4px
122
+ .btn-group > .btn-small + .dropdown-toggle
123
+ *padding-top: 5px
101
124
  *padding-bottom: 4px
102
125
 
103
- .btn-group > .btn-large.dropdown-toggle
126
+ .btn-group > .btn-large + .dropdown-toggle
104
127
  padding-left: 12px
105
128
  padding-right: 12px
129
+ *padding-top: 7px
130
+ *padding-bottom: 7px
106
131
 
107
132
  .btn-group.open
108
133
  // The clickable button for toggling the menu
@@ -137,22 +162,16 @@
137
162
 
138
163
  // Reposition the caret
139
164
  .btn .caret
140
- margin-top: 7px
165
+ margin-top: 8px
141
166
  margin-left: 0
142
167
 
143
- .btn:hover .caret,
144
- .open.btn-group .caret
145
- +opacity(100)
146
-
147
168
  // Carets in other button sizes
148
- .btn-mini .caret
149
- margin-top: 5px
150
-
151
- .btn-small .caret
169
+ .btn-mini .caret,
170
+ .btn-small .caret,
171
+ .btn-large .caret
152
172
  margin-top: 6px
153
173
 
154
174
  .btn-large .caret
155
- margin-top: 6px
156
175
  border-left-width: 5px
157
176
  border-right-width: 5px
158
177
  border-top-width: 5px
@@ -172,5 +191,34 @@
172
191
  .caret
173
192
  border-top-color: $white
174
193
  border-bottom-color: $white
175
- +opacity(75)
176
194
 
195
+
196
+
197
+ // Vertical button groups
198
+ // ----------------------
199
+
200
+ .btn-group-vertical
201
+ display: inline-block // makes buttons only take up the width they need
202
+ +ie7-inline-block
203
+
204
+ .btn-group-vertical .btn
205
+ display: block
206
+ float: none
207
+ width: 100%
208
+ +border-radius(0)
209
+
210
+ .btn-group-vertical .btn + .btn
211
+ margin-left: 0
212
+ margin-top: -1px
213
+
214
+ .btn-group-vertical .btn:first-child
215
+ +border-radius(4px 4px 0 0)
216
+
217
+ .btn-group-vertical .btn:last-child
218
+ +border-radius(0 0 4px 4px)
219
+
220
+ .btn-group-vertical .btn-large:first-child
221
+ +border-radius(6px 6px 0 0)
222
+
223
+ .btn-group-vertical .btn-large:last-child
224
+ +border-radius(0 0 6px 6px)
@@ -1,5 +1,6 @@
1
- // BUTTON STYLES
2
- // -------------
1
+ //
2
+ // Button styles
3
+ // --------------------------------------------------
3
4
 
4
5
 
5
6
  // Base styles
@@ -9,58 +10,56 @@
9
10
  .btn
10
11
  display: inline-block
11
12
  +ie7-inline-block
12
- padding: 4px 10px 4px
13
+ padding: 4px 14px
13
14
  margin-bottom: 0 // For input.btn
14
- font-size: $baseFontSize
15
- line-height: $baseLineHeight
15
+ font-size: 13px
16
+ line-height: 20px
16
17
  *line-height: 20px
17
- color: $grayDark
18
18
  text-align: center
19
- text-shadow: 0 1px 1px rgba(255,255,255,.75)
20
19
  vertical-align: middle
21
20
  cursor: pointer
22
- +button-background($btnBackground, $btnBackgroundHighlight)
21
+ +button-background($btnBackground, $btnBackgroundHighlight, $grayDark, 0 1px 1px rgba(255,255,255,.75))
23
22
  border: 1px solid $btnBorder
24
23
  *border: 0 // Remove the border to prevent IE7's black border on input:focus
25
24
  border-bottom-color: darken($btnBorder, 10%)
26
25
  +border-radius(4px)
27
26
  +ie7-restore-left-whitespace // Give IE7 some love
28
- $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)
27
+ $shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 2px rgba(0,0,0,.05)
29
28
  +box-shadow($shadow)
30
29
 
31
- // Hover state
32
- .btn:hover
33
- color: $grayDark
34
- text-decoration: none
35
- background-color: darken($white, 10%)
36
- *background-color: darken($white, 15%) /* Buttons in IE7 don't get borders, so darken on hover */
37
- background-position: 0 -15px
38
- // transition is only when going to hover, otherwise the background
39
- // behind the gradient (there for IE<=9 fallback) gets mismatched
40
- +transition(background-position .1s linear)
41
-
42
- // Focus state for keyboard and accessibility
43
- .btn:focus
44
- +tab-focus
45
-
46
- // Active state
47
- .btn.active,
48
- .btn:active
49
- background-color: darken($white, 10%)
50
- background-color: darken($white, 15%) #{"\9"}
51
- background-image: none
52
- outline: 0
53
- $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)
54
- +box-shadow($shadow)
55
-
56
- // Disabled state
57
- .btn.disabled,
58
- .btn[disabled]
59
- cursor: default
60
- background-color: darken($white, 10%)
61
- background-image: none
62
- +opacity(65)
63
- +box-shadow(none)
30
+ // Hover state
31
+ &:hover
32
+ color: $grayDark
33
+ text-decoration: none
34
+ background-color: darken($white, 10%)
35
+ *background-color: darken($white, 15%) /* Buttons in IE7 don't get borders, so darken on hover */
36
+ background-position: 0 -15px
37
+ // transition is only when going to hover, otherwise the background
38
+ // behind the gradient (there for IE<=9 fallback) gets mismatched
39
+ +transition(background-position .1s linear)
40
+
41
+ // Focus state for keyboard and accessibility
42
+ &:focus
43
+ +tab-focus
44
+
45
+ // Active state
46
+ &.active,
47
+ &:active
48
+ background-color: darken($white, 10%)
49
+ background-color: darken($white, 15%) #{"\9"}
50
+ background-image: none
51
+ outline: 0
52
+ $shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05)
53
+ +box-shadow($shadow)
54
+
55
+ // Disabled state
56
+ &.disabled,
57
+ &[disabled]
58
+ cursor: default
59
+ background-color: darken($white, 10%)
60
+ background-image: none
61
+ +opacity(65)
62
+ +box-shadow(none)
64
63
 
65
64
  // Button sizes
66
65
  // --------------------------------------------------
@@ -72,43 +71,36 @@
72
71
  line-height: normal
73
72
  +border-radius(5px)
74
73
  [class^="icon-"]
75
- margin-top: 1px
74
+ margin-top: 2px
76
75
 
77
76
  // Small
78
77
  .btn-small
79
- padding: 5px 9px
78
+ padding: 3px 9px
80
79
  font-size: $baseFontSize - 2px
81
80
  line-height: $baseLineHeight - 2px
82
81
  [class^="icon-"]
83
- margin-top: -1px
82
+ margin-top: 0
84
83
 
85
84
  // Mini
86
85
  .btn-mini
87
86
  padding: 2px 6px
88
87
  font-size: $baseFontSize - 2px
89
88
  line-height: $baseLineHeight - 4px
89
+
90
+ // Block button
91
+ .btn-block
92
+ display: block
93
+ width: 100%
94
+ padding-left: 0
95
+ padding-right: 0
96
+ +box-sizing(border-box)
97
+ .btn-block + .btn-block
98
+ margin-top: 5px
90
99
 
91
100
 
92
101
  // Alternate buttons
93
102
  // --------------------------------------------------
94
103
 
95
- // Set text color
96
- // -------------------------
97
- .btn-primary,
98
- .btn-primary:hover,
99
- .btn-warning,
100
- .btn-warning:hover,
101
- .btn-danger,
102
- .btn-danger:hover,
103
- .btn-success,
104
- .btn-success:hover,
105
- .btn-info,
106
- .btn-info:hover,
107
- .btn-inverse,
108
- .btn-inverse:hover
109
- color: $white
110
- text-shadow: 0 -1px 0 rgba(0,0,0,.25)
111
-
112
104
  // Provide *some* extra contrast for those who can get it
113
105
  .btn-primary.active,
114
106
  .btn-warning.active,
@@ -122,8 +114,8 @@
122
114
  // -------------------------
123
115
  .btn
124
116
  // reset here as of 2.0.3 due to Recess property order
125
- border-color: #ccc
126
- border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)
117
+ border-color: #c5c5c5
118
+ border-color: rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.25)
127
119
  .btn-primary
128
120
  +button-background($btnPrimaryBackground, $btnPrimaryBackgroundHighlight)
129
121
  // Warning appears as orange
@@ -154,8 +146,9 @@ input[type="submit"].btn
154
146
  border: 0
155
147
 
156
148
  // IE7 has some default padding on button controls
157
- *padding-top: 2px
158
- *padding-bottom: 2px
149
+ *padding-top: 3px
150
+ *padding-bottom: 3px
151
+
159
152
  &.btn-large
160
153
  *padding-top: 7px
161
154
  *padding-bottom: 7px
@@ -165,3 +158,25 @@ input[type="submit"].btn
165
158
  &.btn-mini
166
159
  *padding-top: 1px
167
160
  *padding-bottom: 1px
161
+
162
+
163
+ // Link buttons
164
+ // --------------------------------------------------
165
+
166
+ // Make a button look and behave like a link
167
+ .btn-link,
168
+ .btn-link:active
169
+ background-color: transparent
170
+ background-image: none
171
+ +box-shadow(none)
172
+
173
+ .btn-link
174
+ border-color: transparent
175
+ cursor: pointer
176
+ color: $linkColor
177
+ +border-radius(0)
178
+
179
+ .btn-link:hover
180
+ color: $linkColorHover
181
+ text-decoration: underline
182
+ background-color: transparent
@@ -1,5 +1,7 @@
1
- // CAROUSEL
2
- // --------
1
+ //
2
+ // Carousel
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .carousel
5
7
  position: relative
@@ -96,10 +98,17 @@
96
98
  left: 0
97
99
  right: 0
98
100
  bottom: 0
99
- padding: 10px 15px 5px
101
+ padding: 15px
100
102
  background: $grayDark
101
103
  background: rgba(0,0,0,.75)
102
104
 
103
105
  .carousel-caption h4,
104
106
  .carousel-caption p
105
107
  color: $white
108
+ line-height: $baseLineHeight
109
+
110
+ .carousel-caption h4
111
+ margin: 0 0 5px
112
+
113
+ .carousel-caption p
114
+ margin-bottom: 0
@@ -1,5 +1,7 @@
1
- // CLOSE ICONS
2
- // -----------
1
+ //
2
+ // Close icons
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .close
5
7
  float: right
@@ -1,12 +1,14 @@
1
- // Code typography styles for the <code> and <pre> elements
2
- // --------------------------------------------------------
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  // Inline and block code styles
5
7
  code,
6
8
  pre
7
9
  padding: 0 3px 2px
8
10
  +font-family-monospace
9
- font-size: $baseFontSize - 1
11
+ font-size: $baseFontSize - 2
10
12
  color: $grayDark
11
13
  +border-radius(3px)
12
14
 
@@ -22,7 +24,7 @@ pre
22
24
  display: block
23
25
  padding: ($baseLineHeight - 1) / 2
24
26
  margin: 0 0 $baseLineHeight / 2
25
- font-size: $baseFontSize * 0.925 // 13px to 12px
27
+ font-size: $baseFontSize - 1 // 14px to 13px
26
28
  line-height: $baseLineHeight
27
29
  word-break: break-all
28
30
  word-wrap: break-word
@@ -1,5 +1,7 @@
1
- // COMPONENT ANIMATIONS
2
- // --------------------
1
+ //
2
+ // Component animations
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .fade
5
7
  opacity: 0
@@ -11,6 +13,7 @@
11
13
  position: relative
12
14
  height: 0
13
15
  overflow: hidden
16
+ overflow: visible \9
14
17
  +transition(height .35s ease)
15
18
  &.in
16
19
  height: auto
@@ -1,5 +1,7 @@
1
- // DROPDOWN MENUS
2
- // --------------
1
+ //
2
+ // Dropdown menus
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
5
7
  .dropup,
@@ -24,16 +26,12 @@
24
26
  border-right: 4px solid transparent
25
27
  border-left: 4px solid transparent
26
28
  content: ""
27
- +opacity(30)
28
29
 
29
30
  // Place the caret
30
31
  .dropdown .caret
31
32
  margin-top: 8px
32
33
  margin-left: 2px
33
34
 
34
- .dropdown:hover .caret,
35
- .open .caret
36
- +opacity(100)
37
35
 
38
36
  // The dropdown menu (ul)
39
37
  // ----------------------
@@ -46,15 +44,15 @@
46
44
  float: left
47
45
  min-width: 160px
48
46
  max-width: 220px
49
- padding: 4px 0
50
- margin: 1px 0 0 // override default ul
47
+ padding: 5px 0
48
+ margin: 2px 0 0 // override default ul
51
49
  list-style: none
52
50
  background-color: $dropdownBackground
53
- border: 1px solid #ccc
54
- border: 1px solid rgba(0, 0, 0, 0.2)
51
+ border: 1px solid #ccc // Fallback for IE7-8
52
+ border: 1px solid $dropdownBorder
55
53
  *border-right-width: 2px
56
54
  *border-bottom-width: 2px
57
- +border-radius(5px)
55
+ +border-radius(6px)
58
56
  +box-shadow(0 5px 10px rgba(0,0,0,.2))
59
57
  -webkit-background-clip: padding-box
60
58
  -moz-background-clip: padding
@@ -72,7 +70,7 @@
72
70
  // Links within the dropdown menu
73
71
  a
74
72
  display: block
75
- padding: 3px 15px
73
+ padding: 3px 20px
76
74
  clear: both
77
75
  font-weight: normal
78
76
  line-height: $baseLineHeight
@@ -82,11 +80,34 @@
82
80
  // Hover state
83
81
  // -----------
84
82
  .dropdown-menu li > a:hover,
83
+ .dropdown-menu li > a:focus,
84
+ .dropdown-submenu:hover > a
85
+ text-decoration: none
86
+ color: $dropdownLinkColorHover
87
+ background-color: $dropdownLinkBackgroundHover
88
+
89
+ // Active state
90
+ // ------------
85
91
  .dropdown-menu .active > a,
86
92
  .dropdown-menu .active > a:hover
87
93
  color: $dropdownLinkColorHover
88
94
  text-decoration: none
89
- background-color: $dropdownLinkBackgroundHover
95
+ outline: 0
96
+ background-color: $dropdownLinkBackgroundActive
97
+ +gradient-vertical($dropdownLinkBackgroundActive, darken($dropdownLinkBackgroundActive, 5%))
98
+
99
+ // Disabled state
100
+ // --------------
101
+ // Gray out text and ensure the hover state remains gray
102
+ .dropdown-menu .disabled > a,
103
+ .dropdown-menu .disabled > a:hover
104
+ color: $grayLight
105
+
106
+ // Nuke hover effects
107
+ .dropdown-menu .disabled > a:hover
108
+ text-decoration: none
109
+ background-color: transparent
110
+ cursor: default
90
111
 
91
112
  // Open state for the dropdown
92
113
  // ---------------------------
@@ -120,7 +141,49 @@
120
141
  bottom: 100%
121
142
  margin-bottom: 1px
122
143
 
144
+ // Sub menus
145
+ // ---------------------------
146
+ .dropdown-submenu
147
+ position: relative
148
+
149
+ .dropdown-submenu > .dropdown-menu
150
+ top: 0
151
+ left: 100%
152
+ margin-top: -6px
153
+ margin-left: -1px
154
+ -webkit-border-radius: 0 6px 6px 6px
155
+ -moz-border-radius: 0 6px 6px 6px
156
+ border-radius: 0 6px 6px 6px
157
+
158
+ .dropdown-submenu:hover .dropdown-menu
159
+ display: block
160
+
161
+ .dropdown-submenu > a:after
162
+ display: block
163
+ content: " "
164
+ float: right
165
+ width: 0
166
+ height: 0
167
+ border-color: transparent
168
+ border-style: solid
169
+ border-width: 5px 0 5px 5px
170
+ border-left-color: darken($dropdownBackground, 20%)
171
+ margin-top: 5px
172
+ margin-right: -10px
173
+ .dropdown-submenu:hover > a:after
174
+ border-left-color: $dropdownLinkColorHover
175
+
176
+
177
+ // Tweak nav headers
178
+ // -----------------
179
+ // Increase padding from 15px to 20px on sides
180
+ .dropdown .dropdown-menu .nav-header
181
+ padding-left: 20px
182
+ padding-right: 20px
183
+
184
+
123
185
  // Typeahead
186
+ // ---------
124
187
  .typeahead
125
188
  margin-top: 2px // give it some space to breathe
126
189
  +border-radius(4px)