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.
Files changed (37) hide show
  1. data/README.md +6 -10
  2. data/assets/js/edge/edge.animate.js +0 -0
  3. data/assets/sass/edge/_base.scss +34 -22
  4. data/assets/sass/edge/_components.scss +5 -4
  5. data/assets/sass/edge/_helpers.scss +2 -14
  6. data/assets/sass/edge/components/_animate.scss +151 -0
  7. data/assets/sass/edge/components/_button.scss +98 -41
  8. data/assets/sass/edge/components/_code.scss +170 -166
  9. data/assets/sass/edge/components/_form.scss +77 -76
  10. data/assets/sass/edge/components/_grid.scss +15 -12
  11. data/assets/sass/edge/components/_normalize.scss +60 -59
  12. data/assets/sass/edge/components/_print.scss +73 -70
  13. data/assets/sass/edge/components/_tile.scss +24 -10
  14. data/assets/sass/edge/components/_typography.scss +127 -138
  15. data/assets/sass/edge/components/_visibility.scss +156 -44
  16. data/assets/sass/edge/helpers/_sprites.scss +75 -63
  17. data/assets/sass/edge/helpers/_sticky-footer.scss +26 -31
  18. data/assets/sass/edge.scss +1 -1
  19. data/assets/sass/for-test.scss +247 -151
  20. data/assets/test.html +323 -11
  21. data/edge.gemspec +17 -18
  22. data/lib/edge/engine.rb +19 -0
  23. data/lib/edge/message.rb +32 -29
  24. data/lib/edge/sprockets.rb +4 -0
  25. data/lib/edge/version.rb +2 -2
  26. data/lib/edge_framework.rb +63 -67
  27. data/template/base/assets/js/app.js +1 -1
  28. data/template/base/assets/sass/_setting.scss +35 -35
  29. data/template/base/config.rb +1 -1
  30. data/template/html/index.html +3 -3
  31. data/template/php/partials/footer.php +2 -2
  32. data/template/wordpress/footer.php +2 -3
  33. metadata +8 -24
  34. data/assets/sass/edge/components/_block-grid-margin.scss +0 -112
  35. data/assets/sass/edge/components/_grid-margin.scss +0 -309
  36. data/assets/sass/edge/components/_grid-old.scss +0 -287
  37. data/lib/edge/console.rb +0 -15
@@ -1,44 +1,45 @@
1
- @if $include-normalize {
2
-
3
- /* ------------------------
4
- EDGE Normalize
5
- Based on git.io/normalize
6
- --------------------------- */
7
- // Normalize can work independently outside EDGE,
8
- // but the reset is 100% complete with EDGE Typography
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
- -webkit-box-sizing: border-box;
15
- -moz-box-sizing: border-box;
16
- box-sizing: border-box;
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
- margin: 0;
22
- padding: 0;
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
- from { padding: 0; }
29
- to { padding: 0; }
29
+ from { padding: 0; }
30
+ to { padding: 0; }
30
31
  }
31
32
 
32
33
  html {
33
- font-family: sans-serif;
34
- -webkit-text-size-adjust: 100%;
35
- -ms-text-size-adjust: 100%;
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
- cursor: pointer;
41
- text-decoration: none;
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
- -moz-box-sizing: content-box;
54
- box-sizing: content-box;
55
- display: block;
56
- height: 1px;
57
- margin: 1em 0;
58
- padding: 0;
59
- border: 0;
60
- border-top: 1px solid #ccc;
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
- border: 0;
66
- display: inline-block;
67
- vertical-align: middle;
68
- -ms-interpolation-mode: bicubic;
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
- max-width: 100%;
76
- height: auto;
76
+ max-width: 100%;
77
+ height: auto;
77
78
  }
78
79
 
79
80
  object,
80
81
  embed {
81
- height: 100%;
82
+ height: 100%;
82
83
  }
83
84
 
84
85
  #map_canvas,
85
86
  .map_canvas {
86
- img,
87
- embed,
88
- object {
89
- max-width: none !important;
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
- display: block;
106
+ display: block;
106
107
  }
107
108
 
108
109
  audio,
109
110
  canvas,
110
111
  video {
111
- display: inline-block;
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
- border : 0;
135
- margin : 0;
136
- padding : 0;
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
- overflow: auto;
153
- vertical-align: top;
154
- resize: vertical;
155
- height: auto;
156
- min-height: 50px;
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
- border: 0 !important;
173
- clip: rect(0 0 0 0) !important;
174
- height: 1px !important;
175
- margin: -1px !important;
176
- overflow: hidden !important;
177
- padding: 0 !important;
178
- position: absolute !important;
179
- width: 1px !important;
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
- @if $include-print {
2
-
3
- /* ------------------------------
4
- H5BP PRINT
5
- - Style for printing the website
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
- background: transparent !important;
11
- color: #000 !important; /* Black prints faster: h5bp.com/s */
12
- box-shadow: none !important;
13
- text-shadow: none !important;
14
- }
15
-
16
- a,
17
- a:visited {
18
- text-decoration: underline;
19
- }
20
-
21
- a[href]:after {
22
- content: " (" attr(href) ")";
23
- }
24
-
25
- abbr[title]:after {
26
- content: " (" attr(title) ")";
27
- }
28
-
29
- /*
30
- * Don't show links for images, or javascript/internal links
31
- */
32
-
33
- .ir a:after,
34
- a[href^="javascript:"]:after,
35
- a[href^="#"]:after {
36
- content: "";
37
- }
38
-
39
- pre,
40
- blockquote {
41
- border: 1px solid #999;
42
- page-break-inside: avoid;
43
- }
44
-
45
- thead {
46
- display: table-header-group; /* h5bp.com/t */
47
- }
48
-
49
- tr,
50
- img {
51
- page-break-inside: avoid;
52
- }
53
-
54
- img {
55
- max-width: 100% !important;
56
- }
57
-
58
- @page {
59
- margin: 0.5cm;
60
- }
61
-
62
- p,
63
- h2,
64
- h3 {
65
- orphans: 3;
66
- widows: 3;
67
- }
68
-
69
- h2,
70
- h3 {
71
- page-break-after: avoid;
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
- // Based on ZURB's Foundation 4
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
- // Calculate width and padding for tile
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
- // Create tile styling for <ul> and <li>
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();