motorized-bootstrap 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/README.rdoc +29 -0
- data/Rakefile +3 -0
- data/app/assets/stylesheets/adaptive.scss +57 -0
- data/app/assets/stylesheets/bootstrap.css.scss +23 -0
- data/app/assets/stylesheets/forms.scss +387 -0
- data/app/assets/stylesheets/patterns.scss +812 -0
- data/app/assets/stylesheets/preboot.scss +276 -0
- data/app/assets/stylesheets/reset.scss +136 -0
- data/app/assets/stylesheets/scaffolding.scss +110 -0
- data/app/assets/stylesheets/tables.scss +148 -0
- data/app/assets/stylesheets/type.scss +188 -0
- data/lib/motorized-bootstrap.rb +19 -0
- data/lib/motorized-bootstrap/engine.rb +6 -0
- data/lib/motorized-bootstrap/version.rb +5 -0
- data/motorized-bootstrap.gemspec +20 -0
- metadata +92 -0
@@ -0,0 +1,276 @@
|
|
1
|
+
/* Preboot.less
|
2
|
+
* Variables and mixins to pre-ignite any new web development project
|
3
|
+
* ------------------------------------------------------------------ */
|
4
|
+
|
5
|
+
|
6
|
+
// VARIABLES
|
7
|
+
// ---------
|
8
|
+
|
9
|
+
// Links
|
10
|
+
$linkColor: #0069d6;
|
11
|
+
$linkColorHover: darken($linkColor, 10);
|
12
|
+
|
13
|
+
// Grays
|
14
|
+
$black: #000;
|
15
|
+
$grayDark: lighten($black, 25%);
|
16
|
+
$gray: lighten($black, 50%);
|
17
|
+
$grayLight: lighten($black, 75%);
|
18
|
+
$grayLighter: lighten($black, 90%);
|
19
|
+
$white: #fff;
|
20
|
+
|
21
|
+
// Accent Colors
|
22
|
+
$blue: #049CDB;
|
23
|
+
$blueDark: #0064CD;
|
24
|
+
$green: #46a546;
|
25
|
+
$red: #9d261d;
|
26
|
+
$yellow: #ffc40d;
|
27
|
+
$orange: #f89406;
|
28
|
+
$pink: #c3325f;
|
29
|
+
$purple: #7a43b6;
|
30
|
+
|
31
|
+
// Baseline grid
|
32
|
+
$basefont: 13px;
|
33
|
+
$baseline: 18px;
|
34
|
+
|
35
|
+
// Griditude
|
36
|
+
$gridColumns: 16;
|
37
|
+
$gridColumnWidth: 40px;
|
38
|
+
$gridGutterWidth: 20px;
|
39
|
+
$extraSpace: ($gridGutterWidth * 2); // For our grid calculations
|
40
|
+
$siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
41
|
+
|
42
|
+
// Color Scheme
|
43
|
+
$baseColor: $blue; // Set a base color
|
44
|
+
$complement: adjust-hue($baseColor, 180); // Determine a complementary color
|
45
|
+
$split1: adjust-hue($baseColor, 158); // Split complements
|
46
|
+
$split2: adjust-hue($baseColor, -158);
|
47
|
+
$triad1: adjust-hue($baseColor, 135); // Triads colors
|
48
|
+
$triad2: adjust-hue($baseColor, -135);
|
49
|
+
$tetra1: adjust-hue($baseColor, 90); // Tetra colors
|
50
|
+
$tetra2: adjust-hue($baseColor, -90);
|
51
|
+
$analog1: adjust-hue($baseColor, 22); // Analogs colors
|
52
|
+
$analog2: adjust-hue($baseColor, -22);
|
53
|
+
|
54
|
+
|
55
|
+
// MIXINS
|
56
|
+
// ------
|
57
|
+
|
58
|
+
// Clearfix for clearing floats like a boss h5bp.com/q
|
59
|
+
.clearfix {
|
60
|
+
zoom: 1;
|
61
|
+
&:before, &:after {
|
62
|
+
display: table;
|
63
|
+
content: "";
|
64
|
+
}
|
65
|
+
&:after {
|
66
|
+
clear: both;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
// Center-align a block level element
|
71
|
+
@mixin center-block {
|
72
|
+
display: block;
|
73
|
+
margin: 0 auto;
|
74
|
+
}
|
75
|
+
|
76
|
+
// Sizing shortcuts
|
77
|
+
@mixin size($height: 5px, $width: 5px) {
|
78
|
+
height: $height;
|
79
|
+
width: $width;
|
80
|
+
}
|
81
|
+
@mixin square($size: 5px) {
|
82
|
+
@include size($size, $size);
|
83
|
+
}
|
84
|
+
|
85
|
+
// Input placeholder text
|
86
|
+
@mixin placeholder($color: $grayLight) {
|
87
|
+
:-moz-placeholder {
|
88
|
+
color: $color;
|
89
|
+
}
|
90
|
+
::-webkit-input-placeholder {
|
91
|
+
color: $color;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
// Font Stacks
|
96
|
+
@mixin font-shorthand($weight: normal, $size: 14px, $lineHeight: 20px) {
|
97
|
+
font-size: $size;
|
98
|
+
font-weight: $weight;
|
99
|
+
line-height: $lineHeight;
|
100
|
+
}
|
101
|
+
|
102
|
+
@mixin font-sans-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
|
103
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
104
|
+
font-size: $size;
|
105
|
+
font-weight: $weight;
|
106
|
+
line-height: $lineHeight;
|
107
|
+
}
|
108
|
+
|
109
|
+
@mixin font-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
|
110
|
+
font-family: "Georgia", Times New Roman, Times, serif;
|
111
|
+
font-size: $size;
|
112
|
+
font-weight: $weight;
|
113
|
+
line-height: $lineHeight;
|
114
|
+
}
|
115
|
+
|
116
|
+
@mixin font-monospace($weight: normal, $size: 12px, $lineHeight: 20px) {
|
117
|
+
font-family: "Monaco", Courier New, monospace;
|
118
|
+
font-size: $size;
|
119
|
+
font-weight: $weight;
|
120
|
+
line-height: $lineHeight;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Grid System
|
124
|
+
.container {
|
125
|
+
width: $siteWidth;
|
126
|
+
margin: 0 auto;
|
127
|
+
@extend .clearfix;
|
128
|
+
}
|
129
|
+
@mixin columns($columnSpan: 1) {
|
130
|
+
width: ($gridColumnWidth * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1));
|
131
|
+
}
|
132
|
+
@mixin offset($columnOffset: 1) {
|
133
|
+
margin-left: ($gridColumnWidth * $columnOffset) + ($gridGutterWidth * ($columnOffset - 1)) + $extraSpace;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Border Radius
|
137
|
+
@mixin border-radius($radius: 5px) {
|
138
|
+
-webkit-border-radius: $radius;
|
139
|
+
-moz-border-radius: $radius;
|
140
|
+
border-radius: $radius;
|
141
|
+
}
|
142
|
+
|
143
|
+
// Drop shadows
|
144
|
+
@mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
|
145
|
+
-webkit-box-shadow: $shadow;
|
146
|
+
-moz-box-shadow: $shadow;
|
147
|
+
box-shadow: $shadow;
|
148
|
+
}
|
149
|
+
|
150
|
+
// Transitions
|
151
|
+
@mixin transition($transition) {
|
152
|
+
-webkit-transition: $transition;
|
153
|
+
-moz-transition: $transition;
|
154
|
+
transition: $transition;
|
155
|
+
}
|
156
|
+
|
157
|
+
// Background clipping
|
158
|
+
@mixin background-clip($clip) {
|
159
|
+
-webkit-background-clip: $clip;
|
160
|
+
-moz-background-clip: $clip;
|
161
|
+
background-clip: $clip;
|
162
|
+
}
|
163
|
+
|
164
|
+
// CSS3 Content Columns
|
165
|
+
@mixin content-columns($columnCount, $columnGap: 20px) {
|
166
|
+
-webkit-column-count: $columnCount;
|
167
|
+
-moz-column-count: $columnCount;
|
168
|
+
column-count: $columnCount;
|
169
|
+
-webkit-column-gap: $columnGap;
|
170
|
+
-moz-column-gap: $columnGap;
|
171
|
+
column-gap: $columnGap;
|
172
|
+
}
|
173
|
+
|
174
|
+
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
175
|
+
@mixin translucent-background($color: $white, $alpha: 1) {
|
176
|
+
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
177
|
+
}
|
178
|
+
|
179
|
+
@mixin translucent-border($color: $white, $alpha: 1) {
|
180
|
+
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
181
|
+
background-clip: padding-box;
|
182
|
+
}
|
183
|
+
|
184
|
+
// Gradients
|
185
|
+
@mixin gradient-horizontal ($startColor: #555, $endColor: #333) {
|
186
|
+
background-color: $endColor;
|
187
|
+
background-repeat: repeat-x;
|
188
|
+
background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
|
189
|
+
background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
|
190
|
+
background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
|
191
|
+
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
|
192
|
+
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
193
|
+
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
194
|
+
background-image: linear-gradient(left, $startColor, $endColor); // Le standard
|
195
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$startColor', endColorstr='$endColor', GradientType=1); // IE9 and down
|
196
|
+
}
|
197
|
+
@mixin gradient-vertical ($startColor: #555, $endColor: #333) {
|
198
|
+
background-color: $endColor;
|
199
|
+
background-repeat: repeat-x;
|
200
|
+
background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
|
201
|
+
background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
|
202
|
+
background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
|
203
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
|
204
|
+
background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
205
|
+
background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
|
206
|
+
background-image: linear-gradient(top, $startColor, $endColor); // The standard
|
207
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$startColor', endColorstr='$endColor', GradientType=0); // IE9 and down
|
208
|
+
}
|
209
|
+
@mixin gradient-directional ($startColor: #555, $endColor: #333, $deg: 45deg) {
|
210
|
+
background-color: $endColor;
|
211
|
+
background-repeat: repeat-x;
|
212
|
+
background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
|
213
|
+
background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
|
214
|
+
background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
215
|
+
background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
|
216
|
+
background-image: linear-gradient($deg, $startColor, $endColor); // The standard
|
217
|
+
}
|
218
|
+
@mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
219
|
+
background-color: $endColor;
|
220
|
+
background-repeat: no-repeat;
|
221
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
|
222
|
+
background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
223
|
+
background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
|
224
|
+
background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
225
|
+
background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
226
|
+
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
|
227
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$startColor', endColorstr='$endColor', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
228
|
+
}
|
229
|
+
|
230
|
+
// Gradient Bar Colors for buttons and allerts
|
231
|
+
@mixin gradientBar($primaryColor, $secondaryColor) {
|
232
|
+
@include gradient-vertical($primaryColor, $secondaryColor);
|
233
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
234
|
+
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
|
235
|
+
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
236
|
+
}
|
237
|
+
// Shared colors for buttons and alerts
|
238
|
+
.btn, .alert-message {
|
239
|
+
// Set text color
|
240
|
+
&.danger,
|
241
|
+
&.danger:hover,
|
242
|
+
&.error,
|
243
|
+
&.error:hover,
|
244
|
+
&.success,
|
245
|
+
&.success:hover,
|
246
|
+
&.info,
|
247
|
+
&.info:hover {
|
248
|
+
color: $white
|
249
|
+
}
|
250
|
+
// Danger and error appear as red
|
251
|
+
&.danger,
|
252
|
+
&.error {
|
253
|
+
@include gradientBar(#ee5f5b, #c43c35);
|
254
|
+
}
|
255
|
+
// Success appears as green
|
256
|
+
&.success {
|
257
|
+
@include gradientBar(#62c462, #57a957);
|
258
|
+
}
|
259
|
+
// Info appears as a neutral blue
|
260
|
+
&.info {
|
261
|
+
@include gradientBar(#5bc0de, #339bb9);
|
262
|
+
}
|
263
|
+
}
|
264
|
+
|
265
|
+
// Reset filters for IE
|
266
|
+
@mixin reset-filter {
|
267
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
268
|
+
}
|
269
|
+
|
270
|
+
// Opacity
|
271
|
+
@mixin opacity($opacity: 100) {
|
272
|
+
filter: alpha(opacity=$opacity);
|
273
|
+
-khtml-opacity: $opacity / 100;
|
274
|
+
-moz-opacity: $opacity / 100;
|
275
|
+
opacity: $opacity / 100;
|
276
|
+
}
|
@@ -0,0 +1,136 @@
|
|
1
|
+
/* Reset.less
|
2
|
+
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
|
3
|
+
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
4
|
+
|
5
|
+
|
6
|
+
// ERIC MEYER RESET
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
html, body { margin: 0; padding: 0; }
|
10
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
|
11
|
+
table { border-collapse: collapse; border-spacing: 0; }
|
12
|
+
ol, ul { list-style: none; }
|
13
|
+
q:before, q:after, blockquote:before, blockquote:after { content: ""; }
|
14
|
+
|
15
|
+
|
16
|
+
// Normalize.css
|
17
|
+
// Pulling in select resets form the normalize.css project
|
18
|
+
// --------------------------------------------------
|
19
|
+
|
20
|
+
// Display in IE6-9 and FF3
|
21
|
+
// -------------------------
|
22
|
+
// Source: http://github.com/necolas/normalize.css
|
23
|
+
html {
|
24
|
+
overflow-y: scroll;
|
25
|
+
font-size: 100%;
|
26
|
+
-webkit-text-size-adjust: 100%;
|
27
|
+
-ms-text-size-adjust: 100%;
|
28
|
+
}
|
29
|
+
// Focus states
|
30
|
+
a:focus {
|
31
|
+
outline: thin dotted;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Display in IE6-9 and FF3
|
35
|
+
// -------------------------
|
36
|
+
// Source: http://github.com/necolas/normalize.css
|
37
|
+
article,
|
38
|
+
aside,
|
39
|
+
details,
|
40
|
+
figcaption,
|
41
|
+
figure,
|
42
|
+
footer,
|
43
|
+
header,
|
44
|
+
hgroup,
|
45
|
+
nav,
|
46
|
+
section {
|
47
|
+
display: block;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Display block in IE6-9 and FF3
|
51
|
+
// -------------------------
|
52
|
+
// Source: http://github.com/necolas/normalize.css
|
53
|
+
audio,
|
54
|
+
canvas,
|
55
|
+
video {
|
56
|
+
display: inline-block;
|
57
|
+
*display: inline;
|
58
|
+
*zoom: 1;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Prevents modern browsers from displaying 'audio' without controls
|
62
|
+
// -------------------------
|
63
|
+
// Source: http://github.com/necolas/normalize.css
|
64
|
+
audio:not([controls]) {
|
65
|
+
display: none;
|
66
|
+
}
|
67
|
+
|
68
|
+
// Prevents sub and sup affecting line-height in all browsers
|
69
|
+
// -------------------------
|
70
|
+
// Source: http://github.com/necolas/normalize.css
|
71
|
+
sub,
|
72
|
+
sup {
|
73
|
+
font-size: 75%;
|
74
|
+
line-height: 0;
|
75
|
+
position: relative;
|
76
|
+
vertical-align: baseline;
|
77
|
+
}
|
78
|
+
sup {
|
79
|
+
top: -0.5em;
|
80
|
+
}
|
81
|
+
sub {
|
82
|
+
bottom: -0.25em;
|
83
|
+
}
|
84
|
+
|
85
|
+
// Img border in a's and image quality
|
86
|
+
// -------------------------
|
87
|
+
// Source: http://github.com/necolas/normalize.css
|
88
|
+
img {
|
89
|
+
border: 0;
|
90
|
+
-ms-interpolation-mode: bicubic;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Forms
|
94
|
+
// -------------------------
|
95
|
+
// Source: http://github.com/necolas/normalize.css
|
96
|
+
|
97
|
+
// Font size in all browsers, margin changes, misc consistency
|
98
|
+
button,
|
99
|
+
input,
|
100
|
+
select,
|
101
|
+
textarea {
|
102
|
+
font-size: 100%;
|
103
|
+
margin: 0;
|
104
|
+
vertical-align: baseline;
|
105
|
+
*vertical-align: middle;
|
106
|
+
}
|
107
|
+
button,
|
108
|
+
input {
|
109
|
+
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
|
110
|
+
*overflow: visible; // Inner spacing ie IE6/7
|
111
|
+
}
|
112
|
+
button::-moz-focus-inner,
|
113
|
+
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
|
114
|
+
border: 0;
|
115
|
+
padding: 0;
|
116
|
+
}
|
117
|
+
button,
|
118
|
+
input[type="button"],
|
119
|
+
input[type="reset"],
|
120
|
+
input[type="submit"] {
|
121
|
+
cursor: pointer; // Cursors on all buttons applied consistently
|
122
|
+
-webkit-appearance: button; // Style clicable inputs in iOS
|
123
|
+
}
|
124
|
+
input[type="search"] { // Appearance in Safari/Chrome
|
125
|
+
-webkit-appearance: textfield;
|
126
|
+
-webkit-box-sizing: content-box;
|
127
|
+
-moz-box-sizing: content-box;
|
128
|
+
box-sizing: content-box;
|
129
|
+
}
|
130
|
+
input[type="search"]::-webkit-search-decoration {
|
131
|
+
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
|
132
|
+
}
|
133
|
+
textarea {
|
134
|
+
overflow: auto; // Remove vertical scrollbar in IE6-9
|
135
|
+
vertical-align: top; // Readability and alignment cross-browser
|
136
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
/*
|
2
|
+
* Scaffolding
|
3
|
+
* Basic and global styles for generating a grid system, structural layout, and page templates
|
4
|
+
* ------------------------------------------------------------------------------------------- */
|
5
|
+
|
6
|
+
|
7
|
+
// GRID SYSTEM
|
8
|
+
// -----------
|
9
|
+
|
10
|
+
.row {
|
11
|
+
@extend .clearfix;
|
12
|
+
margin-left: -1 * $gridGutterWidth;
|
13
|
+
|
14
|
+
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
|
15
|
+
// Credit to $dhg for the idea
|
16
|
+
[class^="span"] {
|
17
|
+
display: inline;
|
18
|
+
float: left;
|
19
|
+
margin-left: $gridGutterWidth;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Default columns
|
23
|
+
.span1 { @include columns(1); }
|
24
|
+
.span2 { @include columns(2); }
|
25
|
+
.span3 { @include columns(3); }
|
26
|
+
.span4 { @include columns(4); }
|
27
|
+
.span5 { @include columns(5); }
|
28
|
+
.span6 { @include columns(6); }
|
29
|
+
.span7 { @include columns(7); }
|
30
|
+
.span8 { @include columns(8); }
|
31
|
+
.span9 { @include columns(9); }
|
32
|
+
.span10 { @include columns(10); }
|
33
|
+
.span11 { @include columns(11); }
|
34
|
+
.span12 { @include columns(12); }
|
35
|
+
.span13 { @include columns(13); }
|
36
|
+
.span14 { @include columns(14); }
|
37
|
+
.span15 { @include columns(15); }
|
38
|
+
.span16 { @include columns(16); }
|
39
|
+
|
40
|
+
// Offset column options
|
41
|
+
.offset1 { @include offset(1); }
|
42
|
+
.offset2 { @include offset(2); }
|
43
|
+
.offset3 { @include offset(3); }
|
44
|
+
.offset4 { @include offset(4); }
|
45
|
+
.offset5 { @include offset(5); }
|
46
|
+
.offset6 { @include offset(6); }
|
47
|
+
.offset7 { @include offset(7); }
|
48
|
+
.offset8 { @include offset(8); }
|
49
|
+
.offset9 { @include offset(9); }
|
50
|
+
.offset10 { @include offset(10); }
|
51
|
+
.offset11 { @include offset(11); }
|
52
|
+
.offset12 { @include offset(12); }
|
53
|
+
|
54
|
+
// Unique column sizes for 16-column grid
|
55
|
+
.span-one-third { width: 300px; }
|
56
|
+
.span-two-thirds { width: 620px; }
|
57
|
+
.offset-one-third { margin-left: 340px; }
|
58
|
+
.offset-two-thirds { margin-left: 660px; }
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
// STRUCTURAL LAYOUT
|
63
|
+
// -----------------
|
64
|
+
|
65
|
+
html, body {
|
66
|
+
background-color: #fff;
|
67
|
+
}
|
68
|
+
body {
|
69
|
+
margin: 0;
|
70
|
+
@include font-sans-serif(normal,$basefont,$baseline);
|
71
|
+
color: $gray;
|
72
|
+
}
|
73
|
+
|
74
|
+
// Container (centered, fixed-width layouts)
|
75
|
+
.container {
|
76
|
+
width: 940px;
|
77
|
+
margin: 0 auto;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
81
|
+
.container-fluid {
|
82
|
+
padding: 0 20px;
|
83
|
+
@extend .clearfix;
|
84
|
+
> .sidebar {
|
85
|
+
float: left;
|
86
|
+
width: 220px;
|
87
|
+
}
|
88
|
+
// TODO in v2: rename this and .popover .content to be more specific
|
89
|
+
> .content {
|
90
|
+
min-width: 700px;
|
91
|
+
max-width: 1180px;
|
92
|
+
margin-left: 240px;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
// BASE STYLES
|
98
|
+
// -----------
|
99
|
+
|
100
|
+
// Links
|
101
|
+
a {
|
102
|
+
color: $linkColor;
|
103
|
+
text-decoration: none;
|
104
|
+
line-height: inherit;
|
105
|
+
font-weight: inherit;
|
106
|
+
&:hover {
|
107
|
+
color: $linkColorHover;
|
108
|
+
text-decoration: underline;
|
109
|
+
}
|
110
|
+
}
|