edge_framework 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmM1NjExZjRhOWU0NDkwMTVmMWM3NDdjMjhlNzM3MTBjN2U3MWI3Zg==
4
+ ZTFmMWE5YThmNmEwZjE4YjUxNDc3YTJmMjllZDlhZDBjODY2ZGFiYw==
5
5
  data.tar.gz: !binary |-
6
- ZjZkMzY2MzNmYWUzOTI0M2MxZTIyNmUyNjFjODk3ZjJhNzY5NTJlYw==
6
+ N2U3NWRkNDY5ZGFhYjgwMTc0ZDgzODkzZjk2NDAzZmY2N2FlZmE3ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWMwNzUzZDA1Yzc5NTViOGZhNDVmMGE1ODkzNTY1MWNmMjFlNTM1YjA5ZGIw
10
- ODA5ZWU5MWExNjYzNTdjNzUyN2FlNWY4N2Q0YzlkMDU4NTc0ZDM0ZGRkMDA5
11
- YmMwZjYwNDk2MTJlMTFkZjRlMTBjN2VjNjMyMzAzZGZjNzBjNTI=
9
+ YjRlMGI4NzliMzgzMDI5MDg1NGI2ZTQwYjMzY2MzM2VkY2YzZTJlZWE3NWNj
10
+ NjZmZTQ0YzNiZjY0NmExNTBiZTY3Yzg4M2E3ZmNhMDZmYzEyNTZlOWFiNjIx
11
+ MDQyZjhmMmU2MWFkN2JlYmU2NDkzNzk4ODNmOTE5ODQxODc0OWQ=
12
12
  data.tar.gz: !binary |-
