compass_twitter_bootstrap 0.1.8 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +14 -8
- data/build/convert.rb +58 -33
- data/lib/compass_twitter_bootstrap.rb +1 -1
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap.scss +45 -7
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +322 -0
- data/stylesheets/compass_twitter_bootstrap/_accordion.scss +28 -0
- data/stylesheets/compass_twitter_bootstrap/_alerts.scss +70 -0
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +22 -0
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +147 -0
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +165 -0
- data/stylesheets/compass_twitter_bootstrap/_carousel.scss +121 -0
- data/stylesheets/compass_twitter_bootstrap/_close.scss +18 -0
- data/stylesheets/compass_twitter_bootstrap/_code.scss +44 -0
- data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +18 -0
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +131 -0
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +335 -299
- data/stylesheets/compass_twitter_bootstrap/_grid.scss +8 -0
- data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +20 -0
- data/stylesheets/compass_twitter_bootstrap/_labels.scss +16 -0
- data/stylesheets/compass_twitter_bootstrap/_layouts.scss +17 -0
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +409 -68
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +72 -0
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +292 -0
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +344 -0
- data/stylesheets/compass_twitter_bootstrap/_pager.scss +30 -0
- data/stylesheets/compass_twitter_bootstrap/_pagination.scss +55 -0
- data/stylesheets/compass_twitter_bootstrap/_popovers.scss +49 -0
- data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +95 -0
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +37 -52
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +13 -123
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +156 -0
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +75 -160
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +35 -0
- data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +35 -0
- data/stylesheets/compass_twitter_bootstrap/_type.scss +100 -70
- data/stylesheets/compass_twitter_bootstrap/_utilities.scss +23 -0
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +94 -55
- data/stylesheets/compass_twitter_bootstrap/_wells.scss +17 -0
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +49 -6
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +252 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +24 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +65 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +18 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +129 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +150 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +95 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +16 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +41 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +16 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +121 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +327 -306
- data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +8 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +17 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +23 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +14 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +425 -57
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +75 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +258 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +316 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +29 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +53 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +55 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +89 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +33 -67
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +13 -175
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +392 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +67 -139
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +34 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +95 -65
- data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +20 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +67 -45
- data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +15 -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 +91 -0
- data/vendor/assets/javascripts/bootstrap-button.js +98 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
- data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
- data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- metadata +69 -17
- data/stylesheets/compass_twitter_bootstrap/_patterns.scss +0 -1058
- data/stylesheets_sass/compass_twitter_bootstrap/_patterns.sass +0 -923
- data/vendor/assets/javascripts/bootstrap-alerts.js +0 -124
- data/vendor/assets/javascripts/bootstrap-buttons.js +0 -64
- data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
- data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
@@ -0,0 +1,17 @@
|
|
1
|
+
// HERO UNIT
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
.hero-unit
|
5
|
+
padding: 60px
|
6
|
+
margin-bottom: 30px
|
7
|
+
background-color: #f5f5f5
|
8
|
+
+border-radius(6px)
|
9
|
+
h1
|
10
|
+
margin-bottom: 0
|
11
|
+
font-size: 60px
|
12
|
+
line-height: 1
|
13
|
+
letter-spacing: -1px
|
14
|
+
p
|
15
|
+
font-size: 18px
|
16
|
+
font-weight: 200
|
17
|
+
line-height: $baseLineHeight * 1.5
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.label
|
5
|
+
padding: 1px 3px 2px
|
6
|
+
font-size: $baseFontSize * 0.75
|
7
|
+
font-weight: bold
|
8
|
+
color: $white
|
9
|
+
text-transform: uppercase
|
10
|
+
background-color: $grayLight
|
11
|
+
+border-radius(3px)
|
12
|
+
|
13
|
+
.label-important
|
14
|
+
background-color: $errorText
|
15
|
+
|
16
|
+
.label-warning
|
17
|
+
background-color: $orange
|
18
|
+
|
19
|
+
.label-success
|
20
|
+
background-color: $successText
|
21
|
+
|
22
|
+
.label-info
|
23
|
+
background-color: $infoText
|
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Layouts
|
3
|
+
// Fixed-width and fluid (with sidebar) layouts
|
4
|
+
// --------------------------------------------
|
5
|
+
|
6
|
+
// Container (centered, fixed-width layouts)
|
7
|
+
.container
|
8
|
+
+container-fixed
|
9
|
+
|
10
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
11
|
+
.container-fluid
|
12
|
+
padding-left: $gridGutterWidth
|
13
|
+
padding-right: $gridGutterWidth
|
14
|
+
+clearfix
|
@@ -1,90 +1,279 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
// Mixins.less
|
2
|
+
// Snippets of reusable CSS to develop faster and keep code readable
|
3
|
+
// -----------------------------------------------------------------
|
4
4
|
|
5
|
-
//
|
5
|
+
// UTILITY MIXINS
|
6
|
+
// --------------------------------------------------
|
7
|
+
|
8
|
+
// Clearfix
|
9
|
+
// --------
|
10
|
+
// For clearing floats like a boss h5bp.com/q
|
6
11
|
=clearfix
|
7
|
-
zoom: 1
|
12
|
+
*zoom: 1
|
8
13
|
&:before,
|
9
14
|
&:after
|
10
15
|
display: table
|
11
16
|
content: ""
|
12
|
-
zoom: 1
|
13
17
|
&:after
|
14
18
|
clear: both
|
15
19
|
|
20
|
+
// Webkit-style focus
|
21
|
+
// ------------------
|
22
|
+
=tab-focus
|
23
|
+
// Default
|
24
|
+
outline: thin dotted
|
25
|
+
// Webkit
|
26
|
+
outline: 5px auto -webkit-focus-ring-color
|
27
|
+
outline-offset: -2px
|
28
|
+
|
16
29
|
// Center-align a block level element
|
30
|
+
// ----------------------------------
|
17
31
|
=center-block
|
18
32
|
display: block
|
19
33
|
margin-left: auto
|
20
34
|
margin-right: auto
|
21
35
|
|
36
|
+
// IE7 inline-block
|
37
|
+
// ----------------
|
38
|
+
=ie7-inline-block
|
39
|
+
*display: inline
|
40
|
+
/* IE7 inline-block hack
|
41
|
+
*zoom: 1
|
42
|
+
|
43
|
+
// IE7 likes to collapse whitespace on either side of the inline-block elements.
|
44
|
+
// Ems because we're attempting to match the width of a space character. Left
|
45
|
+
// version is for form buttons, which typically come after other elements, and
|
46
|
+
// right version is for icons, which come before. Applying both is ok, but it will
|
47
|
+
// mean that space between those elements will be .6em (~2 space characters) in IE7,
|
48
|
+
// instead of the 1 space in other browsers.
|
49
|
+
=ie7-restore-left-whitespace
|
50
|
+
*margin-left: .3em
|
51
|
+
&:first-child
|
52
|
+
*margin-left: 0
|
53
|
+
|
54
|
+
=ie7-restore-right-whitespace
|
55
|
+
*margin-right: .3em
|
56
|
+
&:last-child
|
57
|
+
*margin-left: 0
|
58
|
+
|
22
59
|
// Sizing shortcuts
|
60
|
+
// -------------------------
|
23
61
|
=size($height: 5px, $width: 5px)
|
24
|
-
height: $height
|
25
62
|
width: $width
|
63
|
+
height: $height
|
26
64
|
|
27
65
|
=square($size: 5px)
|
28
66
|
+size($size, $size)
|
29
67
|
|
30
|
-
//
|
31
|
-
|
68
|
+
// Placeholder text
|
69
|
+
// -------------------------
|
70
|
+
=placeholder($color: $placeholderText)
|
32
71
|
\:-moz-placeholder
|
33
72
|
color: $color
|
34
73
|
\::-webkit-input-placeholder
|
35
74
|
color: $color
|
36
75
|
|
37
|
-
//
|
38
|
-
|
39
|
-
|
40
|
-
font-
|
41
|
-
line-height: $lineHeight
|
76
|
+
// FONTS
|
77
|
+
// --------------------------------------------------
|
78
|
+
=font-family-serif
|
79
|
+
font-family: Georgia, "Times New Roman", Times, serif
|
42
80
|
|
43
|
-
=sans-serif
|
81
|
+
=font-family-sans-serif
|
44
82
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif
|
45
|
-
font-size: $size
|
46
|
-
font-weight: $weight
|
47
|
-
line-height: $lineHeight
|
48
83
|
|
49
|
-
=
|
50
|
-
font-family:
|
51
|
-
font-size: $size
|
52
|
-
font-weight: $weight
|
53
|
-
line-height: $lineHeight
|
84
|
+
=font-family-monospace
|
85
|
+
font-family: Menlo, Monaco, "Courier New", monospace
|
54
86
|
|
55
|
-
=
|
56
|
-
font-family:
|
87
|
+
=font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
88
|
+
font-family: Georgia, "Times New Roman", Times, serif
|
89
|
+
+shorthand($size, $weight, $lineHeight)
|
90
|
+
|
91
|
+
=font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
57
92
|
font-size: $size
|
58
93
|
font-weight: $weight
|
59
94
|
line-height: $lineHeight
|
60
95
|
|
61
|
-
|
62
|
-
|
63
|
-
|
96
|
+
=font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
97
|
+
+font-family-serif
|
98
|
+
+font-shorthand($size, $weight, $lineHeight)
|
99
|
+
|
100
|
+
=font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
101
|
+
+font-family-sans-serif
|
102
|
+
+font-shorthand($size, $weight, $lineHeight)
|
103
|
+
|
104
|
+
=font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight)
|
105
|
+
+font-family-monospace
|
106
|
+
+font-shorthand($size, $weight, $lineHeight)
|
107
|
+
|
108
|
+
// GRID SYSTEM
|
109
|
+
// --------------------------------------------------
|
110
|
+
|
111
|
+
// Site container
|
112
|
+
// -------------------------
|
113
|
+
=container-fixed
|
114
|
+
width: $gridRowWidth
|
64
115
|
margin-left: auto
|
65
116
|
margin-right: auto
|
66
117
|
+clearfix
|
67
118
|
|
68
|
-
|
69
|
-
|
119
|
+
// Le grid system
|
120
|
+
=gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns)
|
121
|
+
width: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1)
|
70
122
|
|
71
|
-
=offset($
|
72
|
-
margin-left: $gridColumnWidth * $
|
123
|
+
=gridSystem-offset($gridColumnWidth, $gridGutterWidth, $columns)
|
124
|
+
margin-left: $gridColumnWidth * $columns + $gridGutterWidth * ($columns - 1) + $gridGutterWidth * 2
|
73
125
|
|
74
|
-
|
75
|
-
=gridColumn
|
76
|
-
display: inline
|
126
|
+
=gridSystem-gridColumn($gridGutterWidth)
|
77
127
|
float: left
|
78
128
|
margin-left: $gridGutterWidth
|
79
129
|
|
80
|
-
//
|
81
|
-
=
|
82
|
-
|
83
|
-
|
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)
|
84
188
|
|
85
|
-
//
|
189
|
+
// Fluid grid system
|
190
|
+
// -------------------------
|
191
|
+
=fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns)
|
192
|
+
width: $fluidGridColumnWidth * $columns + $fluidGridGutterWidth * ($columns - 1)
|
86
193
|
|
87
|
-
|
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)
|
241
|
+
input,
|
242
|
+
textarea,
|
243
|
+
.uneditable-input
|
244
|
+
&.span1
|
245
|
+
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1)
|
246
|
+
&.span2
|
247
|
+
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2)
|
248
|
+
&.span3
|
249
|
+
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3)
|
250
|
+
&.span4
|
251
|
+
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4)
|
252
|
+
&.span5
|
253
|
+
+inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5)
|
254
|
+
&.span6
|
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)
|
268
|
+
|
269
|
+
// CSS3 PROPERTIES
|
270
|
+
// --------------------------------------------------
|
271
|
+
|
272
|
+
// Drop shadows
|
273
|
+
=box-shadow($shadow: 0 1px 3px rgba(0, 0, 0, 0.25))
|
274
|
+
-webkit-box-shadow: $shadow
|
275
|
+
-moz-box-shadow: $shadow
|
276
|
+
box-shadow: $shadow
|
88
277
|
|
89
278
|
// Transitions
|
90
279
|
=transition($transition)
|
@@ -94,14 +283,79 @@
|
|
94
283
|
-o-transition: $transition
|
95
284
|
transition: $transition
|
96
285
|
|
286
|
+
// Transformations
|
287
|
+
=rotate($degrees)
|
288
|
+
-webkit-transform: rotate($degrees)
|
289
|
+
-moz-transform: rotate($degrees)
|
290
|
+
-ms-transform: rotate($degrees)
|
291
|
+
-o-transform: rotate($degrees)
|
292
|
+
transform: rotate($degrees)
|
293
|
+
|
294
|
+
=scale($ratio)
|
295
|
+
-webkit-transform: scale($ratio)
|
296
|
+
-moz-transform: scale($ratio)
|
297
|
+
-ms-transform: scale($ratio)
|
298
|
+
-o-transform: scale($ratio)
|
299
|
+
transform: scale($ratio)
|
300
|
+
|
301
|
+
=translate($x: 0, $y: 0)
|
302
|
+
-webkit-transform: translate($x, $y)
|
303
|
+
-moz-transform: translate($x, $y)
|
304
|
+
-ms-transform: translate($x, $y)
|
305
|
+
-o-transform: translate($x, $y)
|
306
|
+
transform: translate($x, $y)
|
307
|
+
|
308
|
+
=skew($x: 0, $y: 0)
|
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)
|
316
|
+
-webkit-transform: skew($x, $y)
|
317
|
+
-moz-transform: skew($x, $y)
|
318
|
+
-ms-transform: skew($x, $y)
|
319
|
+
-o-transform: skew($x, $y)
|
320
|
+
transform: skew($x, $y)
|
321
|
+
|
97
322
|
// Background clipping
|
323
|
+
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
98
324
|
=background-clip($clip)
|
99
325
|
-webkit-background-clip: $clip
|
100
326
|
-moz-background-clip: $clip
|
101
327
|
background-clip: $clip
|
102
328
|
|
329
|
+
// Background sizing
|
330
|
+
=background-size($size)
|
331
|
+
-webkit-background-size: $size
|
332
|
+
-moz-background-size: $size
|
333
|
+
-o-background-size: $size
|
334
|
+
background-size: $size
|
335
|
+
|
336
|
+
// Box sizing
|
337
|
+
=box-sizing($boxmodel)
|
338
|
+
-webkit-box-sizing: $boxmodel
|
339
|
+
-moz-box-sizing: $boxmodel
|
340
|
+
box-sizing: $boxmodel
|
341
|
+
|
342
|
+
// User select
|
343
|
+
// For selecting text on the page
|
344
|
+
=user-select($select)
|
345
|
+
-webkit-user-select: $select
|
346
|
+
-moz-user-select: $select
|
347
|
+
-o-user-select: $select
|
348
|
+
user-select: $select
|
349
|
+
|
350
|
+
// Resize anything
|
351
|
+
=resizable($direction: both)
|
352
|
+
resize: $direction
|
353
|
+
// Options: horizontal, vertical, both
|
354
|
+
overflow: auto
|
355
|
+
// Safari fix
|
356
|
+
|
103
357
|
// CSS3 Content Columns
|
104
|
-
=content-columns($columnCount, $columnGap:
|
358
|
+
=content-columns($columnCount, $columnGap: $gridColumnGutter)
|
105
359
|
-webkit-column-count: $columnCount
|
106
360
|
-moz-column-count: $columnCount
|
107
361
|
column-count: $columnCount
|
@@ -109,51 +363,165 @@
|
|
109
363
|
-moz-column-gap: $columnGap
|
110
364
|
column-gap: $columnGap
|
111
365
|
|
366
|
+
// BACKGROUNDS
|
367
|
+
// --------------------------------------------------
|
368
|
+
|
112
369
|
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
113
370
|
=translucent-background($color: $white, $alpha: 1)
|
114
371
|
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha)
|
115
372
|
|
116
373
|
=translucent-border($color: $white, $alpha: 1)
|
117
374
|
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha)
|
118
|
-
background-clip
|
375
|
+
+background-clip(padding-box)
|
376
|
+
|
377
|
+
// Gradient Bar Colors for buttons and alerts
|
378
|
+
=gradientBar($primaryColor, $secondaryColor)
|
379
|
+
+gradient-vertical($primaryColor, $secondaryColor)
|
380
|
+
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%)
|
381
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) fadein(rgba(0, 0, 0, 0.1), 15%)
|
119
382
|
|
120
383
|
// Gradients
|
121
384
|
=gradient-horizontal($startColor: #555555, $endColor: #333333)
|
122
385
|
background-color: $endColor
|
123
|
-
background-repeat: repeat-x
|
124
|
-
+filter-gradient($startColor, $endColor, horizontal)
|
125
386
|
background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor))
|
126
387
|
// Konqueror
|
127
|
-
|
388
|
+
background-image: -moz-linear-gradient(left, $startColor, $endColor)
|
389
|
+
// FF 3.6+
|
390
|
+
background-image: -ms-linear-gradient(left, $startColor, $endColor)
|
391
|
+
// IE10
|
392
|
+
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor))
|
393
|
+
// Safari 4+, Chrome 2+
|
394
|
+
background-image: -webkit-linear-gradient(left, $startColor, $endColor)
|
395
|
+
// Safari 5.1+, Chrome 10+
|
396
|
+
background-image: -o-linear-gradient(left, $startColor, $endColor)
|
397
|
+
// Opera 11.10
|
398
|
+
background-image: linear-gradient(left, $startColor, $endColor)
|
399
|
+
// Le standard
|
400
|
+
background-repeat: repeat-x
|
401
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1)
|
402
|
+
// IE9 and down
|
128
403
|
|
129
404
|
=gradient-vertical($startColor: #555555, $endColor: #333333)
|
130
405
|
background-color: $endColor
|
131
|
-
background-repeat: repeat-x
|
132
|
-
+filter-gradient($startColor, $endColor)
|
133
406
|
background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor))
|
134
407
|
// Konqueror
|
135
|
-
|
408
|
+
background-image: -moz-linear-gradient(top, $startColor, $endColor)
|
409
|
+
// FF 3.6+
|
410
|
+
background-image: -ms-linear-gradient(top, $startColor, $endColor)
|
411
|
+
// IE10
|
412
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor))
|
413
|
+
// Safari 4+, Chrome 2+
|
414
|
+
background-image: -webkit-linear-gradient(top, $startColor, $endColor)
|
415
|
+
// Safari 5.1+, Chrome 10+
|
416
|
+
background-image: -o-linear-gradient(top, $startColor, $endColor)
|
417
|
+
// Opera 11.10
|
418
|
+
//background-image: linear-gradient(top left, $startColor, $endColor); // The standard
|
419
|
+
background-repeat: repeat-x
|
420
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0)
|
421
|
+
// IE9 and down
|
136
422
|
|
137
423
|
=gradient-directional($startColor: #555555, $endColor: #333333, $deg: 45deg)
|
138
424
|
background-color: $endColor
|
139
425
|
background-repeat: repeat-x
|
140
|
-
|
426
|
+
background-image: -moz-linear-gradient($deg, $startColor, $endColor)
|
427
|
+
// FF 3.6+
|
428
|
+
background-image: -ms-linear-gradient($deg, $startColor, $endColor)
|
429
|
+
// IE10
|
430
|
+
background-image: -webkit-linear-gradient($deg, $startColor, $endColor)
|
431
|
+
// Safari 5.1+, Chrome 10+
|
432
|
+
background-image: -o-linear-gradient($deg, $startColor, $endColor)
|
433
|
+
// Opera 11.10
|
434
|
+
background-image: linear-gradient($deg, $startColor, $endColor)
|
435
|
+
// The standard
|
141
436
|
|
142
437
|
=gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
|
143
438
|
background-color: $endColor
|
439
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor))
|
440
|
+
background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor)
|
441
|
+
background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor)
|
442
|
+
background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor)
|
443
|
+
background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor)
|
444
|
+
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor)
|
144
445
|
background-repeat: no-repeat
|
145
|
-
|
146
|
-
|
446
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0)
|
447
|
+
// IE9 and down, gets no color-stop at all the proper fallback
|
448
|
+
|
449
|
+
=gradient-radial($centerColor: #555555, $outsideColor: #333333)
|
450
|
+
background-color: $outsideColor
|
451
|
+
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($centerColor), to($outsideColor))
|
452
|
+
background-image: -webkit-radial-gradient(circle, $centerColor, $outsideColor)
|
453
|
+
background-image: -moz-radial-gradient(circle, $centerColor, $outsideColor)
|
454
|
+
background-image: -ms-radial-gradient(circle, $centerColor, $outsideColor)
|
455
|
+
background-repeat: no-repeat
|
456
|
+
// Opera cannot do radial gradients yet
|
457
|
+
|
458
|
+
=gradient-striped($color, $angle: -45deg)
|
459
|
+
background-color: $color
|
460
|
+
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
|
+
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
|
+
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
|
+
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
|
+
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
|
+
//background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
147
466
|
|
148
|
-
// Gradient Bar Colors for buttons and
|
467
|
+
// Gradient Bar Colors for buttons and alerts
|
149
468
|
=gradientBar($primaryColor, $secondaryColor)
|
150
469
|
+gradient-vertical($primaryColor, $secondaryColor)
|
151
|
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
152
470
|
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%)
|
153
|
-
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1)
|
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)
|
154
472
|
|
155
473
|
// Reset filters for IE
|
156
474
|
=reset-filter
|
157
|
-
|
475
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false)
|
476
|
+
|
477
|
+
// Mixin for generating button backgrounds
|
478
|
+
// ---------------------------------------
|
479
|
+
=buttonBackground($startColor, $endColor)
|
480
|
+
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
481
|
+
+gradientBar($startColor, $endColor)
|
482
|
+
+reset-filter
|
483
|
+
// in these cases the gradient won't cover the background, so we override
|
484
|
+
&:hover, &:active, &.active, &.disabled, &[disabled]
|
485
|
+
background-color: $endColor
|
486
|
+
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
487
|
+
&:active,
|
488
|
+
&.active
|
489
|
+
background-color: darken($endColor, 10%) e("\9")
|
490
|
+
|
491
|
+
// COMPONENT MIXINS
|
492
|
+
// --------------------------------------------------
|
493
|
+
|
494
|
+
// POPOVER ARROWS
|
495
|
+
// -------------------------
|
496
|
+
// For tipsies and popovers
|
497
|
+
=popoverArrow-top($arrowWidth: 5px)
|
498
|
+
bottom: 0
|
499
|
+
left: 50%
|
500
|
+
margin-left: -$arrowWidth
|
501
|
+
border-left: $arrowWidth solid transparent
|
502
|
+
border-right: $arrowWidth solid transparent
|
503
|
+
border-top: $arrowWidth solid $black
|
504
|
+
|
505
|
+
=popoverArrow-left($arrowWidth: 5px)
|
506
|
+
top: 50%
|
507
|
+
right: 0
|
508
|
+
margin-top: -$arrowWidth
|
509
|
+
border-top: $arrowWidth solid transparent
|
510
|
+
border-bottom: $arrowWidth solid transparent
|
511
|
+
border-left: $arrowWidth solid $black
|
512
|
+
|
513
|
+
=popoverArrow-bottom($arrowWidth: 5px)
|
514
|
+
top: 0
|
515
|
+
left: 50%
|
516
|
+
margin-left: -$arrowWidth
|
517
|
+
border-left: $arrowWidth solid transparent
|
518
|
+
border-right: $arrowWidth solid transparent
|
519
|
+
border-bottom: $arrowWidth solid $black
|
158
520
|
|
159
|
-
|
521
|
+
=popoverArrow-right($arrowWidth: 5px)
|
522
|
+
top: 50%
|
523
|
+
left: 0
|
524
|
+
margin-top: -$arrowWidth
|
525
|
+
border-top: $arrowWidth solid transparent
|
526
|
+
border-bottom: $arrowWidth solid transparent
|
527
|
+
border-right: $arrowWidth solid $black
|