bootstrap_sass_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +17 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +44 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/javascripts/bootstrap.js +12 -0
  9. data/app/assets/javascripts/bootstrap/affix.js +126 -0
  10. data/app/assets/javascripts/bootstrap/alert.js +98 -0
  11. data/app/assets/javascripts/bootstrap/button.js +109 -0
  12. data/app/assets/javascripts/bootstrap/carousel.js +217 -0
  13. data/app/assets/javascripts/bootstrap/collapse.js +179 -0
  14. data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
  15. data/app/assets/javascripts/bootstrap/modal.js +246 -0
  16. data/app/assets/javascripts/bootstrap/popover.js +117 -0
  17. data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
  18. data/app/assets/javascripts/bootstrap/tab.js +135 -0
  19. data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
  20. data/app/assets/javascripts/bootstrap/transition.js +56 -0
  21. data/app/assets/stylesheets/bootstrap.css.sass +59 -0
  22. data/app/assets/stylesheets/bootstrap/_alerts.css.sass +55 -0
  23. data/app/assets/stylesheets/bootstrap/_badges.css.sass +50 -0
  24. data/app/assets/stylesheets/bootstrap/_breadcrumbs.css.sass +19 -0
  25. data/app/assets/stylesheets/bootstrap/_button-groups.css.sass +210 -0
  26. data/app/assets/stylesheets/bootstrap/_buttons.css.sass +135 -0
  27. data/app/assets/stylesheets/bootstrap/_carousel.css.sass +165 -0
  28. data/app/assets/stylesheets/bootstrap/_close.css.sass +28 -0
  29. data/app/assets/stylesheets/bootstrap/_code.css.sass +49 -0
  30. data/app/assets/stylesheets/bootstrap/_component-animations.css.sass +25 -0
  31. data/app/assets/stylesheets/bootstrap/_dropdowns.css.sass +166 -0
  32. data/app/assets/stylesheets/bootstrap/_forms.css.sass +309 -0
  33. data/app/assets/stylesheets/bootstrap/_glyphicons.css.sass +827 -0
  34. data/app/assets/stylesheets/bootstrap/_grid.css.sass +483 -0
  35. data/app/assets/stylesheets/bootstrap/_input-groups.css.sass +117 -0
  36. data/app/assets/stylesheets/bootstrap/_jumbotron.css.sass +28 -0
  37. data/app/assets/stylesheets/bootstrap/_labels.css.sass +46 -0
  38. data/app/assets/stylesheets/bootstrap/_list-group.css.sass +71 -0
  39. data/app/assets/stylesheets/bootstrap/_media.css.sass +47 -0
  40. data/app/assets/stylesheets/bootstrap/_mixins.css.sass +754 -0
  41. data/app/assets/stylesheets/bootstrap/_modals.css.sass +127 -0
  42. data/app/assets/stylesheets/bootstrap/_navbar.css.sass +457 -0
  43. data/app/assets/stylesheets/bootstrap/_navs.css.sass +171 -0
  44. data/app/assets/stylesheets/bootstrap/_normalize.css.sass +375 -0
  45. data/app/assets/stylesheets/bootstrap/_pager.css.sass +39 -0
  46. data/app/assets/stylesheets/bootstrap/_pagination.css.sass +66 -0
  47. data/app/assets/stylesheets/bootstrap/_panels.css.sass +114 -0
  48. data/app/assets/stylesheets/bootstrap/_popovers.css.sass +124 -0
  49. data/app/assets/stylesheets/bootstrap/_print.css.sass +66 -0
  50. data/app/assets/stylesheets/bootstrap/_progress-bars.css.sass +90 -0
  51. data/app/assets/stylesheets/bootstrap/_responsive-utilities.css.sass +152 -0
  52. data/app/assets/stylesheets/bootstrap/_scaffolding.css.sass +108 -0
  53. data/app/assets/stylesheets/bootstrap/_tables.css.sass +176 -0
  54. data/app/assets/stylesheets/bootstrap/_theme.css.sass +228 -0
  55. data/app/assets/stylesheets/bootstrap/_thumbnails.css.sass +26 -0
  56. data/app/assets/stylesheets/bootstrap/_tooltip.css.sass +91 -0
  57. data/app/assets/stylesheets/bootstrap/_type.css.sass +251 -0
  58. data/app/assets/stylesheets/bootstrap/_utilities.css.sass +36 -0
  59. data/app/assets/stylesheets/bootstrap/_variables.css.sass +614 -0
  60. data/app/assets/stylesheets/bootstrap/_wells.css.sass +25 -0
  61. data/bin/convert-sass.sh +3 -0
  62. data/bootstrap_sass_rails.gemspec +25 -0
  63. data/lib/bootstrap_sass_rails.rb +13 -0
  64. data/lib/bootstrap_sass_rails/engine.rb +4 -0
  65. data/lib/bootstrap_sass_rails/version.rb +3 -0
  66. metadata +152 -0
