compass_twitter_bootstrap 2.0.1.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -0
- data/build/convert.rb +2 -12
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap.scss +2 -2
- data/stylesheets/_compass_twitter_bootstrap_awesome.scss +66 -0
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +14 -293
- data/stylesheets/compass_twitter_bootstrap/_accordion.scss +6 -1
- data/stylesheets/compass_twitter_bootstrap/_alerts.scss +3 -15
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +5 -3
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +82 -39
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +38 -30
- data/stylesheets/compass_twitter_bootstrap/_carousel.scss +5 -5
- data/stylesheets/compass_twitter_bootstrap/_close.scss +13 -2
- data/stylesheets/compass_twitter_bootstrap/_code.scss +9 -9
- data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +10 -8
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +62 -49
- data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +267 -0
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +141 -77
- data/stylesheets/compass_twitter_bootstrap/_grid.scss +2 -5
- data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +4 -2
- data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +63 -0
- data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -3
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +275 -255
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +19 -12
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +146 -81
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +77 -52
- data/stylesheets/compass_twitter_bootstrap/_pager.scss +8 -2
- data/stylesheets/compass_twitter_bootstrap/_pagination.scss +6 -5
- data/stylesheets/compass_twitter_bootstrap/_popovers.scss +9 -9
- data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +41 -19
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +4 -4
- data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +26 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +149 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +17 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +146 -0
- data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +41 -0
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +4 -4
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +42 -9
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +60 -34
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +18 -6
- data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +7 -7
- data/stylesheets/compass_twitter_bootstrap/_type.scss +28 -11
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +107 -9
- data/stylesheets/compass_twitter_bootstrap/_wells.scss +13 -2
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -2
- data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +70 -0
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +13 -224
- data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +5 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +3 -14
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +5 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +73 -36
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +39 -28
- data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +5 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +12 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +5 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +57 -47
- data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +515 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +140 -76
- data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +2 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +4 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +85 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +277 -260
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +19 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +138 -78
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +77 -51
- data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +8 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +6 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +9 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +44 -19
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +4 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +17 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +115 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +11 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +115 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +56 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +4 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +70 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +72 -34
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +15 -5
- data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +7 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +27 -11
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +105 -8
- data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +11 -2
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
- data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
- data/vendor/assets/javascripts/bootstrap-all.js +12 -0
- data/vendor/assets/javascripts/bootstrap-button.js +32 -34
- data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
- data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
- data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
- data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
- data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
- data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
- data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
- data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
- data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
- metadata +29 -9
- data/stylesheets/compass_twitter_bootstrap/_labels.scss +0 -32
- data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +0 -42
@@ -0,0 +1,85 @@
|
|
1
|
+
// LABELS & BADGES
|
2
|
+
// ---------------
|
3
|
+
|
4
|
+
// Base classes
|
5
|
+
|
6
|
+
.label,
|
7
|
+
.badge
|
8
|
+
font-size: $baseFontSize * 0.846
|
9
|
+
font-weight: bold
|
10
|
+
line-height: 14px
|
11
|
+
// ensure proper line-height if floated
|
12
|
+
color: $white
|
13
|
+
vertical-align: baseline
|
14
|
+
white-space: nowrap
|
15
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
16
|
+
background-color: $grayLight
|
17
|
+
|
18
|
+
// Set unique padding and border-radii
|
19
|
+
.label
|
20
|
+
padding: 1px 4px 2px
|
21
|
+
+bootstrap-border-radius(3px)
|
22
|
+
|
23
|
+
.badge
|
24
|
+
padding: 1px 9px 2px
|
25
|
+
+bootstrap-border-radius(9px)
|
26
|
+
|
27
|
+
// Hover state, but only for links
|
28
|
+
a
|
29
|
+
&.label:hover,
|
30
|
+
&.badge:hover
|
31
|
+
color: $white
|
32
|
+
text-decoration: none
|
33
|
+
cursor: pointer
|
34
|
+
|
35
|
+
// Colors
|
36
|
+
// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
|
37
|
+
// Important (red)
|
38
|
+
|
39
|
+
.label-important,
|
40
|
+
.badge-important
|
41
|
+
background-color: $errorText
|
42
|
+
|
43
|
+
.label-important[href],
|
44
|
+
.badge-important[href]
|
45
|
+
background-color: darken($errorText, 10%)
|
46
|
+
|
47
|
+
// Warnings (orange)
|
48
|
+
|
49
|
+
.label-warning,
|
50
|
+
.badge-warning
|
51
|
+
background-color: $orange
|
52
|
+
|
53
|
+
.label-warning[href],
|
54
|
+
.badge-warning[href]
|
55
|
+
background-color: darken($orange, 10%)
|
56
|
+
|
57
|
+
// Success (green)
|
58
|
+
|
59
|
+
.label-success,
|
60
|
+
.badge-success
|
61
|
+
background-color: $successText
|
62
|
+
|
63
|
+
.label-success[href],
|
64
|
+
.badge-success[href]
|
65
|
+
background-color: darken($successText, 10%)
|
66
|
+
|
67
|
+
// Info (turquoise)
|
68
|
+
|
69
|
+
.label-info,
|
70
|
+
.badge-info
|
71
|
+
background-color: $infoText
|
72
|
+
|
73
|
+
.label-info[href],
|
74
|
+
.badge-info[href]
|
75
|
+
background-color: darken($infoText, 10%)
|
76
|
+
|
77
|
+
// Inverse (black)
|
78
|
+
|
79
|
+
.label-inverse,
|
80
|
+
.badge-inverse
|
81
|
+
background-color: $grayDark
|
82
|
+
|
83
|
+
.label-inverse[href],
|
84
|
+
.badge-inverse[href]
|
85
|
+
background-color: darken($grayDark, 10%)
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
// Container (centered, fixed-width layouts)
|
7
7
|
.container
|
8
|
-
+container-fixed
|
8
|
+
+bootstrap-container-fixed
|
9
9
|
|
10
10
|
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
11
11
|
.container-fluid
|
12
|
-
padding-left: $gridGutterWidth
|
13
12
|
padding-right: $gridGutterWidth
|
14
|
-
|
13
|
+
padding-left: $gridGutterWidth
|
14
|
+
+bootstrap-clearfix
|
@@ -8,7 +8,7 @@
|
|
8
8
|
// Clearfix
|
9
9
|
// --------
|
10
10
|
// For clearing floats like a boss h5bp.com/q
|
11
|
-
=clearfix
|
11
|
+
=bootstrap-clearfix
|
12
12
|
*zoom: 1
|
13
13
|
&:before,
|
14
14
|
&:after
|
@@ -19,23 +19,23 @@
|
|
19
19
|
|
20
20
|
// Webkit-style focus
|
21
21
|
// ------------------
|
22
|
-
=tab-focus
|
22
|
+
=bootstrap-tab-focus
|
23
23
|
// Default
|
24
|
-
outline: thin dotted
|
24
|
+
outline: thin dotted #333
|
25
25
|
// Webkit
|
26
26
|
outline: 5px auto -webkit-focus-ring-color
|
27
27
|
outline-offset: -2px
|
28
28
|
|
29
29
|
// Center-align a block level element
|
30
30
|
// ----------------------------------
|
31
|
-
=center-block
|
31
|
+
=bootstrap-center-block
|
32
32
|
display: block
|
33
33
|
margin-left: auto
|
34
34
|
margin-right: auto
|
35
35
|
|
36
36
|
// IE7 inline-block
|
37
37
|
// ----------------
|
38
|
-
=ie7-inline-block
|
38
|
+
=bootstrap-ie7-inline-block
|
39
39
|
*display: inline
|
40
40
|
/* IE7 inline-block hack
|
41
41
|
*zoom: 1
|
@@ -46,237 +46,131 @@
|
|
46
46
|
// right version is for icons, which come before. Applying both is ok, but it will
|
47
47
|
// mean that space between those elements will be .6em (~2 space characters) in IE7,
|
48
48
|
// instead of the 1 space in other browsers.
|
49
|
-
=ie7-restore-left-whitespace
|
49
|
+
=bootstrap-ie7-restore-left-whitespace
|
50
50
|
*margin-left: .3em
|
51
51
|
&:first-child
|
52
52
|
*margin-left: 0
|
53
53
|
|
54
|
-
=ie7-restore-right-whitespace
|
54
|
+
=bootstrap-ie7-restore-right-whitespace
|
55
55
|
*margin-right: .3em
|
56
56
|
&:last-child
|
57
57
|
*margin-left: 0
|
58
58
|
|
59
59
|
// Sizing shortcuts
|
60
60
|
// -------------------------
|
61
|
-
=size($height
|
61
|
+
=bootstrap-size($height, $width)
|
62
62
|
width: $width
|
63
63
|
height: $height
|
64
64
|
|
65
|
-
=square($size
|
66
|
-
+size($size, $size)
|
65
|
+
=bootstrap-square($size)
|
66
|
+
+bootstrap-size($size, $size)
|
67
67
|
|
68
68
|
// Placeholder text
|
69
69
|
// -------------------------
|
70
|
-
=placeholder($color: $placeholderText)
|
70
|
+
=bootstrap-placeholder($color: $placeholderText)
|
71
71
|
\:-moz-placeholder
|
72
72
|
color: $color
|
73
73
|
\::-webkit-input-placeholder
|
74
74
|
color: $color
|
75
75
|
|
76
|
+
// Text overflow
|
77
|
+
// -------------------------
|
78
|
+
// Requires inline-block or block for proper styling
|
79
|
+
=bootstrap-text-overflow
|
80
|
+
overflow: hidden
|
81
|
+
text-overflow: ellipsis
|
82
|
+
white-space: nowrap
|
83
|
+
|
84
|
+
// CSS image replacement
|
85
|
+
// -------------------------
|
86
|
+
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
87
|
+
=bootstrap-hide-text
|
88
|
+
font: 0 / 0 a
|
89
|
+
color: transparent
|
90
|
+
text-shadow: none
|
91
|
+
background-color: transparent
|
92
|
+
border: 0
|
93
|
+
|
76
94
|
// FONTS
|
77
95
|
// --------------------------------------------------
|
78
|
-
=font-family-serif
|
79
|
-
font-family:
|
80
|
-
|
81
|
-
=font-family-sans-serif
|
82
|
-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
|
96
|
+
=bootstrap-font-family-serif
|
97
|
+
font-family: $serifFontFamily
|
83
98
|
|
84
|
-
=font-family-
|
85
|
-
font-family:
|
99
|
+
=bootstrap-font-family-sans-serif
|
100
|
+
font-family: $sansFontFamily
|
86
101
|
|
87
|
-
=font-
|
88
|
-
font-family:
|
89
|
-
+shorthand($size, $weight, $lineHeight)
|
102
|
+
=bootstrap-font-family-monospace
|
103
|
+
font-family: $monoFontFamily
|
90
104
|
|
91
|
-
=font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
105
|
+
=bootstrap-font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
92
106
|
font-size: $size
|
93
107
|
font-weight: $weight
|
94
108
|
line-height: $lineHeight
|
95
109
|
|
96
|
-
=font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
97
|
-
+font-family-serif
|
98
|
-
+font-shorthand($size, $weight, $lineHeight)
|
110
|
+
=bootstrap-font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
111
|
+
+bootstrap-font-family-serif
|
112
|
+
+bootstrap-font-shorthand($size, $weight, $lineHeight)
|
99
113
|
|
100
|
-
=font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
101
|
-
+font-family-sans-serif
|
102
|
-
+font-shorthand($size, $weight, $lineHeight)
|
114
|
+
=bootstrap-font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
115
|
+
+bootstrap-font-family-sans-serif
|
116
|
+
+bootstrap-font-shorthand($size, $weight, $lineHeight)
|
103
117
|
|
104
|
-
=font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
105
|
-
+font-family-monospace
|
106
|
-
+font-shorthand($size, $weight, $lineHeight)
|
118
|
+
=bootstrap-font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
119
|
+
+bootstrap-font-family-monospace
|
120
|
+
+bootstrap-font-shorthand($size, $weight, $lineHeight)
|
107
121
|
|
108
|
-
//
|
122
|
+
// FORMS
|
109
123
|
// --------------------------------------------------
|
110
124
|
|
111
|
-
//
|
112
|
-
|
113
|
-
|
114
|
-
width:
|
115
|
-
|
116
|
-
|
117
|
-
+
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
margin-left: $gridGutterWidth
|
129
|
-
|
130
|
-
// Take these values and mixins, and make 'em do their thang
|
131
|
-
=gridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth)
|
132
|
-
// Row surrounds the columns
|
133
|
-
.row
|
134
|
-
margin-left: $gridGutterWidth * -1
|
135
|
-
+clearfix
|
136
|
-
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
|
137
|
-
[class*="span"]
|
138
|
-
+gridSystem-gridColumn($gridGutterWidth)
|
139
|
-
// Default columns
|
140
|
-
.span1
|
141
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1)
|
142
|
-
.span2
|
143
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2)
|
144
|
-
.span3
|
145
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3)
|
146
|
-
.span4
|
147
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4)
|
148
|
-
.span5
|
149
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5)
|
150
|
-
.span6
|
151
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6)
|
152
|
-
.span7
|
153
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7)
|
154
|
-
.span8
|
155
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8)
|
156
|
-
.span9
|
157
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9)
|
158
|
-
.span10
|
159
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10)
|
160
|
-
.span11
|
161
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11)
|
162
|
-
.span12,
|
163
|
-
.container
|
164
|
-
+gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12)
|
165
|
-
// Offset column options
|
166
|
-
.offset1
|
167
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 1)
|
168
|
-
.offset2
|
169
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 2)
|
170
|
-
.offset3
|
171
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 3)
|
172
|
-
.offset4
|
173
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 4)
|
174
|
-
.offset5
|
175
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 5)
|
176
|
-
.offset6
|
177
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 6)
|
178
|
-
.offset7
|
179
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 7)
|
180
|
-
.offset8
|
181
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 8)
|
182
|
-
.offset9
|
183
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 9)
|
184
|
-
.offset10
|
185
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 10)
|
186
|
-
.offset11
|
187
|
-
+gridSystem-offset($gridColumnWidth, $gridGutterWidth, 11)
|
188
|
-
|
189
|
-
// Fluid grid system
|
190
|
-
// -------------------------
|
191
|
-
=fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns)
|
192
|
-
width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1)
|
193
|
-
|
194
|
-
=fluidGridSystem-gridColumn($fluidGridGutterWidth)
|
195
|
-
float: left
|
196
|
-
margin-left: $fluidGridGutterWidth
|
197
|
-
|
198
|
-
// Take these values and mixins, and make 'em do their thang
|
199
|
-
=fluidGridSystem-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
200
|
-
// Row surrounds the columns
|
201
|
-
.row-fluid
|
202
|
-
width: 100%
|
203
|
-
+clearfix
|
204
|
-
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
|
205
|
-
> [class*="span"]
|
206
|
-
+fluidGridSystem-gridColumn($fluidGridGutterWidth)
|
207
|
-
> [class*="span"]:first-child
|
208
|
-
margin-left: 0
|
209
|
-
// Default columns
|
210
|
-
.span1
|
211
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1)
|
212
|
-
.span2
|
213
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2)
|
214
|
-
.span3
|
215
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3)
|
216
|
-
.span4
|
217
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4)
|
218
|
-
.span5
|
219
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5)
|
220
|
-
.span6
|
221
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6)
|
222
|
-
.span7
|
223
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7)
|
224
|
-
.span8
|
225
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8)
|
226
|
-
.span9
|
227
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9)
|
228
|
-
.span10
|
229
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10)
|
230
|
-
.span11
|
231
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11)
|
232
|
-
.span12
|
233
|
-
+fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12)
|
234
|
-
|
235
|
-
// Input grid system
|
236
|
-
// -------------------------
|
237
|
-
=inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns)
|
238
|
-
width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1) - 10
|
239
|
-
|
240
|
-
=inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth)
|
125
|
+
// Block level inputs
|
126
|
+
=bootstrap-input-block-level
|
127
|
+
display: block
|
128
|
+
width: 100%
|
129
|
+
min-height: 28px
|
130
|
+
// Make inputs at least the height of their button counterpart
|
131
|
+
+bootstrap-box-sizing(border-box)
|
132
|
+
// Makes inputs behave like true block-level elements
|
133
|
+
|
134
|
+
// Mixin for form field states
|
135
|
+
=bootstrap-formFieldState($textColor: #555555, $borderColor: #cccccc, $backgroundColor: #f5f5f5)
|
136
|
+
// Set the text color
|
137
|
+
> label,
|
138
|
+
.help-block,
|
139
|
+
.help-inline
|
140
|
+
color: $textColor
|
141
|
+
// Style inputs accordingly
|
241
142
|
input,
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6)
|
256
|
-
&.span7
|
257
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7)
|
258
|
-
&.span8
|
259
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8)
|
260
|
-
&.span9
|
261
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9)
|
262
|
-
&.span10
|
263
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10)
|
264
|
-
&.span11
|
265
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11)
|
266
|
-
&.span12
|
267
|
-
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12)
|
143
|
+
select,
|
144
|
+
textarea
|
145
|
+
color: $textColor
|
146
|
+
border-color: $borderColor
|
147
|
+
&:focus
|
148
|
+
border-color: darken($borderColor, 10%)
|
149
|
+
+bootstrap-box-shadow(0 0 6px lighten($borderColor, 20%))
|
150
|
+
// Give a small background color for input-prepend/-append
|
151
|
+
.input-prepend .add-on,
|
152
|
+
.input-append .add-on
|
153
|
+
color: $textColor
|
154
|
+
background-color: $backgroundColor
|
155
|
+
border-color: $textColor
|
268
156
|
|
269
157
|
// CSS3 PROPERTIES
|
270
158
|
// --------------------------------------------------
|
271
159
|
|
160
|
+
// Border Radius
|
161
|
+
=bootstrap-border-radius($radius)
|
162
|
+
-webkit-border-radius: $radius
|
163
|
+
-moz-border-radius: $radius
|
164
|
+
border-radius: $radius
|
165
|
+
|
272
166
|
// Drop shadows
|
273
|
-
=box-shadow($shadow
|
167
|
+
=bootstrap-box-shadow($shadow)
|
274
168
|
-webkit-box-shadow: $shadow
|
275
169
|
-moz-box-shadow: $shadow
|
276
170
|
box-shadow: $shadow
|
277
171
|
|
278
172
|
// Transitions
|
279
|
-
=transition($transition)
|
173
|
+
=bootstrap-transition($transition)
|
280
174
|
-webkit-transition: $transition
|
281
175
|
-moz-transition: $transition
|
282
176
|
-ms-transition: $transition
|
@@ -284,78 +178,90 @@
|
|
284
178
|
transition: $transition
|
285
179
|
|
286
180
|
// Transformations
|
287
|
-
=rotate($degrees)
|
181
|
+
=bootstrap-rotate($degrees)
|
288
182
|
-webkit-transform: rotate($degrees)
|
289
183
|
-moz-transform: rotate($degrees)
|
290
184
|
-ms-transform: rotate($degrees)
|
291
185
|
-o-transform: rotate($degrees)
|
292
186
|
transform: rotate($degrees)
|
293
187
|
|
294
|
-
=scale($ratio)
|
188
|
+
=bootstrap-scale($ratio)
|
295
189
|
-webkit-transform: scale($ratio)
|
296
190
|
-moz-transform: scale($ratio)
|
297
191
|
-ms-transform: scale($ratio)
|
298
192
|
-o-transform: scale($ratio)
|
299
193
|
transform: scale($ratio)
|
300
194
|
|
301
|
-
=translate($x
|
195
|
+
=bootstrap-translate($x, $y)
|
302
196
|
-webkit-transform: translate($x, $y)
|
303
197
|
-moz-transform: translate($x, $y)
|
304
198
|
-ms-transform: translate($x, $y)
|
305
199
|
-o-transform: translate($x, $y)
|
306
200
|
transform: translate($x, $y)
|
307
201
|
|
308
|
-
=skew($x
|
309
|
-
-webkit-transform: translate($x, $y)
|
310
|
-
-moz-transform: translate($x, $y)
|
311
|
-
-ms-transform: translate($x, $y)
|
312
|
-
-o-transform: translate($x, $y)
|
313
|
-
transform: translate($x, $y)
|
314
|
-
|
315
|
-
=skew($x: 0, $y: 0)
|
202
|
+
=bootstrap-skew($x, $y)
|
316
203
|
-webkit-transform: skew($x, $y)
|
317
204
|
-moz-transform: skew($x, $y)
|
318
205
|
-ms-transform: skew($x, $y)
|
319
206
|
-o-transform: skew($x, $y)
|
320
207
|
transform: skew($x, $y)
|
321
208
|
|
209
|
+
=bootstrap-translate3d($x, $y, $z)
|
210
|
+
-webkit-transform: translate($x, $y, $z)
|
211
|
+
-moz-transform: translate($x, $y, $z)
|
212
|
+
-ms-transform: translate($x, $y, $z)
|
213
|
+
-o-transform: translate($x, $y, $z)
|
214
|
+
transform: translate($x, $y, $z)
|
215
|
+
|
216
|
+
// Backface visibility
|
217
|
+
// Prevent browsers from flickering when using CSS 3D transforms.
|
218
|
+
// Default value is `visible`, but can be changed to `hidden
|
219
|
+
// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
|
220
|
+
=bootstrap-backface-visibility($visibility)
|
221
|
+
-webkit-backface-visibility: $visibility
|
222
|
+
-moz-backface-visibility: $visibility
|
223
|
+
-ms-backface-visibility: $visibility
|
224
|
+
backface-visibility: $visibility
|
225
|
+
|
322
226
|
// Background clipping
|
323
227
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
324
|
-
=background-clip($clip)
|
228
|
+
=bootstrap-background-clip($clip)
|
325
229
|
-webkit-background-clip: $clip
|
326
230
|
-moz-background-clip: $clip
|
327
231
|
background-clip: $clip
|
328
232
|
|
329
233
|
// Background sizing
|
330
|
-
=background-size($size)
|
234
|
+
=bootstrap-background-size($size)
|
331
235
|
-webkit-background-size: $size
|
332
236
|
-moz-background-size: $size
|
333
237
|
-o-background-size: $size
|
334
238
|
background-size: $size
|
335
239
|
|
336
240
|
// Box sizing
|
337
|
-
=box-sizing($boxmodel)
|
241
|
+
=bootstrap-box-sizing($boxmodel)
|
338
242
|
-webkit-box-sizing: $boxmodel
|
339
243
|
-moz-box-sizing: $boxmodel
|
244
|
+
-ms-box-sizing: $boxmodel
|
340
245
|
box-sizing: $boxmodel
|
341
246
|
|
342
247
|
// User select
|
343
248
|
// For selecting text on the page
|
344
|
-
=user-select($select)
|
249
|
+
=bootstrap-user-select($select)
|
345
250
|
-webkit-user-select: $select
|
346
251
|
-moz-user-select: $select
|
252
|
+
-ms-user-select: $select
|
347
253
|
-o-user-select: $select
|
348
254
|
user-select: $select
|
349
255
|
|
350
256
|
// Resize anything
|
351
|
-
=resizable($direction
|
257
|
+
=bootstrap-resizable($direction)
|
352
258
|
resize: $direction
|
353
259
|
// Options: horizontal, vertical, both
|
354
260
|
overflow: auto
|
355
261
|
// Safari fix
|
356
262
|
|
357
263
|
// CSS3 Content Columns
|
358
|
-
=content-columns($columnCount, $columnGap: $
|
264
|
+
=bootstrap-content-columns($columnCount, $columnGap: $gridGutterWidth)
|
359
265
|
-webkit-column-count: $columnCount
|
360
266
|
-moz-column-count: $columnCount
|
361
267
|
column-count: $columnCount
|
@@ -363,33 +269,36 @@
|
|
363
269
|
-moz-column-gap: $columnGap
|
364
270
|
column-gap: $columnGap
|
365
271
|
|
272
|
+
// Opacity
|
273
|
+
=bootstrap-opacity($opacity)
|
274
|
+
opacity: $opacity / 100
|
275
|
+
filter: unquote("alpha(opacity=#{$opacity})")
|
276
|
+
|
366
277
|
// BACKGROUNDS
|
367
278
|
// --------------------------------------------------
|
368
279
|
|
369
280
|
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
370
|
-
=translucent-background($color: $white, $alpha: 1)
|
281
|
+
=bootstrap-translucent-background($color: $white, $alpha: 1)
|
371
282
|
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha)
|
372
283
|
|
373
|
-
=translucent-border($color: $white, $alpha: 1)
|
284
|
+
=bootstrap-translucent-border($color: $white, $alpha: 1)
|
374
285
|
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha)
|
375
|
-
+background-clip(padding-box)
|
286
|
+
+bootstrap-background-clip(padding-box)
|
376
287
|
|
377
288
|
// Gradient Bar Colors for buttons and alerts
|
378
|
-
=gradientBar($primaryColor, $secondaryColor)
|
379
|
-
+gradient-vertical($primaryColor, $secondaryColor)
|
289
|
+
=bootstrap-gradientBar($primaryColor, $secondaryColor)
|
290
|
+
+bootstrap-gradient-vertical($primaryColor, $secondaryColor)
|
380
291
|
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%)
|
381
292
|
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) fadein(rgba(0, 0, 0, 0.1), 15%)
|
382
293
|
|
383
294
|
// Gradients
|
384
|
-
=gradient-horizontal($startColor: #555555, $endColor: #333333)
|
295
|
+
=bootstrap-gradient-horizontal($startColor: #555555, $endColor: #333333)
|
385
296
|
background-color: $endColor
|
386
|
-
background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor))
|
387
|
-
// Konqueror
|
388
297
|
background-image: -moz-linear-gradient(left, $startColor, $endColor)
|
389
298
|
// FF 3.6+
|
390
299
|
background-image: -ms-linear-gradient(left, $startColor, $endColor)
|
391
300
|
// IE10
|
392
|
-
background-image: -webkit-gradient(linear,
|
301
|
+
background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor))
|
393
302
|
// Safari 4+, Chrome 2+
|
394
303
|
background-image: -webkit-linear-gradient(left, $startColor, $endColor)
|
395
304
|
// Safari 5.1+, Chrome 10+
|
@@ -401,26 +310,25 @@
|
|
401
310
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1)
|
402
311
|
// IE9 and down
|
403
312
|
|
404
|
-
=gradient-vertical($startColor: #555555, $endColor: #333333)
|
405
|
-
background-color: $endColor
|
406
|
-
background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor))
|
407
|
-
// Konqueror
|
313
|
+
=bootstrap-gradient-vertical($startColor: #555555, $endColor: #333333)
|
314
|
+
background-color: mix($startColor, $endColor, 60%)
|
408
315
|
background-image: -moz-linear-gradient(top, $startColor, $endColor)
|
409
316
|
// FF 3.6+
|
410
317
|
background-image: -ms-linear-gradient(top, $startColor, $endColor)
|
411
318
|
// IE10
|
412
|
-
background-image: -webkit-gradient(linear,
|
319
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor))
|
413
320
|
// Safari 4+, Chrome 2+
|
414
321
|
background-image: -webkit-linear-gradient(top, $startColor, $endColor)
|
415
322
|
// Safari 5.1+, Chrome 10+
|
416
323
|
background-image: -o-linear-gradient(top, $startColor, $endColor)
|
417
324
|
// Opera 11.10
|
418
|
-
|
325
|
+
background-image: linear-gradient(top, $startColor, $endColor)
|
326
|
+
// The standard
|
419
327
|
background-repeat: repeat-x
|
420
328
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0)
|
421
329
|
// IE9 and down
|
422
330
|
|
423
|
-
=gradient-directional($startColor: #555555, $endColor: #333333, $deg: 45deg)
|
331
|
+
=bootstrap-gradient-directional($startColor: #555555, $endColor: #333333, $deg: 45deg)
|
424
332
|
background-color: $endColor
|
425
333
|
background-repeat: repeat-x
|
426
334
|
background-image: -moz-linear-gradient($deg, $startColor, $endColor)
|
@@ -434,8 +342,8 @@
|
|
434
342
|
background-image: linear-gradient($deg, $startColor, $endColor)
|
435
343
|
// The standard
|
436
344
|
|
437
|
-
=gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
|
438
|
-
background-color: $endColor
|
345
|
+
=bootstrap-gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
|
346
|
+
background-color: mix($midColor, $endColor, 80%)
|
439
347
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor))
|
440
348
|
background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor)
|
441
349
|
background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor)
|
@@ -444,84 +352,193 @@
|
|
444
352
|
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor)
|
445
353
|
background-repeat: no-repeat
|
446
354
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0)
|
447
|
-
// IE9 and down, gets no color-stop at all
|
448
|
-
|
449
|
-
=gradient-radial($
|
450
|
-
background-color: $
|
451
|
-
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($
|
452
|
-
background-image: -webkit-radial-gradient(circle, $
|
453
|
-
background-image: -moz-radial-gradient(circle, $
|
454
|
-
background-image: -ms-radial-gradient(circle, $
|
355
|
+
// IE9 and down, gets no color-stop at all for proper fallback
|
356
|
+
|
357
|
+
=bootstrap-gradient-radial($innerColor: #555555, $outerColor: #333333)
|
358
|
+
background-color: $outerColor
|
359
|
+
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($innerColor), to($outerColor))
|
360
|
+
background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor)
|
361
|
+
background-image: -moz-radial-gradient(circle, $innerColor, $outerColor)
|
362
|
+
background-image: -ms-radial-gradient(circle, $innerColor, $outerColor)
|
363
|
+
background-image: -o-radial-gradient(circle, $innerColor, $outerColor)
|
455
364
|
background-repeat: no-repeat
|
456
|
-
// Opera cannot do radial gradients yet
|
457
365
|
|
458
|
-
=gradient-striped($color, $angle: -45deg)
|
366
|
+
=bootstrap-gradient-striped($color, $angle: -45deg)
|
459
367
|
background-color: $color
|
460
368
|
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent))
|
461
369
|
background-image: -webkit-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
|
462
370
|
background-image: -moz-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
|
463
371
|
background-image: -ms-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
|
464
372
|
background-image: -o-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
|
465
|
-
|
466
|
-
|
467
|
-
// Gradient Bar Colors for buttons and alerts
|
468
|
-
=gradientBar($primaryColor, $secondaryColor)
|
469
|
-
+gradient-vertical($primaryColor, $secondaryColor)
|
470
|
-
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%)
|
471
|
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) fade-in(rgba(0, 0, 0, 0.1), 0.15)
|
373
|
+
background-image: linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
|
472
374
|
|
473
375
|
// Reset filters for IE
|
474
|
-
=reset-filter
|
376
|
+
=bootstrap-reset-filter
|
475
377
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false)
|
476
378
|
|
477
|
-
//
|
478
|
-
//
|
479
|
-
|
379
|
+
// COMPONENT MIXINS
|
380
|
+
// --------------------------------------------------
|
381
|
+
|
382
|
+
// Horizontal dividers
|
383
|
+
// -------------------------
|
384
|
+
// Dividers (basically an hr) within dropdowns and nav lists
|
385
|
+
=bootstrap-nav-divider
|
386
|
+
// IE7 needs a set width since we gave a height. Restricting just
|
387
|
+
// to IE7 to keep the 1px left/right space in other browsers.
|
388
|
+
// It is unclear where IE is getting the extra space that we need
|
389
|
+
// to negative-margin away, but so it goes.
|
390
|
+
*width: 100%
|
391
|
+
height: 1px
|
392
|
+
margin: $baseLineHeight / 2 - 1 1px
|
393
|
+
// 8px 1px
|
394
|
+
*margin: -5px 0 5px
|
395
|
+
overflow: hidden
|
396
|
+
background-color: #e5e5e5
|
397
|
+
border-bottom: 1px solid $white
|
398
|
+
|
399
|
+
// Button backgrounds
|
400
|
+
// ------------------
|
401
|
+
=bootstrap-buttonBackground($startColor, $endColor)
|
480
402
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
481
|
-
+gradientBar($startColor, $endColor)
|
482
|
-
|
403
|
+
+bootstrap-gradientBar($startColor, $endColor)
|
404
|
+
*background-color: $endColor
|
405
|
+
/* Darken IE7 buttons by default so they stand out more given they won't have borders
|
406
|
+
+bootstrap-reset-filter
|
483
407
|
// in these cases the gradient won't cover the background, so we override
|
484
408
|
&:hover, &:active, &.active, &.disabled, &[disabled]
|
485
409
|
background-color: $endColor
|
410
|
+
*background-color: darken($endColor, 5%)
|
486
411
|
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
487
412
|
&:active,
|
488
413
|
&.active
|
489
|
-
background-color: darken($endColor, 10%)
|
414
|
+
background-color: darken($endColor, 10%) \9
|
490
415
|
|
491
|
-
//
|
492
|
-
//
|
416
|
+
// Navbar vertical align
|
417
|
+
// -------------------------
|
418
|
+
// Vertically center elements in the navbar.
|
419
|
+
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
|
420
|
+
=bootstrap-navbarVerticalAlign($elementHeight)
|
421
|
+
margin-top: ($navbarHeight - $elementHeight) / 2
|
493
422
|
|
494
|
-
//
|
423
|
+
// Popover arrows
|
495
424
|
// -------------------------
|
496
425
|
// For tipsies and popovers
|
497
|
-
=popoverArrow-top($arrowWidth: 5px)
|
426
|
+
=bootstrap-popoverArrow-top($arrowWidth: 5px, $color: $black)
|
498
427
|
bottom: 0
|
499
428
|
left: 50%
|
500
429
|
margin-left: -$arrowWidth
|
501
430
|
border-left: $arrowWidth solid transparent
|
502
431
|
border-right: $arrowWidth solid transparent
|
503
|
-
border-top: $arrowWidth solid $
|
432
|
+
border-top: $arrowWidth solid $color
|
504
433
|
|
505
|
-
=popoverArrow-left($arrowWidth: 5px)
|
434
|
+
=bootstrap-popoverArrow-left($arrowWidth: 5px, $color: $black)
|
506
435
|
top: 50%
|
507
436
|
right: 0
|
508
437
|
margin-top: -$arrowWidth
|
509
438
|
border-top: $arrowWidth solid transparent
|
510
439
|
border-bottom: $arrowWidth solid transparent
|
511
|
-
border-left: $arrowWidth solid $
|
440
|
+
border-left: $arrowWidth solid $color
|
512
441
|
|
513
|
-
=popoverArrow-bottom($arrowWidth: 5px)
|
442
|
+
=bootstrap-popoverArrow-bottom($arrowWidth: 5px, $color: $black)
|
514
443
|
top: 0
|
515
444
|
left: 50%
|
516
445
|
margin-left: -$arrowWidth
|
517
446
|
border-left: $arrowWidth solid transparent
|
518
447
|
border-right: $arrowWidth solid transparent
|
519
|
-
border-bottom: $arrowWidth solid $
|
448
|
+
border-bottom: $arrowWidth solid $color
|
520
449
|
|
521
|
-
=popoverArrow-right($arrowWidth: 5px)
|
450
|
+
=bootstrap-popoverArrow-right($arrowWidth: 5px, $color: $black)
|
522
451
|
top: 50%
|
523
452
|
left: 0
|
524
453
|
margin-top: -$arrowWidth
|
525
454
|
border-top: $arrowWidth solid transparent
|
526
455
|
border-bottom: $arrowWidth solid transparent
|
527
|
-
border-right: $arrowWidth solid $
|
456
|
+
border-right: $arrowWidth solid $color
|
457
|
+
|
458
|
+
// Grid System
|
459
|
+
// -----------
|
460
|
+
|
461
|
+
// Centered container element
|
462
|
+
=bootstrap-container-fixed
|
463
|
+
margin-right: auto
|
464
|
+
margin-left: auto
|
465
|
+
+bootstrap-clearfix
|
466
|
+
|
467
|
+
// Table columns
|
468
|
+
=bootstrap-tableColumns($columnSpan: 1)
|
469
|
+
float: none
|
470
|
+
// undo default grid column styles
|
471
|
+
width: $gridColumnWidth * $columnSpan + $gridGutterWidth * ($columnSpan - 1) - 16
|
472
|
+
// 16 is total padding on left and right of table cells
|
473
|
+
margin-left: 0
|
474
|
+
// undo default grid column styles
|
475
|
+
|
476
|
+
// Make a Grid
|
477
|
+
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
478
|
+
=bootstrap-makeRow
|
479
|
+
margin-left: $gridGutterWidth * -1
|
480
|
+
+bootstrap-clearfix
|
481
|
+
|
482
|
+
=bootstrap-makeColumn($columns: 1, $offset: 0)
|
483
|
+
float: left
|
484
|
+
margin-left: $gridColumnWidth * $offset + $gridGutterWidth * ($offset - 1) + $gridGutterWidth * 2
|
485
|
+
width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
|
486
|
+
|
487
|
+
// The Grid
|
488
|
+
=bootstrap-grid-core-offset($columns, $gridColumnWidth, $gridGutterWidth)
|
489
|
+
margin-left: $gridColumnWidth * $columns + $gridGutterWidth * ($columns + 1)
|
490
|
+
|
491
|
+
=bootstrap-grid-core-span($columns, $gridColumnWidth, $gridGutterWidth)
|
492
|
+
width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
|
493
|
+
|
494
|
+
=bootstrap-grid-core($gridColumnWidth, $gridGutterWidth)
|
495
|
+
.row
|
496
|
+
margin-left: $gridGutterWidth * -1
|
497
|
+
+bootstrap-clearfix
|
498
|
+
[class*="span"]
|
499
|
+
float: left
|
500
|
+
margin-left: $gridGutterWidth
|
501
|
+
// Set the container width, and override it for fixed navbars in media queries
|
502
|
+
.container,
|
503
|
+
.navbar-fixed-top .container,
|
504
|
+
.navbar-fixed-bottom .container
|
505
|
+
+bootstrap-grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth)
|
506
|
+
// generate .spanX and .offsetX
|
507
|
+
@for $i from 1 through $gridColumns
|
508
|
+
.span#{$i}
|
509
|
+
+bootstrap-grid-core-span($i, $gridColumnWidth, $gridGutterWidth)
|
510
|
+
.offset#{$i}
|
511
|
+
+bootstrap-grid-core-offset($i, $gridColumnWidth, $gridGutterWidth)
|
512
|
+
|
513
|
+
=bootstrap-grid-fluid-span($columns, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
514
|
+
width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1)
|
515
|
+
*width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1) - 0.5 / ($gridRowWidth / 1px) * 100 * 1%
|
516
|
+
|
517
|
+
=bootstrap-grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth)
|
518
|
+
.row-fluid
|
519
|
+
width: 100%
|
520
|
+
+bootstrap-clearfix
|
521
|
+
[class*="span"]
|
522
|
+
+bootstrap-input-block-level
|
523
|
+
float: left
|
524
|
+
margin-left: $fluidGridGutterWidth
|
525
|
+
*margin-left: $fluidGridGutterWidth - 0.5 / ($gridRowWidth / 1px) * 100 * 1%
|
526
|
+
[class*="span"]:first-child
|
527
|
+
margin-left: 0
|
528
|
+
// generate .spanX
|
529
|
+
@for $i from 1 through $gridColumns
|
530
|
+
.span#{$i}
|
531
|
+
+bootstrap-grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
532
|
+
|
533
|
+
=bootstrap-grid-input-span($columns, $gridColumnWidth, $gridGutterWidth)
|
534
|
+
width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1) - 10
|
535
|
+
|
536
|
+
=bootstrap-grid-input($gridColumnWidth, $gridGutterWidth)
|
537
|
+
input,
|
538
|
+
textarea,
|
539
|
+
.uneditable-input
|
540
|
+
margin-left: 0
|
541
|
+
// override margin-left from core grid system
|
542
|
+
@for $i from 1 through $gridColumns
|
543
|
+
input.span#{$i}, textarea.span#{$i}, .uneditable-input.span#{$i}
|
544
|
+
+bootstrap-grid-input-span($i, $gridColumnWidth, $gridGutterWidth)
|