edge_framework 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +0 -3
- data/Gemfile +3 -3
- data/LICENSE.txt +22 -22
- data/README.md +39 -35
- data/Rakefile +6 -6
- data/assets/js/edge/edge.collect.js +13 -13
- data/assets/js/edge/edge.ie8.js +4 -13
- data/assets/js/edge/edge.prism.js +692 -0
- data/assets/js/edge/edge.template.js +15 -0
- data/assets/js/edge.js +15 -15
- data/{template/base/assets → assets}/js/vendor/custom.modernizr.js +4 -4
- data/assets/js/vendor/jquery.min.js +6 -0
- data/assets/sass/edge/_base.scss +54 -26
- data/assets/sass/edge/_components.scss +2 -1
- data/assets/sass/edge/_helpers.scss +1 -0
- data/assets/sass/edge/components/_code.scss +320 -0
- data/assets/sass/edge/components/_normalize.scss +7 -16
- data/assets/sass/edge/components/_typography.scss +11 -16
- data/assets/sass/edge/helpers/_sticky-footer.scss +13 -13
- data/assets/test.html +74 -0
- data/assets/test2.html +28 -16
- data/edge.gemspec +26 -26
- data/lib/edge/version.rb +4 -4
- data/lib/edge_framework.rb +85 -85
- data/template/base/assets/sass/_setting.scss +33 -23
- data/template/html/index.html +1 -1
- data/template/php/partials/header.php +1 -1
- data/template/wordpress/404.php +6 -5
- data/template/wordpress/category.php +20 -20
- data/template/wordpress/footer.php +2 -1
- data/template/wordpress/functions.php +24 -10
- data/template/wordpress/header.php +8 -9
- data/template/wordpress/index.php +53 -6
- data/template/wordpress/page.php +18 -0
- data/template/wordpress/single.php +19 -3
- data/template/wordpress/style.css +12 -0
- metadata +31 -22
- checksums.yaml +0 -15
- data/Gemfile.lock +0 -40
- data/assets/js/edge/edge.notification.js +0 -0
- data/assets/js/sh/clipboard.swf +0 -0
- data/assets/js/sh/shBrushCss.js +0 -91
- data/assets/js/sh/shBrushJScript.js +0 -52
- data/assets/js/sh/shBrushPhp.js +0 -88
- data/assets/js/sh/shBrushRuby.js +0 -55
- data/assets/js/sh/shBrushSass.js +0 -94
- data/assets/js/sh/shBrushXml.js +0 -71
- data/assets/js/sh/shCore.js +0 -17
- data/assets/sass/for-test.scss +0 -169
- data/template/base/config.rb +0 -16
- /data/{template/base/assets/js/vendor → assets/js-docs}/jquery.min.js +0 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
// ------------------------------------------
|
|
2
|
+
// CODE HIGHLIGHTER
|
|
3
|
+
// Based on Prism.js - Coy Theme
|
|
4
|
+
// @origin Tim Shedor
|
|
5
|
+
// https://github.com/tshedor/workshop-wp-theme
|
|
6
|
+
// -------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
$code-font-family : "Consolas", Courier, "monospace" !default;
|
|
9
|
+
$code-theme : light !default; // dark or light
|
|
10
|
+
$code-margin-bottom : 1.5em !default;
|
|
11
|
+
@if $include-typography {
|
|
12
|
+
$code-margin-bottom : $p-margin-bottom;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$code-markup-color : $blue-color;
|
|
16
|
+
$code-js-color : #ff8f00; // orange
|
|
17
|
+
$code-css-color : $green-color;
|
|
18
|
+
$code-ruby-color : $red-color;
|
|
19
|
+
$code-php-color : #626293; // purple
|
|
20
|
+
$code-sass-color : #c6538c; // pink
|
|
21
|
+
|
|
22
|
+
$code-python-color : #376a94; // dark-blue
|
|
23
|
+
|
|
24
|
+
// Add decoration to the code-block
|
|
25
|
+
@mixin code-decor($color) {
|
|
26
|
+
|
|
27
|
+
&:after {
|
|
28
|
+
background: $color;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
code {
|
|
32
|
+
@include background-image(linear-gradient(transparent 50%, rgba($color, .04) 50% ) );
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.line-highlight:before,
|
|
36
|
+
.line-highlight[data-end]:after {
|
|
37
|
+
background: $color;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Add styling to code-block
|
|
42
|
+
@mixin code-block($theme: $code-theme) {
|
|
43
|
+
@if $code-theme == light {
|
|
44
|
+
@include contrasted(#fff);
|
|
45
|
+
} @else if $code-theme == dark {
|
|
46
|
+
@include contrasted(#252525);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@if $include-code {
|
|
51
|
+
/* ------------------
|
|
52
|
+
EDGE CODE Highlighter
|
|
53
|
+
--------------------- */
|
|
54
|
+
|
|
55
|
+
// Reset
|
|
56
|
+
code, kbd, samp {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
&, pre {
|
|
59
|
+
font-size: 1em;
|
|
60
|
+
font-family: $code-font-family;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
pre,
|
|
65
|
+
code {
|
|
66
|
+
@include code-block();
|
|
67
|
+
|
|
68
|
+
white-space: pre;
|
|
69
|
+
word-spacing: normal;
|
|
70
|
+
|
|
71
|
+
@include css3(tab-size, 2, $webkit:false, $moz:true, $ms:false, $o:true);
|
|
72
|
+
@include css3(hyphens, none, $webkit:true, $moz:true, $ms:true, $o:false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
pre {
|
|
76
|
+
position: relative;
|
|
77
|
+
overflow: auto;
|
|
78
|
+
padding: 0;
|
|
79
|
+
margin-bottom: $code-margin-bottom;
|
|
80
|
+
max-height: 30em;
|
|
81
|
+
|
|
82
|
+
@include code-decor($passive-color);
|
|
83
|
+
|
|
84
|
+
@include box-shadow(-1px 0px 0px 0px #ddd, 0px 0px 0px 1px #ddd);
|
|
85
|
+
|
|
86
|
+
@include small {
|
|
87
|
+
&:hover {
|
|
88
|
+
&:after {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&:after {
|
|
95
|
+
content: "";
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: .5em;
|
|
98
|
+
right: .5em;
|
|
99
|
+
|
|
100
|
+
width: 1em;
|
|
101
|
+
height: 1em;
|
|
102
|
+
|
|
103
|
+
background: $passive-color;
|
|
104
|
+
opacity: .2;
|
|
105
|
+
|
|
106
|
+
padding: em(5px 10px);
|
|
107
|
+
font-family: $code-font-family;
|
|
108
|
+
color: white;
|
|
109
|
+
text-transform: uppercase;
|
|
110
|
+
|
|
111
|
+
@include transition($g-transition);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&[data-lang="markup"] {
|
|
115
|
+
@include code-decor($code-markup-color);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&[data-lang="css"] {
|
|
119
|
+
@include code-decor($code-css-color);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&[data-lang="javascript"] {
|
|
123
|
+
@include code-decor($code-js-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&[data-lang="ruby"] {
|
|
127
|
+
@include code-decor($code-ruby-color);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&[data-lang="python"] {
|
|
131
|
+
@include code-decor($code-python-color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
> code {
|
|
135
|
+
display: block;
|
|
136
|
+
overflow: visible;
|
|
137
|
+
background-size: 3em 3em;
|
|
138
|
+
background-origin: content-box;
|
|
139
|
+
padding-left: 0.5em;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:not(pre) {
|
|
144
|
+
> code {
|
|
145
|
+
@include code-block();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Inline code */
|
|
150
|
+
:not(pre) > code[class*="language-"] {
|
|
151
|
+
display: inline-block;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
position:relative;
|
|
154
|
+
padding: 0;
|
|
155
|
+
color: #c92c2c;
|
|
156
|
+
vertical-align: bottom;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.token.comment,
|
|
160
|
+
.token.block-comment,
|
|
161
|
+
.token.prolog,
|
|
162
|
+
.token.doctype,
|
|
163
|
+
.token.cdata {
|
|
164
|
+
color: #7D8B99;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.token.punctuation {
|
|
168
|
+
color: #5F6364;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.token.property,
|
|
172
|
+
.token.tag,
|
|
173
|
+
.token.boolean,
|
|
174
|
+
.token.number,
|
|
175
|
+
.token.function-name,
|
|
176
|
+
.token.constant,
|
|
177
|
+
.token.symbol {
|
|
178
|
+
color: #c92c2c;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.token.selector,
|
|
182
|
+
.token.attr-name,
|
|
183
|
+
.token.string,
|
|
184
|
+
.token.function,
|
|
185
|
+
.token.builtin {
|
|
186
|
+
color: #2f9c0a;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.token.operator,
|
|
190
|
+
.token.entity,
|
|
191
|
+
.token.url,
|
|
192
|
+
.token.variable {
|
|
193
|
+
color: #a67f59;
|
|
194
|
+
background: rgba(255, 255, 255, 0.5);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.token.atrule,
|
|
198
|
+
.token.attr-value,
|
|
199
|
+
.token.keyword,
|
|
200
|
+
.token.class-name {
|
|
201
|
+
color: #1990b8;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.token.regex,
|
|
205
|
+
.token.important {
|
|
206
|
+
color: #e90;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[data-lang="css"] .token.string,
|
|
210
|
+
.style .token.string {
|
|
211
|
+
color: #a67f59;
|
|
212
|
+
background: rgba(255, 255, 255, 0.5);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.token.important {
|
|
216
|
+
font-weight: normal;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.token.entity {
|
|
220
|
+
cursor: help;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.namespace {
|
|
224
|
+
opacity: .7;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Plugin styles */
|
|
228
|
+
|
|
229
|
+
.token.tab:not(:empty):before,
|
|
230
|
+
.token.cr:before,
|
|
231
|
+
.token.lf:before {
|
|
232
|
+
color: #e0d7d1;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Line Highlighter */
|
|
236
|
+
|
|
237
|
+
.line-highlight {
|
|
238
|
+
position: absolute;
|
|
239
|
+
left: 0;
|
|
240
|
+
right: 0;
|
|
241
|
+
padding: inherit 0;
|
|
242
|
+
|
|
243
|
+
background: hsla(24, 20%, 50%,.08);
|
|
244
|
+
background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
|
|
245
|
+
background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
|
|
246
|
+
background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
|
|
247
|
+
background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
|
|
248
|
+
|
|
249
|
+
pointer-events: none;
|
|
250
|
+
|
|
251
|
+
line-height: inherit;
|
|
252
|
+
white-space: pre;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.line-highlight:before,
|
|
256
|
+
.line-highlight[data-end]:after {
|
|
257
|
+
content: attr(data-start);
|
|
258
|
+
position: absolute;
|
|
259
|
+
z-index: 2;
|
|
260
|
+
top: .4em;
|
|
261
|
+
left: .5em;
|
|
262
|
+
min-width: 1em;
|
|
263
|
+
padding: 0 .5em;
|
|
264
|
+
color: hsl(24, 20%, 95%);
|
|
265
|
+
font: bold 65%/1.5 sans-serif;
|
|
266
|
+
text-align: center;
|
|
267
|
+
vertical-align: .3em;
|
|
268
|
+
border-radius: 999px;
|
|
269
|
+
text-shadow: none;
|
|
270
|
+
box-shadow: 0 1px white;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.line-highlight[data-end]:after {
|
|
274
|
+
content: attr(data-end);
|
|
275
|
+
top: auto;
|
|
276
|
+
bottom: .4em;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* Line numbers */
|
|
280
|
+
|
|
281
|
+
pre.line-numbers {
|
|
282
|
+
position: relative;
|
|
283
|
+
counter-reset: linenumber;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
pre.line-numbers > code {
|
|
287
|
+
position: relative;
|
|
288
|
+
padding-left: 2.5em;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.line-numbers .line-numbers-rows {
|
|
292
|
+
position: absolute;
|
|
293
|
+
pointer-events: none;
|
|
294
|
+
top: 0;
|
|
295
|
+
font-size: 100%;
|
|
296
|
+
left: .5em;
|
|
297
|
+
letter-spacing: -1px;
|
|
298
|
+
|
|
299
|
+
-webkit-user-select: none;
|
|
300
|
+
-moz-user-select: none;
|
|
301
|
+
-ms-user-select: none;
|
|
302
|
+
user-select: none;
|
|
303
|
+
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.line-numbers-rows > span {
|
|
307
|
+
pointer-events: none;
|
|
308
|
+
display: block;
|
|
309
|
+
counter-increment: linenumber;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.line-numbers-rows > span:before {
|
|
313
|
+
content: counter(linenumber);
|
|
314
|
+
color: #ddd;
|
|
315
|
+
display: block;
|
|
316
|
+
padding-right: 0.8em;
|
|
317
|
+
text-align: right;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
} // $include-code
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
@if $include-normalize {
|
|
2
2
|
|
|
3
|
-
/*
|
|
3
|
+
/* ------------------------
|
|
4
4
|
EDGE Normalize
|
|
5
5
|
Based on git.io/normalize
|
|
6
|
-
|
|
7
|
-
//
|
|
6
|
+
--------------------------- */
|
|
7
|
+
// Normalize can work independently outside EDGE,
|
|
8
|
+
// but the reset is 100% complete with EDGE Typography
|
|
8
9
|
|
|
9
10
|
// Set box-sizing globally to handle padding and border widths
|
|
10
11
|
*,
|
|
11
12
|
*:before,
|
|
12
13
|
*:after {
|
|
13
|
-
|
|
14
|
+
-webkit-box-sizing: border-box;
|
|
15
|
+
-moz-box-sizing: border-box;
|
|
16
|
+
box-sizing: border-box;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
// Basic reset margin and padding
|
|
@@ -19,11 +22,6 @@ Based on git.io/normalize
|
|
|
19
22
|
padding: 0;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
// html,
|
|
23
|
-
// body {
|
|
24
|
-
// font-size: $base-font-size;
|
|
25
|
-
// }
|
|
26
|
-
|
|
27
25
|
// Chrome Sibling Selector Fix
|
|
28
26
|
body { -webkit-animation: bugfix infinite 1s; }
|
|
29
27
|
@-webkit-keyframes bugfix {
|
|
@@ -50,13 +48,6 @@ a:active, a:hover { outline: 0; }
|
|
|
50
48
|
// Remove default margin from header tag
|
|
51
49
|
h1, h2, h3, h4, h5, h6 { margin: 0; }
|
|
52
50
|
|
|
53
|
-
// Reset paragraph styling
|
|
54
|
-
p {
|
|
55
|
-
line-height: 1.5;
|
|
56
|
-
margin-top: 0;
|
|
57
|
-
margin-bottom: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
51
|
// A better looking default horizontal rule
|
|
61
52
|
hr {
|
|
62
53
|
-moz-box-sizing: content-box;
|
|
@@ -4,10 +4,14 @@ $body-font-color : #222 !default;
|
|
|
4
4
|
$body-font-weight : normal !default;
|
|
5
5
|
$body-font-style : normal !default;
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// Compass' VERTICAL RHYTM
|
|
8
|
+
// note: variable for $body-font-size and $body-line-height is in _base.scss due to it being used in em conversion
|
|
9
|
+
$base-font-size : $body-font-size;
|
|
10
|
+
$base-line-height : $body-line-height;
|
|
11
|
+
|
|
12
|
+
// FONT FAMILY
|
|
8
13
|
$header-font-family : "Helvetica Neue", "Helvetica", Helvetica, Arial, "sans-serif" !default;
|
|
9
14
|
$body-font-family : "Helvetica", Helvetica, Arial, "sans-serif" !default;
|
|
10
|
-
$code-font-family : "Consolas", Courier, "monospace" !default;
|
|
11
15
|
|
|
12
16
|
// HEADER
|
|
13
17
|
$h1-font-size : 44px !default;
|
|
@@ -21,7 +25,7 @@ $header-font-color : $body-font-color !default;
|
|
|
21
25
|
$header-font-weight : 700 !default;
|
|
22
26
|
|
|
23
27
|
// PARAGRAPH
|
|
24
|
-
$p-margin-bottom :
|
|
28
|
+
$p-margin-bottom : 1.5em !default;
|
|
25
29
|
|
|
26
30
|
// LIST
|
|
27
31
|
$ul-parent-style : disc !default;
|
|
@@ -97,6 +101,7 @@ h5 { font-size: em($h5-font-size); }
|
|
|
97
101
|
h6 { font-size: em($h6-font-size); }
|
|
98
102
|
|
|
99
103
|
p {
|
|
104
|
+
margin-top: 0;
|
|
100
105
|
margin-bottom: $p-margin-bottom;
|
|
101
106
|
&:last-child {
|
|
102
107
|
margin-bottom: 0;
|
|
@@ -191,20 +196,10 @@ ol {
|
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
|
|
194
|
-
// Code
|
|
195
|
-
|
|
196
|
-
code, kbd, samp {
|
|
197
|
-
display: inline-block;
|
|
198
|
-
&, pre {
|
|
199
|
-
font-size: 1em;
|
|
200
|
-
font-family: $code-font-family;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
199
|
blockquote {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
cite {
|
|
201
|
+
display: block;
|
|
202
|
+
}
|
|
208
203
|
}
|
|
209
204
|
|
|
210
205
|
} // include-typography
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
// Slight modification from Compass' footer
|
|
4
4
|
// Structure must be:
|
|
5
5
|
// <body>
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
6
|
+
// <div id="main-wrapper">
|
|
7
|
+
// ...
|
|
8
|
+
// <div id="footer-push"></div>
|
|
9
|
+
// </div>
|
|
10
|
+
// <footer class=".main-footer"></footer>
|
|
11
11
|
// </body>
|
|
12
12
|
// -----------------------------------------
|
|
13
13
|
|
|
14
|
-
@mixin sticky-footer($
|
|
15
|
-
$wrapper : '#main-wrapper',
|
|
16
|
-
$footer-
|
|
17
|
-
$footer : '
|
|
14
|
+
@mixin sticky-footer($height,
|
|
15
|
+
$wrapper : '#main-wrapper',
|
|
16
|
+
$footer-push : '#footer-push',
|
|
17
|
+
$footer : '.main-footer',
|
|
18
18
|
$containerize : false) {
|
|
19
19
|
html, body {
|
|
20
20
|
height : 100%;
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
min-height : 100%;
|
|
25
25
|
height : auto !important;
|
|
26
26
|
height : 100%;
|
|
27
|
-
margin : 0 auto ($
|
|
27
|
+
margin : 0 auto ($height * -1);
|
|
28
28
|
@if $containerize {
|
|
29
29
|
max-width : 1440px;
|
|
30
30
|
background : $body-bg;
|
|
31
|
-
@include box-shadow(0px 0px 20px rgba(black, 0.2));
|
|
31
|
+
@include box-shadow(0px 0px 20px rgba(black, 0.2) );
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
#{$footer}, #{$footer-
|
|
34
|
+
#{$footer}, #{$footer-push} {
|
|
35
35
|
margin : 0 auto;
|
|
36
|
-
height : $
|
|
36
|
+
height : $height;
|
|
37
37
|
@if $containerize {
|
|
38
38
|
max-width : 1440px;
|
|
39
39
|
}
|
data/assets/test.html
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
|
6
|
+
<title>Edge Framework</title>
|
|
7
|
+
|
|
8
|
+
<!-- VENDOR -->
|
|
9
|
+
<link rel="stylesheet" href="css/edge.css">
|
|
10
|
+
|
|
11
|
+
<!-- APP Specific -->
|
|
12
|
+
<link rel="stylesheet" href="css/for-test.css">
|
|
13
|
+
|
|
14
|
+
<style>
|
|
15
|
+
.bar1140 {
|
|
16
|
+
width:1140px; margin:0 auto; background: #333; color: white; position:fixed; top:0;
|
|
17
|
+
right:0; left:0; z-index: 2; padding: 10px 0;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
.hide-for-small {
|
|
23
|
+
color: red;
|
|
24
|
+
}
|
|
25
|
+
.hide-for-large {
|
|
26
|
+
color: blue;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="main-wrapper">
|
|
32
|
+
<header class="top-bar"></header>
|
|
33
|
+
|
|
34
|
+
<div class="row">
|
|
35
|
+
<div class="large-8 large-centered column">
|
|
36
|
+
<p>
|
|
37
|
+
Lorem ipsum <span class="hide-for-small">show on large</span>, <span class="hide-for-large">show on small</span>. Labore, non eaque dolor fugiat ex provident quis! Reprehenderit reiciendis eum maiores
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<pre><code>
|
|
41
|
+
<ul class="with-tab">
|
|
42
|
+
<li>...</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</code></pre>
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div id="footer-push"></div>
|
|
49
|
+
</div>
|
|
50
|
+
<footer id="footer">
|
|
51
|
+
</footer>
|
|
52
|
+
|
|
53
|
+
<script src="js-docs/jquery.min.js"></script>
|
|
54
|
+
<script>
|
|
55
|
+
(function () {
|
|
56
|
+
var htmlText = $("pre > code").html();
|
|
57
|
+
// remove trailing and following line break
|
|
58
|
+
var filteredText = htmlText.replace(/</g, "<").replace(/^\n/, "").replace(/\n\s+$/, "");
|
|
59
|
+
|
|
60
|
+
// split the lines and count the offset
|
|
61
|
+
var lines = filteredText.split("\n");
|
|
62
|
+
var offset = lines[0].match(/^\s*/)[ 0 ].length;
|
|
63
|
+
|
|
64
|
+
// remove excess whitespace from each line
|
|
65
|
+
lines = lines.map(function(line) {
|
|
66
|
+
return line.slice(offset);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
//.replace(/(\n)\s+/g, "$1").replace(/^\n/, "");
|
|
70
|
+
$("pre > code").html(lines.join("\n") );
|
|
71
|
+
}() );
|
|
72
|
+
</script>
|
|
73
|
+
</body>
|
|
74
|
+
</html>
|
data/assets/test2.html
CHANGED
|
@@ -18,19 +18,6 @@
|
|
|
18
18
|
}
|
|
19
19
|
</style>
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
<!--SYNTAX HIGHLIGHTER-->
|
|
23
|
-
<link rel="stylesheet" href="css/sh/shCoreDefault.css" />
|
|
24
|
-
<script type="text/javascript" src="js/sh/shCore.js"></script>
|
|
25
|
-
<script type="text/javascript" src="js/sh/shBrushSass.js"></script>
|
|
26
|
-
<script type="text/javascript" src="js/sh/shBrushCss.js"></script>
|
|
27
|
-
<script type="text/javascript" src="js/sh/shBrushXml.js"></script>
|
|
28
|
-
<script type="text/javascript" src="js/sh/shBrushJScript.js"></script>
|
|
29
|
-
|
|
30
|
-
<script type="text/javascript">
|
|
31
|
-
SyntaxHighlighter.config.clipboardSwf = 'js/sh/clipboard.swf';
|
|
32
|
-
SyntaxHighlighter.all();
|
|
33
|
-
</script>
|
|
34
21
|
<style>
|
|
35
22
|
.hide-for-small {
|
|
36
23
|
color: red;
|
|
@@ -49,14 +36,39 @@
|
|
|
49
36
|
<p>
|
|
50
37
|
Lorem ipsum <span class="hide-for-small">show on large</span>, <span class="hide-for-large">show on small</span>. Labore, non eaque dolor fugiat ex provident quis! Reprehenderit reiciendis eum maiores
|
|
51
38
|
</p>
|
|
39
|
+
|
|
40
|
+
<pre><code>
|
|
41
|
+
<ul class="with-tab">
|
|
42
|
+
<li>...</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</code></pre>
|
|
45
|
+
|
|
52
46
|
</div>
|
|
53
47
|
</div>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
48
|
<div id="footer-push"></div>
|
|
58
49
|
</div>
|
|
59
50
|
<footer id="footer">
|
|
60
51
|
</footer>
|
|
52
|
+
|
|
53
|
+
<script src="js-docs/jquery.min.js"></script>
|
|
54
|
+
<script>
|
|
55
|
+
(function () {
|
|
56
|
+
var htmlText = $("pre > code").html();
|
|
57
|
+
// remove trailing and following line break
|
|
58
|
+
var filteredText = htmlText.replace(/</g, "<").replace(/^\n/, "").replace(/\n\s+$/, "");
|
|
59
|
+
|
|
60
|
+
// split the lines and count the offset
|
|
61
|
+
var lines = filteredText.split("\n");
|
|
62
|
+
var offset = lines[0].match(/^\s*/)[ 0 ].length;
|
|
63
|
+
|
|
64
|
+
// remove excess whitespace from each line
|
|
65
|
+
lines = lines.map(function(line) {
|
|
66
|
+
return line.slice(offset);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
//.replace(/(\n)\s+/g, "$1").replace(/^\n/, "");
|
|
70
|
+
$("pre > code").html(lines.join("\n") );
|
|
71
|
+
}() );
|
|
72
|
+
</script>
|
|
61
73
|
</body>
|
|
62
74
|
</html>
|
data/edge.gemspec
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
require File.expand_path('../lib/edge/version', __FILE__)
|
|
3
|
-
|
|
4
|
-
Gem::Specification.new do |s|
|
|
5
|
-
s.name = "edge_framework"
|
|
6
|
-
s.version = Edge::VERSION
|
|
7
|
-
s.authors = ["Henner Setyono"]
|
|
8
|
-
s.email = ["henner@setyono.net"]
|
|
9
|
-
s.description = %q{
|
|
10
|
-
s.summary = %q{
|
|
11
|
-
s.homepage = "http://edge.setyono.net"
|
|
12
|
-
s.license = "MIT"
|
|
13
|
-
|
|
14
|
-
s.files = `git ls-files`.split($/)
|
|
15
|
-
s.executables =
|
|
16
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
|
-
s.require_paths = ["lib"]
|
|
18
|
-
|
|
19
|
-
s.add_dependency "sass", [">= 3.2.0"]
|
|
20
|
-
s.add_dependency "compass", [">= 0.12.0"]
|
|
21
|
-
s.add_dependency "win32console" # Color output for Windows
|
|
22
|
-
|
|
23
|
-
s.add_development_dependency "bundler", "~> 1.3"
|
|
24
|
-
s.add_development_dependency "rake"
|
|
25
|
-
s.add_development_dependency "rspec"
|
|
26
|
-
end
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
require File.expand_path('../lib/edge/version', __FILE__)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |s|
|
|
5
|
+
s.name = "edge_framework"
|
|
6
|
+
s.version = Edge::VERSION
|
|
7
|
+
s.authors = ["Henner Setyono"]
|
|
8
|
+
s.email = ["henner@setyono.net"]
|
|
9
|
+
s.description = %q{Responsive SASS Framework}
|
|
10
|
+
s.summary = %q{Responsive SASS Framework that utilize Compass to its full extend}
|
|
11
|
+
s.homepage = "http://edge.setyono.net"
|
|
12
|
+
s.license = "MIT"
|
|
13
|
+
|
|
14
|
+
s.files = `git ls-files`.split($/)
|
|
15
|
+
s.executables = "edge"
|
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
|
+
s.require_paths = ["lib"]
|
|
18
|
+
|
|
19
|
+
s.add_dependency "sass", [">= 3.2.0"]
|
|
20
|
+
s.add_dependency "compass", [">= 0.12.0"]
|
|
21
|
+
s.add_dependency "win32console" # Color output for Windows
|
|
22
|
+
|
|
23
|
+
s.add_development_dependency "bundler", "~> 1.3"
|
|
24
|
+
s.add_development_dependency "rake"
|
|
25
|
+
s.add_development_dependency "rspec"
|
|
26
|
+
end
|
data/lib/edge/version.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module Edge
|
|
2
|
-
VERSION = "0.6.
|
|
3
|
-
CODENAME = "Barathrum"
|
|
4
|
-
end
|
|
1
|
+
module Edge
|
|
2
|
+
VERSION = "0.6.1"
|
|
3
|
+
CODENAME = "Barathrum"
|
|
4
|
+
end
|