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
@@ -8,10 +8,21 @@
8
8
  background-color: #f5f5f5;
9
9
  border: 1px solid #eee;
10
10
  border: 1px solid rgba(0,0,0,.05);
11
- @include border-radius(4px);
12
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
11
+ @include bootstrap-border-radius(4px);
12
+ @include bootstrap-box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
13
13
  blockquote {
14
14
  border-color: #ddd;
15
15
  border-color: rgba(0,0,0,.15);
16
16
  }
17
17
  }
18
+
19
+ // Sizes
20
+ .well-large {
21
+ padding: 24px;
22
+ @include bootstrap-border-radius(6px);
23
+ }
24
+ .well-small {
25
+ padding: 9px;
26
+ @include bootstrap-border-radius(3px);
27
+ }
28
+
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.0.0
2
+ * Bootstrap v2.0.3
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -58,7 +58,7 @@
58
58
 
59
59
  // Components: Misc
60
60
  @import compass_twitter_bootstrap/thumbnails
61
- @import compass_twitter_bootstrap/labels
61
+ @import compass_twitter_bootstrap/labels-badges
62
62
  @import compass_twitter_bootstrap/progress-bars
63
63
  @import compass_twitter_bootstrap/accordion
64
64
  @import compass_twitter_bootstrap/carousel
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Bootstrap v2.0.3
3
+ *
4
+ * Copyright 2012 Twitter, Inc
5
+ * Licensed under the Apache License v2.0
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+
10
+ @import compass
11
+
12
+ @import compass_twitter_bootstrap/mixins
13
+
14
+ // CSS Reset
15
+ @import compass_twitter_bootstrap/reset
16
+
17
+ // Core variables and mixins
18
+ @import compass_twitter_bootstrap/variables
19
+
20
+ // Modify this for custom colors, font-sizes, etc
21
+
22
+ // Grid system and page structure
23
+ @import compass_twitter_bootstrap/scaffolding
24
+ @import compass_twitter_bootstrap/grid
25
+ @import compass_twitter_bootstrap/layouts
26
+
27
+ // Base CSS
28
+ @import compass_twitter_bootstrap/type
29
+ @import compass_twitter_bootstrap/code
30
+ @import compass_twitter_bootstrap/forms
31
+ @import compass_twitter_bootstrap/tables
32
+
33
+ // Components: common
34
+ @import compass_twitter_bootstrap/font-awesome
35
+ @import compass_twitter_bootstrap/dropdowns
36
+ @import compass_twitter_bootstrap/wells
37
+ @import compass_twitter_bootstrap/component-animations
38
+ @import compass_twitter_bootstrap/close
39
+
40
+ // Components: Buttons & Alerts
41
+ @import compass_twitter_bootstrap/buttons
42
+ @import compass_twitter_bootstrap/button-groups
43
+ @import compass_twitter_bootstrap/alerts
44
+
45
+ // Note: alerts share common CSS with buttons and thus have styles in buttons.less
46
+
47
+ // Components: Nav
48
+ @import compass_twitter_bootstrap/navs
49
+ @import compass_twitter_bootstrap/navbar
50
+ @import compass_twitter_bootstrap/breadcrumbs
51
+ @import compass_twitter_bootstrap/pagination
52
+ @import compass_twitter_bootstrap/pager
53
+
54
+ // Components: Popovers
55
+ @import compass_twitter_bootstrap/modals
56
+ @import compass_twitter_bootstrap/tooltip
57
+ @import compass_twitter_bootstrap/popovers
58
+
59
+ // Components: Misc
60
+ @import compass_twitter_bootstrap/thumbnails
61
+ @import compass_twitter_bootstrap/labels-badges
62
+ @import compass_twitter_bootstrap/progress-bars
63
+ @import compass_twitter_bootstrap/accordion
64
+ @import compass_twitter_bootstrap/carousel
65
+ @import compass_twitter_bootstrap/hero-unit
66
+
67
+ // Utility classes
68
+ @import compass_twitter_bootstrap/utilities
69
+
70
+ // Has to be last to override when necessary
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.0.1
2
+ * Bootstrap Responsive v2.0.3
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -23,233 +23,22 @@
23
23
  // RESPONSIVE CLASSES
24
24
  // ------------------
25
25
 
26
- // Hide from screenreaders and browsers
27
- // Credit: HTML5 Boilerplate
28
- .hidden
29
- display: none
30
- visibility: hidden
26
+ @import compass_twitter_bootstrap/responsive-utilities
31
27
 
