jetpack-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,60 @@
1
+ // UNIVERSAL MIXINS
2
+ @mixin clearfix { &:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; overflow:hidden; } }
3
+
4
+ @mixin border-radius( $radius: 5px) {
5
+ -webkit-border-radius: $radius;
6
+ -moz-border-radius: $radius;
7
+ border-radius: $radius;
8
+ }
9
+
10
+ @mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
11
+ -webkit-box-shadow: $shadow;
12
+ -moz-box-shadow: $shadow;
13
+ box-shadow: $shadow;
14
+ }
15
+
16
+ @mixin font( $size: $base_size, $stack: $sans, $weight: $base_weight, $line_height: $baseline ) {
17
+ font-size: $size;
18
+ font-family: $stack;
19
+ font-weight: $weight;
20
+ line-height: $line_height;
21
+ }
22
+
23
+ @mixin gradient($startColor: #555, $endColor: #333) {
24
+ background-color: $endColor;
25
+ background-repeat: repeat-x;
26
+ background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
27
+ background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
28
+ background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
29
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
30
+ background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
31
+ background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
32
+ background-image: linear-gradient(top, $startColor, $endColor); // The standard
33
+ }
34
+
35
+ @mixin buttonize($primaryColor, $secondaryColor) {
36
+ @include gradient($primaryColor, $secondaryColor);
37
+ text-shadow: 0 1px 0 lighten($secondaryColor, 15%);
38
+ border: 1px solid;
39
+ border-color: darken($primaryColor, 10%) darken($secondaryColor, 8%) darken($secondaryColor, 20%);
40
+ }
41
+
42
+ @mixin opacity($opacity: 100) {
43
+ filter: alpha(opacity=$opacity);
44
+ -khtml-opacity: $opacity / 100;
45
+ -moz-opacity: $opacity / 100;
46
+ opacity: $opacity / 100;
47
+ }
48
+
49
+ @mixin transition($transition) {
50
+ -webkit-transition: $transition;
51
+ -moz-transition: $transition;
52
+ transition: $transition;
53
+ }
54
+
55
+ // Background clipping
56
+ @mixin background-clip($clip) {
57
+ -webkit-background-clip: $clip;
58
+ -moz-background-clip: $clip;
59
+ background-clip: $clip;
60
+ }
@@ -0,0 +1,53 @@
1
+ /* Navigation +
2
+ * Based on Twitter Bootstrap
3
+ * ---------------------------------------------------------------------------------------- */
4
+
5
+ .tab_container div, .pill_container div {
6
+ display: none;
7
+ &.active { display: block; }
8
+ }
9
+
10
+ // Common tab and pill styles
11
+ .tabs, .pills { margin: 0 0 20px; padding: 0; @include clearfix();
12
+ li {
13
+ display: inline;
14
+ a { float: left; width: auto; }
15
+ }
16
+ }
17
+
18
+ // Basic Tabs
19
+ .tabs {
20
+ width: 100%; border-bottom: 1px solid $light2;
21
+ li {
22
+ a {
23
+ margin: 0 0 -1px 2px; padding: 0 15px; line-height: ($baseline * 2) - 1; @include border-radius(3px 3px 0 0);
24
+ &:hover { background: $light1; border-bottom: 1px solid $light2; color: $dark2; text-decoration: none; }
25
+ &.active { background: $color1; padding: 0 14px; border: 1px solid $light2; border-bottom: 0; color: $dark1; text-decoration: none; }
26
+ }
27
+ }
28
+ }
29
+
30
+ // Basic pill nav
31
+ .pills {
32
+ li {
33
+ a {
34
+ margin: 5px 3px 5px 0; padding: 0 15px; text-shadow: 0 1px 1px $white; line-height: 30px; @include border-radius(15px);
35
+ &:hover { background: $light1; color: $dark2; text-decoration: none; text-shadow: 0 1px $white; }
36
+ &.active { background: $color1; color: $dark2; text-shadow: 0 1px lighten( $color1, 15% ); text-decoration: none; }
37
+ }
38
+ }
39
+ }
40
+
41
+ // PAGINATION
42
+ .pagination { height: $baseline * 2; margin: $baseline 0;
43
+ ul {
44
+ float: left; margin: 0; border: 1px solid $light2; @include border-radius(3px); @include box-shadow(0 1px 2px rgba(0,0,0,.05)); clear: both;
45
+ li {
46
+ display: inline;
47
+ a { float: left; padding: 0 14px; line-height: ($baseline * 2) - 2; border-right: 1px solid; border-right-color: $light2; text-decoration: none; }
48
+ a:hover, &.active a { background-color: $color1; color: $white; }
49
+ &.disabled a, &.disabled a:hover { background-color: transparent; color: $light2; }
50
+ &.next a { border: 0; }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,33 @@
1
+ // COLOR DEFINITIONS
2
+ $light1: #EAEBEC;
3
+ $light2: #9A9FA0;
4
+
5
+ $dark1: #3C3E40;
6
+ $dark2: #262728;
7
+
8
+ $color1: #F4B84D;
9
+ $color2: #E59013;
10
+
11
+ $alt1: #4E7DF2;
12
+ $alt2: #2C4A84;
13
+
14
+ $success1: #D7EDC3;
15
+ $success2: #68AF2F;
16
+
17
+ $notice1: #FFFD7D;
18
+ $notice2: #FFD939;
19
+
20
+ $error1: #FFDCDC;
21
+ $error2: #D64338;
22
+
23
+ $white: #FFFFFF;
24
+ $black: #000000;
25
+
26
+ // TYPOGRAPHY DEFINITIONS
27
+ $sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
28
+ $serif: "Georgia", "Times", "Times New Roman", serif;
29
+ $mono: "Monaco", "Andale Mono", "Courier New", monospace;
30
+
31
+ $base_size: 13px;
32
+ $base_weight: 400;
33
+ $baseline: 18px;
@@ -0,0 +1,535 @@
1
+ /*
2
+ * Resetize
3
+ * A mashup of "Normalize" and "Formalize".
4
+ * -----------------------------------------------------------------------------------------*/
5
+
6
+
7
+
8
+ /* Normalize.css +
9
+ * normalize.css 2011-08-31T22:02 UTC http://github.com/necolas/normalize.css
10
+ *
11
+ * with customizations to make it more "sassy" and more modular.
12
+ * ---------------------------------------------------------------------------------------- */
13
+
14
+ /* =============================================================================
15
+ HTML5 display definitions
16
+ ========================================================================== */
17
+
18
+ /*
19
+ * Corrects block display not defined in IE6/7/8/9 & FF3
20
+ */
21
+ article,
22
+ aside,
23
+ details,
24
+ figcaption,
25
+ figure,
26
+ footer,
27
+ header,
28
+ hgroup,
29
+ nav,
30
+ section {
31
+ display: block;
32
+ }
33
+
34
+ /*
35
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
36
+ */
37
+ audio,
38
+ canvas,
39
+ video {
40
+ display: inline-block;
41
+ *display: inline;
42
+ *zoom: 1;
43
+ }
44
+
45
+ /*
46
+ * Prevents modern browsers from displaying 'audio' without controls
47
+ */
48
+ audio:not([controls]) {
49
+ display: none;
50
+ }
51
+
52
+ /*
53
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
54
+ * Known issue: no IE6 support
55
+ */
56
+
57
+ [hidden] {
58
+ display: none;
59
+ }
60
+
61
+
62
+ /* =============================================================================
63
+ Base
64
+ ========================================================================== */
65
+
66
+ /*
67
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
68
+ * http://clagnut.com/blog/348/#c790
69
+ * 2. Keeps page centred in all browsers regardless of content height
70
+ * 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
71
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
72
+ */
73
+
74
+ html {
75
+ font-size: 100%; /* 1 */
76
+ overflow-y: scroll; /* 2 */
77
+ -webkit-text-size-adjust: 100%; /* 3 */
78
+ -ms-text-size-adjust: 100%; /* 3 */
79
+ }
80
+
81
+ /*
82
+ * Addresses margins handled incorrectly in IE6/7
83
+ */
84
+
85
+ body {
86
+ margin: 0;
87
+ }
88
+
89
+ /*
90
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
91
+ */
92
+
93
+ body,
94
+ button,
95
+ input,
96
+ select,
97
+ textarea {
98
+ font-family: sans-serif;
99
+ }
100
+
101
+
102
+ /* =============================================================================
103
+ Links
104
+ ========================================================================== */
105
+
106
+ a { color: $color1; text-decoration: none;
107
+ &:hover { text-decoration: underline; outline: 0; } // Improves readability when focused and also mouse hovered in all browsers
108
+ &:active { color: lighten( $color1, 10% ); }
109
+ &:visited { color: $color1; }
110
+ &:focus { outline: thin dotted;} // Addresses outline displayed oddly in Chrome
111
+ }
112
+
113
+ /* =============================================================================
114
+ Typography
115
+ ========================================================================== */
116
+
117
+ /*
118
+ * Addresses styling not present in IE7/8/9, S5, Chrome
119
+ */
120
+
121
+ abbr[title] {
122
+ border-bottom: 1px dotted;
123
+ }
124
+
125
+ /*
126
+ * Set address to not be italics by default.
127
+ */
128
+ address { font-style: inherit; }
129
+
130
+ /*
131
+ * Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
132
+ */
133
+
134
+ b,
135
+ strong {
136
+ font-weight: bold;
137
+ }
138
+
139
+ /*
140
+ * Addresses styling not present in S5, Chrome
141
+ */
142
+
143
+ dfn {
144
+ font-style: italic;
145
+ }
146
+
147
+ /*
148
+ * Addresses styling not present in IE6/7/8/9
149
+ */
150
+
151
+ mark {
152
+ background: #ff0;
153
+ color: #000;
154
+ }
155
+
156
+ /*
157
+ * Corrects font family set oddly in IE6, S4/5, Chrome
158
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
159
+ */
160
+
161
+ pre,
162
+ code,
163
+ kbd,
164
+ samp {
165
+ font-family: monospace, serif;
166
+ _font-family: 'courier new', monospace;
167
+ font-size: 1em;
168
+ }
169
+
170
+ /*
171
+ * Improves readability of pre-formatted text in all browsers
172
+ */
173
+
174
+ pre {
175
+ white-space: pre;
176
+ white-space: pre-wrap;
177
+ word-wrap: break-word;
178
+ }
179
+
180
+ /*
181
+ * 1. Addresses CSS quotes not supported in IE6/7
182
+ * 2. Addresses quote property not supported in S4
183
+ */
184
+
185
+ /* 1 */
186
+
187
+ q {
188
+ quotes: none;
189
+ }
190
+
191
+ /* 2 */
192
+
193
+ q:before,
194
+ q:after {
195
+ content: '';
196
+ content: none;
197
+ }
198
+
199
+ small {
200
+ font-size: 75%;
201
+ }
202
+
203
+ /*
204
+ * Prevents sub and sup affecting line-height in all browsers
205
+ * gist.github.com/413930
206
+ */
207
+
208
+ sub,
209
+ sup {
210
+ font-size: 75%;
211
+ line-height: 0;
212
+ position: relative;
213
+ vertical-align: baseline;
214
+ }
215
+
216
+ sup {
217
+ top: -0.5em;
218
+ }
219
+
220
+ sub {
221
+ bottom: -0.25em;
222
+ }
223
+
224
+
225
+ /* =============================================================================
226
+ Lists
227
+ ========================================================================== */
228
+
229
+ ul, ol { margin: 0; padding: 0; }
230
+ dd { margin: 0; }
231
+ nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; }
232
+
233
+
234
+ /* =============================================================================
235
+ Embedded content
236
+ ========================================================================== */
237
+
238
+ /*
239
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, F3
240
+ * 2. Improves image quality when scaled in IE7
241
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
242
+ */
243
+
244
+ img {
245
+ border: 0; /* 1 */
246
+ -ms-interpolation-mode: bicubic; /* 2 */
247
+ }
248
+
249
+ /*
250
+ * Corrects overflow displayed oddly in IE9
251
+ */
252
+
253
+ svg:not(:root) {
254
+ overflow: hidden;
255
+ }
256
+
257
+
258
+ /* =============================================================================
259
+ Figures
260
+ ========================================================================== */
261
+
262
+ /*
263
+ * Addresses margin not present in IE6/7/8/9, S5, O11
264
+ */
265
+
266
+ figure {
267
+ margin: 0;
268
+ }
269
+
270
+ /* =============================================================================
271
+ Tables
272
+ ========================================================================== */
273
+
274
+ /*
275
+ * Remove most spacing between table cells
276
+ */
277
+
278
+ table {
279
+ border-collapse: collapse;
280
+ border-spacing: 0;
281
+ }
282
+
283
+ /* Formalize.css
284
+ * with customizations and adaptations to make it more "sassy".
285
+ * ---------------------------------------------------------------------------------------- */
286
+
287
+
288
+ // UI Consistency for Form Elements
289
+ ::-moz-focus-inner {
290
+ border: 0;
291
+ padding: 0;
292
+ }
293
+
294
+ input[type="search"]::-webkit-search-decoration {
295
+ display: none;
296
+ }
297
+
298
+ input,
299
+ button,
300
+ select,
301
+ textarea {
302
+ margin: 0;
303
+ vertical-align: middle;
304
+ }
305
+
306
+ input[type="radio"],
307
+ input[type="checkbox"] {
308
+ position: relative;
309
+ vertical-align: top;
310
+ top: 2px;
311
+ /* IE8, IE9, IE10 */
312
+ top: 0\0;
313
+ /* IE7 */
314
+ *top: -3px;
315
+ }
316
+
317
+ /* iPad */
318
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 1024px) {
319
+ input[type="radio"],
320
+ input[type="checkbox"] {
321
+ vertical-align: baseline;
322
+ top: 2px;
323
+ }
324
+ }
325
+
326
+ /* iPhone 3 */
327
+ @media (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 480px) {
328
+ input[type="radio"],
329
+ input[type="checkbox"] {
330
+ vertical-align: baseline;
331
+ top: 0;
332
+ }
333
+ }
334
+
335
+ /* iPhone 4 */
336
+ @media (-webkit-min-device-pixel-ratio: 2) and (max-device-width: 480px) {
337
+ input[type="radio"],
338
+ input[type="checkbox"] {
339
+ vertical-align: baseline;
340
+ top: 0;
341
+ }
342
+ }
343
+
344
+ button,
345
+ input[type="reset"],
346
+ input[type="submit"],
347
+ input[type="button"] {
348
+ -webkit-appearance: none;
349
+ @include border-radius(4px);
350
+ -moz-background-clip: padding;
351
+ -webkit-background-clip: padding;
352
+ background-clip: padding-box;
353
+ @include buttonize( $white, $light1 );
354
+ cursor: pointer;
355
+ color: #333;
356
+ font: bold 12px/1.3 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif; //Helvetica Neue present, because it works better for line-height on buttons than Arial, on OS X.
357
+ outline: 0;
358
+ overflow: visible;
359
+ padding: 3px 10px;
360
+ text-shadow: #fff 0 1px 1px;
361
+ width: auto;
362
+ /* IE7 */
363
+ *padding-top: 2px;
364
+ *padding-bottom: 0px;
365
+ }
366
+
367
+ button {
368
+ /* IE7 */
369
+ *padding-top: 1px;
370
+ *padding-bottom: 1px;
371
+ }
372
+
373
+ textarea,
374
+ select,
375
+ input[type="date"],
376
+ input[type="datetime"],
377
+ input[type="datetime-local"],
378
+ input[type="email"],
379
+ input[type="month"],
380
+ input[type="number"],
381
+ input[type="password"],
382
+ input[type="search"],
383
+ input[type="tel"],
384
+ input[type="text"],
385
+ input[type="time"],
386
+ input[type="url"],
387
+ input[type="week"] {
388
+ -webkit-appearance: none;
389
+ @include border-radius(0);
390
+ -webkit-box-sizing: border-box;
391
+ -moz-box-sizing: border-box;
392
+ box-sizing: border-box;
393
+ -moz-background-clip: padding;
394
+ -webkit-background-clip: padding;
395
+ background-clip: padding-box;
396
+ background-color: #fff;
397
+ border: 1px solid;
398
+ border-color: #848484 #c1c1c1 #e1e1e1;
399
+ color: #000;
400
+ outline: 0;
401
+ padding: 4px 5px;
402
+ font-size: 13px;
403
+ font-family: Arial, 'Liberation Sans', FreeSans, sans-serif;
404
+ height: 2.1em;
405
+ /* IE7 */
406
+ *padding-top: 2px;
407
+ *padding-bottom: 1px;
408
+ *height: auto;
409
+ }
410
+
411
+ // Separate rule for Firefox. Separate rule for IE, too. Cannot stack with WebKit's.
412
+ ::-webkit-input-placeholder { color: #888; }
413
+ input:-moz-placeholder, textarea:-moz-placeholder { color: #888; }
414
+ input.placeholder_text, textarea.placeholder_text { color: #888; }
415
+
416
+ // Suppress red glow that Firefox adds to form fields by default, even when user is still typing.
417
+ :invalid { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
418
+
419
+ button:focus,
420
+ button:active,
421
+ input:focus,
422
+ input:active,
423
+ select:focus,
424
+ select:active,
425
+ textarea:focus,
426
+ textarea:active {
427
+ -moz-box-shadow: #06f 0 0 7px;
428
+ -webkit-box-shadow: #06f 0 0 7px;
429
+ box-shadow: #06f 0 0 7px;
430
+
431
+ /* for Opera */
432
+ z-index: 1;
433
+ }
434
+
435
+ input[type="file"]:focus,
436
+ input[type="file"]:active,
437
+ input[type="radio"]:focus,
438
+ input[type="radio"]:active,
439
+ input[type="checkbox"]:focus,
440
+ input[type="checkbox"]:active {
441
+ -moz-box-shadow: none;
442
+ -webkit-box-shadow: none;
443
+ box-shadow: none;
444
+ }
445
+
446
+ select[disabled],
447
+ textarea[disabled],
448
+ input[type="date"][disabled],
449
+ input[type="datetime"][disabled],
450
+ input[type="datetime-local"][disabled],
451
+ input[type="email"][disabled],
452
+ input[type="month"][disabled],
453
+ input[type="number"][disabled],
454
+ input[type="password"][disabled],
455
+ input[type="search"][disabled],
456
+ input[type="tel"][disabled],
457
+ input[type="text"][disabled],
458
+ input[type="time"][disabled],
459
+ input[type="url"][disabled],
460
+ input[type="week"][disabled] {
461
+ background-color: #eee;
462
+ }
463
+
464
+ button[disabled],
465
+ input[disabled],
466
+ select[disabled],
467
+ select[disabled] option,
468
+ select[disabled] optgroup,
469
+ textarea[disabled] {
470
+ -moz-box-shadow: none;
471
+ -webkit-box-shadow: none;
472
+ box-shadow: none;
473
+ -webkit-user-select: none;
474
+ -moz-user-select: none;
475
+ user-select: none;
476
+ color: #888;
477
+ cursor: default;
478
+ }
479
+
480
+ textarea,
481
+ select[size],
482
+ select[multiple] {
483
+ height: auto;
484
+ }
485
+
486
+ /* Tweaks for Safari + Chrome. */
487
+ @media (-webkit-min-device-pixel-ratio: 0) {
488
+ select {
489
+ background-image: url(../images/select_arrow.gif);
490
+ background-repeat: no-repeat;
491
+ background-position: right center;
492
+ padding-right: 20px;
493
+ }
494
+
495
+ select[size],
496
+ select[multiple] {
497
+ background-image: none;
498
+ padding: 0;
499
+ }
500
+
501
+ ::-webkit-validation-bubble-message {
502
+ box-shadow: rgba(0, 0, 0, 0.5) 0 0 5px;
503
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666), color-stop(1, #000));
504
+ border: 1px solid;
505
+ border-color: #747474 #5e5e5e #4f4f4f;
506
+ color: #fff;
507
+ font: 13px/17px 'Lucida Grande', Arial, 'Liberation Sans', FreeSans, sans-serif;
508
+ overflow: hidden;
509
+ padding: 15px 15px 17px;
510
+ text-shadow: #000 0 0 1px;
511
+ height: 16px;
512
+ }
513
+
514
+ ::-webkit-validation-bubble-arrow,
515
+ ::-webkit-validation-bubble-top-outer-arrow,
516
+ ::-webkit-validation-bubble-top-inner-arrow {
517
+ -webkit-box-shadow: none;
518
+ box-shadow: none;
519
+ background: #666;
520
+ border: 0;
521
+ }
522
+ }
523
+
524
+ textarea {
525
+ min-height: 40px;
526
+ overflow: auto;
527
+ resize: vertical;
528
+ width: 100%;
529
+ }
530
+
531
+ optgroup {
532
+ color: #000;
533
+ font-style: normal;
534
+ font-weight: normal;
535
+ }
@@ -0,0 +1,32 @@
1
+ /* Tables +
2
+ * Largely taken from Twitter Bootstrap v1.3,
3
+ * with customizations and adaptations to make it more "sassy".
4
+ * ---------------------------------------------------------------------------------------- */
5
+
6
+
7
+ // BASELINE STYLES
8
+ table {
9
+ width: 100%; margin-bottom: $baseline; padding: 0; border: 1px solid $light1;
10
+ border-collapse: separate; // Done so we can round those corners!
11
+ *border-collapse: collapse; /* IE7, collapse table to remove spacing */
12
+ @include border-radius(4px);
13
+ th, td { padding: 10px 10px 9px; line-height: $baseline; text-align: left; }
14
+ th { padding-top: 9px; font-weight: bold; vertical-align: middle; border-bottom: 1px solid $light1; }
15
+ td { vertical-align: top; }
16
+ th + th, td + td { border-left: 1px solid #ddd; }
17
+ tr + tr td { border-top: 1px solid #ddd; }
18
+ tbody tr:first-child td:first-child { @include border-radius(4px 0 0 0); }
19
+ tbody tr:first-child td:last-child { @include border-radius(0 4px 0 0); }
20
+ tbody tr:last-child td:first-child { @include border-radius(0 0 0 4px); }
21
+ tbody tr:last-child td:last-child { @include border-radius(0 0 4px 0); }
22
+ }
23
+
24
+
25
+ // ZEBRA-STRIPING
26
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
27
+ table.striped {
28
+ tbody {
29
+ tr:nth-child(odd) td { background-color: $light1; }
30
+ tr:hover td { background-color: darken( $light1, 5% ); }
31
+ }
32
+ }