13
- Nzc2MjQ4NzJkNGZkNTE0MzlhZDI4YWI1MmYzYzM5YTAwMmRjM2NmMGE1N2E0
14
- YzJlNThmNWJiMDE3ZWFiYmYxMmJiNTI3MmY4YTEyYTkyYTk2Y2Q5YTJjMDUw
15
- OWY1YmUxNjdiNjZkOGRjYzA1ZDg3MmViOWMzNzNkMjE1ZGEzNTg=
13
+ Zjg0M2QyYzhhNjUxN2JhODViYTIxNTUyY2YxMTUyYmEwMzNiZTVjNWZhOGVh
14
+ MGNhOWRhNjk0NjJjYzlmMTU1M2FjYjgwNzA3MjJhZDkxMWI0NjMxNmVkMzYw
15
+ NzQ3OGM2ODdiY2VkZDViMDNiNDAyMjdhYmE2Y2QwNzYxMmFhYTM=
data/README.md CHANGED
@@ -346,6 +346,7 @@ The icon name is taken from [melchoyce.github.io/dashicons/](http://melchoyce.gi
346
346
  To enable custom WP Query, create a class with the Post Type's name that extends `Post`.
347
347
 
348
348
  // still inside functions.php
349
+
349
350
  class Product extends Post {}
350
351
  class Event extends Post {}
351
352
 
@@ -364,9 +365,9 @@ Based on the example above, create `single-product.php` for single **Product** t
364
365
  Naming Convention
365
366
  -----------------
366
367
 
367
- All names must be **singular** and no special character.
368
+ All names must be **singular**.
368
369
 
369
- Space is the only one allowed but its class name is the **combined words**.
370
+ No special character except space. If contain space, the class' name should be its combined word and no camel casing.
370
371
 
371
372
  add_post_type("Photo Gallery", "format-gallery");
372
373
 
@@ -631,12 +632,10 @@ RAILS
631
632
 
632
633
  Gemfile:
633
634
 
634
- gem 'sass', '= 3.2.14'
635
+ gem 'sass'
635
636
  gem 'sass-rails', '~> 4.0.0'
636
637
  gem 'compass-rails'
637
- gem 'edge_framework'
638
-
639
- The latest version of Sass (3.3.x) is not compatible with latest Compass (0.12.x). So until they fixed it, use Sass version 3.2.14
638
+ gem 'edge_framework', '~> 1.2'
640
639
 
641
640
  Template generator:
642
641
 
@@ -2,7 +2,7 @@
2
2
  // EDGE FORM
3
3
  // ============
4
4
 
5
- $input-padding : em(10px);
5
+ $input-padding : 10px;
6
6
  $input-border-style : 1px solid;
7
7
  $input-border-color : $passive-color;
8
8
 
@@ -210,7 +210,7 @@ $column-gutter : 20px !default;
210
210
  @include below(small) {
211
211
  @include base-column($size:$small, $total:$total);
212
212
  }
213
- } @else { // else, become 100% width on small
213
+ } @else if $responsive { // else, become 100% width on small screen (if responsive)
214
214
  @include below(small) {
215
215
  @include base-column($size:$total, $total:$total);
216
216
  }
@@ -290,6 +290,12 @@ $column-gutter : 20px !default;
290
290
  EDGE Grid
291
291
  ------------ */
292
292
 
293
+ @if not $responsive {
294
+ body {
295
+ min-width: $row-max-width + ($column-gutter * 2);
296
+ }
297
+ }
298
+
293
299
  // Normal row
294
300
  .row {
295
301
  @include base-row($for-base:true);
@@ -122,6 +122,7 @@ audio:not([controls]) { display: none; height: 0; }
122
122
 
123
123
  abbr[title] { border-bottom: 1px dotted; }
124
124
  dfn { font-style: italic; }
125
+ address, cite { font-style: normal; }
125
126
 
126
127
  mark { background: #ff0; color: #000; }
127
128
  code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; }
data/edge.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_dependency "sass", "~> 3.2"
20
20
  s.add_dependency "compass", "~> 0.12"
21
+ s.add_dependency "premailer", "~> 1.8"
21
22
 
22
23
  s.add_development_dependency "bundler", "~> 1.3"
23
24
  s.add_development_dependency "rake", "~> 10.3"
data/lib/edge/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Edge
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  CODENAME = "Ezalor"
4
4
  end
@@ -1,5 +1,7 @@
1
+ gem "edge_framework", "~> 1.2"
1
2
  require "edge_framework"
2
3
 
4
+
3
5
  http_path = "/"
4
6
  css_dir = "assets/css"
5
7
  images_dir = "assets/img"
@@ -0,0 +1,100 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Untitled</title>
7
+ <style type="text/css" data-premailer="ignore">
8
+ /* Reset */
9
+ #outlook a { padding: 0; }
10
+ body { width: 100% !important; margin: 0; padding: 0; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
11
+
12
+ .ExternalClass { width: 100%; }
13
+ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; }
14
+
15
+ #backgroundTable {margin: 0; padding: 0; width: 100% !important; line-height: 100% !important; }
16
+
17
+ /* Image - remove spacing */
18
+ img { outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; }
19
+ a img { border: none; }
20
+ .image-fix { display: block; }
21
+
22
+ /* Yahoo */
23
+ p { margin: 1em 0; }
24
+
25
+ /* Hotmail reset */
26
+ h1, h2, h3, h4, h5, h6 { color: black !important; }
27
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: blue !important; }
28
+ h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active { color: red !important; }
29
+ h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited { color: purple !important; }
30
+
31
+ /* Outlook 2007 and 2010 */
32
+ table td { border-collapse: collapse; }
33
+ table { border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
34
+
35
+ /* NOTE: To properly use @media queries and play nice with yahoo mail, use attribute selectors in place of class, id declarations.
36
+ table[class=classname]
37
+ Read more: http://www.campaignmonitor.com/blog/post/3457/media-query-issues-in-yahoo-mail-mobile-email/
38
+ */
39
+ @media only screen and (max-device-width: 480px) {
40
+
41
+ /* A nice and clean way to target phone numbers you want clickable and avoid a mobile phone from linking other numbers that look like, but are not phone numbers. Use these two blocks of code to "unstyle" any numbers that may be linked. The second block gives you a class to apply with a span tag to the numbers you would like linked and styled.
42
+
43
+ Inspired by Campaign Monitor's article on using phone numbers in email: http://www.campaignmonitor.com/blog/post/3571/using-phone-numbers-in-html-email/.
44
+
45
+ Step 1 (Step 2: line 224)
46
+ */
47
+ a[href^="tel"], a[href^="sms"] {
48
+ text-decoration: none;
49
+ color: black; /* or whatever your want */
50
+ pointer-events: none;
51
+ cursor: default;
52
+ }
53
+
54
+ .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
55
+ text-decoration: default;
56
+ color: orange !important; /* or whatever your want */
57
+ pointer-events: auto;
58
+ cursor: default;
59
+ }
60
+ }
61
+
62
+ /* More Specific Targeting */
63
+
64
+ @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
65
+ /* You guessed it, ipad (tablets, smaller screens, etc) */
66
+
67
+ /* Step 1a: Repeating for the iPad */
68
+ a[href^="tel"], a[href^="sms"] {
69
+ text-decoration: none;
70
+ color: blue; /* or whatever your want */
71
+ pointer-events: none;
72
+ cursor: default;
73
+ }
74
+
75
+ .mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
76
+ text-decoration: default;
77
+ color: orange !important;
78
+ pointer-events: auto;
79
+ cursor: default;
80
+ }
81
+ }
82
+
83
+ @media only screen and (-webkit-min-device-pixel-ratio: 2) {
84
+ /* Put your iPhone 4g styles in here */
85
+ }
86
+
87
+ /* Following Android targeting from:
88
+ http://developer.android.com/guide/webapps/targeting.html
89
+ http://pugetworks.com/2011/04/css-media-queries-for-targeting-different-mobile-devices/ */
90
+ @media only screen and (-webkit-device-pixel-ratio:.75){
91
+ /* Put CSS for low density (ldpi) Android layouts in here */
92
+ }
93
+ @media only screen and (-webkit-device-pixel-ratio:1){
94
+ /* Put CSS for medium density (mdpi) Android layouts in here */
95
+ }
96
+ @media only screen and (-webkit-device-pixel-ratio:1.5){
97
+ /* Put CSS for high density (hdpi) Android layouts in here */
98
+ }
99
+ /* end Android targeting */
100
+ </style>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edge_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henner Setyono
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-18 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: premailer
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.8'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.8'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -140,6 +154,7 @@ files:
140
154
  - template/base/config.rb
141
155
  - template/base/gitignore
142
156
  - template/base/robots.txt
157
+ - template/email/index.html
143
158
  - template/html/index.html
144
159
  - template/rails/app.js
145
160
  - template/rails/application.html.erb