32
- // UP TO LANDSCAPE PHONE
33
- // ---------------------
34
-
35
- @media (max-width: 480px)
36
- // Smooth out the collapsing/expanding nav
37
- .nav-collapse
38
- -webkit-transform: translate3d(0, 0, 0)
39
- // activate the GPU
40
- // Block level the page header small tag for readability
41
- .page-header h1 small
42
- display: block
43
- line-height: $baseLineHeight
44
- // Make span* classes full width
45
- input[class*="span"],
46
- select[class*="span"],
47
- textarea[class*="span"],
48
- .uneditable-input
49
- display: block
50
- width: 100%
51
- min-height: 28px
52
- /* Make inputs at least the height of their button counterpart
53
- /* Makes inputs behave like true block-level elements
54
- -webkit-box-sizing: border-box
55
- /* Older Webkit
56
- -moz-box-sizing: border-box
57
- /* Older FF
58
- -ms-box-sizing: border-box
59
- /* IE8
60
- box-sizing: border-box
61
- /* CSS3 spec
62
- // But don't let it screw up prepend/append inputs
63
- .input-prepend input[class*="span"],
64
- .input-append input[class*="span"]
65
- width: auto
66
- // Update checkboxes for iOS
67
- input[type="checkbox"],
68
- input[type="radio"]
69
- border: 1px solid #ccc
70
- // Remove the horizontal form styles
71
- .form-horizontal .control-group > label
72
- float: none
73
- width: auto
74
- padding-top: 0
75
- text-align: left
76
- // Move over all input controls and content
77
- .form-horizontal .controls
78
- margin-left: 0
79
- // Move the options list down to align with labels
80
- .form-horizontal .control-list
81
- padding-top: 0
82
- // has to be padding because margin collaspes
83
- // Move over buttons in .form-actions to align with .controls
84
- .form-horizontal .form-actions
85
- padding-left: 10px
86
- padding-right: 10px
87
- // Modals
88
- .modal
89
- position: absolute
90
- top: 10px
91
- left: 10px
92
- right: 10px
93
- width: auto
94
- margin: 0
95
- &.fade.in
96
- top: auto
97
- .modal-header .close
98
- padding: 10px
99
- margin: -10px
100
- // Carousel
101
- .carousel-caption
102
- position: static
103
-
104
- // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
105
- // --------------------------------------------------
106
-
107
- @media (max-width: 767px)
108
- // GRID & CONTAINERS
109
- // -----------------
110
- // Remove width from containers
111
- .container
112
- width: auto
113
- padding: 0 20px
114
- // Fluid rows
115
- .row-fluid
116
- width: 100%
117
- // Undo negative margin on rows
118
- .row
119
- margin-left: 0
120
- // Make all columns even
121
- .row > [class*="span"],
122
- .row-fluid > [class*="span"]
123
- float: none
124
- display: block
125
- width: auto
126
- margin: 0
127
-
128
- // PORTRAIT TABLET TO DEFAULT DESKTOP
129
- // ----------------------------------
130
-
131
- @media (min-width: 768px) and (max-width: 979px)
132
- // Fixed grid
133
- +gridSystem-generate(12, 42px, 20px)
134
- // Fluid grid
135
- +fluidGridSystem-generate(12, 5.801%, 2.762%)
136
- // Input grid
137
- +inputGridSystem-generate(12, 42px, 20px)
28
+ // MEDIA QUERIES
29
+ // ------------------
138
30
 
139
- // TABLETS AND BELOW
140
- // -----------------
141
- @media (max-width: 979px)
142
- // UNFIX THE TOPBAR
143
- // ----------------
144
- // Remove any padding from the body
145
- body
146
- padding-top: 0
147
- // Unfix the navbar
148
- .navbar-fixed-top
149
- position: static
150
- margin-bottom: $baseLineHeight
151
- .navbar-fixed-top .navbar-inner
152
- padding: 5px
153
- .navbar .container
154
- width: auto
155
- padding: 0
156
- // Account for brand name
157
- .navbar .brand
158
- padding-left: 10px
159
- padding-right: 10px
160
- margin: 0 0 0 -5px
161
- // Nav collapse clears brand
162
- .navbar .nav-collapse
163
- clear: left
164
- // Block-level the nav
165
- .navbar .nav
166
- float: none
167
- margin: 0 0 $baseLineHeight / 2
168
- .navbar .nav > li
169
- float: none
170
- .navbar .nav > li > a
171
- margin-bottom: 2px
172
- .navbar .nav > .divider-vertical
173
- display: none
174
- .navbar .nav .nav-header
175
- color: $navbarText
176
- text-shadow: none
177
- // Nav and dropdown links in navbar
178
- .navbar .nav > li > a,
179
- .navbar .dropdown-menu a
180
- padding: 6px 15px
181
- font-weight: bold
182
- color: $navbarLinkColor
183
- +border-radius(3px)
184
- .navbar .dropdown-menu li + li a
185
- margin-bottom: 2px
186
- .navbar .nav > li > a:hover,
187
- .navbar .dropdown-menu a:hover
188
- background-color: $navbarBackground
189
- // Dropdowns in the navbar
190
- .navbar .dropdown-menu
191
- position: static
192
- top: auto
193
- left: auto
194
- float: none
195
- display: block
196
- max-width: none
197
- margin: 0 15px
198
- padding: 0
199
- background-color: transparent
200
- border: none
201
- +border-radius(0)
202
- +box-shadow(none)
203
- .navbar .dropdown-menu:before,
204
- .navbar .dropdown-menu:after
205
- display: none
206
- .navbar .dropdown-menu .divider
207
- display: none
208
- // Forms in navbar
209
- .navbar-form,
210
- .navbar-search
211
- float: none
212
- padding: $baseLineHeight / 2 15px
213
- margin: $baseLineHeight / 2 0
214
- border-top: 1px solid $navbarBackground
215
- border-bottom: 1px solid $navbarBackground
216
- $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1)
217
- +box-shadow($shadow)
218
- // Pull right (secondary) nav content
219
- .navbar .nav.pull-right
220
- float: none
221
- margin-left: 0
222
- // Static navbar
223
- .navbar-static .navbar-inner
224
- padding-left: 10px
225
- padding-right: 10px
226
- // Navbar button
227
- .btn-navbar
228
- display: block
229
- // Hide everything in the navbar save .brand and toggle button */
230
- .nav-collapse
231
- overflow: hidden
232
- height: 0
31
+ // Phones to portrait tablets and narrow desktops
32
+ @import compass_twitter_bootstrap/responsive-767px-max
233
33
 
