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.
Files changed (51) hide show
  1. data/.gitignore +0 -3
  2. data/Gemfile +3 -3
  3. data/LICENSE.txt +22 -22
  4. data/README.md +39 -35
  5. data/Rakefile +6 -6
  6. data/assets/js/edge/edge.collect.js +13 -13
  7. data/assets/js/edge/edge.ie8.js +4 -13
  8. data/assets/js/edge/edge.prism.js +692 -0
  9. data/assets/js/edge/edge.template.js +15 -0
  10. data/assets/js/edge.js +15 -15
  11. data/{template/base/assets → assets}/js/vendor/custom.modernizr.js +4 -4
  12. data/assets/js/vendor/jquery.min.js +6 -0
  13. data/assets/sass/edge/_base.scss +54 -26
  14. data/assets/sass/edge/_components.scss +2 -1
  15. data/assets/sass/edge/_helpers.scss +1 -0
  16. data/assets/sass/edge/components/_code.scss +320 -0
  17. data/assets/sass/edge/components/_normalize.scss +7 -16
  18. data/assets/sass/edge/components/_typography.scss +11 -16
  19. data/assets/sass/edge/helpers/_sticky-footer.scss +13 -13
  20. data/assets/test.html +74 -0
  21. data/assets/test2.html +28 -16
  22. data/edge.gemspec +26 -26
  23. data/lib/edge/version.rb +4 -4
  24. data/lib/edge_framework.rb +85 -85
  25. data/template/base/assets/sass/_setting.scss +33 -23
  26. data/template/html/index.html +1 -1
  27. data/template/php/partials/header.php +1 -1
  28. data/template/wordpress/404.php +6 -5
  29. data/template/wordpress/category.php +20 -20
  30. data/template/wordpress/footer.php +2 -1
  31. data/template/wordpress/functions.php +24 -10
  32. data/template/wordpress/header.php +8 -9
  33. data/template/wordpress/index.php +53 -6
  34. data/template/wordpress/page.php +18 -0
  35. data/template/wordpress/single.php +19 -3
  36. data/template/wordpress/style.css +12 -0
  37. metadata +31 -22
  38. checksums.yaml +0 -15
  39. data/Gemfile.lock +0 -40
  40. data/assets/js/edge/edge.notification.js +0 -0
  41. data/assets/js/sh/clipboard.swf +0 -0
  42. data/assets/js/sh/shBrushCss.js +0 -91
  43. data/assets/js/sh/shBrushJScript.js +0 -52
  44. data/assets/js/sh/shBrushPhp.js +0 -88
  45. data/assets/js/sh/shBrushRuby.js +0 -55
  46. data/assets/js/sh/shBrushSass.js +0 -94
  47. data/assets/js/sh/shBrushXml.js +0 -71
  48. data/assets/js/sh/shCore.js +0 -17
  49. data/assets/sass/for-test.scss +0 -169
  50. data/template/base/config.rb +0 -16
  51. /data/{template/base/assets/js/vendor → assets/js-docs}/jquery.min.js +0 -0
data/.gitignore CHANGED
@@ -1,4 +1,3 @@
1
- assets/test.html
2
1
  assets/css/
3
2
  assets/sass/for-test.scss
4
3
  config.rb
@@ -10,7 +9,6 @@ config.rb
10
9
  *.pydevproject
11
10
  .project
12
11
  .metadata
13
- bin/
14
12
  tmp/
15
13
  *.tmp
16
14
  *.bak
@@ -52,7 +50,6 @@ local.properties
52
50
  [Rr]elease/
53
51
  x64/
54
52
  build/
55
- [Bb]in/
56
53
  [Oo]bj/
57
54
 