@@ -0,0 +1,152 @@
1
+ //
2
+ // Responsive: Utility classes
3
+ // --------------------------------------------------
4
+
5
+ // IE10 Metro responsive
6
+ // Required for Windows 8 Metro split-screen snapping with IE10
7
+ //
8
+ // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
9
+ @-ms-viewport
10
+ width: device-width
11
+
12
+
13
+ // IE10 on Windows Phone 8
14
+ // IE10 on WP8 doesn't report CSS pixels, but actual device pixels. In
15
+ // other words, say on a Lumia, you'll get 768px as the device width,
16
+ // meaning users will see the tablet styles and not phone styles.
17
+ //
18
+ // Alternatively you can override this with JS (see source below), but
19
+ // we won't be doing that here given our limited scope.
20
+ //
21
+ // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
22
+ @media screen and (max-width: 400px)
23
+ @-ms-viewport
24
+ width: 320px
25
+
26
+ // Hide from screenreaders and browsers
27
+ // Credit: HTML5 Boilerplate
28
+ .hidden
29
+ display: none !important
30
+ visibility: hidden !important
31
+
32
+ // Visibility utilities
33
+
34
+ +responsive-invisibility(".visible-xs")
35
+
36
+ @media (max-width: $screen-xs-max)
37
+ +responsive-visibility(".visible-xs")
38
+
39
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
40
+ +responsive-visibility(".visible-xs.visible-sm")
41
+
42
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
43
+ +responsive-visibility(".visible-xs.visible-md")
44
+
45
+ @media (min-width: $screen-lg)
46
+ +responsive-visibility(".visible-xs.visible-lg")
47
+
48
+ +responsive-invisibility(".visible-sm")
49
+
50
+ @media (max-width: $screen-xs-max)
51
+ +responsive-visibility(".visible-sm.visible-xs")
52
+
53
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
54
+ +responsive-visibility(".visible-sm")
55
+
56
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
57
+ +responsive-visibility(".visible-sm.visible-md")
58
+
59
+ @media (min-width: $screen-lg)
60
+ +responsive-visibility(".visible-sm.visible-lg")
61
+
62
+ +responsive-invisibility(".visible-md")
63
+
64
+ @media (max-width: $screen-xs-max)
65
+ +responsive-visibility(".visible-md.visible-xs")
66
+
67
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
68
+ +responsive-visibility(".visible-md.visible-sm")
69
+
70
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
71
+ +responsive-visibility(".visible-md")
72
+
73
+ @media (min-width: $screen-lg)
74
+ +responsive-visibility(".visible-md.visible-lg")
75
+
76
+ +responsive-invisibility(".visible-lg")
77
+
78
+ @media (max-width: $screen-xs-max)
79
+ +responsive-visibility(".visible-lg.visible-xs")
80
+
81
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
82
+ +responsive-visibility(".visible-lg.visible-sm")
83
+
84
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
85
+ +responsive-visibility(".visible-lg.visible-md")
86
+
87
+ @media (min-width: $screen-lg)
88
+ +responsive-visibility(".visible-lg")
89
+
90
+ +responsive-visibility(".hidden-xs")
91
+
92
+ @media (max-width: $screen-xs-max)
93
+ +responsive-invisibility(".hidden-xs")
94
+
95
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
96
+ +responsive-invisibility(".hidden-xs.hidden-sm")
97
+
98
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
99
+ +responsive-invisibility(".hidden-xs.hidden-md")
100
+
101
+ @media (min-width: $screen-lg)
102
+ +responsive-invisibility(".hidden-xs.hidden-lg")
103
+
104
+ +responsive-visibility(".hidden-sm")
105
+
106
+ @media (max-width: $screen-xs-max)
107
+ +responsive-invisibility(".hidden-sm.hidden-xs")
108
+
109
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
110
+ +responsive-invisibility(".hidden-sm")
111
+
112
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
113
+ +responsive-invisibility(".hidden-sm.hidden-md")
114
+
115
+ @media (min-width: $screen-lg)
116
+ +responsive-invisibility(".hidden-sm.hidden-lg")
117
+
118
+ +responsive-visibility(".hidden-md")
119
+
120
+ @media (max-width: $screen-xs-max)
121
+ +responsive-invisibility(".hidden-md.hidden-xs")
122
+
123
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
124
+ +responsive-invisibility(".hidden-md.hidden-sm")
125
+
126
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
127
+ +responsive-invisibility(".hidden-md")
128
+
129
+ @media (min-width: $screen-lg)
130
+ +responsive-invisibility(".hidden-md.hidden-lg")
131
+
132
+ +responsive-visibility(".hidden-lg")
133
+
134
+ @media (max-width: $screen-xs-max)
135
+ +responsive-invisibility(".hidden-lg.hidden-xs")
136
+
137
+ @media (min-width: $screen-sm) and (max-width: $screen-sm-max)
138
+ +responsive-invisibility(".hidden-lg.hidden-sm")
139
+
140
+ @media (min-width: $screen-md) and (max-width: $screen-md-max)
141
+ +responsive-invisibility(".hidden-lg.hidden-md")
142
+
143
+ @media (min-width: $screen-lg)
144
+ +responsive-invisibility(".hidden-lg")
145
+
146
+ // Print utilities
147
+
148
+ +responsive-invisibility(".visible-print")
149
+
150
+ @media print
151
+ +responsive-visibility(".visible-print")
152
+ +responsive-invisibility(".hidden-print")
@@ -0,0 +1,108 @@
1
+ //
2
+ // Scaffolding
3
+ // --------------------------------------------------
4
+
5
+ // Reset the box-sizing
6
+
7
+ *,
8
+ *:before,
9
+ *:after
10
+ +box-sizing(border-box)
11
+
12
+ // Body reset
13
+
14
+ html
15
+ font-size: 62.5%
16
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
17
+
18
+ body
19
+ font-family: $font-family-base
20
+ font-size: $font-size-base
21
+ line-height: $line-height-base
22
+ color: $text-color
23
+ background-color: $body-bg
24
+
25
+ // Reset fonts for relevant elements
26
+
27
+ input,
28
+ button,
29
+ select,
30
+ textarea
31
+ font-family: inherit
32
+ font-size: inherit
33
+ line-height: inherit
34
+
35
+ // Reset unusual Firefox-on-Android default style.
36
+ //
37
+ // See https://github.com/necolas/normalize.css/issues/214
38
+
39
+ button,
40
+ input,
41
+ select[multiple],
42
+ textarea
43
+ background-image: none
44
+
45
+ // Links
46
+
47
+ a
48
+ color: $link-color
49
+ text-decoration: none
50
+ &:hover,
51
+ &:focus
52
+ color: $link-hover-color
53
+ text-decoration: underline
54
+ &:focus
55
+ +tab-focus
56
+
57
+ // Images
58
+
59
+ img
60
+ vertical-align: middle
61
+
62
+ // Responsive images (ensure images don't scale beyond their parents)
63
+ .img-responsive
64
+ +img-responsive
65
+
66
+ // Rounded corners
67
+ .img-rounded
68
+ border-radius: $border-radius-large
69
+
70
+ // Image thumbnails
71
+ //
72
+ // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
73
+ .img-thumbnail
74
+ padding: $thumbnail-padding
75
+ line-height: $line-height-base
76
+ background-color: $thumbnail-bg
77
+ border: 1px solid $thumbnail-border
78
+ border-radius: $thumbnail-border-radius
79
+ +transition(all 0.2s ease-in-out)
80
+ // Keep them at most 100% wide
81
+ +img-responsive(inline-block)
82
+
83
+ // Perfect circle
84
+ .img-circle
85
+ border-radius: 50%
86
+ // set radius in percents
87
+
88
+ // Horizontal rules
89
+
90
+ hr
91
+ margin-top: $line-height-computed
92
+ margin-bottom: $line-height-computed
93
+ border: 0
94
+ border-top: 1px solid $hr-border
95
+
96
+ // Only display content to screen readers
97
+ //
98
+ // See: http://a11yproject.com/posts/how-to-hide-content/
99
+
100
+ .sr-only
101
+ position: absolute
102
+ width: 1px
103
+ height: 1px
104
+ margin: -1px
105
+ padding: 0
106
+ overflow: hidden
107
+ clip: rect(0 0 0 0)
108
+ border: 0
@@ -0,0 +1,176 @@
1
+ //
2
+ // Tables
3
+ // --------------------------------------------------
4
+
5
+ table
6
+ max-width: 100%
7
+ background-color: $table-bg
8
+
9
+ th
10
+ text-align: left
11
+
12
+ // Baseline styles
13
+
14
+ .table
15
+ width: 100%
16
+ margin-bottom: $line-height-computed
17
+ // Cells
18
+ thead,
19
+ tbody,
20
+ tfoot
21
+ > tr
22
+ > th,
23
+ > td
24
+ padding: $table-cell-padding
25
+ line-height: $line-height-base
26
+ vertical-align: top
27
+ border-top: 1px solid $table-border-color
28
+ // Bottom align for column headings
29
+ thead > tr > th
30
+ vertical-align: bottom
31
+ border-bottom: 2px solid $table-border-color
32
+ // Remove top border from thead by default
33
+ caption + thead,
34
+ colgroup + thead,
35
+ thead:first-child
36
+ tr:first-child
37
+ th, td
38
+ border-top: 0
39
+ // Account for multiple tbody instances
40
+ tbody + tbody
41
+ border-top: 2px solid $table-border-color
42
+ // Nesting
43
+ .table
44
+ background-color: $body-bg
45
+
46
+ // Condensed table w/ half padding
47
+
48
+ .table-condensed
49
+ thead,
50
+ tbody,
51
+ tfoot
52
+ > tr
53
+ > th,
54
+ > td
55
+ padding: $table-condensed-cell-padding
56
+
57
+ // Bordered version
58
+ //
59
+ // Add borders all around the table and between all the columns.
60
+
61
+ .table-bordered
62
+ border: 1px solid $table-border-color
63
+ > thead,
64
+ > tbody,
65
+ > tfoot
66
+ > tr
67
+ > th,
68
+ > td
69
+ border: 1px solid $table-border-color
70
+ > thead
71
+ > tr
72
+ > th,
73
+ > td
74
+ border-bottom-width: 2px
75
+
76
+ // Zebra-striping
77
+ //
78
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
79
+
80
+ .table-striped
81
+ > tbody
82
+ > tr:nth-child(odd)
83
+ > td,
84
+ > th
85
+ background-color: $table-bg-accent
86
+
87
+ // Hover effect
88
+ //
89
+ // Placed here since it has to come after the potential zebra striping
90
+
91
+ .table-hover
92
+ > tbody
93
+ > tr:hover
94
+ > td,
95
+ > th
96
+ background-color: $table-bg-hover
97
+
98
+ // Table cell sizing
99
+ //
100
+ // Reset default table behavior
101
+
102
+ table col[class*="col-"]
103
+ float: none
104
+ display: table-column
105
+
106
+ table
107
+ td,
108
+ th
109
+ &[class*="col-"]
110
+ float: none
111
+ display: table-cell
112
+
113
+ // Table backgrounds
114
+ //
115
+ // Exact selectors below required to override `.table-striped` and prevent
116
+ // inheritance to nested tables.
117
+
118
+ .table > thead > tr,
119
+ .table > tbody > tr,
120
+ .table > tfoot > tr
121
+ > td.active,
122
+ > th.active,
123
+ &.active > td,
124
+ &.active > th
125
+ background-color: $table-bg-active
126
+
127
+ // Generate the contextual variants
128
+ +table-row-variant("success", $state-success-bg, $state-success-border)
129
+
130
+ +table-row-variant("danger", $state-danger-bg, $state-danger-border)
131
+
132
+ +table-row-variant("warning", $state-warning-bg, $state-warning-border)
133
+
134
+ // Responsive tables
135
+ //
136
+ // Wrap your tables in `.table-scrollable` and we'll make them mobile friendly
137
+ // by enabling horizontal scrolling. Only applies <768px. Everything above that
138
+ // will display normally.
139
+
140
+ @media (max-width: $screen-sm)
141
+ .table-responsive
142
+ width: 100%
143
+ margin-bottom: 15px
144
+ overflow-y: hidden
145
+ overflow-x: scroll
146
+ border: 1px solid $table-border-color
147
+ // Tighten up spacing and give a background color
148
+ > .table
149
+ margin-bottom: 0
150
+ background-color: #fff
151
+ // Ensure the content doesn't wrap
152
+ > thead,
153
+ > tbody,
154
+ > tfoot
155
+ > tr
156
+ > th,
157
+ > td
158
+ white-space: nowrap
159
+ // Special overrides for the bordered tables
160
+ > .table-bordered
161
+ border: 0
162
+ // Nuke the appropriate borders so that the parent can handle them
163
+ > thead,
164
+ > tbody,
165
+ > tfoot
166
+ > tr
167
+ > th:first-child,
168
+ > td:first-child
169
+ border-left: 0
170
+ > th:last-child,
171
+ > td:last-child
172
+ border-right: 0
173
+ > tr:last-child
174
+ > th,
175
+ > td
176
+ border-bottom: 0
@@ -0,0 +1,228 @@
1
+ //
2
+ // Load core variables and mixins
3
+ // --------------------------------------------------
4
+
5
+ @import twitter/bootstrap/variables
6
+ @import twitter/bootstrap/mixins
7
+
8
+ //
9
+ // Buttons
10
+ // --------------------------------------------------
11
+
12
+ // Common styles
13
+
14
+ .btn-default,
15
+ .btn-primary,
16
+ .btn-success,
17
+ .btn-info,
18
+ .btn-warning,
19
+ .btn-danger
20
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2)
21
+ $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075)
22
+ +box-shadow($shadow)
23
+ // Reset the shadow
24
+ &:active,
25
+ &.active
26
+ +box-shadow(inset 0 3px 5px rgba(0, 0, 0, 0.125))
27
+
28
+ // Mixin for generating new styles
29
+ =btn-styles($btn-color: #555555)
30
+ +gradient-vertical($start_color: $btn-color, $end_color: darken($btn-color, 10%))
31
+ border-color: darken($btn-color, 12%)
32
+ &:active,
33
+ &.active
34
+ background-color: darken($btn-color, 10%)
35
+ border-color: darken($btn-color, 12%)
36
+
37
+ // Common styles
38
+ .btn
39
+ // Remove the gradient for the pressed/active state
40
+ &:active,
41
+ &.active
42
+ background-image: none
43
+
44
+ // Apply the mixin to the buttons
45
+ .btn-default
46
+ +btn-styles($btn-default-bg)
47
+ text-shadow: 0 1px 0 #fff
48
+ border-color: #ccc
49
+
50
+ .btn-primary
51
+ +btn-styles($btn-primary-bg)
52
+
53
+ .btn-success
54
+ +btn-styles($btn-success-bg)
55
+
56
+ .btn-warning
57
+ +btn-styles($btn-warning-bg)
58
+
59
+ .btn-danger
60
+ +btn-styles($btn-danger-bg)
61
+
62
+ .btn-info
63
+ +btn-styles($btn-info-bg)
64
+
65
+ //
66
+ // Images
67
+ // --------------------------------------------------
68
+
69
+ .thumbnail,
70
+ .img-thumbnail
71
+ +box-shadow(0 1px 2px rgba(0, 0, 0, 0.075))
72
+
73
+ //
74
+ // Dropdowns
75
+ // --------------------------------------------------
76
+
77
+ .dropdown-menu > li > a:hover,
78
+ .dropdown-menu > li > a:focus,
79
+ .dropdown-menu > .active > a,
80
+ .dropdown-menu > .active > a:hover,
81
+ .dropdown-menu > .active > a:focus
82
+ +gradient-vertical($start_color: $dropdown-link-hover-bg, $end_color: darken($dropdown-link-hover-bg, 5%))
83
+ background-color: darken($dropdown-link-hover-bg, 5%)
84
+
85
+ //
86
+ // Navbar
87
+ // --------------------------------------------------
88
+
89
+ // Basic navbar
90
+ .navbar
91
+ +gradient-vertical($start_color: lighten($navbar-default-bg, 10%), $end_color: $navbar-default-bg)
92
+ border-radius: $navbar-border-radius
93
+ $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075)
94
+ +box-shadow($shadow)
95
+ .navbar-nav > .active > a
96
+ background-color: $navbar-default-bg
97
+
98
+ .navbar-brand,
99
+ .navbar-nav > li > a
100
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25)
101
+
102
+ // Inverted navbar
103
+ .navbar-inverse
104
+ +gradient-vertical($start_color: lighten($navbar-inverse-bg, 10%), $end_color: $navbar-inverse-bg)
105
+ .navbar-nav > .active > a
106
+ background-color: $navbar-inverse-bg
107
+ .navbar-brand,
108
+ .navbar-nav > li > a
109
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
110
+
111
+ // Undo rounded corners in static and fixed navbars
112
+
113
+ .navbar-static-top,
114
+ .navbar-fixed-top,
115
+ .navbar-fixed-bottom
116
+ border-radius: 0
117
+
118
+ //
119
+ // Alerts
120
+ // --------------------------------------------------
121
+
122
+ // Common styles
123
+ .alert
124
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2)
125
+ $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05)
126
+ +box-shadow($shadow)
127
+
128
+ // Mixin for generating new styles
129
+ =alert-styles($color)
130
+ +gradient-vertical($start_color: $color, $end_color: darken($color, 7.5%))
131
+ border-color: darken($color, 15%)
132
+
133
+ // Apply the mixin to the alerts
134
+ .alert-success
135
+ +alert-styles($alert-success-bg)
136
+
137
+ .alert-info
138
+ +alert-styles($alert-info-bg)
139
+
140
+ .alert-warning
141
+ +alert-styles($alert-warning-bg)
142
+
143
+ .alert-danger
144
+ +alert-styles($alert-danger-bg)
145
+
146
+ //
147
+ // Progress bars
148
+ // --------------------------------------------------
149
+
150
+ // Give the progress background some depth
151
+ .progress
152
+ +gradient-vertical($start_color: darken($progress-bg, 4%), $end_color: $progress-bg)
153
+
154
+ // Mixin for generating new styles
155
+ =progress-bar-styles($color)
156
+ +gradient-vertical($start_color: $color, $end_color: darken($color, 10%))
157
+
158
+ // Apply the mixin to the progress bars
159
+ .progress-bar
160
+ +progress-bar-styles($progress-bar-bg)
161
+
162
+ .progress-bar-success
163
+ +progress-bar-styles($progress-bar-success-bg)
164
+
165
+ .progress-bar-info
166
+ +progress-bar-styles($progress-bar-info-bg)
167
+
168
+ .progress-bar-warning
169
+ +progress-bar-styles($progress-bar-warning-bg)
170
+
171
+ .progress-bar-danger
172
+ +progress-bar-styles($progress-bar-danger-bg)
173
+
174
+ //
175
+ // List groups
176
+ // --------------------------------------------------
177
+
178
+ .list-group
179
+ border-radius: $border-radius-base
180
+ +box-shadow(0 1px 2px rgba(0, 0, 0, 0.075))
181
+
182
+ .list-group-item.active,
183
+ .list-group-item.active:hover,
184
+ .list-group-item.active:focus
185
+ text-shadow: 0 -1px 0 darken($list-group-active-bg, 10%)
186
+ +gradient-vertical($start_color: $list-group-active-bg, $end_color: darken($list-group-active-bg, 7.5%))
187
+ border-color: darken($list-group-active-border, 7.5%)
188
+
189
+ //
190
+ // Panels
191
+ // --------------------------------------------------
192
+
193
+ // Common styles
194
+ .panel
195
+ +box-shadow(0 1px 2px rgba(0, 0, 0, 0.05))
196
+
197
+ // Mixin for generating new styles
198
+ =panel-heading-styles($color)
199
+ +gradient-vertical($start_color: $color, $end_color: darken($color, 5%))
200
+
201
+ // Apply the mixin to the panel headings only
202
+ .panel-default > .panel-heading
203
+ +panel-heading-styles($panel-default-heading-bg)
204
+
205
+ .panel-primary > .panel-heading
206
+ +panel-heading-styles($panel-primary-heading-bg)
207
+
208
+ .panel-success > .panel-heading
209
+ +panel-heading-styles($panel-success-heading-bg)
210
+
211
+ .panel-info > .panel-heading
212
+ +panel-heading-styles($panel-info-heading-bg)
213
+
214
+ .panel-warning > .panel-heading
215
+ +panel-heading-styles($panel-warning-heading-bg)
216
+
217
+ .panel-danger > .panel-heading
218
+ +panel-heading-styles($panel-danger-heading-bg)
219
+
220
+ //
221
+ // Wells
222
+ // --------------------------------------------------
223
+
224
+ .well
225
+ +gradient-vertical($start_color: darken($well-bg, 5%), $end_color: $well-bg)
226
+ border-color: darken($well-bg, 10%)
227
+ $shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1)
228
+ +box-shadow($shadow)