bootstrap_sass_rails 0.0.1
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.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +44 -0
- data/Rakefile +1 -0
- data/app/assets/javascripts/bootstrap.js +12 -0
- data/app/assets/javascripts/bootstrap/affix.js +126 -0
- data/app/assets/javascripts/bootstrap/alert.js +98 -0
- data/app/assets/javascripts/bootstrap/button.js +109 -0
- data/app/assets/javascripts/bootstrap/carousel.js +217 -0
- data/app/assets/javascripts/bootstrap/collapse.js +179 -0
- data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
- data/app/assets/javascripts/bootstrap/modal.js +246 -0
- data/app/assets/javascripts/bootstrap/popover.js +117 -0
- data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
- data/app/assets/javascripts/bootstrap/tab.js +135 -0
- data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
- data/app/assets/javascripts/bootstrap/transition.js +56 -0
- data/app/assets/stylesheets/bootstrap.css.sass +59 -0
- data/app/assets/stylesheets/bootstrap/_alerts.css.sass +55 -0
- data/app/assets/stylesheets/bootstrap/_badges.css.sass +50 -0
- data/app/assets/stylesheets/bootstrap/_breadcrumbs.css.sass +19 -0
- data/app/assets/stylesheets/bootstrap/_button-groups.css.sass +210 -0
- data/app/assets/stylesheets/bootstrap/_buttons.css.sass +135 -0
- data/app/assets/stylesheets/bootstrap/_carousel.css.sass +165 -0
- data/app/assets/stylesheets/bootstrap/_close.css.sass +28 -0
- data/app/assets/stylesheets/bootstrap/_code.css.sass +49 -0
- data/app/assets/stylesheets/bootstrap/_component-animations.css.sass +25 -0
- data/app/assets/stylesheets/bootstrap/_dropdowns.css.sass +166 -0
- data/app/assets/stylesheets/bootstrap/_forms.css.sass +309 -0
- data/app/assets/stylesheets/bootstrap/_glyphicons.css.sass +827 -0
- data/app/assets/stylesheets/bootstrap/_grid.css.sass +483 -0
- data/app/assets/stylesheets/bootstrap/_input-groups.css.sass +117 -0
- data/app/assets/stylesheets/bootstrap/_jumbotron.css.sass +28 -0
- data/app/assets/stylesheets/bootstrap/_labels.css.sass +46 -0
- data/app/assets/stylesheets/bootstrap/_list-group.css.sass +71 -0
- data/app/assets/stylesheets/bootstrap/_media.css.sass +47 -0
- data/app/assets/stylesheets/bootstrap/_mixins.css.sass +754 -0
- data/app/assets/stylesheets/bootstrap/_modals.css.sass +127 -0
- data/app/assets/stylesheets/bootstrap/_navbar.css.sass +457 -0
- data/app/assets/stylesheets/bootstrap/_navs.css.sass +171 -0
- data/app/assets/stylesheets/bootstrap/_normalize.css.sass +375 -0
- data/app/assets/stylesheets/bootstrap/_pager.css.sass +39 -0
- data/app/assets/stylesheets/bootstrap/_pagination.css.sass +66 -0
- data/app/assets/stylesheets/bootstrap/_panels.css.sass +114 -0
- data/app/assets/stylesheets/bootstrap/_popovers.css.sass +124 -0
- data/app/assets/stylesheets/bootstrap/_print.css.sass +66 -0
- data/app/assets/stylesheets/bootstrap/_progress-bars.css.sass +90 -0
- data/app/assets/stylesheets/bootstrap/_responsive-utilities.css.sass +152 -0
- data/app/assets/stylesheets/bootstrap/_scaffolding.css.sass +108 -0
- data/app/assets/stylesheets/bootstrap/_tables.css.sass +176 -0
- data/app/assets/stylesheets/bootstrap/_theme.css.sass +228 -0
- data/app/assets/stylesheets/bootstrap/_thumbnails.css.sass +26 -0
- data/app/assets/stylesheets/bootstrap/_tooltip.css.sass +91 -0
- data/app/assets/stylesheets/bootstrap/_type.css.sass +251 -0
- data/app/assets/stylesheets/bootstrap/_utilities.css.sass +36 -0
- data/app/assets/stylesheets/bootstrap/_variables.css.sass +614 -0
- data/app/assets/stylesheets/bootstrap/_wells.css.sass +25 -0
- data/bin/convert-sass.sh +3 -0
- data/bootstrap_sass_rails.gemspec +25 -0
- data/lib/bootstrap_sass_rails.rb +13 -0
- data/lib/bootstrap_sass_rails/engine.rb +4 -0
- data/lib/bootstrap_sass_rails/version.rb +3 -0
- metadata +152 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: transition.js v3.0.0
|
3
|
+
* http://twbs.github.com/bootstrap/javascript.html#transitions
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
* ======================================================================== */
|
19
|
+
|
20
|
+
|
21
|
+
+function ($) { "use strict";
|
22
|
+
|
23
|
+
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
24
|
+
// ============================================================
|
25
|
+
|
26
|
+
function transitionEnd() {
|
27
|
+
var el = document.createElement('bootstrap')
|
28
|
+
|
29
|
+
var transEndEventNames = {
|
30
|
+
'WebkitTransition' : 'webkitTransitionEnd'
|
31
|
+
, 'MozTransition' : 'transitionend'
|
32
|
+
, 'OTransition' : 'oTransitionEnd otransitionend'
|
33
|
+
, 'transition' : 'transitionend'
|
34
|
+
}
|
35
|
+
|
36
|
+
for (var name in transEndEventNames) {
|
37
|
+
if (el.style[name] !== undefined) {
|
38
|
+
return { end: transEndEventNames[name] }
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
// http://blog.alexmaccaw.com/css-transitions
|
44
|
+
$.fn.emulateTransitionEnd = function (duration) {
|
45
|
+
var called = false, $el = this
|
46
|
+
$(this).one($.support.transition.end, function () { called = true })
|
47
|
+
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
48
|
+
setTimeout(callback, duration)
|
49
|
+
return this
|
50
|
+
}
|
51
|
+
|
52
|
+
$(function () {
|
53
|
+
$.support.transition = transitionEnd()
|
54
|
+
})
|
55
|
+
|
56
|
+
}(window.jQuery);
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v3.0.0
|
3
|
+
*
|
4
|
+
* Copyright 2013 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 by @mdo and @fat.
|
9
|
+
*/
|
10
|
+
|
11
|
+
// Core variables and mixins
|
12
|
+
@import bootstrap/variables
|
13
|
+
@import bootstrap/mixins
|
14
|
+
|
15
|
+
// Reset
|
16
|
+
@import bootstrap/normalize
|
17
|
+
@import bootstrap/print
|
18
|
+
|
19
|
+
// Core CSS
|
20
|
+
@import bootstrap/scaffolding
|
21
|
+
@import bootstrap/type
|
22
|
+
@import bootstrap/code
|
23
|
+
@import bootstrap/grid
|
24
|
+
@import bootstrap/tables
|
25
|
+
@import bootstrap/forms
|
26
|
+
@import bootstrap/buttons
|
27
|
+
|
28
|
+
// Components
|
29
|
+
@import bootstrap/component-animations
|
30
|
+
@import bootstrap/glyphicons
|
31
|
+
@import bootstrap/dropdowns
|
32
|
+
@import bootstrap/button-groups
|
33
|
+
@import bootstrap/input-groups
|
34
|
+
@import bootstrap/navs
|
35
|
+
@import bootstrap/navbar
|
36
|
+
@import bootstrap/breadcrumbs
|
37
|
+
@import bootstrap/pagination
|
38
|
+
@import bootstrap/pager
|
39
|
+
@import bootstrap/labels
|
40
|
+
@import bootstrap/badges
|
41
|
+
@import bootstrap/jumbotron
|
42
|
+
@import bootstrap/thumbnails
|
43
|
+
@import bootstrap/alerts
|
44
|
+
@import bootstrap/progress-bars
|
45
|
+
@import bootstrap/media
|
46
|
+
@import bootstrap/list-group
|
47
|
+
@import bootstrap/panels
|
48
|
+
@import bootstrap/wells
|
49
|
+
@import bootstrap/close
|
50
|
+
|
51
|
+
// Components w/ JavaScript
|
52
|
+
@import bootstrap/modals
|
53
|
+
@import bootstrap/tooltip
|
54
|
+
@import bootstrap/popovers
|
55
|
+
@import bootstrap/carousel
|
56
|
+
|
57
|
+
// Utility classes
|
58
|
+
@import bootstrap/utilities
|
59
|
+
@import bootstrap/responsive-utilities
|
@@ -0,0 +1,55 @@
|
|
1
|
+
//
|
2
|
+
// Alerts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// -------------------------
|
7
|
+
|
8
|
+
.alert
|
9
|
+
padding: $alert-padding
|
10
|
+
margin-bottom: $line-height-computed
|
11
|
+
border: 1px solid transparent
|
12
|
+
border-radius: $alert-border-radius
|
13
|
+
// Headings for larger alerts
|
14
|
+
h4
|
15
|
+
margin-top: 0
|
16
|
+
// Specified for the h4 to prevent conflicts of changing $headingsColor
|
17
|
+
color: inherit
|
18
|
+
// Provide class for links that match alerts
|
19
|
+
.alert-link
|
20
|
+
font-weight: $alert-link-font-weight
|
21
|
+
// Improve alignment and spacing of inner content
|
22
|
+
> p,
|
23
|
+
> ul
|
24
|
+
margin-bottom: 0
|
25
|
+
> p + p
|
26
|
+
margin-top: 5px
|
27
|
+
|
28
|
+
// Dismissable alerts
|
29
|
+
//
|
30
|
+
// Expand the right padding and account for the close button's positioning.
|
31
|
+
|
32
|
+
.alert-dismissable
|
33
|
+
padding-right: $alert-padding + 20
|
34
|
+
// Adjust close link position
|
35
|
+
.close
|
36
|
+
position: relative
|
37
|
+
top: -2px
|
38
|
+
right: -21px
|
39
|
+
color: inherit
|
40
|
+
|
41
|
+
// Alternate styles
|
42
|
+
//
|
43
|
+
// Generate contextual modifier classes for colorizing the alert.
|
44
|
+
|
45
|
+
.alert-success
|
46
|
+
+alert-variant($alert-success-bg, $alert-success-border, $alert-success-text)
|
47
|
+
|
48
|
+
.alert-info
|
49
|
+
+alert-variant($alert-info-bg, $alert-info-border, $alert-info-text)
|
50
|
+
|
51
|
+
.alert-warning
|
52
|
+
+alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text)
|
53
|
+
|
54
|
+
.alert-danger
|
55
|
+
+alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text)
|
@@ -0,0 +1,50 @@
|
|
1
|
+
//
|
2
|
+
// Badges
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base classes
|
7
|
+
.badge
|
8
|
+
display: inline-block
|
9
|
+
min-width: 10px
|
10
|
+
padding: 3px 7px
|
11
|
+
font-size: $font-size-small
|
12
|
+
font-weight: $badge-font-weight
|
13
|
+
color: $badge-color
|
14
|
+
line-height: $badge-line-height
|
15
|
+
vertical-align: baseline
|
16
|
+
white-space: nowrap
|
17
|
+
text-align: center
|
18
|
+
background-color: $badge-bg
|
19
|
+
border-radius: $badge-border-radius
|
20
|
+
|
21
|
+
// Empty badges collapse automatically (not available in IE8)
|
22
|
+
&:empty
|
23
|
+
display: none
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
// Hover state, but only for links
|
28
|
+
a.badge
|
29
|
+
&:hover,
|
30
|
+
&:focus
|
31
|
+
color: $badge-link-hover-color
|
32
|
+
text-decoration: none
|
33
|
+
cursor: pointer
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
// Quick fix for labels/badges in buttons
|
38
|
+
.btn .badge
|
39
|
+
position: relative
|
40
|
+
top: -1px
|
41
|
+
|
42
|
+
|
43
|
+
// Account for counters in navs
|
44
|
+
a.list-group-item.active > .badge,
|
45
|
+
.nav-pills > .active > a > .badge
|
46
|
+
color: $badge-active-color
|
47
|
+
background-color: $badge-active-bg
|
48
|
+
|
49
|
+
.nav-pills > li > a > .badge
|
50
|
+
margin-left: 3px
|
@@ -0,0 +1,19 @@
|
|
1
|
+
//
|
2
|
+
// Breadcrumbs
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.breadcrumb
|
6
|
+
padding: 8px 15px
|
7
|
+
margin-bottom: $line-height-computed
|
8
|
+
list-style: none
|
9
|
+
background-color: $breadcrumb-bg
|
10
|
+
border-radius: $border-radius-base
|
11
|
+
> li
|
12
|
+
display: inline-block
|
13
|
+
& + li:before
|
14
|
+
content: "/\00a0"
|
15
|
+
// Unicode space added since inline-block means non-collapsing white-space
|
16
|
+
padding: 0 5px
|
17
|
+
color: $breadcrumb-color
|
18
|
+
> .active
|
19
|
+
color: $breadcrumb-active-color
|
@@ -0,0 +1,210 @@
|
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Button carets
|
6
|
+
//
|
7
|
+
// Match the button text color to the arrow/caret for indicating dropdown-ness.
|
8
|
+
|
9
|
+
.caret
|
10
|
+
.btn-default &
|
11
|
+
border-top-color: $btn-default-color
|
12
|
+
.btn-primary &,
|
13
|
+
.btn-success &,
|
14
|
+
.btn-warning &,
|
15
|
+
.btn-danger &,
|
16
|
+
.btn-info &
|
17
|
+
border-top-color: #fff
|
18
|
+
|
19
|
+
.dropup
|
20
|
+
& .btn-default .caret
|
21
|
+
border-bottom-color: $btn-default-color
|
22
|
+
.btn-primary,
|
23
|
+
.btn-success,
|
24
|
+
.btn-warning,
|
25
|
+
.btn-danger,
|
26
|
+
.btn-info
|
27
|
+
.caret
|
28
|
+
border-bottom-color: #fff
|
29
|
+
|
30
|
+
// Make the div behave like a button
|
31
|
+
|
32
|
+
.btn-group,
|
33
|
+
.btn-group-vertical
|
34
|
+
position: relative
|
35
|
+
display: inline-block
|
36
|
+
vertical-align: middle
|
37
|
+
// match .btn alignment given font-size hack above
|
38
|
+
> .btn
|
39
|
+
position: relative
|
40
|
+
float: left
|
41
|
+
// Bring the "active" button to the front
|
42
|
+
&:hover,
|
43
|
+
&:focus,
|
44
|
+
&:active,
|
45
|
+
&.active
|
46
|
+
z-index: 2
|
47
|
+
&:focus
|
48
|
+
// Remove focus outline when dropdown JS adds it after closing the menu
|
49
|
+
outline: none
|
50
|
+
|
51
|
+
// Prevent double borders when buttons are next to each other
|
52
|
+
.btn-group
|
53
|
+
.btn + .btn,
|
54
|
+
.btn + .btn-group,
|
55
|
+
.btn-group + .btn,
|
56
|
+
.btn-group + .btn-group
|
57
|
+
margin-left: -1px
|
58
|
+
|
59
|
+
// Optional: Group multiple button groups together for a toolbar
|
60
|
+
.btn-toolbar
|
61
|
+
+clearfix
|
62
|
+
.btn-group
|
63
|
+
float: left
|
64
|
+
// Space out series of button groups
|
65
|
+
> .btn,
|
66
|
+
> .btn-group
|
67
|
+
+ .btn,
|
68
|
+
+ .btn-group
|
69
|
+
margin-left: 5px
|
70
|
+
|
71
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle)
|
72
|
+
border-radius: 0
|
73
|
+
|
74
|
+
// 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
|
75
|
+
.btn-group > .btn:first-child
|
76
|
+
margin-left: 0
|
77
|
+
&:not(:last-child):not(.dropdown-toggle)
|
78
|
+
+border-right-radius(0)
|
79
|
+
|
80
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
81
|
+
|
82
|
+
.btn-group > .btn:last-child:not(:first-child),
|
83
|
+
.btn-group > .dropdown-toggle:not(:first-child)
|
84
|
+
+border-left-radius(0)
|
85
|
+
|
86
|
+
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
87
|
+
.btn-group > .btn-group
|
88
|
+
float: left
|
89
|
+
|
90
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn
|
91
|
+
border-radius: 0
|
92
|
+
|
93
|
+
.btn-group > .btn-group:first-child
|
94
|
+
> .btn:last-child,
|
95
|
+
> .dropdown-toggle
|
96
|
+
+border-right-radius(0)
|
97
|
+
|
98
|
+
.btn-group > .btn-group:last-child > .btn:first-child
|
99
|
+
+border-left-radius(0)
|
100
|
+
|
101
|
+
// On active and open, don't show outline
|
102
|
+
|
103
|
+
.btn-group .dropdown-toggle:active,
|
104
|
+
.btn-group.open .dropdown-toggle
|
105
|
+
outline: 0
|
106
|
+
|
107
|
+
// Sizing
|
108
|
+
//
|
109
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
110
|
+
|
111
|
+
.btn-group-xs > .btn
|
112
|
+
@extend .btn-xs
|
113
|
+
|
114
|
+
.btn-group-sm > .btn
|
115
|
+
@extend .btn-sm
|
116
|
+
|
117
|
+
.btn-group-lg > .btn
|
118
|
+
@extend .btn-lg
|
119
|
+
|
120
|
+
// Split button dropdowns
|
121
|
+
// ----------------------
|
122
|
+
|
123
|
+
// Give the line between buttons some depth
|
124
|
+
.btn-group > .btn + .dropdown-toggle
|
125
|
+
padding-left: 8px
|
126
|
+
padding-right: 8px
|
127
|
+
|
128
|
+
.btn-group > .btn-lg + .dropdown-toggle
|
129
|
+
padding-left: 12px
|
130
|
+
padding-right: 12px
|
131
|
+
|
132
|
+
// The clickable button for toggling the menu
|
133
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
134
|
+
.btn-group.open .dropdown-toggle
|
135
|
+
+box-shadow(inset 0 3px 5px rgba(0, 0, 0, 0.125))
|
136
|
+
|
137
|
+
// Reposition the caret
|
138
|
+
.btn .caret
|
139
|
+
margin-left: 0
|
140
|
+
|
141
|
+
// Carets in other button sizes
|
142
|
+
.btn-lg .caret
|
143
|
+
border-width: $caret-width-large $caret-width-large 0
|
144
|
+
border-bottom-width: 0
|
145
|
+
|
146
|
+
// Upside down carets for .dropup
|
147
|
+
.dropup .btn-lg .caret
|
148
|
+
border-width: 0 $caret-width-large $caret-width-large
|
149
|
+
|
150
|
+
// Vertical button groups
|
151
|
+
// ----------------------
|
152
|
+
|
153
|
+
.btn-group-vertical
|
154
|
+
> .btn,
|
155
|
+
> .btn-group
|
156
|
+
display: block
|
157
|
+
float: none
|
158
|
+
width: 100%
|
159
|
+
max-width: 100%
|
160
|
+
// Clear floats so dropdown menus can be properly placed
|
161
|
+
> .btn-group
|
162
|
+
+clearfix
|
163
|
+
> .btn
|
164
|
+
float: none
|
165
|
+
> .btn + .btn,
|
166
|
+
> .btn + .btn-group,
|
167
|
+
> .btn-group + .btn,
|
168
|
+
> .btn-group + .btn-group
|
169
|
+
margin-top: -1px
|
170
|
+
margin-left: 0
|
171
|
+
|
172
|
+
.btn-group-vertical > .btn
|
173
|
+
&:not(:first-child):not(:last-child)
|
174
|
+
border-radius: 0
|
175
|
+
&:first-child:not(:last-child)
|
176
|
+
border-top-right-radius: $border-radius-base
|
177
|
+
+border-bottom-radius(0)
|
178
|
+
&:last-child:not(:first-child)
|
179
|
+
border-bottom-left-radius: $border-radius-base
|
180
|
+
+border-top-radius(0)
|
181
|
+
|
182
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn
|
183
|
+
border-radius: 0
|
184
|
+
|
185
|
+
.btn-group-vertical > .btn-group:first-child
|
186
|
+
> .btn:last-child,
|
187
|
+
> .dropdown-toggle
|
188
|
+
+border-bottom-radius(0)
|
189
|
+
|
190
|
+
.btn-group-vertical > .btn-group:last-child > .btn:first-child
|
191
|
+
+border-top-radius(0)
|
192
|
+
|
193
|
+
// Justified button groups
|
194
|
+
// ----------------------
|
195
|
+
|
196
|
+
.btn-group-justified
|
197
|
+
display: table
|
198
|
+
width: 100%
|
199
|
+
table-layout: fixed
|
200
|
+
border-collapse: separate
|
201
|
+
.btn
|
202
|
+
float: none
|
203
|
+
display: table-cell
|
204
|
+
width: 1%
|
205
|
+
|
206
|
+
// Checkbox and radio options
|
207
|
+
|
208
|
+
[data-toggle="buttons"] > .btn > input[type="radio"],
|
209
|
+
[data-toggle="buttons"] > .btn > input[type="checkbox"]
|
210
|
+
display: none
|