edge_framework 0.8.1 → 0.9.0
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/assets/sass/edge.scss +3 -8
- data/assets/sass/edge/_base.scss +10 -10
- data/assets/sass/edge/components/_code.scss +111 -67
- data/assets/sass/edge/components/_grid.scss +115 -40
- data/assets/sass/edge/components/_tile.scss +26 -25
- data/assets/sass/edge/components/_typography.scss +2 -1
- data/assets/sass/for-test.scss +88 -8
- data/assets/test.html +198 -16
- data/lib/edge/version.rb +1 -1
- data/template/base/assets/img/favicon-big.png +0 -0
- data/template/base/assets/img/favicon.png +0 -0
- data/template/base/assets/sass/_setting.scss +10 -10
- data/template/base/config.rb +1 -1
- data/template/html/index.html +3 -3
- data/template/php/index.php +3 -2
- data/template/php/partials/footer.php +1 -1
- data/template/php/partials/functions.php +9 -13
- data/template/php/partials/header.php +2 -2
- data/template/wordpress/footer.php +2 -2
- data/template/wordpress/header.php +2 -2
- data/template/wordpress/index.php +6 -6
- data/template/wordpress/style.css +1 -1
- metadata +3 -3
- data/template/base/assets/img/favicon.ico +0 -0
data/lib/edge/version.rb
CHANGED
Binary file
|
Binary file
|
@@ -14,10 +14,10 @@
|
|
14
14
|
// $body-font-family : "Helvetica", Helvetica, Arial, "sans-serif";
|
15
15
|
// $code-font-family : "Consolas", Courier, "monospace";
|
16
16
|
|
17
|
-
//
|
17
|
+
// --------------------------------
|
18
18
|
// COLOR
|
19
19
|
// Two main colors of your site
|
20
|
-
//
|
20
|
+
// --------------------------------
|
21
21
|
// $main-color : #0173bc;
|
22
22
|
// $sub-color : #e9e9e9;
|
23
23
|
|
@@ -34,12 +34,12 @@
|
|
34
34
|
|
35
35
|
// ---------------------------
|
36
36
|
// OUTPUT CONFIG
|
37
|
-
// debug - if true :
|
38
|
-
// responsive - if false:
|
37
|
+
// debug - if true : add debug functionality
|
38
|
+
// responsive - if false: prevent the grid from shrinking down
|
39
39
|
// include - if false: remove the CSS output, but can still use the mixin
|
40
40
|
// ------------------------------------------------------------------------------
|
41
|
-
// $debug
|
42
|
-
// $responsive
|
41
|
+
// $debug : false;
|
42
|
+
// $responsive : true;
|
43
43
|
|
44
44
|
// $include-typography : true;
|
45
45
|
// $include-grid : true;
|
@@ -55,12 +55,12 @@
|
|
55
55
|
// ------
|
56
56
|
// BODY
|
57
57
|
// ------
|
58
|
-
// $body-
|
58
|
+
// $body-background : #fff;
|
59
59
|
// $body-font-color : #222;
|
60
60
|
// $body-font-weight : normal;
|
61
61
|
// $body-font-style : normal;
|
62
62
|
|
63
|
-
// $body-font-size : 16px; //
|
63
|
+
// $body-font-size : 16px; // base-value for pixel->em converter
|
64
64
|
// $body-line-height : 1.5;
|
65
65
|
|
66
66
|
// ---------------
|
@@ -105,8 +105,8 @@
|
|
105
105
|
// -------------------
|
106
106
|
// MEDIA QUERIES
|
107
107
|
// -------------------
|
108
|
-
// $
|
109
|
-
// $
|
108
|
+
// $mini-screen : 480px;
|
109
|
+
// $small-screen : 767px;
|
110
110
|
// $large-screen : 1440px;
|
111
111
|
// $retina-screen : 192dpi;
|
112
112
|
|
data/template/base/config.rb
CHANGED
data/template/html/index.html
CHANGED
@@ -8,12 +8,12 @@
|
|
8
8
|
<meta name="keywords" content="search, key, word," /> <!-- Comma-separated list for Search keyword -->
|
9
9
|
|
10
10
|
<!-- FAVICON -->
|
11
|
-
<link rel="icon" type="image/png" href="assets/img/favicon.
|
11
|
+
<link rel="icon" type="image/png" href="assets/img/favicon.png">
|
12
12
|
<link rel="apple-touch-icon-precomposed" href="assets/img/favicon-big.png" />
|
13
13
|
|
14
14
|
<!-- VENDOR -->
|
15
15
|
<script type="text/javascript" src="assets/js/vendor/custom.modernizr.js"></script>
|
16
|
-
<link rel="stylesheet" href="assets/css/
|
16
|
+
<link rel="stylesheet" href="assets/css/framework.css">
|
17
17
|
|
18
18
|
<!-- APP Specific -->
|
19
19
|
<link rel="stylesheet" href="assets/css/app.css">
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
32
32
|
<script type="text/javascript">
|
33
33
|
// Use local jquery, if Google's one fails to load
|
34
|
-
if (typeof jQuery ==
|
34
|
+
if (typeof jQuery == "undefined") {
|
35
35
|
document.write(unescape("%3Cscript src='assets/js/vendor/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
|
36
36
|
}
|
37
37
|
</script>
|
data/template/php/index.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
<?php include "partials/
|
1
|
+
<?php include "partials/functions.php"; get("header"); ?>
|
2
|
+
|
3
|
+
<!-- First thing to do is to open partials/functions.php and change the $server_url value -->
|
2
4
|
|
3
|
-
<!-- Sample content to show how the $root works -->
|
4
5
|
<div class="row">
|
5
6
|
<div class="large-6 large-centered columns">
|
6
7
|
<h1>Home page</h1>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
7
7
|
<script type="text/javascript">
|
8
8
|
// Use local jquery, if Google's fails to load
|
9
|
-
if (typeof jQuery ==
|
9
|
+
if (typeof jQuery == "undefined") {
|
10
10
|
document.write(unescape("%3Cscript src='<?php echo js(); ?>vendor/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
|
11
11
|
}
|
12
12
|
</script>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?php
|
2
2
|
/* ------------------------------------------------
|
3
|
-
-- You must change the server_url to fit your server
|
3
|
+
-- You must change the $server_url to fit your server
|
4
4
|
--
|
5
5
|
-- This file is exclusive to your machine,
|
6
6
|
-- DON'T push your changes to Git
|
@@ -52,10 +52,10 @@ function root() {
|
|
52
52
|
Echo path to assets directory
|
53
53
|
@return = relative path to specified assets directory
|
54
54
|
*/
|
55
|
-
function img() { echo root().
|
56
|
-
function css() { echo root().
|
57
|
-
function js() { echo root().
|
58
|
-
function files() { echo root().
|
55
|
+
function img() { echo root()."assets/img/"; }
|
56
|
+
function css() { echo root()."assets/css/"; }
|
57
|
+
function js() { echo root()."assets/js/"; }
|
58
|
+
function files() { echo root()."assets/files/"; }
|
59
59
|
|
60
60
|
/*
|
61
61
|
Get partials
|
@@ -64,24 +64,20 @@ Get partials
|
|
64
64
|
@return = content of the partial file
|
65
65
|
*/
|
66
66
|
function get($file, $params = array()) {
|
67
|
-
|
68
|
-
if(substr($file, 0, 1) !== '_') {
|
69
|
-
$file = '_'.$file;
|
70
|
-
}
|
71
|
-
return (include root().'partials/'.$file.'.php');
|
67
|
+
return (include root()."partials/".$file.".php");
|
72
68
|
}
|
73
69
|
|
74
70
|
/*
|
75
71
|
Get the last word from the URL, useful for Header-menu's active state
|
76
|
-
|
72
|
+
@return = the last word from the current page
|
77
73
|
*/
|
78
74
|
function get_current_page() {
|
79
|
-
$pageURL =
|
75
|
+
$pageURL = "http";
|
80
76
|
if ($_SERVER["SERVER_PORT"] != "80") {
|
81
77
|
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
82
78
|
} else {
|
83
79
|
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
84
80
|
}
|
85
|
-
$url_break = explode(
|
81
|
+
$url_break = explode("/", $pageURL);
|
86
82
|
return $url_break[count($url_break)-2];
|
87
83
|
}
|
@@ -8,12 +8,12 @@
|
|
8
8
|
<meta name="keywords" content="search, key, word," /> <!-- Comma-separated list for Search keyword -->
|
9
9
|
|
10
10
|
<!-- FAVICON -->
|
11
|
-
<link rel="icon" type="image/png" href="<?php echo img(); ?>favicon.
|
11
|
+
<link rel="icon" type="image/png" href="<?php echo img(); ?>favicon.png">
|
12
12
|
<link rel="apple-touch-icon-precomposed" href="<?php echo img(); ?>favicon-big.png" />
|
13
13
|
|
14
14
|
<!-- VENDOR -->
|
15
15
|
<script type="text/javascript" src="<?php echo js(); ?>vendor/custom.modernizr.js"></script>
|
16
|
-
<link rel="stylesheet" href="<?php echo css(); ?>
|
16
|
+
<link rel="stylesheet" href="<?php echo css(); ?>framework.css">
|
17
17
|
|
18
18
|
<!-- APP Specific -->
|
19
19
|
<link rel="stylesheet" href="<?php echo css(); ?>app.css">
|
@@ -7,8 +7,8 @@
|
|
7
7
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
8
8
|
<script type="text/javascript">
|
9
9
|
// Use local jquery, if Google's one fails to load
|
10
|
-
if (typeof jQuery ==
|
11
|
-
document.write(unescape("%3Cscript src='<?php
|
10
|
+
if (typeof jQuery == "undefined") {
|
11
|
+
document.write(unescape("%3Cscript src='<?php js(); ?>/vendor/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
|
12
12
|
}
|
13
13
|
</script>
|
14
14
|
<script type="text/javascript" src="<?php echo js(); ?>/app.js"></script>
|
@@ -7,12 +7,12 @@
|
|
7
7
|
<meta name="description" content="<?php bloginfo('description'); ?>" />
|
8
8
|
|
9
9
|
<!-- FAVICON -->
|
10
|
-
<link rel="icon" type="image/png" href="<?php img(); ?>/favicon.
|
10
|
+
<link rel="icon" type="image/png" href="<?php img(); ?>/favicon.png">
|
11
11
|
<link rel="apple-touch-icon-precomposed" href="<?php img(); ?>/favicon-big.png" />
|
12
12
|
|
13
13
|
<!-- VENDOR -->
|
14
14
|
<script type="text/javascript" src="<?php js(); ?>/vendor/custom.modernizr.js"></script>
|
15
|
-
<link rel="stylesheet" href="<?php css(); ?>/
|
15
|
+
<link rel="stylesheet" href="<?php css(); ?>/framework.css">
|
16
16
|
|
17
17
|
<!-- APP Specific -->
|
18
18
|
<link rel="stylesheet" href="<?php css(); ?>/app.css">
|
@@ -13,16 +13,16 @@ $categories = get_categories($args);
|
|
13
13
|
|
14
14
|
// Get list of all pages
|
15
15
|
$page_args = array(
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
"child_of" => 0,
|
17
|
+
"sort_order" => "ASC",
|
18
|
+
"sort_column" => "post_title",
|
19
19
|
);
|
20
20
|
$pages = get_pages($args);
|
21
21
|
?>
|
22
22
|
|
23
23
|
<p><small>index.php</small></p>
|
24
24
|
|
25
|
-
<h1>Welcome to <?php bloginfo(
|
25
|
+
<h1>Welcome to <?php bloginfo("name"); ?></h1>
|
26
26
|
|
27
27
|
<h3>Category</h3>
|
28
28
|
<ul>
|
@@ -39,7 +39,7 @@ $pages = get_pages($args);
|
|
39
39
|
<ul>
|
40
40
|
<?php foreach ($pages as $page): ?>
|
41
41
|
<li>
|
42
|
-
<a href="<?php echo get_page_link( $page->ID ); ?>
|
42
|
+
<a href="<?php echo get_page_link( $page->ID ); ?>">
|
43
43
|
<?php echo $page->post_title; ?>
|
44
44
|
</a>
|
45
45
|
</li>
|
@@ -50,7 +50,7 @@ $pages = get_pages($args);
|
|
50
50
|
<h3>About Us</h3>
|
51
51
|
<?php
|
52
52
|
$page = get_page_by_title("About Us");
|
53
|
-
$content = apply_filters(
|
53
|
+
$content = apply_filters("the_content", $page->post_content);
|
54
54
|
echo $content;
|
55
55
|
?>
|
56
56
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edge_framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -164,7 +164,7 @@ files:
|
|
164
164
|
- template/base/assets/files/.keep
|
165
165
|
- template/base/assets/fonts/.keep
|
166
166
|
- template/base/assets/img/favicon-big.png
|
167
|
-
- template/base/assets/img/favicon.
|
167
|
+
- template/base/assets/img/favicon.png
|
168
168
|
- template/base/assets/js/app.js
|
169
169
|
- template/base/assets/sass/_setting.scss
|
170
170
|
- template/base/assets/sass/app.scss
|
Binary file
|