bootstrap-sass-rails 1.4.0.3 → 2.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bootstrap/sass/rails/version.rb +1 -1
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -8
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +91 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +154 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +136 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +58 -21
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +63 -114
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +38 -33
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +62 -44
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +130 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +270 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +51 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +271 -0
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +50 -14
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +28 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +70 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +147 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +165 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +18 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +44 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +18 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +335 -299
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +16 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +429 -124
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +72 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +292 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +343 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +30 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +55 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_patterns.scss +5 -1051
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_print.scss +18 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +95 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +36 -51
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +323 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +13 -123
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +156 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +75 -160
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +100 -70
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +94 -55
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +17 -0
- metadata +51 -75
- data/test/dummy/log/test.log +0 -462
- data/test/dummy/tmp/cache/assets/C29/E80/sprockets%2F8f076727207424919c7170c7157bbe37 +0 -1102
- data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
- data/test/dummy/tmp/cache/assets/E5F/300/sprockets%2F243a2fff0dbb8aeec3dd579b4ff7c81b +0 -1048
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_patterns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.cssc +0 -0
- data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/_bootstrap.scssc +0 -0
- data/test/dummy/tmp/cache/sass/8f44dddc3cc4868f43c2a4153ce3876663527256/bootstrap.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/application.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/95eca8acb76bbb914a4c6988012b73e61e9bcc23/individual.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_patterns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_reset.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_scaffolding.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_type.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/mixins.scssc +0 -0
- data/test/dummy/tmp/cache/sass/cd2e949d41af4ab87fc8c5c6e94e4e802032bd18/variables.css.scssc +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alerts.js +0 -124
- data/vendor/assets/javascripts/twitter/bootstrap/buttons.js +0 -64
- data/vendor/assets/javascripts/twitter/bootstrap/tabs.js +0 -80
- data/vendor/assets/javascripts/twitter/bootstrap/twipsy.js +0 -321
@@ -0,0 +1,20 @@
|
|
1
|
+
// HERO UNIT
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
.hero-unit {
|
5
|
+
padding: 60px;
|
6
|
+
margin-bottom: 30px;
|
7
|
+
background-color: #f5f5f5;
|
8
|
+
@include border-radius(6px);
|
9
|
+
h1 {
|
10
|
+
margin-bottom: 0;
|
11
|
+
font-size: 60px;
|
12
|
+
line-height: 1;
|
13
|
+
letter-spacing: -1px;
|
14
|
+
}
|
15
|
+
p {
|
16
|
+
font-size: 18px;
|
17
|
+
font-weight: 200;
|
18
|
+
line-height: $baseLineHeight * 1.5;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.label {
|
5
|
+
padding: 1px 3px 2px;
|
6
|
+
font-size: $baseFontSize * .75;
|
7
|
+
font-weight: bold;
|
8
|
+
color: $white;
|
9
|
+
text-transform: uppercase;
|
10
|
+
background-color: $grayLight;
|
11
|
+
@include border-radius(3px);
|
12
|
+
}
|
13
|
+
.label-important { background-color: $errorText; }
|
14
|
+
.label-warning { background-color: $orange; }
|
15
|
+
.label-success { background-color: $successText; }
|
16
|
+
.label-info { background-color: $infoText; }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//
|
2
|
+
// Layouts
|
3
|
+
// Fixed-width and fluid (with sidebar) layouts
|
4
|
+
// --------------------------------------------
|
5
|
+
|
6
|
+
|
7
|
+
// Container (centered, fixed-width layouts)
|
8
|
+
.container {
|
9
|
+
@include container-fixed();
|
10
|
+
}
|
11
|
+
|
12
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
13
|
+
.container-fluid {
|
14
|
+
padding-left: $gridGutterWidth;
|
15
|
+
padding-right: $gridGutterWidth;
|
16
|
+
@include clearfix();
|
17
|
+
}
|
@@ -1,40 +1,86 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
// Mixins.less
|
2
|
+
// Snippets of reusable CSS to develop faster and keep code readable
|
3
|
+
// -----------------------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
//
|
6
|
+
// UTILITY MIXINS
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
// Clearfix
|
10
|
+
// --------
|
11
|
+
// For clearing floats like a boss h5bp.com/q
|
7
12
|
@mixin clearfix() {
|
8
|
-
zoom: 1;
|
13
|
+
*zoom: 1;
|
9
14
|
&:before,
|
10
15
|
&:after {
|
11
16
|
display: table;
|
12
17
|
content: "";
|
13
|
-
zoom: 1;
|
14
18
|
}
|
15
19
|
&:after {
|
16
20
|
clear: both;
|
17
21
|
}
|
18
22
|
}
|
19
23
|
|
24
|
+
// Webkit-style focus
|
25
|
+
// ------------------
|
26
|
+
@mixin tab-focus() {
|
27
|
+
// Default
|
28
|
+
outline: thin dotted;
|
29
|
+
// Webkit
|
30
|
+
outline: 5px auto -webkit-focus-ring-color;
|
31
|
+
outline-offset: -2px;
|
32
|
+
}
|
33
|
+
|
20
34
|
// Center-align a block level element
|
35
|
+
// ----------------------------------
|
21
36
|
@mixin center-block() {
|
22
37
|
display: block;
|
23
38
|
margin-left: auto;
|
24
39
|
margin-right: auto;
|
25
40
|
}
|
26
41
|
|
42
|
+
// IE7 inline-block
|
43
|
+
// ----------------
|
44
|
+
@mixin ie7-inline-block() {
|
45
|
+
*display: inline; /* IE7 inline-block hack */
|
46
|
+
*zoom: 1;
|
47
|
+
}
|
48
|
+
|
49
|
+
// IE7 likes to collapse whitespace on either side of the inline-block elements.
|
50
|
+
// Ems because we're attempting to match the width of a space character. Left
|
51
|
+
// version is for form buttons, which typically come after other elements, and
|
52
|
+
// right version is for icons, which come before. Applying both is ok, but it will
|
53
|
+
// mean that space between those elements will be .6em (~2 space characters) in IE7,
|
54
|
+
// instead of the 1 space in other browsers.
|
55
|
+
@mixin ie7-restore-left-whitespace() {
|
56
|
+
*margin-left: .3em;
|
57
|
+
|
58
|
+
&:first-child {
|
59
|
+
*margin-left: 0;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
@mixin ie7-restore-right-whitespace() {
|
64
|
+
*margin-right: .3em;
|
65
|
+
|
66
|
+
&:last-child {
|
67
|
+
*margin-left: 0;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
27
71
|
// Sizing shortcuts
|
72
|
+
// -------------------------
|
28
73
|
@mixin size($height: 5px, $width: 5px) {
|
29
|
-
height: $height;
|
30
74
|
width: $width;
|
75
|
+
height: $height;
|
31
76
|
}
|
32
77
|
@mixin square($size: 5px) {
|
33
78
|
@include size($size, $size);
|
34
79
|
}
|
35
80
|
|
36
|
-
//
|
37
|
-
|
81
|
+
// Placeholder text
|
82
|
+
// -------------------------
|
83
|
+
@mixin placeholder($color: $placeholderText) {
|
38
84
|
:-moz-placeholder {
|
39
85
|
color: $color;
|
40
86
|
}
|
@@ -43,55 +89,174 @@
|
|
43
89
|
}
|
44
90
|
}
|
45
91
|
|
46
|
-
// Font Stacks
|
47
|
-
@mixin shorthand-font($weight: normal, $size: 14px, $lineHeight: 20px) {
|
48
|
-
font-size: $size;
|
49
|
-
font-weight: $weight;
|
50
|
-
line-height: $lineHeight;
|
51
|
-
}
|
52
|
-
@mixin sans-serif-font($weight: normal, $size: 14px, $lineHeight: 20px) {
|
53
|
-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
54
|
-
font-size: $size;
|
55
|
-
font-weight: $weight;
|
56
|
-
line-height: $lineHeight;
|
57
|
-
}
|
58
|
-
@mixin serif-font($weight: normal, $size: 14px, $lineHeight: 20px) {
|
59
|
-
font-family: "Georgia", Times New Roman, Times, serif;
|
60
|
-
font-size: $size;
|
61
|
-
font-weight: $weight;
|
62
|
-
line-height: $lineHeight;
|
63
|
-
}
|
64
|
-
@mixin monospace-font($weight: normal, $size: 12px, $lineHeight: 20px) {
|
65
|
-
font-family: "Monaco", Courier New, monospace;
|
66
|
-
font-size: $size;
|
67
|
-
font-weight: $weight;
|
68
|
-
line-height: $lineHeight;
|
69
|
-
}
|
70
92
|
|
71
|
-
|
72
|
-
|
73
|
-
|
93
|
+
|
94
|
+
// FONTS
|
95
|
+
// --------------------------------------------------
|
96
|
+
|
97
|
+
@mixin font-family-serif() {
|
98
|
+
font-family: Georgia, "Times New Roman", Times, serif;
|
99
|
+
}
|
100
|
+
@mixin font-family-sans-serif() {
|
101
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
102
|
+
}
|
103
|
+
@mixin font-family-monospace() {
|
104
|
+
font-family: Menlo, Monaco, "Courier New", monospace;
|
105
|
+
}
|
106
|
+
@mixin font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
107
|
+
font-size: $size;
|
108
|
+
font-weight: $weight;
|
109
|
+
line-height: $lineHeight;
|
110
|
+
}
|
111
|
+
@mixin font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
112
|
+
@include font-family-serif();
|
113
|
+
@include font-shorthand($size, $weight, $lineHeight);
|
114
|
+
}
|
115
|
+
@mixin font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
116
|
+
@include font-family-sans-serif();
|
117
|
+
@include font-shorthand($size, $weight, $lineHeight);
|
118
|
+
}
|
119
|
+
@mixin monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
120
|
+
@include font-family-monospace();
|
121
|
+
@include font-shorthand($size, $weight, $lineHeight);
|
122
|
+
}
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
// GRID SYSTEM
|
127
|
+
// --------------------------------------------------
|
128
|
+
|
129
|
+
// Site container
|
130
|
+
// -------------------------
|
131
|
+
@mixin container-fixed() {
|
132
|
+
width: $gridRowWidth;
|
74
133
|
margin-left: auto;
|
75
134
|
margin-right: auto;
|
76
135
|
@include clearfix();
|
77
136
|
}
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
@mixin
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
@
|
94
|
-
|
137
|
+
|
138
|
+
// Le grid system
|
139
|
+
// -------------------------
|
140
|
+
// Setup the mixins to be used
|
141
|
+
@mixin gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
142
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
143
|
+
}
|
144
|
+
@mixin gridSystem-offset($gridColumnWidth, $gridGutterWidth, $columns) {
|
145
|
+
margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)) + ($gridGutterWidth * 2);
|
146
|
+
}
|
147
|
+
@mixin gridSystem-gridColumn($gridGutterWidth) {
|
148
|
+
float: left;
|
149
|
+
margin-left: $gridGutterWidth;
|
150
|
+
}
|
151
|
+
// Take these values and mixins, and make 'em do their thang
|
152
|
+
@mixin gridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
153
|
+
// Row surrounds the columns
|
154
|
+
.row {
|
155
|
+
margin-left: $gridGutterWidth * -1;
|
156
|
+
@include clearfix();
|
157
|
+
}
|
158
|
+
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
|
159
|
+
[class*="span"] {
|
160
|
+
@include gridSystem-gridColumn($gridGutterWidth);
|
161
|
+
}
|
162
|
+
// Default columns
|
163
|
+
.span1 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1); }
|
164
|
+
.span2 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2); }
|
165
|
+
.span3 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3); }
|
166
|
+
.span4 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4); }
|
167
|
+
.span5 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5); }
|
168
|
+
.span6 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6); }
|
169
|
+
.span7 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7); }
|
170
|
+
.span8 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8); }
|
171
|
+
.span9 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9); }
|
172
|
+
.span10 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10); }
|
173
|
+
.span11 { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11); }
|
174
|
+
.span12,
|
175
|
+
.container { @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12); }
|
176
|
+
// Offset column options
|
177
|
+
.offset1 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 1); }
|
178
|
+
.offset2 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 2); }
|
179
|
+
.offset3 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 3); }
|
180
|
+
.offset4 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 4); }
|
181
|
+
.offset5 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 5); }
|
182
|
+
.offset6 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 6); }
|
183
|
+
.offset7 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 7); }
|
184
|
+
.offset8 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 8); }
|
185
|
+
.offset9 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 9); }
|
186
|
+
.offset10 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 10); }
|
187
|
+
.offset11 { @include gridSystem-offset($gridColumnWidth, $gridGutterWidth, 11); }
|
188
|
+
}
|
189
|
+
|
190
|
+
// Fluid grid system
|
191
|
+
// -------------------------
|
192
|
+
// Setup the mixins to be used
|
193
|
+
@mixin fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns) {
|
194
|
+
width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
|
195
|
+
}
|
196
|
+
@mixin fluidGridSystem-gridColumn($fluidGridGutterWidth) {
|
197
|
+
float: left;
|
198
|
+
margin-left: $fluidGridGutterWidth;
|
199
|
+
}
|
200
|
+
// Take these values and mixins, and make 'em do their thang
|
201
|
+
@mixin fluidGridSystem-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
202
|
+
// Row surrounds the columns
|
203
|
+
.row-fluid {
|
204
|
+
width: 100%;
|
205
|
+
@include clearfix();
|
206
|
+
|
207
|
+
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks $dhg)
|
208
|
+
> [class*="span"] {
|
209
|
+
@include fluidGridSystem-gridColumn($fluidGridGutterWidth);
|
210
|
+
}
|
211
|
+
> [class*="span"]:first-child {
|
212
|
+
margin-left: 0;
|
213
|
+
}
|
214
|
+
// Default columns
|
215
|
+
.span1 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 1); }
|
216
|
+
.span2 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 2); }
|
217
|
+
.span3 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 3); }
|
218
|
+
.span4 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 4); }
|
219
|
+
.span5 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 5); }
|
220
|
+
.span6 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 6); }
|
221
|
+
.span7 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 7); }
|
222
|
+
.span8 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 8); }
|
223
|
+
.span9 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 9); }
|
224
|
+
.span10 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 10); }
|
225
|
+
.span11 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 11); }
|
226
|
+
.span12 { @include fluidGridSystem-columns($fluidGridGutterWidth, $fluidGridColumnWidth, 12); }
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
// Input grid system
|
233
|
+
// -------------------------
|
234
|
+
@mixin inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
235
|
+
width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 10;
|
236
|
+
}
|
237
|
+
@mixin inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
238
|
+
input,
|
239
|
+
textarea,
|
240
|
+
.uneditable-input {
|
241
|
+
&.span1 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 1); }
|
242
|
+
&.span2 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 2); }
|
243
|
+
&.span3 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 3); }
|
244
|
+
&.span4 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 4); }
|
245
|
+
&.span5 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 5); }
|
246
|
+
&.span6 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 6); }
|
247
|
+
&.span7 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 7); }
|
248
|
+
&.span8 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 8); }
|
249
|
+
&.span9 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 9); }
|
250
|
+
&.span10 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 10); }
|
251
|
+
&.span11 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 11); }
|
252
|
+
&.span12 { @include inputGridSystem-inputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, 12); }
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
// CSS3 PROPERTIES
|
259
|
+
// --------------------------------------------------
|
95
260
|
|
96
261
|
// Border Radius
|
97
262
|
@mixin border-radius($radius: 5px) {
|
@@ -109,22 +274,91 @@
|
|
109
274
|
|
110
275
|
// Transitions
|
111
276
|
@mixin transition($transition) {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
277
|
+
-webkit-transition: $transition;
|
278
|
+
-moz-transition: $transition;
|
279
|
+
-ms-transition: $transition;
|
280
|
+
-o-transition: $transition;
|
281
|
+
transition: $transition;
|
282
|
+
}
|
283
|
+
|
284
|
+
// Transformations
|
285
|
+
@mixin rotate($degrees) {
|
286
|
+
-webkit-transform: rotate($degrees);
|
287
|
+
-moz-transform: rotate($degrees);
|
288
|
+
-ms-transform: rotate($degrees);
|
289
|
+
-o-transform: rotate($degrees);
|
290
|
+
transform: rotate($degrees);
|
291
|
+
}
|
292
|
+
@mixin scale($ratio) {
|
293
|
+
-webkit-transform: scale($ratio);
|
294
|
+
-moz-transform: scale($ratio);
|
295
|
+
-ms-transform: scale($ratio);
|
296
|
+
-o-transform: scale($ratio);
|
297
|
+
transform: scale($ratio);
|
298
|
+
}
|
299
|
+
@mixin translate($x: 0, $y: 0) {
|
300
|
+
-webkit-transform: translate($x, $y);
|
301
|
+
-moz-transform: translate($x, $y);
|
302
|
+
-ms-transform: translate($x, $y);
|
303
|
+
-o-transform: translate($x, $y);
|
304
|
+
transform: translate($x, $y);
|
305
|
+
}
|
306
|
+
@mixin skew($x: 0, $y: 0) {
|
307
|
+
-webkit-transform: translate($x, $y);
|
308
|
+
-moz-transform: translate($x, $y);
|
309
|
+
-ms-transform: translate($x, $y);
|
310
|
+
-o-transform: translate($x, $y);
|
311
|
+
transform: translate($x, $y);
|
312
|
+
}
|
313
|
+
@mixin skew($x: 0, $y: 0) {
|
314
|
+
-webkit-transform: skew($x, $y);
|
315
|
+
-moz-transform: skew($x, $y);
|
316
|
+
-ms-transform: skew($x, $y);
|
317
|
+
-o-transform: skew($x, $y);
|
318
|
+
transform: skew($x, $y);
|
117
319
|
}
|
118
320
|
|
119
321
|
// Background clipping
|
322
|
+
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
120
323
|
@mixin background-clip($clip) {
|
121
324
|
-webkit-background-clip: $clip;
|
122
325
|
-moz-background-clip: $clip;
|
123
326
|
background-clip: $clip;
|
124
327
|
}
|
125
328
|
|
329
|
+
// Background sizing
|
330
|
+
@mixin background-size($size){
|
331
|
+
-webkit-background-size: $size;
|
332
|
+
-moz-background-size: $size;
|
333
|
+
-o-background-size: $size;
|
334
|
+
background-size: $size;
|
335
|
+
}
|
336
|
+
|
337
|
+
|
338
|
+
// Box sizing
|
339
|
+
@mixin box-sizing($boxmodel) {
|
340
|
+
-webkit-box-sizing: $boxmodel;
|
341
|
+
-moz-box-sizing: $boxmodel;
|
342
|
+
box-sizing: $boxmodel;
|
343
|
+
}
|
344
|
+
|
345
|
+
// User select
|
346
|
+
// For selecting text on the page
|
347
|
+
@mixin user-select($select) {
|
348
|
+
-webkit-user-select: $select;
|
349
|
+
-moz-user-select: $select;
|
350
|
+
-o-user-select: $select;
|
351
|
+
user-select: $select;
|
352
|
+
}
|
353
|
+
|
354
|
+
// Resize anything
|
355
|
+
@mixin resizable($direction: both) {
|
356
|
+
resize: $direction; // Options: horizontal, vertical, both
|
357
|
+
overflow: auto; // Safari fix
|
358
|
+
}
|
359
|
+
|
126
360
|
// CSS3 Content Columns
|
127
|
-
@mixin content-columns($columnCount, $columnGap:
|
361
|
+
@mixin content-columns($columnCount, $columnGap: $gridColumnGutter) {
|
128
362
|
-webkit-column-count: $columnCount;
|
129
363
|
-moz-column-count: $columnCount;
|
130
364
|
column-count: $columnCount;
|
@@ -133,84 +367,155 @@
|
|
133
367
|
column-gap: $columnGap;
|
134
368
|
}
|
135
369
|
|
136
|
-
//
|
137
|
-
@mixin
|
138
|
-
|
139
|
-
|
370
|
+
// Opacity
|
371
|
+
@mixin opacity($opacity: 100) {
|
372
|
+
opacity: $opacity / 100;
|
373
|
+
filter: alpha(opacity=$opacity);
|
140
374
|
}
|
141
375
|
|
376
|
+
|
377
|
+
|
378
|
+
// BACKGROUNDS
|
379
|
+
// --------------------------------------------------
|
380
|
+
|
142
381
|
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
143
|
-
@mixin background
|
144
|
-
|
145
|
-
}
|
146
|
-
@mixin border
|
147
|
-
|
148
|
-
|
149
|
-
}
|
382
|
+
@mixin translucent-background($color: $white, $alpha: 1) {
|
383
|
+
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
384
|
+
}
|
385
|
+
@mixin translucent-border($color: $white, $alpha: 1) {
|
386
|
+
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
387
|
+
@include background-clip(padding-box);
|
388
|
+
}
|
150
389
|
|
151
|
-
// Gradient Bar Colors for buttons and
|
390
|
+
// Gradient Bar Colors for buttons and alerts
|
152
391
|
@mixin gradientBar($primaryColor, $secondaryColor) {
|
153
|
-
@include vertical
|
154
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
392
|
+
@include gradient-vertical($primaryColor, $secondaryColor);
|
155
393
|
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
|
156
394
|
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
157
395
|
}
|
158
396
|
|
159
397
|
// Gradients
|
160
|
-
@mixin horizontal
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
398
|
+
@mixin gradient-horizontal($startColor: #555, $endColor: #333) {
|
399
|
+
background-color: $endColor;
|
400
|
+
background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
|
401
|
+
background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
|
402
|
+
background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
|
403
|
+
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
404
|
+
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
405
|
+
background-image: linear-gradient(left, $startColor, $endColor); // Le standard
|
406
|
+
background-repeat: repeat-x;
|
407
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{ie-hex-str($startColor)}, endColorstr=#{ie-hex-str($endColor)}, GradientType=1); // IE9 and down
|
408
|
+
}
|
409
|
+
@mixin gradient-vertical($startColor: #555, $endColor: #333) {
|
410
|
+
background-color: mix($startColor, $endColor, 60%);
|
411
|
+
background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
|
412
|
+
background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
|
413
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
|
414
|
+
background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
415
|
+
background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
|
416
|
+
background-image: linear-gradient(top, $startColor, $endColor); // The standard
|
417
|
+
background-repeat: repeat-x;
|
418
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{ie-hex-str($startColor)}, endColorstr=#{ie-hex-str($endColor)}, GradientType=0); // IE9 and down
|
419
|
+
}
|
420
|
+
@mixin gradient-directional($startColor: #555, $endColor: #333, $deg: 45deg) {
|
421
|
+
background-color: $endColor;
|
422
|
+
background-repeat: repeat-x;
|
423
|
+
background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
|
424
|
+
background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
|
425
|
+
background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
426
|
+
background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
|
427
|
+
background-image: linear-gradient($deg, $startColor, $endColor); // The standard
|
428
|
+
}
|
429
|
+
@mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
430
|
+
background-color: mix($midColor, $endColor, 80%);
|
431
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
|
432
|
+
background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
433
|
+
background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
|
434
|
+
background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
435
|
+
background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
436
|
+
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
|
437
|
+
background-repeat: no-repeat;
|
438
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{ie-hex-str($startColor)}, endColorstr=#{ie-hex-str($endColor)}, GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
439
|
+
}
|
440
|
+
@mixin gradient-radial($innerColor: #555, $outerColor: #333) {
|
441
|
+
background-color: $outerColor;
|
442
|
+
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($innerColor), to($outerColor));
|
443
|
+
background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor);
|
444
|
+
background-image: -moz-radial-gradient(circle, $innerColor, $outerColor);
|
445
|
+
background-image: -ms-radial-gradient(circle, $innerColor, $outerColor);
|
446
|
+
background-repeat: no-repeat;
|
447
|
+
// Opera cannot do radial gradients yet
|
448
|
+
}
|
449
|
+
@mixin gradient-striped($color, $angle: -45deg) {
|
450
|
+
background-color: $color;
|
451
|
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
|
452
|
+
background-image: -webkit-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);
|
453
|
+
background-image: -moz-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);
|
454
|
+
background-image: -ms-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);
|
455
|
+
background-image: -o-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);
|
456
|
+
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);
|
457
|
+
}
|
205
458
|
// Reset filters for IE
|
206
459
|
@mixin reset-filter() {
|
207
460
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
208
461
|
}
|
209
462
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
463
|
+
|
464
|
+
// Mixin for generating button backgrounds
|
465
|
+
// ---------------------------------------
|
466
|
+
@mixin buttonBackground($startColor, $endColor) {
|
467
|
+
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
468
|
+
@include gradientBar($startColor, $endColor);
|
469
|
+
@include reset-filter();
|
470
|
+
|
471
|
+
// in these cases the gradient won't cover the background, so we override
|
472
|
+
&:hover, &:active, &.active, &.disabled, &[disabled] {
|
473
|
+
background-color: $endColor;
|
474
|
+
}
|
475
|
+
|
476
|
+
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
477
|
+
&:active,
|
478
|
+
&.active {
|
479
|
+
background-color: darken($endColor, 10%) e("\9");
|
480
|
+
}
|
216
481
|
}
|
482
|
+
|
483
|
+
|
484
|
+
// COMPONENT MIXINS
|
485
|
+
// --------------------------------------------------
|
486
|
+
|
487
|
+
// POPOVER ARROWS
|
488
|
+
// -------------------------
|
489
|
+
// For tipsies and popovers
|
490
|
+
@mixin popoverArrow-top($arrowWidth: 5px) {
|
491
|
+
bottom: 0;
|
492
|
+
left: 50%;
|
493
|
+
margin-left: -$arrowWidth;
|
494
|
+
border-left: $arrowWidth solid transparent;
|
495
|
+
border-right: $arrowWidth solid transparent;
|
496
|
+
border-top: $arrowWidth solid $black;
|
497
|
+
}
|
498
|
+
@mixin popoverArrow-left($arrowWidth: 5px) {
|
499
|
+
top: 50%;
|
500
|
+
right: 0;
|
501
|
+
margin-top: -$arrowWidth;
|
502
|
+
border-top: $arrowWidth solid transparent;
|
503
|
+
border-bottom: $arrowWidth solid transparent;
|
504
|
+
border-left: $arrowWidth solid $black;
|
505
|
+
}
|
506
|
+
@mixin popoverArrow-bottom($arrowWidth: 5px) {
|
507
|
+
top: 0;
|
508
|
+
left: 50%;
|
509
|
+
margin-left: -$arrowWidth;
|
510
|
+
border-left: $arrowWidth solid transparent;
|
511
|
+
border-right: $arrowWidth solid transparent;
|
512
|
+
border-bottom: $arrowWidth solid $black;
|
513
|
+
}
|
514
|
+
@mixin popoverArrow-right($arrowWidth: 5px) {
|
515
|
+
top: 50%;
|
516
|
+
left: 0;
|
517
|
+
margin-top: -$arrowWidth;
|
518
|
+
border-top: $arrowWidth solid transparent;
|
519
|
+
border-bottom: $arrowWidth solid transparent;
|
520
|
+
border-right: $arrowWidth solid $black;
|
521
|
+
}
|