compass.takitapart.framework 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,55 @@
1
+ The takitapart framework
2
+ ========================
3
+ A [Compass](http://compass-style.org) extension providing a semantic, responsive, and fluid framework.
4
+
5
+ Usage
6
+ -----
7
+ A sample webpage using most of the features is included in this repository (index.html).
8
+
9
+ This website is hosted here: http://takitapart.github.com/takitapart_framework/.
10
+
11
+ To install this extension, from the command line run:
12
+
13
+ gem install takitapart_framework
14
+
15
+ In your compass config.rb, include the framework:
16
+
17
+ require "takitapart_framework"
18
+
19
+ In your stylesheet, include the individual modules as desired.
20
+
21
+ @import "takitapart_framework/normalize";
22
+ @import "takitapart_framework/typography";
23
+ @import "takitapart_framework/grid";
24
+ @import "takitapart_framework/form";
25
+ @import "takitapart_framework/print";
26
+
27
+ I've also included a slightly modified version of the Golden Gridlet, adding in configuration
28
+ variables for custom columns.
29
+
30
+ Roadmap
31
+ -------
32
+ + Clean up configuation variables
33
+ + Complete forms
34
+ + Fix inconsistencies in vertical grid
35
+ + Browser compatibility
36
+ + Images
37
+
38
+ Attribution & Credits
39
+ ---------------------
40
+ The takitapart framework is largely adapted from Joni Korpi's fantastic
41
+ Golden Grid System.
42
+
43
+ Golden Grid System (1.0) <http://goldengridsystem.com/>
44
+ by Joni Korpi <http://jonikorpi.com/>
45
+ licensed under MIT <http://opensource.org/licenses/mit-license.php>
46
+
47
+ Portions also derived from:
48
+
49
+ Normalize.css is a project by Nicolas Gallagher (@necolas) and Jonathan Neal (@jon_neal).
50
+ http://necolas.github.com/normalize.css/
51
+
52
+ and
53
+
54
+ HTML5 Boilerplate
55
+ http://5bp.com
@@ -0,0 +1,3 @@
1
+ require 'compass'
2
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
3
+ Compass::Frameworks.register('takitapart', :path => extension_path)
@@ -0,0 +1 @@
1
+ // This is your framework's main stylesheet. Use it to import all default modules.
File without changes
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Base configuration stylesheet for the takitapart CSS framework.
3
+ * This module will be included by the other modules.
4
+ * These variables can be overridden in your site's stylesheets.
5
+ *
6
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
7
+ *
8
+ * See readme.md for details, licensing, and acknowledgments.
9
+ *
10
+ */
11
+
12
+ // Do not change these values here.
13
+ // Override these variables in your stylesheet above the @import directives.
14
+
15
+ // Base font-size in pixels.
16
+ $font-size: 16 !default;
17
+
18
+ // Base line-height.
19
+ $line: $font-size * 1.5 !default;
20
+ $em: $font-size * 1 !default;
21
+
22
+ // Number of columns.
23
+ $columns: 12 !default;
24
+
25
+ // Width of the outer margin, in percent.
26
+ $outer-margin: 5.55555% !default;
27
+
28
+ // Half width of the gutter, in em.
29
+ $half-gutter-width: #{($line/2)/$em}em !default;
30
+
@@ -0,0 +1,114 @@
1
+ /*
2
+ * A fluid, responsive-friendly form framework.
3
+ *
4
+ *
5
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
6
+ *
7
+ * See readme.md for details, licensing, and acknowledgments.
8
+ *
9
+ *
10
+ * Notes on use
11
+ * ------------
12
+ * + Wrap field elements with label elements.
13
+ *
14
+ */
15
+ @import "config";
16
+
17
+ @mixin field-width($field-id, $field-width: 100%) {
18
+ label[for="#{$field-id}"] { width: $field-width; }
19
+ }
20
+
21
+ @mixin field-width-grid($column-units: 1) {
22
+ width: gridsystem-width($column-units, $total-columns);
23
+ }
24
+
25
+ form {
26
+
27
+ -webkit-box-sizing: border-box;
28
+ -moz-box-sizing: border-box;
29
+ -ms-box-sizing: border-box;
30
+ box-sizing: border-box;
31
+
32
+ fieldset {
33
+
34
+ border: 0;
35
+ margin: 0;
36
+ padding: 0;
37
+
38
+ legend {
39
+
40
+ }
41
+
42
+ input,textarea,select {
43
+ -webkit-box-sizing: border-box;
44
+ -moz-box-sizing: border-box;
45
+ -ms-box-sizing: border-box;
46
+ box-sizing: border-box;
47
+
48
+ border-width: 0;
49
+ width: 100%;
50
+ margin: 0;
51
+ padding: 0 0.25em;
52
+ }
53
+ label {
54
+ -webkit-box-sizing: border-box;
55
+ -moz-box-sizing: border-box;
56
+ -ms-box-sizing: border-box;
57
+ box-sizing: border-box;
58
+ margin: 0;
59
+ padding: 0;
60
+ }
61
+
62
+ }
63
+
64
+
65
+ }
66
+
67
+ @mixin inline-fields() {
68
+ input,textarea,select {
69
+
70
+ }
71
+
72
+ label {
73
+ @include clearfix();
74
+ float: left;
75
+ padding-right: .5em;
76
+ }
77
+
78
+ label:last-child {
79
+ padding-right: 0;
80
+ }
81
+ }
82
+
83
+ @mixin label-below() {
84
+ legend {
85
+ }
86
+
87
+ label {
88
+ display: block;
89
+ padding-top: #{($line / $em)}em; // one baseline-grid unit
90
+ margin: 0 0 -1.0em 0;
91
+
92
+ &:last-child {
93
+ margin: 0;
94
+ }
95
+ }
96
+
97
+ input,textarea,select {
98
+ display: block;
99
+ height: #{($line / $em)}em; // one baseline-grid unit
100
+ position: relative;
101
+ top: -3em;
102
+ }
103
+ }
104
+
105
+ @mixin label-left($label-width: 30%) {
106
+ label {
107
+ display: inline-block;
108
+ width: $label-width;
109
+ }
110
+
111
+ input,textarea,select {
112
+ display: inline-block;
113
+ }
114
+ }
@@ -0,0 +1,106 @@
1
+ /*
2
+ * A semantic, fluid, responsive grid system.
3
+ *
4
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
5
+ *
6
+ * See readme.md for details, licensing, and acknowledgments.
7
+ *
8
+ */
9
+ @import "config";
10
+
11
+ $total-width: 100%;
12
+ $total-columns: $columns;
13
+
14
+ @function gridsystem-width($columns:$columns, $total-columns:$total-columns) {
15
+ @return ($total-width / $total-columns) * $columns;
16
+ }
17
+
18
+ // The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
19
+ @mixin clearfix() {
20
+ *zoom:1;
21
+
22
+ &:before,
23
+ &:after {
24
+ content:"";
25
+ display:table;
26
+ }
27
+ &:after {
28
+ clear:both;
29
+ }
30
+ }
31
+
32
+ //////////
33
+ // GRID //
34
+ //////////
35
+
36
+ //
37
+ @mixin grid() {
38
+ display: block;
39
+ width: $total-width - ($outer-margin * 2);
40
+ margin: 0 $outer-margin;
41
+
42
+ @include clearfix();
43
+
44
+ -webkit-box-sizing: border-box;
45
+ -moz-box-sizing: border-box;
46
+ -ms-box-sizing: border-box;
47
+ box-sizing: border-box;
48
+ }
49
+
50
+ // Subgrid is a container for nested columns
51
+ @mixin subgrid($columns:$columns,$of-columns:$total-columns) {
52
+ display: block;
53
+ float: left;
54
+ width: gridsystem-width($columns,$of-columns);
55
+
56
+ // No gutters, this acts as a container.
57
+ padding: 0;
58
+
59
+ -webkit-box-sizing: border-box;
60
+ -moz-box-sizing: border-box;
61
+ -ms-box-sizing: border-box;
62
+ box-sizing: border-box;
63
+ }
64
+
65
+ @mixin column($columns:$columns,$of-columns:$total-columns) {
66
+ display: block;
67
+ float: left;
68
+ width: gridsystem-width($columns,$of-columns);
69
+
70
+ // Elastic gutters.
71
+ padding: 0 $half-gutter-width;
72
+
73
+ -webkit-box-sizing: border-box;
74
+ -moz-box-sizing: border-box;
75
+ -ms-box-sizing: border-box;
76
+ box-sizing: border-box;
77
+ }
78
+
79
+ @mixin push($columns: 1, $of-columns: $total-columns) {
80
+ margin-left: gridsystem-width($columns,$of-columns);
81
+
82
+ }
83
+
84
+ @mixin pull($columns: 1, $of-columns: $total-columns) {
85
+ margin-right: gridsystem-width($columns,$of-columns);
86
+ }
87
+
88
+ @mixin block($width-in-cols: 1, $height-in-cols: $width-in-cols, $padding: 0) {
89
+
90
+ display: inline-block;
91
+ position: relative;
92
+
93
+ @include column($width-in-cols);
94
+ padding-bottom: gridsystem-width($height-in-cols);
95
+
96
+ & > * {
97
+ position: absolute;
98
+ overflow: hidden;
99
+
100
+ top: $padding;
101
+ bottom: $padding;
102
+ left: $padding;
103
+ right: $padding;
104
+ }
105
+
106
+ }
@@ -0,0 +1,484 @@
1
+ /*
2
+ * Normalization, bugfixes, workarounds, and defaults.
3
+ *
4
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
5
+ *
6
+ * See readme.md for details, licensing, and acknowledgments.
7
+ *
8
+ */
9
+
10
+ /* mostly adopted from http://necolas.github.com/normalize.css/ */
11
+
12
+ /* =============================================================================
13
+ HTML5 display definitions
14
+ ========================================================================== */
15
+
16
+ /*
17
+ * Corrects block display not defined in IE6/7/8/9 & FF3
18
+ */
19
+
20
+ article,
21
+ aside,
22
+ details,
23
+ figcaption,
24
+ figure,
25
+ footer,
26
+ header,
27
+ hgroup,
28
+ nav,
29
+ section,
30
+ summary {
31
+ display: block;
32
+ }
33
+
34
+ /*
35
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
36
+ */
37
+
38
+ audio,
39
+ canvas,
40
+ video {
41
+ display: inline-block;
42
+ *display: inline;
43
+ *zoom: 1;
44
+ }
45
+
46
+ /*
47
+ * Prevents modern browsers from displaying 'audio' without controls
48
+ */
49
+
50
+ audio:not([controls]) {
51
+ display: none;
52
+ }
53
+
54
+ /*
55
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
56
+ * Known issue: no IE6 support
57
+ */
58
+
59
+ [hidden] {
60
+ display: none;
61
+ }
62
+
63
+
64
+ /* =============================================================================
65
+ Base
66
+ ========================================================================== */
67
+
68
+
69
+ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,p,blockquote,th,td {
70
+ margin:0;
71
+ padding:0;
72
+ }
73
+
74
+
75
+ /*
76
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
77
+ * http://clagnut.com/blog/348/#c790
78
+ * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
79
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
80
+ */
81
+
82
+ html {
83
+ font-size: 100%; /* 1 */
84
+ -webkit-text-size-adjust: 100%; /* 2 */
85
+ -ms-text-size-adjust: 100%; /* 2 */
86
+ }
87
+
88
+ /*
89
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
90
+ */
91
+
92
+ html,
93
+ button,
94
+ input,
95
+ select,
96
+ textarea {
97
+ font-family: sans-serif;
98
+ }
99
+
100
+ /*
101
+ * Addresses margins handled incorrectly in IE6/7
102
+ */
103
+
104
+ body {
105
+ margin: 0;
106
+ }
107
+
108
+
109
+
110
+
111
+ /* =============================================================================
112
+ Links
113
+ ========================================================================== */
114
+
115
+ /*
116
+ * Addresses outline displayed oddly in Chrome
117
+ */
118
+
119
+ a:focus {
120
+ outline: thin dotted;
121
+ }
122
+
123
+ /*
124
+ * Improves readability when focused and also mouse hovered in all browsers
125
+ * people.opera.com/patrickl/experiments/keyboard/test
126
+ */
127
+
128
+ a:hover,
129
+ a:active {
130
+ outline: 0;
131
+ }
132
+
133
+
134
+ /* =============================================================================
135
+ Typography
136
+ ========================================================================== */
137
+ /*
138
+ * Addresses styling not present in IE7/8/9, S5, Chrome
139
+ */
140
+
141
+ abbr[title] {
142
+ border-bottom: 1px dotted;
143
+ }
144
+
145
+ /*
146
+ * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
147
+ */
148
+
149
+ b,
150
+ strong {
151
+ font-weight: bold;
152
+ }
153
+
154
+ blockquote {
155
+ margin: 1em 40px;
156
+ }
157
+
158
+ /*
159
+ * Addresses styling not present in S5, Chrome
160
+ */
161
+
162
+ dfn {
163
+ font-style: italic;
164
+ }
165
+
166
+ /*
167
+ * Addresses styling not present in IE6/7/8/9
168
+ */
169
+
170
+ mark {
171
+ background: #ff0;
172
+ color: #000;
173
+ }
174
+
175
+ /*
176
+ * Addresses margins set differently in IE6/7
177
+ */
178
+
179
+ p,
180
+ pre {
181
+ margin: 1em 0;
182
+ }
183
+
184
+ /*
185
+ * Corrects font family set oddly in IE6, S4/5, Chrome
186
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
187
+ */
188
+
189
+ pre,
190
+ code,
191
+ kbd,
192
+ samp {
193
+ font-family: monospace, serif;
194
+ _font-family: 'courier new', monospace;
195
+ font-size: 1em;
196
+ }
197
+
198
+ /*
199
+ * Improves readability of pre-formatted text in all browsers
200
+ */
201
+
202
+ pre {
203
+ white-space: pre;
204
+ white-space: pre-wrap;
205
+ word-wrap: break-word;
206
+ }
207
+
208
+ /*
209
+ * 1. Addresses CSS quotes not supported in IE6/7
210
+ * 2. Addresses quote property not supported in S4
211
+ */
212
+
213
+ /* 1 */
214
+
215
+ q {
216
+ quotes: none;
217
+ }
218
+
219
+ /* 2 */
220
+
221
+ q:before,
222
+ q:after {
223
+ content: '';
224
+ content: none;
225
+ }
226
+
227
+ small {
228
+ font-size: 75%;
229
+ }
230
+
231
+ /*
232
+ * Prevents sub and sup affecting line-height in all browsers
233
+ * gist.github.com/413930
234
+ */
235
+
236
+ sub,
237
+ sup {
238
+ font-size: 75%;
239
+ line-height: 0;
240
+ position: relative;
241
+ vertical-align: baseline;
242
+ }
243
+
244
+ sup {
245
+ top: -0.5em;
246
+ }
247
+
248
+ sub {
249
+ bottom: -0.25em;
250
+ }
251
+
252
+
253
+ /* =============================================================================
254
+ Lists
255
+ ========================================================================== */
256
+
257
+ /*
258
+ * Addresses margins set differently in IE6/7
259
+ */
260
+
261
+ dl,
262
+ menu,
263
+ ol,
264
+ ul {
265
+ margin: 1em 0;
266
+ }
267
+
268
+ dd {
269
+ margin: 0 0 0 40px;
270
+ }
271
+
272
+ /*
273
+ * Addresses paddings set differently in IE6/7
274
+ */
275
+
276
+ menu,
277
+ ol,
278
+ ul {
279
+ padding: 0 0 0 40px;
280
+ }
281
+
282
+ /*
283
+ * Corrects list images handled incorrectly in IE7
284
+ */
285
+
286
+ nav ul,
287
+ nav ol {
288
+ list-style: none;
289
+ list-style-image: none;
290
+ }
291
+
292
+
293
+ /* =============================================================================
294
+ Embedded content
295
+ ========================================================================== */
296
+
297
+ /*
298
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
299
+ * 2. Improves image quality when scaled in IE7
300
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
301
+ */
302
+
303
+ img {
304
+ border: 0; /* 1 */
305
+ -ms-interpolation-mode: bicubic; /* 2 */
306
+ }
307
+
308
+ /*
309
+ * Corrects overflow displayed oddly in IE9
310
+ */
311
+
312
+ svg:not(:root) {
313
+ overflow: hidden;
314
+ }
315
+
316
+
317
+ /* =============================================================================
318
+ Figures
319
+ ========================================================================== */
320
+
321
+ /*
322
+ * Addresses margin not present in IE6/7/8/9, S5, O11
323
+ */
324
+
325
+ figure {
326
+ margin: 0;
327
+ }
328
+
329
+
330
+ /* =============================================================================
331
+ Forms
332
+ ========================================================================== */
333
+
334
+ /*
335
+ * Corrects margin displayed oddly in IE6/7
336
+ */
337
+
338
+ form {
339
+ margin: 0;
340
+ }
341
+
342
+ /*
343
+ * Define consistent border, margin, and padding
344
+ */
345
+
346
+ fieldset {
347
+ border: 1px solid #c0c0c0;
348
+ margin: 0 2px;
349
+ padding: 0.35em 0.625em 0.75em;
350
+ }
351
+
352
+ /*
353
+ * 1. Corrects color not being inherited in IE6/7/8/9
354
+ * 2. Corrects text not wrapping in FF3
355
+ * 3. Corrects alignment displayed oddly in IE6/7
356
+ */
357
+
358
+ legend {
359
+ border: 0; /* 1 */
360
+ padding: 0;
361
+ white-space: normal; /* 2 */
362
+ *margin-left: -7px; /* 3 */
363
+ }
364
+
365
+ /*
366
+ * 1. Corrects font size not being inherited in all browsers
367
+ * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
368
+ * 3. Improves appearance and consistency in all browsers
369
+ */
370
+
371
+ button,
372
+ input,
373
+ select,
374
+ textarea {
375
+ font-size: 100%; /* 1 */
376
+ margin: 0; /* 2 */
377
+ vertical-align: baseline; /* 3 */
378
+ *vertical-align: middle; /* 3 */
379
+ }
380
+
381
+ /*
382
+ * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
383
+ */
384
+
385
+ button,
386
+ input {
387
+ line-height: normal; /* 1 */
388
+ }
389
+
390
+ /*
391
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
392
+ * 2. Corrects inability to style clickable 'input' types in iOS
393
+ * 3. Removes inner spacing in IE7 without affecting normal text inputs
394
+ * Known issue: inner spacing remains in IE6
395
+ */
396
+
397
+ button,
398
+ input[type="button"],
399
+ input[type="reset"],
400
+ input[type="submit"] {
401
+ cursor: pointer; /* 1 */
402
+ -webkit-appearance: button; /* 2 */
403
+ *overflow: visible; /* 3 */
404
+ }
405
+
406
+ /*
407
+ * Re-set default cursor for disabled elements
408
+ */
409
+
410
+ button[disabled],
411
+ input[disabled] {
412
+ cursor: default;
413
+ }
414
+
415
+ /*
416
+ * 1. Addresses box sizing set to content-box in IE8/9
417
+ * 2. Removes excess padding in IE8/9
418
+ * 3. Removes excess padding in IE7
419
+ Known issue: excess padding remains in IE6
420
+ */
421
+
422
+ input[type="checkbox"],
423
+ input[type="radio"] {
424
+ box-sizing: border-box; /* 1 */
425
+ padding: 0; /* 2 */
426
+ *height: 13px; /* 3 */
427
+ *width: 13px; /* 3 */
428
+ }
429
+
430
+ /*
431
+ * 1. Addresses appearance set to searchfield in S5, Chrome
432
+ * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
433
+ */
434
+
435
+ input[type="search"] {
436
+ -webkit-appearance: textfield; /* 1 */
437
+ -moz-box-sizing: content-box;
438
+ -webkit-box-sizing: content-box; /* 2 */
439
+ box-sizing: content-box;
440
+ }
441
+
442
+ /*
443
+ * Removes inner padding and search cancel button in S5, Chrome on OS X
444
+ */
445
+
446
+ input[type="search"]::-webkit-search-decoration,
447
+ input[type="search"]::-webkit-search-cancel-button {
448
+ -webkit-appearance: none;
449
+ }
450
+
451
+ /*
452
+ * Removes inner padding and border in FF3+
453
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
454
+ */
455
+
456
+ button::-moz-focus-inner,
457
+ input::-moz-focus-inner {
458
+ border: 0;
459
+ padding: 0;
460
+ }
461
+
462
+ /*
463
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
464
+ * 2. Improves readability and alignment in all browsers
465
+ */
466
+
467
+ textarea {
468
+ overflow: auto; /* 1 */
469
+ vertical-align: top; /* 2 */
470
+ }
471
+
472
+
473
+ /* =============================================================================
474
+ Tables
475
+ ========================================================================== */
476
+
477
+ /*
478
+ * Remove most spacing between table cells
479
+ */
480
+
481
+ table {
482
+ border-collapse: collapse;
483
+ border-spacing: 0;
484
+ }
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Print specifc style defaults. From HTML5 Boilerplate.
3
+ *
4
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
5
+ *
6
+ * See readme.md for details, licensing, and acknowledgments.
7
+ *
8
+ */
9
+
10
+ /* ==|== print styles =======================================================
11
+ Print styles.
12
+ Inlined to avoid required HTTP connection: h5bp.com/r
13
+ ========================================================================== */
14
+
15
+ @media print {
16
+ * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
17
+ a, a:visited { text-decoration: underline; }
18
+ a[href]:after { content: " (" attr(href) ")"; }
19
+ abbr[title]:after { content: " (" attr(title) ")"; }
20
+ .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
21
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
22
+ thead { display: table-header-group; } /* h5bp.com/t */
23
+ tr, img { page-break-inside: avoid; }
24
+ img { max-width: 100% !important; }
25
+ @page { margin: 0.5cm; }
26
+ p, h2, h3 { orphans: 3; widows: 3; }
27
+ h2, h3 { page-break-after: avoid; }
28
+ }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Sample media selectors to apply device-specific styling.
3
+ *
4
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
5
+ *
6
+ * See readme.md for details, licensing, and acknowledgments.
7
+ *
8
+ */
9
+
10
+ // This file is not included by default, and it's recommended that
11
+ // you copy desired selectors to your individual website stylesheet(s).
12
+
13
+ /* @media screen and (min-width: 480px) */
14
+ @media screen and (min-width: 30em) {}
15
+
16
+ /* @media screen and (min-width: 640px) */
17
+ @media screen and (min-width: 40em) {}
18
+
19
+ /* @media screen and (min-width: 720px) */
20
+ @media screen and (min-width: 45em) {}
21
+
22
+ /* @media screen and (min-width: 888px) */
23
+ @media screen and (min-width: 55.5em) {}
24
+
25
+ /* @media screen and (min-width: 984px) */
26
+ @media screen and (min-width: 61.5em) {}
27
+
28
+ /* @media screen and (min-width: 1200px) */
29
+ @media screen and (min-width: 75em) {}
30
+
31
+ /* @media screen and (min-width: 1392px) */
32
+ @media screen and (min-width: 87em) {}
33
+
34
+ /* @media screen and (min-width: 1680px) */
35
+ @media screen and (min-width: 105em) {}
36
+
37
+ /* @media screen and (min-width: 1872px) */
38
+ @media screen and (min-width: 117em) {}
39
+
40
+ /* @media screen and (min-width: 2080px) */
41
+ @media screen and (min-width: 130em) {}
@@ -0,0 +1,151 @@
1
+ /*
2
+ * Zoomable baseline grid, with mixins intended for responsive zooming.
3
+ * Along with some sensible typographic defaults.
4
+ *
5
+ *
6
+ * Part of the takitapart CSS framework [ http://takitapart.net/framework ].
7
+ *
8
+ * See readme.md for details, licensing, and acknowledgments.
9
+ *
10
+ */
11
+ @import "config";
12
+
13
+ @mixin baseline-grid($size: $font-size) {
14
+ body {
15
+ font-size: #{($size / $em)}em;
16
+ }
17
+ }
18
+
19
+ @mixin font-size($size-delta: 16px, $line-height: 24px) {
20
+ font-size: #{$font-size / $em}em;
21
+ line-height: #{$line / $em}em; /* 24 */
22
+ margin: #{(($line) / $em) / ($font-size / $em)}em 0;
23
+ }
24
+
25
+ // Leading before, in grid units.
26
+ @mixin leading-before($amount: 1) {
27
+ margin-top: #{($line / $em) * $amount}em;
28
+ }
29
+
30
+ // Leading after, in grid units.
31
+ @mixin leading-after($amount: 1) {
32
+ margin-bottom: #{($line / $em) * $amount}em;
33
+ }
34
+
35
+ // Leading before & after, in grid units.
36
+ @mixin leading($before-amount: 1, $after-amount: $before-amount) {
37
+ @include leading-before($before-amount);
38
+ @include leading-after($after-amount);
39
+ }
40
+
41
+
42
+ body {
43
+ /* 16px / 24px */
44
+ font-size: $font-size / 16 * 1em;
45
+ line-height: #{$line / $em}em;
46
+ }
47
+
48
+ .miniscule {}
49
+
50
+ .tiny {}
51
+
52
+ .small {
53
+ /* 13px / 18px */
54
+ font-size: #{($font-size*0.8125) / $em}em;
55
+ line-height: ($line*0.75) / ($font-size*0.8125) * 1em;
56
+
57
+ margin: #{(($line) / $em) / ($font-size / $em)}em 0;
58
+ }
59
+
60
+ .medium, .normal, h3, p {
61
+ /* 16px / 24px */
62
+ font-size: #{$font-size / $em}em;
63
+ line-height: #{$line / $em}em; /* 24 */
64
+
65
+ margin: #{(($line) / $em) / ($font-size / $em)}em 0;
66
+ }
67
+
68
+ .large, h2, h1 {
69
+ /* 26 / 36px */
70
+ font-size: #{26 / $em}em;
71
+ line-height: ($line*1.5) / 26 * 1em;
72
+
73
+ margin: #{(($line) / $em) / (26 / $em)}em 0
74
+ }
75
+
76
+ .huge {
77
+ /* 42px / 48px */
78
+ font-size: #{42 / $em}em;
79
+ line-height: ($line*2) / 42 * 1em;
80
+
81
+ margin: #{(($line) / $em) / (42 / $em)}em 0;
82
+ }
83
+
84
+ .massive {
85
+ /* 68px / 72px */
86
+ font-size: #{68 / $em}em;
87
+ line-height: ($line*3) / 68 * 1em;
88
+
89
+ margin: #{(($line) / $em) / ($font-size / $em)}em 0;
90
+ }
91
+
92
+ .gigantic {
93
+ /* 110px / 120px */
94
+ font-size: #{110 / $em}em;
95
+ line-height: ($line*5) / 110 * 1em;
96
+
97
+ margin: #{(($line) / $em) / ($font-size / $em)}em 0;
98
+ }
99
+
100
+
101
+ @mixin indented() {
102
+
103
+ margin-bottom: 0;
104
+
105
+ &:last-child {
106
+ margin-bottom: #{(($line) / $em) / ($font-size / $em)}em;
107
+ }
108
+
109
+ & + p {
110
+ text-indent: #{$line / $em}em;
111
+ margin-top: 0;
112
+ }
113
+
114
+ }
115
+
116
+ @mixin first-line-small-caps() {
117
+
118
+ &:first-line {
119
+ font-weight: 800;
120
+ font-variant: small-caps;
121
+ }
122
+
123
+ & + p {
124
+ margin-top: 0;
125
+
126
+ &:first-line {
127
+ font-weight: 400;
128
+ font-variant: normal
129
+ }
130
+ }
131
+ }
132
+
133
+ @mixin drop-cap() {
134
+
135
+ &:first-letter {
136
+ font-size: 3.5em;
137
+ line-height: 1.0em;
138
+ font-weight: 400;
139
+ float: left;
140
+ margin: 0 0.107em 0 0;
141
+ }
142
+
143
+ & + p {
144
+ &:first-letter {
145
+ font-size: 1em;
146
+ line-height: 1.25em;
147
+ float: none;
148
+ margin: 0;
149
+ }
150
+ }
151
+ }
File without changes
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: compass.takitapart.framework
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Bob VanderClay
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: compass
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0.11'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0.11'
30
+ description: A semantic, fluid, responsive framework for compass.
31
+ email: bob@vanderclay.net
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - README.md
37
+ - lib/takitapart.rb
38
+ - stylesheets/_takitapart.scss
39
+ - stylesheets/takitapart/_color.scss
40
+ - stylesheets/takitapart/_config.scss
41
+ - stylesheets/takitapart/_form.scss
42
+ - stylesheets/takitapart/_grid.scss
43
+ - stylesheets/takitapart/_normalize.scss
44
+ - stylesheets/takitapart/_print.scss
45
+ - stylesheets/takitapart/_responsive.scss
46
+ - stylesheets/takitapart/_takitapart-color.scss
47
+ - stylesheets/takitapart/_typography.scss
48
+ - stylesheets/takitapart/_utility.scss
49
+ homepage: http://framework.takitapart.net/
50
+ licenses: []
51
+ post_install_message:
52
+ rdoc_options: []
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project:
69
+ rubygems_version: 1.8.24
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: A semantic, fluid, responsive framework for compass.
73
+ test_files: []