cyclist 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/_includes/footer.html +4 -0
- data/_includes/head.html +6 -0
- data/_includes/header.html +20 -0
- data/_layouts/default.html +13 -0
- data/_layouts/home.html +39 -0
- data/_layouts/link.html +21 -0
- data/_layouts/page.html +15 -0
- data/_layouts/post.html +22 -0
- data/_sass/crimson.scss +41 -0
- data/_sass/fira-mono.scss +14 -0
- data/_sass/fonts.scss +4 -0
- data/_sass/lato.scss +144 -0
- data/_sass/layout.scss +80 -0
- data/_sass/playfair-display.scss +83 -0
- data/_sass/typography.scss +84 -0
- data/assets/fonts/crimson/LICENSE.txt +93 -0
- data/assets/fonts/crimson/crimson-bold-webfont.woff +0 -0
- data/assets/fonts/crimson/crimson-bold-webfont.woff2 +0 -0
- data/assets/fonts/crimson/crimson-bolditalic-webfont.woff +0 -0
- data/assets/fonts/crimson/crimson-bolditalic-webfont.woff2 +0 -0
- data/assets/fonts/crimson/crimson-italic-webfont.woff +0 -0
- data/assets/fonts/crimson/crimson-italic-webfont.woff2 +0 -0
- data/assets/fonts/crimson/crimson-roman-webfont.woff +0 -0
- data/assets/fonts/crimson/crimson-roman-webfont.woff2 +0 -0
- data/assets/fonts/crimson/crimson-semibold-webfont.woff +0 -0
- data/assets/fonts/crimson/crimson-semibold-webfont.woff2 +0 -0
- data/assets/fonts/crimson/crimson-semibolditalic-webfont.woff +0 -0
- data/assets/fonts/crimson/crimson-semibolditalic-webfont.woff2 +0 -0
- data/assets/fonts/fira-mono/FiraMono-Bold.woff +0 -0
- data/assets/fonts/fira-mono/FiraMono-Bold.woff2 +0 -0
- data/assets/fonts/fira-mono/FiraMono-Medium.woff +0 -0
- data/assets/fonts/fira-mono/FiraMono-Medium.woff2 +0 -0
- data/assets/fonts/fira-mono/FiraMono-Regular.woff +0 -0
- data/assets/fonts/fira-mono/FiraMono-Regular.woff2 +0 -0
- data/assets/fonts/fira-mono/LICENSE +94 -0
- data/assets/fonts/lato/Lato-Black.woff +0 -0
- data/assets/fonts/lato/Lato-Black.woff2 +0 -0
- data/assets/fonts/lato/Lato-BlackItalic.woff +0 -0
- data/assets/fonts/lato/Lato-BlackItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Bold.woff +0 -0
- data/assets/fonts/lato/Lato-Bold.woff2 +0 -0
- data/assets/fonts/lato/Lato-BoldItalic.woff +0 -0
- data/assets/fonts/lato/Lato-BoldItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Hairline.woff +0 -0
- data/assets/fonts/lato/Lato-Hairline.woff2 +0 -0
- data/assets/fonts/lato/Lato-HairlineItalic.woff +0 -0
- data/assets/fonts/lato/Lato-HairlineItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Heavy.woff +0 -0
- data/assets/fonts/lato/Lato-Heavy.woff2 +0 -0
- data/assets/fonts/lato/Lato-HeavyItalic.woff +0 -0
- data/assets/fonts/lato/Lato-HeavyItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Italic.woff +0 -0
- data/assets/fonts/lato/Lato-Italic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Light.woff +0 -0
- data/assets/fonts/lato/Lato-Light.woff2 +0 -0
- data/assets/fonts/lato/Lato-LightItalic.woff +0 -0
- data/assets/fonts/lato/Lato-LightItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Medium.woff +0 -0
- data/assets/fonts/lato/Lato-Medium.woff2 +0 -0
- data/assets/fonts/lato/Lato-MediumItalic.woff +0 -0
- data/assets/fonts/lato/Lato-MediumItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Regular.woff +0 -0
- data/assets/fonts/lato/Lato-Regular.woff2 +0 -0
- data/assets/fonts/lato/Lato-Semibold.woff +0 -0
- data/assets/fonts/lato/Lato-Semibold.woff2 +0 -0
- data/assets/fonts/lato/Lato-SemiboldItalic.woff +0 -0
- data/assets/fonts/lato/Lato-SemiboldItalic.woff2 +0 -0
- data/assets/fonts/lato/Lato-Thin.woff +0 -0
- data/assets/fonts/lato/Lato-Thin.woff2 +0 -0
- data/assets/fonts/lato/Lato-ThinItalic.woff +0 -0
- data/assets/fonts/lato/Lato-ThinItalic.woff2 +0 -0
- data/assets/fonts/lato/OFL.txt +94 -0
- data/assets/fonts/playfair-display/OFL.txt +93 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Black.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Black.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-BlackItalic.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-BlackItalic.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Bold.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Bold.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-BoldItalic.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-BoldItalic.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Italic.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Italic.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Regular.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplay-Regular.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Black.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Black.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-BlackItalic.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-BlackItalic.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Bold.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Bold.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-BoldItalic.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-BoldItalic.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Italic.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Italic.woff2 +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Regular.woff +0 -0
- data/assets/fonts/playfair-display/PlayfairDisplaySC-Regular.woff2 +0 -0
- data/assets/main.scss +11 -0
- data/vendor/raster/.gitignore +2 -0
- data/vendor/raster/README.md +173 -0
- data/vendor/raster/dist/raster.css +131 -0
- data/vendor/raster/dist/raster.js +164 -0
- data/vendor/raster/dist/raster.scss +5 -0
- data/vendor/raster/dist/sass/_guidelines.scss +33 -0
- data/vendor/raster/dist/sass/_layout.scss +9 -0
- data/vendor/raster/dist/sass/_reset.scss +51 -0
- data/vendor/raster/dist/sass/_setup.scss +25 -0
- data/vendor/raster/dist/sass/_typography.scss +75 -0
- data/vendor/raster/examples/build/css/typography.css +139 -0
- data/vendor/raster/examples/src/sass/typography.scss +10 -0
- data/vendor/raster/examples/typography.html +117 -0
- data/vendor/raster/gulpfile.js +94 -0
- data/vendor/raster/package.json +20 -0
- data/vendor/raster/test/build/css/test-default.css +229 -0
- data/vendor/raster/test/build/css/test-em.css +232 -0
- data/vendor/raster/test/build/css/test-percent.css +232 -0
- data/vendor/raster/test/build/css/test-pixel.css +232 -0
- data/vendor/raster/test/build/css/test-rem.css +232 -0
- data/vendor/raster/test/build/html/test-default.html +67 -0
- data/vendor/raster/test/build/html/test-em.html +67 -0
- data/vendor/raster/test/build/html/test-percent.html +67 -0
- data/vendor/raster/test/build/html/test-pixel.html +67 -0
- data/vendor/raster/test/build/html/test-rem.html +67 -0
- data/vendor/raster/test/lib/js/test-helper.js +131 -0
- data/vendor/raster/test/lib/tests/test-custom.js +20 -0
- data/vendor/raster/test/lib/tests/test-default.js +34 -0
- data/vendor/raster/test/scripts/run_tests.js +20 -0
- data/vendor/raster/test/src/html/mocha.html +6 -0
- data/vendor/raster/test/src/jade/includes/baseline.jade +12 -0
- data/vendor/raster/test/src/jade/includes/content.jade +2 -0
- data/vendor/raster/test/src/jade/includes/head.jade +11 -0
- data/vendor/raster/test/src/jade/includes/layout.jade +26 -0
- data/vendor/raster/test/src/jade/includes/mocha.jade +1 -0
- data/vendor/raster/test/src/jade/test-default.jade +10 -0
- data/vendor/raster/test/src/jade/test-em.jade +10 -0
- data/vendor/raster/test/src/jade/test-percent.jade +10 -0
- data/vendor/raster/test/src/jade/test-pixel.jade +10 -0
- data/vendor/raster/test/src/jade/test-rem.jade +10 -0
- data/vendor/raster/test/src/sass/_layout.scss +104 -0
- data/vendor/raster/test/src/sass/test-default.scss +2 -0
- data/vendor/raster/test/src/sass/test-em.scss +5 -0
- data/vendor/raster/test/src/sass/test-percent.scss +5 -0
- data/vendor/raster/test/src/sass/test-pixel.scss +5 -0
- data/vendor/raster/test/src/sass/test-rem.scss +5 -0
- metadata +232 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
/* Structure */
|
2
|
+
html, body, div, span {
|
3
|
+
margin: 0;
|
4
|
+
padding: 0;
|
5
|
+
border: 0;
|
6
|
+
outline: 0;
|
7
|
+
font-size: 100%;
|
8
|
+
vertical-align: baseline;
|
9
|
+
background: transparent; }
|
10
|
+
|
11
|
+
/* Text */
|
12
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, ol, ul, li, strong, em {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
border: 0;
|
16
|
+
outline: 0;
|
17
|
+
font-size: 100%;
|
18
|
+
vertical-align: baseline;
|
19
|
+
background: transparent; }
|
20
|
+
|
21
|
+
/* Other */
|
22
|
+
applet, object, iframe, abbr, acronym, address, big, cite, code, del, dfn,
|
23
|
+
font, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, b, u, i,
|
24
|
+
center, dl, dt, dd, fieldset, form, label, legend, table, caption, tbody,
|
25
|
+
tfoot, thead, tr, th, td {
|
26
|
+
margin: 0;
|
27
|
+
padding: 0;
|
28
|
+
border: 0;
|
29
|
+
outline: 0;
|
30
|
+
font-size: 100%;
|
31
|
+
vertical-align: baseline;
|
32
|
+
background: transparent; }
|
33
|
+
|
34
|
+
/* Misc */
|
35
|
+
:focus {
|
36
|
+
outline: 0; }
|
37
|
+
|
38
|
+
table {
|
39
|
+
border-collapse: separate;
|
40
|
+
border-spacing: 0; }
|
41
|
+
|
42
|
+
caption, th, td {
|
43
|
+
text-align: left;
|
44
|
+
font-weight: normal; }
|
45
|
+
|
46
|
+
blockquote:before, blockquote:after, q:before, q:after {
|
47
|
+
content: ""; }
|
48
|
+
|
49
|
+
blockquote, q {
|
50
|
+
quotes: "" ""; }
|
51
|
+
|
52
|
+
html {
|
53
|
+
font-size: 12px; }
|
54
|
+
|
55
|
+
body {
|
56
|
+
line-height: 17px; }
|
57
|
+
|
58
|
+
h1 {
|
59
|
+
font-size: calc(1em * (36 / 12));
|
60
|
+
margin-bottom: 17px;
|
61
|
+
line-height: calc(3 * 17px); }
|
62
|
+
|
63
|
+
h2 {
|
64
|
+
font-size: calc(1em * (24 / 12));
|
65
|
+
margin-bottom: 17px;
|
66
|
+
line-height: calc(2 * 17px); }
|
67
|
+
|
68
|
+
h3 {
|
69
|
+
font-size: calc(1em * (21 / 12));
|
70
|
+
margin-bottom: 17px;
|
71
|
+
line-height: calc(2 * 17px); }
|
72
|
+
|
73
|
+
h4 {
|
74
|
+
font-size: calc(1em * (18 / 12));
|
75
|
+
margin-bottom: 17px;
|
76
|
+
line-height: calc(2 * 17px); }
|
77
|
+
|
78
|
+
h5 {
|
79
|
+
font-size: calc(1em * (14 / 12));
|
80
|
+
margin-bottom: 17px;
|
81
|
+
line-height: calc(2 * 17px); }
|
82
|
+
|
83
|
+
h6 {
|
84
|
+
font-size: calc(1em * (12 / 12));
|
85
|
+
margin-bottom: 17px;
|
86
|
+
line-height: calc(1 * 17px); }
|
87
|
+
|
88
|
+
p,
|
89
|
+
ul,
|
90
|
+
ol {
|
91
|
+
margin-bottom: 17px; }
|
92
|
+
|
93
|
+
ul ol,
|
94
|
+
ol ol,
|
95
|
+
ul ul,
|
96
|
+
ol ul {
|
97
|
+
margin-bottom: 0; }
|
98
|
+
|
99
|
+
ul {
|
100
|
+
list-style-type: disc;
|
101
|
+
margin-left: 2rem; }
|
102
|
+
|
103
|
+
ol {
|
104
|
+
list-style-type: decimal;
|
105
|
+
margin-left: 2rem; }
|
106
|
+
|
107
|
+
.raster-guidelines {
|
108
|
+
display: -webkit-flex;
|
109
|
+
display: flex;
|
110
|
+
position: absolute;
|
111
|
+
left: 0;
|
112
|
+
top: 0;
|
113
|
+
bottom: 0;
|
114
|
+
right: 0; }
|
115
|
+
|
116
|
+
.raster-guidelines > div.raster-column {
|
117
|
+
display: -webkit-flex;
|
118
|
+
display: flex;
|
119
|
+
background-color: rgba(148, 235, 255, 0.25);
|
120
|
+
margin-right: 1rem;
|
121
|
+
-webkit-flex: 0 0 9rem;
|
122
|
+
flex: 0 0 9rem; }
|
123
|
+
|
124
|
+
.raster-guidelines > div.raster-column:last-child {
|
125
|
+
margin-right: 0; }
|
126
|
+
|
127
|
+
.raster-column > div.raster-unit {
|
128
|
+
background-color: rgba(148, 235, 255, 0.25);
|
129
|
+
margin-right: 1rem;
|
130
|
+
-webkit-flex: 0 0 4rem;
|
131
|
+
flex: 0 0 4rem; }
|
132
|
+
|
133
|
+
.raster-column > div.raster-unit:last-child {
|
134
|
+
margin-right: 0; }
|
135
|
+
|
136
|
+
#container {
|
137
|
+
margin: 0 auto;
|
138
|
+
padding: 51px 0;
|
139
|
+
width: 39rem; }
|
@@ -0,0 +1,117 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<!-- Adapted from http://www.blueprintcss.org/tests/parts/elements.html -->
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<title>Typography</title>
|
7
|
+
<link rel="stylesheet" href="build/css/typography.css" />
|
8
|
+
<script src="../dist/raster.js"></script>
|
9
|
+
</head>
|
10
|
+
<body class="raster-show-baseline">
|
11
|
+
<div id="container" class="raster-show-guidelines">
|
12
|
+
|
13
|
+
<header role="banner">
|
14
|
+
<h1>Typography</h1>
|
15
|
+
</header>
|
16
|
+
|
17
|
+
<section>
|
18
|
+
<header>
|
19
|
+
<h2>Paragraphs</h2>
|
20
|
+
</header>
|
21
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
22
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor <sub>sub text</sub> ut labore et <sup>sup text</sup> magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
23
|
+
|
24
|
+
<h3>Blockquote</h3>
|
25
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
26
|
+
<blockquote>
|
27
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
28
|
+
</blockquote>
|
29
|
+
</section>
|
30
|
+
|
31
|
+
<section>
|
32
|
+
<header>
|
33
|
+
<!-- <h2>Lists</h2> -->
|
34
|
+
</header>
|
35
|
+
<ul>
|
36
|
+
<li>Unordered list test</li>
|
37
|
+
<li>Another list element. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>
|
38
|
+
<li>Yet another element in the list</li>
|
39
|
+
<li>Some long text. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>
|
40
|
+
</ul>
|
41
|
+
<ol>
|
42
|
+
<li>Ordered list test</li>
|
43
|
+
<li>Another list element</li>
|
44
|
+
<li>Yet another element in the list</li>
|
45
|
+
</ol>
|
46
|
+
<ol>
|
47
|
+
<li>Ordered list</li>
|
48
|
+
<li>Here's a nested unordered list
|
49
|
+
<ul>
|
50
|
+
<li>Nested Unordered list</li>
|
51
|
+
<li>Nested ordered list
|
52
|
+
<ol>
|
53
|
+
<li>The first</li>
|
54
|
+
<li>And the second</li>
|
55
|
+
</ol>
|
56
|
+
</li>
|
57
|
+
</ul>
|
58
|
+
</li>
|
59
|
+
<li>Ordered List item</li>
|
60
|
+
<li>Nested Ordered list
|
61
|
+
<ol>
|
62
|
+
<li>Some point</li>
|
63
|
+
<li>Nested Unordered list
|
64
|
+
<ul>
|
65
|
+
<li>The first</li>
|
66
|
+
<li>And the second</li>
|
67
|
+
</ul>
|
68
|
+
</li>
|
69
|
+
</ol>
|
70
|
+
</li>
|
71
|
+
</ol>
|
72
|
+
</section>
|
73
|
+
|
74
|
+
<section>
|
75
|
+
<header>
|
76
|
+
<h2>Headers</h2>
|
77
|
+
</header>
|
78
|
+
<h1>H1: Lorem ipsum dolor sit amet</h1>
|
79
|
+
<h2>H2: Lorem ipsum dolor sit amet, consectetur elit</h2>
|
80
|
+
<h3>H3: Lorem ipsum dolor sit amet, consectetur adipisicing elit</h3>
|
81
|
+
<h4>H4: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipis</h4>
|
82
|
+
<h5>H5: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit</h5>
|
83
|
+
<h6>H6: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit</h6>
|
84
|
+
<h1>Heading 1</h1>
|
85
|
+
<h2>Heading 2</h2>
|
86
|
+
<h3>Heading 3</h3>
|
87
|
+
<h4>Heading 4</h4>
|
88
|
+
<h5>Heading 5</h5>
|
89
|
+
<h6>Heading 6</h6>
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section>
|
93
|
+
<header>
|
94
|
+
<h2>Pre & Code</h2>
|
95
|
+
</header>
|
96
|
+
<pre><pre>
|
97
|
+
pre space1
|
98
|
+
pre space1
|
99
|
+
pre space2
|
100
|
+
pre space2
|
101
|
+
pre tab
|
102
|
+
pre tab</pre>
|
103
|
+
|
104
|
+
<code><code>
|
105
|
+
Not indented
|
106
|
+
indent1
|
107
|
+
indent1
|
108
|
+
indent2
|
109
|
+
indent3</code>
|
110
|
+
</section>
|
111
|
+
|
112
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
</body>
|
117
|
+
</html>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
var gulp = require('gulp');
|
2
|
+
var sass = require('gulp-sass');
|
3
|
+
var path = require('path');
|
4
|
+
var plumber = require('gulp-plumber');
|
5
|
+
var jade = require('gulp-jade');
|
6
|
+
|
7
|
+
|
8
|
+
// Paths
|
9
|
+
|
10
|
+
function sharedPaths(basePath) {
|
11
|
+
var paths = {};
|
12
|
+
paths.src = path.join(basePath, 'src');
|
13
|
+
paths.build = path.join(basePath, 'build');
|
14
|
+
// Sass
|
15
|
+
paths.sass = {};
|
16
|
+
paths.sass.src = path.join(paths.src, 'sass');
|
17
|
+
paths.sass.build = path.join(paths.build, 'css');
|
18
|
+
paths.sass.srcGlob = paths.sass.src + '/*.scss';
|
19
|
+
|
20
|
+
return paths;
|
21
|
+
}
|
22
|
+
var paths = {};
|
23
|
+
// Examples
|
24
|
+
paths.examples = sharedPaths('examples');
|
25
|
+
// Test
|
26
|
+
paths.test = sharedPaths('test');
|
27
|
+
paths.test.lib = path.join('test', 'lib');
|
28
|
+
// Jade Test
|
29
|
+
paths.test.jade = {};
|
30
|
+
paths.test.jade.src = path.join(paths.test.src, 'jade');
|
31
|
+
paths.test.jade.build = path.join(paths.test.build, 'html');
|
32
|
+
paths.test.jade.srcGlob = paths.test.jade.src + '/*.jade';
|
33
|
+
paths.test.jade.srcWatchGlob = paths.test.jade.src + '/**/*.jade';
|
34
|
+
// Dist
|
35
|
+
paths.dist = {};
|
36
|
+
paths.dist.sass = {};
|
37
|
+
paths.dist.sass.src = 'dist';
|
38
|
+
paths.dist.sass.srcGlob = paths.dist.sass.src + '/*.scss';
|
39
|
+
paths.dist.sass.build = paths.dist.sass.src;
|
40
|
+
paths.dist.sass.srcWatchGlob = 'dist/**/*.scss';
|
41
|
+
|
42
|
+
// Sass
|
43
|
+
|
44
|
+
function doSass(srcPath, buildPath) {
|
45
|
+
gulp.src(srcPath)
|
46
|
+
.pipe(sass().on('error', sass.logError))
|
47
|
+
.pipe(gulp.dest(buildPath));
|
48
|
+
}
|
49
|
+
|
50
|
+
gulp.task('sass-examples', function () {
|
51
|
+
doSass(paths.examples.sass.srcGlob, paths.examples.sass.build);
|
52
|
+
});
|
53
|
+
|
54
|
+
gulp.task('sass-test', function () {
|
55
|
+
doSass(paths.test.sass.srcGlob, paths.test.sass.build);
|
56
|
+
});
|
57
|
+
|
58
|
+
gulp.task('sass-dist', function () {
|
59
|
+
doSass(paths.dist.sass.srcGlob, paths.dist.sass.build);
|
60
|
+
});
|
61
|
+
|
62
|
+
// Jade
|
63
|
+
|
64
|
+
function doJade(srcPath, buildPath) {
|
65
|
+
gulp.src(srcPath)
|
66
|
+
.pipe(plumber())
|
67
|
+
.pipe(jade({
|
68
|
+
pretty: true
|
69
|
+
}))
|
70
|
+
.pipe(gulp.dest(buildPath));
|
71
|
+
}
|
72
|
+
|
73
|
+
gulp.task('jade-test', function() {
|
74
|
+
doJade(paths.test.jade.srcGlob, paths.test.jade.build);
|
75
|
+
});
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
// Watch
|
80
|
+
|
81
|
+
gulp.task('watch', function () {
|
82
|
+
gulp.watch(paths.dist.sass.srcWatchGlob, ['sass-dist']);
|
83
|
+
|
84
|
+
var examplesSassPaths = [paths.dist.sass.srcWatchGlob, paths.examples.sass.srcGlob];
|
85
|
+
gulp.watch(examplesSassPaths, ['sass-examples']);
|
86
|
+
// Test sass
|
87
|
+
var testSassPaths = [paths.dist.sass.srcWatchGlob, paths.test.sass.srcGlob];
|
88
|
+
gulp.watch(testSassPaths, ['sass-test']);
|
89
|
+
gulp.watch(paths.test.jade.srcWatchGlob, ['jade-test']);
|
90
|
+
});
|
91
|
+
|
92
|
+
gulp.task('jade', ['jade-test']);
|
93
|
+
gulp.task('sass', ['sass-examples', 'sass-test', 'sass-dist']);
|
94
|
+
gulp.task('default', ['sass', 'jade']);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"name": "Raster",
|
3
|
+
"version": "0.0.0",
|
4
|
+
"repository": {
|
5
|
+
"type": "git",
|
6
|
+
"url": "https://github.com/robenkleene/raster.git"
|
7
|
+
},
|
8
|
+
"scripts": {
|
9
|
+
"test": "test/scripts/run_tests.js"
|
10
|
+
},
|
11
|
+
"devDependencies": {
|
12
|
+
"chai": "^2.3.0",
|
13
|
+
"glob": "^5.0.10",
|
14
|
+
"gulp": "^3.8.11",
|
15
|
+
"gulp-jade": "^1.0.1",
|
16
|
+
"gulp-plumber": "^1.0.1",
|
17
|
+
"gulp-sass": "^2.0.1",
|
18
|
+
"mocha": "^2.2.5"
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,229 @@
|
|
1
|
+
/* Structure */
|
2
|
+
html, body, div, span {
|
3
|
+
margin: 0;
|
4
|
+
padding: 0;
|
5
|
+
border: 0;
|
6
|
+
outline: 0;
|
7
|
+
font-size: 100%;
|
8
|
+
vertical-align: baseline;
|
9
|
+
background: transparent; }
|
10
|
+
|
11
|
+
/* Text */
|
12
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, ol, ul, li, strong, em {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
border: 0;
|
16
|
+
outline: 0;
|
17
|
+
font-size: 100%;
|
18
|
+
vertical-align: baseline;
|
19
|
+
background: transparent; }
|
20
|
+
|
21
|
+
/* Other */
|
22
|
+
applet, object, iframe, abbr, acronym, address, big, cite, code, del, dfn,
|
23
|
+
font, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, b, u, i,
|
24
|
+
center, dl, dt, dd, fieldset, form, label, legend, table, caption, tbody,
|
25
|
+
tfoot, thead, tr, th, td {
|
26
|
+
margin: 0;
|
27
|
+
padding: 0;
|
28
|
+
border: 0;
|
29
|
+
outline: 0;
|
30
|
+
font-size: 100%;
|
31
|
+
vertical-align: baseline;
|
32
|
+
background: transparent; }
|
33
|
+
|
34
|
+
/* Misc */
|
35
|
+
:focus {
|
36
|
+
outline: 0; }
|
37
|
+
|
38
|
+
table {
|
39
|
+
border-collapse: separate;
|
40
|
+
border-spacing: 0; }
|
41
|
+
|
42
|
+
caption, th, td {
|
43
|
+
text-align: left;
|
44
|
+
font-weight: normal; }
|
45
|
+
|
46
|
+
blockquote:before, blockquote:after, q:before, q:after {
|
47
|
+
content: ""; }
|
48
|
+
|
49
|
+
blockquote, q {
|
50
|
+
quotes: "" ""; }
|
51
|
+
|
52
|
+
body {
|
53
|
+
line-height: 1.25rem; }
|
54
|
+
|
55
|
+
h1 {
|
56
|
+
font-size: calc(1em * (36 / 12));
|
57
|
+
margin-bottom: 1.25rem;
|
58
|
+
line-height: calc(3 * 1.25rem); }
|
59
|
+
|
60
|
+
h2 {
|
61
|
+
font-size: calc(1em * (24 / 12));
|
62
|
+
margin-bottom: 1.25rem;
|
63
|
+
line-height: calc(2 * 1.25rem); }
|
64
|
+
|
65
|
+
h3 {
|
66
|
+
font-size: calc(1em * (21 / 12));
|
67
|
+
margin-bottom: 1.25rem;
|
68
|
+
line-height: calc(2 * 1.25rem); }
|
69
|
+
|
70
|
+
h4 {
|
71
|
+
font-size: calc(1em * (18 / 12));
|
72
|
+
margin-bottom: 1.25rem;
|
73
|
+
line-height: calc(2 * 1.25rem); }
|
74
|
+
|
75
|
+
h5 {
|
76
|
+
font-size: calc(1em * (14 / 12));
|
77
|
+
margin-bottom: 1.25rem;
|
78
|
+
line-height: calc(2 * 1.25rem); }
|
79
|
+
|
80
|
+
h6 {
|
81
|
+
font-size: calc(1em * (12 / 12));
|
82
|
+
margin-bottom: 1.25rem;
|
83
|
+
line-height: calc(1 * 1.25rem); }
|
84
|
+
|
85
|
+
p,
|
86
|
+
ul,
|
87
|
+
ol {
|
88
|
+
margin-bottom: 1.25rem; }
|
89
|
+
|
90
|
+
ul ol,
|
91
|
+
ol ol,
|
92
|
+
ul ul,
|
93
|
+
ol ul {
|
94
|
+
margin-bottom: 0; }
|
95
|
+
|
96
|
+
ul {
|
97
|
+
list-style-type: disc;
|
98
|
+
margin-left: 2rem; }
|
99
|
+
|
100
|
+
ol {
|
101
|
+
list-style-type: decimal;
|
102
|
+
margin-left: 2rem; }
|
103
|
+
|
104
|
+
.raster-guidelines {
|
105
|
+
display: -webkit-flex;
|
106
|
+
display: flex;
|
107
|
+
position: absolute;
|
108
|
+
left: 0;
|
109
|
+
top: 0;
|
110
|
+
bottom: 0;
|
111
|
+
right: 0; }
|
112
|
+
|
113
|
+
.raster-guidelines > div.raster-column {
|
114
|
+
display: -webkit-flex;
|
115
|
+
display: flex;
|
116
|
+
background-color: rgba(148, 235, 255, 0.25);
|
117
|
+
margin-right: 1rem;
|
118
|
+
-webkit-flex: 0 0 9rem;
|
119
|
+
flex: 0 0 9rem; }
|
120
|
+
|
121
|
+
.raster-guidelines > div.raster-column:last-child {
|
122
|
+
margin-right: 0; }
|
123
|
+
|
124
|
+
.raster-column > div.raster-unit {
|
125
|
+
background-color: rgba(148, 235, 255, 0.25);
|
126
|
+
margin-right: 1rem;
|
127
|
+
-webkit-flex: 0 0 4rem;
|
128
|
+
flex: 0 0 4rem; }
|
129
|
+
|
130
|
+
.raster-column > div.raster-unit:last-child {
|
131
|
+
margin-right: 0; }
|
132
|
+
|
133
|
+
article#layout {
|
134
|
+
margin: 0 auto;
|
135
|
+
width: 29rem; }
|
136
|
+
|
137
|
+
.indent-one-gutter {
|
138
|
+
margin-left: 1rem; }
|
139
|
+
|
140
|
+
.indent-one-unit {
|
141
|
+
margin-left: 4rem; }
|
142
|
+
|
143
|
+
.indent-one-column {
|
144
|
+
margin-left: 9rem; }
|
145
|
+
|
146
|
+
.indent-two-gutter {
|
147
|
+
margin-left: 2rem; }
|
148
|
+
|
149
|
+
.indent-two-unit {
|
150
|
+
margin-left: 9rem; }
|
151
|
+
|
152
|
+
.indent-two-column {
|
153
|
+
margin-left: 19rem; }
|
154
|
+
|
155
|
+
.indent-three-gutter {
|
156
|
+
margin-left: 3rem; }
|
157
|
+
|
158
|
+
.indent-three-unit {
|
159
|
+
margin-left: 14rem; }
|
160
|
+
|
161
|
+
.indent-three-column {
|
162
|
+
margin-left: 29rem; }
|
163
|
+
|
164
|
+
article#layout-width {
|
165
|
+
display: -webkit-flex;
|
166
|
+
display: flex;
|
167
|
+
flex-wrap: wrap;
|
168
|
+
-webkit-flex-wrap: wrap;
|
169
|
+
justify-content: space-between;
|
170
|
+
-webkit-justify-content: space-between; }
|
171
|
+
|
172
|
+
article#layout-width > .gutters,
|
173
|
+
article#layout-width > .units,
|
174
|
+
article#layout-width > .columns {
|
175
|
+
background-color: #fcfb01; }
|
176
|
+
|
177
|
+
.width-one-gutter {
|
178
|
+
display: -webkit-flex;
|
179
|
+
display: flex;
|
180
|
+
-webkit-flex: 0 0 1rem;
|
181
|
+
flex: 0 0 1rem; }
|
182
|
+
|
183
|
+
.width-one-unit {
|
184
|
+
display: -webkit-flex;
|
185
|
+
display: flex;
|
186
|
+
-webkit-flex: 0 0 4rem;
|
187
|
+
flex: 0 0 4rem; }
|
188
|
+
|
189
|
+
.width-one-column {
|
190
|
+
display: -webkit-flex;
|
191
|
+
display: flex;
|
192
|
+
-webkit-flex: 0 0 9rem;
|
193
|
+
flex: 0 0 9rem; }
|
194
|
+
|
195
|
+
.width-two-gutter {
|
196
|
+
display: -webkit-flex;
|
197
|
+
display: flex;
|
198
|
+
-webkit-flex: 0 0 2rem;
|
199
|
+
flex: 0 0 2rem; }
|
200
|
+
|
201
|
+
.width-two-unit {
|
202
|
+
display: -webkit-flex;
|
203
|
+
display: flex;
|
204
|
+
-webkit-flex: 0 0 9rem;
|
205
|
+
flex: 0 0 9rem; }
|
206
|
+
|
207
|
+
.width-two-column {
|
208
|
+
display: -webkit-flex;
|
209
|
+
display: flex;
|
210
|
+
-webkit-flex: 0 0 19rem;
|
211
|
+
flex: 0 0 19rem; }
|
212
|
+
|
213
|
+
.width-three-gutter {
|
214
|
+
display: -webkit-flex;
|
215
|
+
display: flex;
|
216
|
+
-webkit-flex: 0 0 3rem;
|
217
|
+
flex: 0 0 3rem; }
|
218
|
+
|
219
|
+
.width-three-unit {
|
220
|
+
display: -webkit-flex;
|
221
|
+
display: flex;
|
222
|
+
-webkit-flex: 0 0 14rem;
|
223
|
+
flex: 0 0 14rem; }
|
224
|
+
|
225
|
+
.width-three-column {
|
226
|
+
display: -webkit-flex;
|
227
|
+
display: flex;
|
228
|
+
-webkit-flex: 0 0 29rem;
|
229
|
+
flex: 0 0 29rem; }
|