234
- // DEFAULT DESKTOP
235
- // ---------------
34
+ // Tablets to regular desktops
35
+ @import compass_twitter_bootstrap/responsive-768px-979px
236
36
 
237
- @media (min-width: 980px)
238
- .nav-collapse.collapse
239
- height: auto !important
37
+ // Large desktops
38
+ @import compass_twitter_bootstrap/responsive-1200px-min
240
39
 
241
- // LARGE DESKTOP & UP
40
+ // RESPONSIVE NAVBAR
242
41
  // ------------------
243
42
 
244
- @media (min-width: 1200px)
245
- // Fixed grid
246
- +gridSystem-generate(12, 70px, 30px)
247
- // Fluid grid
248
- +fluidGridSystem-generate(12, 5.983%, 2.564%)
249
- // Input grid
250
- +inputGridSystem-generate(12, 70px, 30px)
251
- // Thumbnails
252
- .thumbnails
253
- margin-left: -30px
254
- .thumbnails > li
255
- margin-left: 30px
43
+ // From 979px and below, show a button to toggle navbar contents
44
+ @import compass_twitter_bootstrap/responsive-navbar
@@ -9,7 +9,7 @@
9
9
  .accordion-group
10
10
  margin-bottom: 2px
11
11
  border: 1px solid #e5e5e5
12
- +border-radius(4px)
12
+ +bootstrap-border-radius(4px)
13
13
 
14
14
  .accordion-heading
15
15
  border-bottom: 0
@@ -18,6 +18,10 @@
18
18
  display: block
19
19
  padding: 8px 15px
20
20
 
21
+ // General toggle styles
22
+ .accordion-toggle
23
+ cursor: pointer
24
+
21
25
  // Inner needs the styles because you can't animate properly with any styles on the element
22
26
  .accordion-inner
23
27
  padding: 9px 15px
@@ -8,11 +8,11 @@
8
8
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
9
9
  background-color: $warningBackground
10
10
  border: 1px solid $warningBorder
11
- +border-radius(4px)
11
+ +bootstrap-border-radius(4px)
12
+ color: $warningText
12
13
 
13
- .alert,
14
14
  .alert-heading