58
55
  # MSTest test Results
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in edge-style.gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in edge-style.gemspec
4
4
  gemspec
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2013 Henner Setyono
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2013 Henner Setyono
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,35 +1,39 @@
1
- Welcome to Edge Framework
2
- ==========================
3
-
4
- Edge is a light-weight responsive SASS framework. It is built for developers that are working with dedicated designer. Edge offers non-intrusive and easily overriden style.
5
-
6
- It is based on [Foundation by ZURB](http://www.zurb.com).
7
-
8
- Edge is MIT-licensed and absolutely free to use.
9
-
10
- Installation
11
- =============
12
-
13
- We distribute Edge using Rubygems, just type in the following commands on your `terminal`:
14
-
15
- gem install edge_framework
16
-
17
- Windows PC doesn't come with Ruby pre-installed, so you can follow [this Ruby installation guide](https://docs.google.com/document/d/155e-Dx4SnQj_bMrM24kI4_ZEmBp-TQ_tuinhMvZsIhM/edit?usp=sharing) we wrote. After you installed Ruby, type in the command above on `cmd` (command prompt).
18
-
19
- We assume that you know how to use Sass and Compass. If not, you can find a lot of decent tutorial on YouTube or other site.
20
-
21
- Template Generator
22
- ====================
23
-
24
- Edge can generate basic template for your project. Open `cmd` or `terminal` in your project directory and type in one of these commands:
25
-
26
- 1. Standard HTML
27
-
28
- `edge create html <project_name>`
29
-
30
- 2. Standard PHP
31
-
32
- `edge create php <project_name>`
33
-
34
- 3. Coming soon: Rails, Sinatra, Django, Flask
35
-
1
+ Welcome to Edge Framework
2
+ ==========================
3
+
4
+ Edge is a light-weight responsive SASS framework. It is built for developers that are working with dedicated designer. Edge offers non-intrusive and easily overriden style.
5
+
6
+ It is based on [Foundation by ZURB](http://www.zurb.com).
7
+
8
+ Edge is MIT-licensed and absolutely free to use.
9
+
10
+ Installation
11
+ =============
12
+
13
+ We distribute Edge using Rubygems, just type in the following commands on your `terminal`:
14
+
15
+ gem install edge_framework
16
+
17
+ Windows PC doesn't come with Ruby pre-installed, so you can follow [this Ruby installation guide](https://docs.google.com/document/d/155e-Dx4SnQj_bMrM24kI4_ZEmBp-TQ_tuinhMvZsIhM/edit?usp=sharing) we wrote. After you installed Ruby, type in the command above on `cmd` (command prompt).
18
+
19
+ We assume that you know how to use Sass and Compass. If not, you can find a lot of decent tutorial on YouTube or other site.
20
+
21
+ Template Generator
22
+ ====================
23
+
24
+ Edge can generate basic template for your project. Open `cmd` or `terminal` in your project directory and type in one of these commands:
25
+
26
+ 1. Standard HTML
27
+
28
+ `edge create html <project_name>`
29
+
30
+ 2. Standard PHP
31
+
32
+ `edge create php <project_name>`
33
+
34
+ 3. Wordpress
35
+
36
+ `edge create wordpress <project_name>`
37
+
38
+ 4. Coming soon: Rails, Sinatra, Django, Flask
39
+
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new
5
-
6
- task :default => :spec
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :default => :spec
7
7
  task :test => :spec
@@ -1,9 +1,9 @@
1
1
  ;(function ($, window, document, undefined) {
2
- 'use strict';
2
+ "use strict";
3
3
 
4
4
  Edge.libs.collect = {
5
- name : 'collect',
6
- version : '1.0',
5
+ name : "collect",
6
+ version : "1.0",
7
7
  settings : {
8
8
  ignoreIfBlank : true,
9
9
  debug : false,
@@ -11,7 +11,7 @@
11
11
  },
12
12
 
13
13
  init: function( scope, method, options ) {
14
- console.log('collect');
14
+ console.log("collect");
15
15
  // If scope isn't `document`, fetch the data
16
16
  if($(scope)[0] !== $(document)[0] ) {
17
17
  $.extend(true, this.settings, method);
@@ -25,18 +25,18 @@
25
25
  },
26
26
 
27
27
  fetch: function() {
28
- console.log('fetch');
28
+ console.log("fetch");
29
29
  var self = this;
30
- var $inputs = $(this.scope).find('input, select, textarea');
30
+ var $inputs = $(this.scope).find("input, select, textarea");
31
31
  $inputs.each(function( index ){
32
32
  var $this = $(this);
33
- var type = $this.attr('type');
34
- var name = $this.attr('name');
33
+ var type = $this.attr("type");
34
+ var name = $this.attr("name");
35
35
 
36
36
  // Split the name and create the object
37
- var table = name.split('_')[0];
38
- var column = name.split('_')[1].split(/(?=[A-Z])/);
39
- column = column.join('_').toLowerCase();
37
+ var table = name.split("_")[0];
38
+ var column = name.split("_")[1].split(/(?=[A-Z])/);
39
+ column = column.join("_").toLowerCase();
40
40
 
41
41
  // If doesn't exists, initialize it
42
42
  if(!self.bundle[table] ) {
@@ -44,8 +44,8 @@
44
44
  }
45
45
 
46
46
  // If checkbox or radio
47
- if(type==='checkbox' || type==='radio') {
48
- if($this.attr('checked') ) {
47
+ if(type==="checkbox" || type==="radio") {
48
+ if($this.attr("checked") ) {
49
49
  //console.log($this.val() );
50
50
  }
51
51
  } else {
@@ -1,24 +1,15 @@
1
1
  ;(function ($, window, document, undefined) {
2
- 'use strict';
2
+ "use strict";
3
3
 
4
4
  Edge.libs.ie8 = {
5
- name : 'ie8',
6
- version : '1.0',
5
+ name : "ie8",
6
+ version : "1.0",
7
7
  settings : {
8
8
 
9
9
  },
10
10
 
11
11
  init: function( scope, method, options ) {
12
- console.log('ie8');
13
- this.columnFix();
14
- },
15
12
 
16
- columnFix: function() {
17
- if($('html').hasClass('lt-ie9') ) {
18
- $('.columns:last-child, .column:last-child').each(function() {
19
- $(this).addClass('last');
20
- });
21
- }
22
- }
13
+ },
23
14
  }
24
15
  }(jQuery, this, this.document) );