fuel 0.3.20 → 0.3.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/fuel/default-img.jpg +0 -0
- data/app/assets/images/fuel/icons/navigation-icons.svg +1 -1
- data/app/assets/stylesheets/fuel/_post-editor.scss +27 -0
- data/app/assets/stylesheets/fuel/application.css.scss +1 -0
- data/app/assets/stylesheets/fuel/components/_card.scss +3 -2
- data/app/assets/stylesheets/fuel/components/_forms.scss +22 -22
- data/app/assets/stylesheets/fuel/components/_navigation-icons.scss +3 -2
- data/app/models/fuel/author.rb +1 -1
- data/app/models/fuel/post.rb +1 -1
- data/app/views/fuel/admin/authors/_form.html.erb +1 -1
- data/app/views/fuel/admin/authors/new.html.erb +8 -5
- data/app/views/fuel/admin/posts/_form.html.erb +1 -1
- data/app/views/layouts/fuel/application.html.erb +0 -1
- data/lib/fuel/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f758ad113852efd458994dd705e619617d7991ca
|
4
|
+
data.tar.gz: 32099ff464da5af1dbc13539897dd19c0f87d539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1355cddbe2a6e5e6505d3494f2940bdf76d437f7ad8285d23b409a0cb6df2ffb00ab2de20c438dbeb498f2adba9597725acc2b414cb0e5013c8f0a2d593f28bb
|
7
|
+
data.tar.gz: 4ce2e782c230385aad3e1ea0de8303744d9fa6404f2a7a75ec57b04a5fce979fc21cfc00da67a30a959cfdf8880549f5b967b9a4a4f67596b7e7e06270701b3e
|
Binary file
|
@@ -1 +1 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-58 71 200 50" width="200" height="50"><title>navigation-icons</title><path fill="#FFF"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6-.5-2.1-2.1-8-3.2-9.5zm-18.4-5.2c1.2 0 2.4-.4 3.3-1.2.2-.2.3-.5.1-.7-.2-.2-.5-.3-.7-.1-.8.6-1.7 1-2.7 1-2.3 0-4.2-1.9-4.2-4.2 0-2.3 1.9-4.2 4.2-4.2 1 0 1.9.3 2.7 1 .2.2.5.1.7-.1.2-.2.1-.5-.1-.7-.9-.8-2.1-1.2-3.3-1.2-2.9 0-5.3 2.4-5.3 5.3.1 2.8 2.4 5.1 5.3 5.1zm28.4 7.3c-.6-2.5-1.1-4.2-1.7-4.9-1.4-2-3.7-1.9-3.8-1.9h-2.2c-.1 0-2.8-.3-4.2 1.7-.2.2-.1.6.1.7.2.2.6.1.7-.1 1.1-1.5 3.2-1.3 3.3-1.3h2.3s1.9 0 2.9 1.5c.3.5.8 1.6 1.5 4.6.1.2.3.4.5.4h.1c.4-.1.5-.4.5-.7zm-23.8-4.3c.1.2.5.3.7.2.2-.1.3-.5.2-.7-1.4-2.3-4.3-2-4.3-2h-2.3c-.1 0-2.4-.1-3.8 1.9-.5.8-1.1 2.5-1.7 4.9-.1.3.1.6.4.6h.1c.2 0 .5-.2.5-.4.5-2.3 1-3.9 1.5-4.6 1-1.5 2.8-1.5 2.9-1.5h2.3c.1.1 2.4-.1 3.5 1.6z"/></svg>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// WYSIWYG Editors Styles
|
2
|
+
// ========================================
|
3
|
+
|
4
|
+
|
5
|
+
// Variables
|
6
|
+
$editor-header-background: $white-light;
|
7
|
+
|
8
|
+
$editor-border: 1px solid $grey-light;
|
9
|
+
$editor-border-radius: 2px;
|
10
|
+
|
11
|
+
|
12
|
+
// Structure
|
13
|
+
.froala-box {
|
14
|
+
border-radius: $editor-border-radius;
|
15
|
+
overflow: hidden;
|
16
|
+
}
|
17
|
+
|
18
|
+
.froala-editor.gray-theme {
|
19
|
+
background: $editor-header-background;
|
20
|
+
border: $editor-border;
|
21
|
+
}
|
22
|
+
|
23
|
+
.gray-theme.froala-box .froala-wrapper.f-basic {
|
24
|
+
border: $editor-border;
|
25
|
+
border-bottom-left-radius: $editor-border-radius;
|
26
|
+
border-bottom-right-radius: $editor-border-radius;
|
27
|
+
}
|
@@ -19,6 +19,7 @@ $card-padding: 20px;
|
|
19
19
|
|
20
20
|
.card-image {
|
21
21
|
@include rem(margin, 20px auto);
|
22
|
+
border: $card-border;
|
22
23
|
border-radius: 30em;
|
23
24
|
overflow: hidden;
|
24
25
|
|
@@ -34,6 +35,6 @@ $card-padding: 20px;
|
|
34
35
|
}
|
35
36
|
|
36
37
|
.card-image--featured_image {
|
37
|
-
@include rem(height,
|
38
|
-
@include rem(width,
|
38
|
+
@include rem(height, 175px);
|
39
|
+
@include rem(width, 175px);
|
39
40
|
}
|
@@ -11,28 +11,7 @@ label {
|
|
11
11
|
text-transform: uppercase;
|
12
12
|
}
|
13
13
|
|
14
|
-
fieldset{ @include rem(margin-bottom, 30px); }
|
15
|
-
|
16
|
-
.half-group {
|
17
|
-
@include span-columns(6 of 12);
|
18
|
-
|
19
|
-
.half-group__nested {
|
20
|
-
@include span-columns(3 of 6);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
.third-group {
|
25
|
-
@include span-columns(4 of 12);
|
26
|
-
}
|
27
|
-
|
28
|
-
.half-group,
|
29
|
-
.third-group {
|
30
|
-
|
31
|
-
&.last {
|
32
|
-
@include rem(margin-bottom, 20px);
|
33
|
-
margin-right: 0;
|
34
|
-
}
|
35
|
-
}
|
14
|
+
fieldset { @include rem(margin-bottom, 30px); }
|
36
15
|
|
37
16
|
// Inputs
|
38
17
|
#{$all-text-inputs},
|
@@ -87,4 +66,25 @@ select{
|
|
87
66
|
background-position: 97%;
|
88
67
|
background-repeat: no-repeat;
|
89
68
|
background-size: 10px;
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
// Form layouts/groups
|
73
|
+
.half-group {
|
74
|
+
@include span-columns(6 of 12);
|
75
|
+
|
76
|
+
.half-group__nested {
|
77
|
+
@include span-columns(3 of 6);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
.third-group { @include span-columns(4 of 12); }
|
82
|
+
|
83
|
+
.half-group,
|
84
|
+
.third-group {
|
85
|
+
|
86
|
+
&.last {
|
87
|
+
@include rem(margin-bottom, 20px);
|
88
|
+
margin-right: 0;
|
89
|
+
}
|
90
90
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
// Variables
|
6
6
|
$navigation-height: 50px;
|
7
|
-
$navigation-icon-size:
|
7
|
+
$navigation-icon-size: 200px 55px;
|
8
8
|
$navigation-width: 50px;
|
9
9
|
$navigation-icons: image-url('fuel/icons/navigation-icons.svg');
|
10
10
|
|
@@ -25,7 +25,8 @@ $navigation-icons: image-url('fuel/icons/navigation-icons.svg');
|
|
25
25
|
$icons: (
|
26
26
|
authors $navigation-width * 0,
|
27
27
|
posts $navigation-width * 1,
|
28
|
-
settings $navigation-width * 3
|
28
|
+
settings $navigation-width * 3,
|
29
|
+
picture $navigation-width * 4,
|
29
30
|
);
|
30
31
|
|
31
32
|
|
data/app/models/fuel/author.rb
CHANGED
@@ -11,7 +11,7 @@ module Fuel
|
|
11
11
|
[first_name, last_name].compact.join(" ")
|
12
12
|
end
|
13
13
|
|
14
|
-
has_attached_file :avatar, :styles => { :medium => Fuel.configuration.avatar_settings[:styles][:medium], :thumb => Fuel.configuration.avatar_settings[:styles][:thumb] }, :default_url => "/
|
14
|
+
has_attached_file :avatar, :styles => { :medium => Fuel.configuration.avatar_settings[:styles][:medium], :thumb => Fuel.configuration.avatar_settings[:styles][:thumb] }, :default_url => "fuel/default-img.jpg"
|
15
15
|
validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/
|
16
16
|
|
17
17
|
end
|
data/app/models/fuel/post.rb
CHANGED
@@ -11,7 +11,7 @@ module Fuel
|
|
11
11
|
attr_accessible :tag, :author_id, :content, :title, :teaser, :featured_image, :seo_title, :seo_description, :published_at
|
12
12
|
end
|
13
13
|
|
14
|
-
has_attached_file :featured_image, :styles => { :medium => Fuel.configuration.featured_image_settings[:styles][:medium], :thumb => Fuel.configuration.featured_image_settings[:styles][:thumb] }, :default_url => "/
|
14
|
+
has_attached_file :featured_image, :styles => { :medium => Fuel.configuration.featured_image_settings[:styles][:medium], :thumb => Fuel.configuration.featured_image_settings[:styles][:thumb] }, :default_url => "fuel/default-img.jpg"
|
15
15
|
validates_attachment_content_type :featured_image, :content_type => /\Aimage\/.*\Z/
|
16
16
|
|
17
17
|
validates_presence_of :title, :content, :author_id, if: :is_published
|
@@ -45,7 +45,7 @@
|
|
45
45
|
<div class="form-container--right card">
|
46
46
|
<%= f.label :avatar, 'Updated Author Picture' %>
|
47
47
|
<div class="card-image card-image--avatar">
|
48
|
-
<%= image_tag @author.avatar.url
|
48
|
+
<%= image_tag @author.avatar.url %>
|
49
49
|
</div>
|
50
50
|
<%= f.file_field :avatar %>
|
51
51
|
</div>
|
@@ -1,6 +1,9 @@
|
|
1
1
|
<%= render "authors" %>
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<section class="page">
|
3
|
+
<header class="page-header">
|
4
|
+
<h5 class="page-header--title">Add New Author</h5>
|
5
|
+
</header>
|
6
|
+
<div class="page-area">
|
7
|
+
<%= render "form" %>
|
8
|
+
</div>
|
9
|
+
</section>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<div class="form-container--right card">
|
41
41
|
<%= f.label :featured_image, 'Featured Image' %>
|
42
42
|
<div class="card-image card-image--featured_image">
|
43
|
-
<%= image_tag @post.featured_image.url(:medium)
|
43
|
+
<%= image_tag @post.featured_image.url(:medium) %>
|
44
44
|
</div>
|
45
45
|
<%= f.file_field :featured_image %>
|
46
46
|
</div>
|
data/lib/fuel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Francis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- MIT-LICENSE
|
301
301
|
- README.rdoc
|
302
302
|
- Rakefile
|
303
|
+
- app/assets/images/fuel/default-img.jpg
|
303
304
|
- app/assets/images/fuel/icon-test.png
|
304
305
|
- app/assets/images/fuel/icons/application-icons.svg
|
305
306
|
- app/assets/images/fuel/icons/calendar-icon.svg
|
@@ -313,6 +314,7 @@ files:
|
|
313
314
|
- app/assets/javascripts/fuel/rich-text.js
|
314
315
|
- app/assets/javascripts/fuel/sliding-panel.js
|
315
316
|
- app/assets/stylesheets/fuel/_page-layout.scss
|
317
|
+
- app/assets/stylesheets/fuel/_post-editor.scss
|
316
318
|
- app/assets/stylesheets/fuel/_post-list.scss
|
317
319
|
- app/assets/stylesheets/fuel/application.css.scss
|
318
320
|
- app/assets/stylesheets/fuel/base/_base.scss
|