15
- color: $warningText
15
+ color: inherit
16
16
 
17
17
  // Adjust close link position
18
18
  .alert .close
@@ -27,28 +27,17 @@
27
27
  .alert-success
28
28
  background-color: $successBackground
29
29
  border-color: $successBorder
30
-
31
- .alert-success,
32
- .alert-success .alert-heading
33
30
  color: $successText
34
31
 
35
32
  .alert-danger,
36
33
  .alert-error
37
34
  background-color: $errorBackground
38
35
  border-color: $errorBorder
39
-
40
- .alert-danger,
41
- .alert-error,
42
- .alert-danger .alert-heading,
43
- .alert-error .alert-heading
44
36
  color: $errorText
45
37
 
46
38
  .alert-info
47
39
  background-color: $infoBackground
48
40
  border-color: $infoBorder
49
-
50
- .alert-info,
51
- .alert-info .alert-heading
52
41
  color: $infoText
53
42
 
54
43
  // Block alerts
@@ -4,12 +4,14 @@
4
4
  .breadcrumb
5
5
  padding: 7px 14px
6
6
  margin: 0 0 $baseLineHeight
7
- +gradient-vertical($white, #f5f5f5)
7
+ list-style: none
8
+ +bootstrap-gradient-vertical($white, #f5f5f5)
8
9
  border: 1px solid #ddd
9
- +border-radius(3px)
10
- +box-shadow(inset 0 1px 0 $white)
10
+ +bootstrap-border-radius(3px)
11
+ +bootstrap-box-shadow(inset 0 1px 0 $white)
11
12
  li
12
13
  display: inline-block
14
+ +bootstrap-ie7-inline-block
13
15
  text-shadow: 0 1px 0 $white
14
16
  .divider
15
17
  padding: 0 5px
@@ -4,9 +4,9 @@
4
4
  // Make the div behave like a button
5
5
  .btn-group
6
6
  position: relative
7
- +clearfix
7
+ +bootstrap-clearfix
8
8
  // clears the floated buttons
9
- +ie7-restore-left-whitespace
9
+ +bootstrap-ie7-restore-left-whitespace
10
10
 
11
11
  // Space out series of button groups
12
12
  .btn-group + .btn-group
@@ -18,17 +18,17 @@
18
18
  margin-bottom: $baseLineHeight / 2
19
19
  .btn-group
20
20
  display: inline-block
21
- +ie7-inline-block
21
+ +bootstrap-ie7-inline-block
22
22
 
23
23
  // Float them, remove border radius, then re-add to first and last elements
24
- .btn-group .btn
24
+ .btn-group > .btn
25
25
  position: relative
26
26
  float: left
27
27
  margin-left: -1px
28
- +border-radius(0)
28
+ +bootstrap-border-radius(0)
29
29
 
30
30
  // 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
- .btn-group .btn:first-child
31
+ .btn-group > .btn:first-child
32
32
  margin-left: 0
33
33
  -webkit-border-top-left-radius: 4px
34
34
  -moz-border-radius-topleft: 4px
@@ -37,8 +37,10 @@
37
37
  -moz-border-radius-bottomleft: 4px
38
38
  border-bottom-left-radius: 4px
39
39
 
40
- .btn-group .btn:last-child,
41
- .btn-group .dropdown-toggle
40
+ // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
41
+
42
+ .btn-group > .btn:last-child,
43
+ .btn-group > .dropdown-toggle
42
44
  -webkit-border-top-right-radius: 4px
43
45
  -moz-border-radius-topright: 4px
44
46
  border-top-right-radius: 4px
@@ -47,7 +49,7 @@
47
49
  border-bottom-right-radius: 4px
48
50
 
49
51
  // Reset corners for large buttons
50
- .btn-group .btn.large:first-child
52
+ .btn-group > .btn.large:first-child
51
53
  margin-left: 0
52
54
  -webkit-border-top-left-radius: 6px
53
55
  -moz-border-radius-topleft: 6px
@@ -56,8 +58,8 @@
56
58
  -moz-border-radius-bottomleft: 6px
57
59
  border-bottom-left-radius: 6px
58
60
 
59
- .btn-group .btn.large:last-child,
60
- .btn-group .large.dropdown-toggle
61
+ .btn-group > .btn.large:last-child,
62
+ .btn-group > .large.dropdown-toggle
61
63
  -webkit-border-top-right-radius: 6px
62
64
  -moz-border-radius-topright: 6px
63
65
  border-top-right-radius: 6px
@@ -67,10 +69,10 @@
67
69
 
68
70
  // On hover/focus/active, bring the proper btn to front
69
71
 
70
- .btn-group .btn:hover,
71
- .btn-group .btn:focus,
72
- .btn-group .btn:active,
73
- .btn-group .btn.active
72
+ .btn-group > .btn:hover,
73
+ .btn-group > .btn:focus,
74
+ .btn-group > .btn:active,
75
+ .btn-group > .btn.active
74
76
  z-index: 2
75
77
 
76
78
  // On active and open, don't show outline
@@ -83,27 +85,46 @@
83
85
  // ----------------------
84
86
 
85
87
  // Give the line between buttons some depth
86
- .btn-group .dropdown-toggle
88
+ .btn-group > .dropdown-toggle
87
89
  padding-left: 8px
88
90
  padding-right: 8px
89
- $shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05)
90
- +box-shadow($shadow)
91
- *padding-top: 5px
92
- *padding-bottom: 5px
91
+ +bootstrap-box-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)")
92
+ *padding-top: 4px
93
+ *padding-bottom: 4px
94
+
95
+ .btn-group > .btn-mini.dropdown-toggle
96
+ padding-left: 5px
97
+ padding-right: 5px
98
+
99
+ .btn-group > .btn-small.dropdown-toggle
100
+ *padding-top: 4px
101
+ *padding-bottom: 4px
102
+
103
+ .btn-group > .btn-large.dropdown-toggle
104
+ padding-left: 12px
105
+ padding-right: 12px
93
106
 
