edge_framework 0.9.0 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -10
- data/assets/js/edge/edge.animate.js +0 -0
- data/assets/sass/edge/_base.scss +34 -22
- data/assets/sass/edge/_components.scss +5 -4
- data/assets/sass/edge/_helpers.scss +2 -14
- data/assets/sass/edge/components/_animate.scss +151 -0
- data/assets/sass/edge/components/_button.scss +98 -41
- data/assets/sass/edge/components/_code.scss +170 -166
- data/assets/sass/edge/components/_form.scss +77 -76
- data/assets/sass/edge/components/_grid.scss +15 -12
- data/assets/sass/edge/components/_normalize.scss +60 -59
- data/assets/sass/edge/components/_print.scss +73 -70
- data/assets/sass/edge/components/_tile.scss +24 -10
- data/assets/sass/edge/components/_typography.scss +127 -138
- data/assets/sass/edge/components/_visibility.scss +156 -44
- data/assets/sass/edge/helpers/_sprites.scss +75 -63
- data/assets/sass/edge/helpers/_sticky-footer.scss +26 -31
- data/assets/sass/edge.scss +1 -1
- data/assets/sass/for-test.scss +247 -151
- data/assets/test.html +323 -11
- data/edge.gemspec +17 -18
- data/lib/edge/engine.rb +19 -0
- data/lib/edge/message.rb +32 -29
- data/lib/edge/sprockets.rb +4 -0
- data/lib/edge/version.rb +2 -2
- data/lib/edge_framework.rb +63 -67
- data/template/base/assets/js/app.js +1 -1
- data/template/base/assets/sass/_setting.scss +35 -35
- data/template/base/config.rb +1 -1
- data/template/html/index.html +3 -3
- data/template/php/partials/footer.php +2 -2
- data/template/wordpress/footer.php +2 -3
- metadata +8 -24
- data/assets/sass/edge/components/_block-grid-margin.scss +0 -112
- data/assets/sass/edge/components/_grid-margin.scss +0 -309
- data/assets/sass/edge/components/_grid-old.scss +0 -287
- data/lib/edge/console.rb +0 -15
@@ -1,44 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
// =================
|
2
|
+
// EDGE NORMALIZE
|
3
|
+
// =================
|
4
|
+
// Based on git.io/normalize
|
5
|
+
|
6
|
+
@if $include-normalize and not $external-call {
|
7
|
+
|
8
|
+
/* ----------------
|
9
|
+
EDGE Normalize
|
10
|
+
---------------- */
|
10
11
|
// Set box-sizing globally to handle padding and border widths
|
11
12
|
*,
|
12
13
|
*:before,
|
13
14
|
*:after {
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
-webkit-box-sizing: border-box;
|
16
|
+
-moz-box-sizing: border-box;
|
17
|
+
box-sizing: border-box;
|
17
18
|
}
|
18
19
|
|
19
20
|
// Basic reset margin and padding
|
20
21
|
*, body {
|
21
|
-
|
22
|
-
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
23
24
|
}
|
24
25
|
|
25
26
|
// Chrome Sibling Selector Fix
|
26
27
|
body { -webkit-animation: bugfix infinite 1s; }
|
27
28
|
@-webkit-keyframes bugfix {
|
28
|
-
|
29
|
-
|
29
|
+
from { padding: 0; }
|
30
|
+
to { padding: 0; }
|
30
31
|
}
|
31
32
|
|
32
33
|
html {
|
33
|
-
|
34
|
-
|
35
|
-
|
34
|
+
font-family: sans-serif;
|
35
|
+
-webkit-text-size-adjust: 100%;
|
36
|
+
-ms-text-size-adjust: 100%;
|
36
37
|
}
|
37
38
|
|
38
39
|
// Reset anchor styling
|
39
40
|
a {
|
40
|
-
|
41
|
-
|
41
|
+
cursor: pointer;
|
42
|
+
text-decoration: none;
|
42
43
|
}
|
43
44
|
|
44
45
|
// Remove outline on a:focus
|
@@ -50,44 +51,44 @@ h1, h2, h3, h4, h5, h6 { margin: 0; }
|
|
50
51
|
|
51
52
|
// A better looking default horizontal rule
|
52
53
|
hr {
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
54
|
+
-moz-box-sizing: content-box;
|
55
|
+
box-sizing: content-box;
|
56
|
+
display: block;
|
57
|
+
height: 1px;
|
58
|
+
margin: 1em 0;
|
59
|
+
padding: 0;
|
60
|
+
border: 0;
|
61
|
+
border-top: 1px solid #ccc;
|
61
62
|
}
|
62
63
|
|
63
64
|
// Get rid of gap under images
|
64
65
|
img {
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
66
|
+
border: 0;
|
67
|
+
display: inline-block;
|
68
|
+
vertical-align: middle;
|
69
|
+
-ms-interpolation-mode: bicubic;
|
69
70
|
}
|
70
71
|
|
71
72
|
// Grid Defaults to get images and embeds to work properly
|
72
73
|
img,
|
73
74
|
object,
|
74
75
|
embed {
|
75
|
-
|
76
|
-
|
76
|
+
max-width: 100%;
|
77
|
+
height: auto;
|
77
78
|
}
|
78
79
|
|
79
80
|
object,
|
80
81
|
embed {
|
81
|
-
|
82
|
+
height: 100%;
|
82
83
|
}
|
83
84
|
|
84
85
|
#map_canvas,
|
85
86
|
.map_canvas {
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
87
|
+
img,
|
88
|
+
embed,
|
89
|
+
object {
|
90
|
+
max-width: none !important;
|
91
|
+
}
|
91
92
|
}
|
92
93
|
|
93
94
|
article,
|
@@ -102,13 +103,13 @@ main,
|
|
102
103
|
nav,
|
103
104
|
section,
|
104
105
|
summary {
|
105
|
-
|
106
|
+
display: block;
|
106
107
|
}
|
107
108
|
|
108
109
|
audio,
|
109
110
|
canvas,
|
110
111
|
video {
|
111
|
-
|
112
|
+
display: inline-block;
|
112
113
|
}
|
113
114
|
|
114
115
|
audio:not([controls]) { display: none; height: 0; }
|
@@ -131,9 +132,9 @@ figure { margin: 0; }
|
|
131
132
|
|
132
133
|
// Remove default styling from fieldset tag
|
133
134
|
fieldset {
|
134
|
-
|
135
|
-
|
136
|
-
|
135
|
+
border : 0;
|
136
|
+
margin : 0;
|
137
|
+
padding : 0;
|
137
138
|
}
|
138
139
|
|
139
140
|
legend { border: 0; padding: 0; }
|
@@ -149,11 +150,11 @@ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
|
|
149
150
|
|
150
151
|
// Allow only vertical resizing of textareas.
|
151
152
|
textarea {
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
153
|
+
overflow: auto;
|
154
|
+
vertical-align: top;
|
155
|
+
resize: vertical;
|
156
|
+
height: auto;
|
157
|
+
min-height: 50px;
|
157
158
|
}
|
158
159
|
|
159
160
|
table { border-collapse: collapse; border-spacing: 0; }
|
@@ -169,14 +170,14 @@ table { border-collapse: collapse; border-spacing: 0; }
|
|
169
170
|
.text-justify { text-align: justify !important; }
|
170
171
|
.hide { display: none !important; visibility: hidden !important; }
|
171
172
|
.visual-hide {
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
173
|
+
border: 0 !important;
|
174
|
+
clip: rect(0 0 0 0) !important;
|
175
|
+
height: 1px !important;
|
176
|
+
margin: -1px !important;
|
177
|
+
overflow: hidden !important;
|
178
|
+
padding: 0 !important;
|
179
|
+
position: absolute !important;
|
180
|
+
width: 1px !important;
|
180
181
|
}
|
181
182
|
|
182
183
|
.bold, b, strong { font-weight: 700 !important; }
|
@@ -1,75 +1,78 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
-
|
6
|
-
|
1
|
+
// =============
|
2
|
+
// EDGE PRINT
|
3
|
+
// =============
|
4
|
+
|
5
|
+
@if $include-print and not $external-call {
|
6
|
+
|
7
|
+
/* --------------
|
8
|
+
EDGE Print
|
9
|
+
-------------- */
|
7
10
|
|
8
11
|
@media print {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
12
|
+
* {
|
13
|
+
background: transparent !important;
|
14
|
+
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
15
|
+
box-shadow: none !important;
|
16
|
+
text-shadow: none !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
a,
|
20
|
+
a:visited {
|
21
|
+
text-decoration: underline;
|
22
|
+
}
|
23
|
+
|
24
|
+
a[href]:after {
|
25
|
+
content: " (" attr(href) ")";
|
26
|
+
}
|
27
|
+
|
28
|
+
abbr[title]:after {
|
29
|
+
content: " (" attr(title) ")";
|
30
|
+
}
|
31
|
+
|
32
|
+
/*
|
33
|
+
* Don't show links for images, or javascript/internal links
|
34
|
+
*/
|
35
|
+
|
36
|
+
.ir a:after,
|
37
|
+
a[href^="javascript:"]:after,
|
38
|
+
a[href^="#"]:after {
|
39
|
+
content: "";
|
40
|
+
}
|
41
|
+
|
42
|
+
pre,
|
43
|
+
blockquote {
|
44
|
+
border: 1px solid #999;
|
45
|
+
page-break-inside: avoid;
|
46
|
+
}
|
47
|
+
|
48
|
+
thead {
|
49
|
+
display: table-header-group; /* h5bp.com/t */
|
50
|
+
}
|
51
|
+
|
52
|
+
tr,
|
53
|
+
img {
|
54
|
+
page-break-inside: avoid;
|
55
|
+
}
|
56
|
+
|
57
|
+
img {
|
58
|
+
max-width: 100% !important;
|
59
|
+
}
|
60
|
+
|
61
|
+
@page {
|
62
|
+
margin: 0.5cm;
|
63
|
+
}
|
64
|
+
|
65
|
+
p,
|
66
|
+
h2,
|
67
|
+
h3 {
|
68
|
+
orphans: 3;
|
69
|
+
widows: 3;
|
70
|
+
}
|
71
|
+
|
72
|
+
h2,
|
73
|
+
h3 {
|
74
|
+
page-break-after: avoid;
|
75
|
+
}
|
73
76
|
}
|
74
77
|
|
75
78
|
}
|
@@ -1,12 +1,15 @@
|
|
1
|
-
//
|
2
|
-
// TILE
|
3
|
-
//
|
4
|
-
//
|
1
|
+
// ==============
|
2
|
+
// EDGE TILE
|
3
|
+
// ==============
|
4
|
+
// Based on Foundation 4 by ZURB
|
5
5
|
|
6
6
|
$max-tiles : 12 !default;
|
7
7
|
$tile-gutter : 15px !default;
|
8
8
|
|
9
|
-
//
|
9
|
+
// -----------------------------
|
10
|
+
// TILE CALCULATOR
|
11
|
+
// - Calculate the size of tile
|
12
|
+
// -----------------------------
|
10
13
|
@mixin tile-calc (
|
11
14
|
$per-row : 0,
|
12
15
|
$gutter : $tile-gutter,
|
@@ -29,7 +32,10 @@ $tile-gutter : 15px !default;
|
|
29
32
|
}
|
30
33
|
}
|
31
34
|
|
32
|
-
//
|
35
|
+
// --------------------
|
36
|
+
// TILE
|
37
|
+
// - Create tile list
|
38
|
+
// --------------------
|
33
39
|
@mixin tile (
|
34
40
|
$large : 0,
|
35
41
|
$small : 0,
|
@@ -70,13 +76,21 @@ $tile-gutter : 15px !default;
|
|
70
76
|
}
|
71
77
|
}
|
72
78
|
} // li
|
79
|
+
|
80
|
+
@if $debug and $external-call {
|
81
|
+
$notes: "large-tile-#{$large}";
|
82
|
+
@if $small > 0 {
|
83
|
+
$notes: $notes + " small-tile-#{$small}";
|
84
|
+
}
|
85
|
+
h-tile: $notes;
|
86
|
+
}
|
73
87
|
}
|
74
88
|
|
75
|
-
@if $include-tile {
|
89
|
+
@if $include-tile and not $external-call {
|
76
90
|
|
77
|
-
/*
|
78
|
-
EDGE Block Grid
|
79
|
-
|
91
|
+
/* -----------------
|
92
|
+
EDGE Block Grid
|
93
|
+
----------------- */
|
80
94
|
|
81
95
|
[class*="-tile-"] {
|
82
96
|
@include tile();
|