94
107
  .btn-group.open
95
- // IE7's z-index only goes to the nearest positioned ancestor, which would
96
- // make the menu appear below buttons that appeared later on the page
97
- *z-index: $zindexDropdown
98
- // Reposition menu on open and round all corners
99
- .dropdown-menu
100
- display: block
101
- margin-top: 1px
102
- +border-radius(5px)
108
+ // The clickable button for toggling the menu
109
+ // Remove the gradient and set the same inset shadow as the :active state
103
110
  .dropdown-toggle
104
111
  background-image: none
105
- $shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)
106
- +box-shadow($shadow)
112
+ +bootstrap-box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)")
113
+ // Keep the hover's background when dropdown is open
114
+ .btn.dropdown-toggle
115
+ background-color: $btnBackgroundHighlight
116
+ .btn-primary.dropdown-toggle
117
+ background-color: $btnPrimaryBackgroundHighlight
118
+ .btn-warning.dropdown-toggle
119
+ background-color: $btnWarningBackgroundHighlight
120
+ .btn-danger.dropdown-toggle
121
+ background-color: $btnDangerBackgroundHighlight
122
+ .btn-success.dropdown-toggle
123
+ background-color: $btnSuccessBackgroundHighlight
124
+ .btn-info.dropdown-toggle
125
+ background-color: $btnInfoBackgroundHighlight
126
+ .btn-inverse.dropdown-toggle
127
+ background-color: $btnInverseBackgroundHighlight
107
128
 
108
129
  // Reposition the caret
109
130
  .btn .caret
@@ -112,19 +133,35 @@
112
133
 
113
134
  .btn:hover .caret,
114
135
  .open.btn-group .caret
115
- +opacity(1)
136
+ +bootstrap-opacity(100)
137
+
138
+ // Carets in other button sizes
139
+ .btn-mini .caret
140
+ margin-top: 5px
141
+
142
+ .btn-small .caret
143
+ margin-top: 6px
144
+
145
+ .btn-large .caret
146
+ margin-top: 6px
147
+ border-left-width: 5px
148
+ border-right-width: 5px
149
+ border-top-width: 5px
150
+
151
+ // Upside down carets for .dropup
152
+ .dropup .btn-large .caret
153
+ border-bottom: 5px solid $black
154
+ border-top: 0
116
155
 
117
156
  // Account for other colors
118
157
 
119
158
  .btn-primary,
159
+ .btn-warning,
120
160
  .btn-danger,
121
161
  .btn-info,
122
162
  .btn-success,
123
163
  .btn-inverse
124
164
  .caret
125
165
  border-top-color: $white
126
- +opacity(0.75)
127
-
128
- // Small button dropdowns
129
- .btn-small .caret
130
- margin-top: 4px
166
+ border-bottom-color: $white
167
+ +bootstrap-opacity(75)