fuel 0.3.3 → 0.3.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/app/assets/images/fuel/icon-test.png +0 -0
- data/app/assets/images/fuel/icons/application-icons.svg +1 -0
- data/app/assets/images/fuel/icons/calendar-icon.svg +1 -0
- data/app/assets/images/fuel/icons/dropdown-arrow-icon.svg +10 -0
- data/app/assets/images/fuel/icons/navigation-icons.svg +1 -0
- data/app/assets/javascripts/fuel/admin.js.erb +17 -17
- data/app/assets/javascripts/fuel/application.js +8 -0
- data/app/assets/javascripts/fuel/datepicker.js +11 -0
- data/app/assets/javascripts/fuel/facebook.js +12 -0
- data/app/assets/javascripts/fuel/posts.js.erb +16 -0
- data/app/assets/javascripts/fuel/rich-text.js +9 -0
- data/app/assets/javascripts/fuel/sliding-panel.js +11 -0
- data/app/assets/stylesheets/fuel/_page-layout.scss +61 -0
- data/app/assets/stylesheets/fuel/_post-list.scss +70 -0
- data/app/assets/stylesheets/fuel/application.css.scss +27 -2
- data/app/assets/stylesheets/fuel/base/_base.scss +5 -0
- data/app/assets/stylesheets/fuel/base/_layout.scss +54 -0
- data/app/assets/stylesheets/fuel/base/_typography.scss +102 -0
- data/app/assets/stylesheets/fuel/components/_alerts.scss +27 -0
- data/app/assets/stylesheets/fuel/components/_animations.scss +26 -0
- data/app/assets/stylesheets/fuel/components/_application-icons.scss +42 -0
- data/app/assets/stylesheets/fuel/components/_buttons.scss +106 -0
- data/app/assets/stylesheets/fuel/components/_card.scss +39 -0
- data/app/assets/stylesheets/fuel/components/_components.scss +13 -0
- data/app/assets/stylesheets/fuel/components/_forms.scss +90 -0
- data/app/assets/stylesheets/fuel/components/_navbar.scss +45 -0
- data/app/assets/stylesheets/fuel/components/_navigation-icons.scss +41 -0
- data/app/assets/stylesheets/fuel/components/_page-sidebar.scss +60 -0
- data/app/assets/stylesheets/fuel/components/_sliding-panel.scss +59 -0
- data/app/assets/stylesheets/fuel/settings/_reset.scss +46 -0
- data/app/assets/stylesheets/fuel/settings/_settings.scss +19 -0
- data/app/assets/stylesheets/fuel/settings/mixins/_layout.scss +20 -0
- data/app/assets/stylesheets/fuel/settings/mixins/_misc.scss +27 -0
- data/app/assets/stylesheets/fuel/settings/mixins/_rem.scss +46 -0
- data/app/assets/stylesheets/fuel/settings/mixins/_typography.scss +64 -0
- data/app/assets/stylesheets/fuel/settings/variables/_alerts.scss +9 -0
- data/app/assets/stylesheets/fuel/settings/variables/_buttons.scss +8 -0
- data/app/assets/stylesheets/fuel/settings/variables/_colors.scss +55 -0
- data/app/assets/stylesheets/fuel/settings/variables/_typography.scss +25 -0
- data/app/controllers/fuel/admin/admin_controller.rb +7 -0
- data/app/controllers/fuel/admin/authors_controller.rb +80 -0
- data/app/controllers/fuel/admin/posts_controller.rb +68 -54
- data/app/controllers/fuel/fuel_controller.rb +5 -0
- data/app/controllers/fuel/posts_controller.rb +13 -7
- data/app/controllers/fuel_controller.rb +5 -0
- data/app/helpers/fuel/posts_helper.rb +28 -1
- data/app/models/fuel.rb +5 -0
- data/app/models/fuel/author.rb +18 -0
- data/app/models/fuel/post.rb +32 -2
- data/app/views/fuel/admin/authors/_authors.html.erb +24 -0
- data/app/views/fuel/admin/authors/_form.html.erb +52 -0
- data/app/views/fuel/admin/authors/edit.html.erb +9 -0
- data/app/views/fuel/admin/authors/index.html.erb +7 -0
- data/app/views/fuel/admin/authors/new.html.erb +6 -0
- data/app/views/fuel/admin/posts/_content.html.erb +5 -0
- data/app/views/fuel/admin/posts/_form.html.erb +56 -0
- data/app/views/fuel/admin/posts/_post_preview.html.erb +12 -0
- data/app/views/fuel/admin/posts/_posts.html.erb +23 -0
- data/app/views/fuel/admin/posts/edit.html.erb +11 -0
- data/app/views/fuel/admin/posts/index.html.erb +6 -0
- data/app/views/fuel/admin/posts/new.html.erb +9 -0
- data/app/views/fuel/components/_navbar.html.erb +22 -0
- data/app/views/fuel/posts/_additional_info.html.erb +7 -0
- data/app/views/fuel/posts/_facebook_sdk.html.erb +17 -0
- data/app/views/fuel/posts/_tweet.html.erb +1 -1
- data/app/views/fuel/posts/index.html.erb +27 -6
- data/app/views/fuel/posts/show.html.erb +19 -2
- data/app/views/layouts/fuel/application.html.erb +19 -12
- data/config/routes.rb +18 -10
- data/db/migrate/20141114201953_add_featured_image_field.rb +5 -0
- data/db/migrate/20141118162158_add_teaser_to_posts.rb +5 -0
- data/db/migrate/20141217174229_add_featured_image_to_posts.rb +10 -0
- data/db/migrate/20150414220732_add_seo_fields_to_post.rb +6 -0
- data/db/migrate/20150529201715_add_posted_at_to_posts.rb +5 -0
- data/db/migrate/20150529202105_create_fuel_authors.rb +13 -0
- data/db/migrate/20150530180444_add_author_id_to_posts.rb +5 -0
- data/db/migrate/20150603205232_add_contact_methods_to_authors.rb +8 -0
- data/db/migrate/20150604155028_add_published_at_to_fuel_posts.rb +5 -0
- data/db/migrate/20150604161900_remove_posted_at_from_fuel_posts.rb +5 -0
- data/lib/blog_importer.rb +82 -0
- data/lib/example_author.rb +108 -0
- data/lib/fuel.rb +7 -1
- data/lib/fuel/configuration.rb +16 -1
- data/lib/fuel/engine.rb +13 -1
- data/lib/fuel/version.rb +1 -1
- data/lib/generators/fuel/install_generator.rb +4 -0
- data/lib/generators/fuel/views_generator.rb +1 -1
- data/lib/generators/templates/fuel.rb +22 -0
- data/lib/kaminari/helpers/tag.rb +16 -0
- data/lib/tasks/fuel_tasks.rake +35 -4
- data/test/fixtures/fuel/authors.yml +11 -0
- data/test/models/fuel/author_test.rb +7 -0
- metadata +191 -15
- data/app/assets/stylesheets/fuel/admin.css.sass +0 -91
- data/app/assets/stylesheets/fuel/posts.css.sass +0 -23
- data/app/controllers/fuel/application_controller.rb +0 -4
- data/app/helpers/fuel/application_helper.rb +0 -34
- data/app/views/fuel/admin/posts/_content.html.slim +0 -3
- data/app/views/fuel/admin/posts/_form.html.slim +0 -28
- data/app/views/fuel/admin/posts/edit.html.slim +0 -4
- data/app/views/fuel/admin/posts/index.html.slim +0 -18
- data/app/views/fuel/admin/posts/new.html.slim +0 -4
- data/app/views/fuel/posts/_post.html.erb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff2011eeabe8349222d67a4fbbd0d956a3f3ee0
|
4
|
+
data.tar.gz: 1384597d1f631815b71b008901e338d361d0bc65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aba7c9cf341709d86e608d452ace95d9660f790085b2ab5d31747aa9e06e7f0d13a755a78d202f16f9ca608301585f125d1e0f4ef28ec2d5748255bdef552ad
|
7
|
+
data.tar.gz: 04b6218fe4ca0d8f4465a7b0ae735b799ed1f706a2b28c439dc347f311926381bfc39d1da02b4ebd8d6eeceb37008a61fbf5f314bff88ce0bdd6189e44a6e5fb
|
data/Rakefile
CHANGED
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-83 71 150 50"><title>application-icons</title><g fill="none" stroke="#FFF"><g stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M33.6 91.6l9 9M42.5 100.4l9-9"/></g><g transform="translate(61 11)" stroke-width="3.025"><circle cx="-73.2" cy="80.8" r="9.8"/><path stroke-linecap="round" stroke-linejoin="round" d="M-65.8 88.2l11.5 11.5"/></g><g stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M-58.8 81.8v28.8M-73 96h28.8"/></g></g></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-140 74 37 43"><title>calendar-icon</title><path fill="#9B9B9B" d="M-105.6 76.7h-4.7v-2c0-.4-.3-.8-.8-.8s-.8.3-.8.8v2h-9.2v-2c0-.4-.3-.8-.8-.8-.4 0-.8.3-.8.8v2h-9.2v-2c0-.4-.3-.8-.7-.8s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-.6.3-1.2.6-1.6 1.1-.4.5-.8 1-1 1.7-.2.6-.3 1.3-.3 2.1 0 .4.3.8.8.8h.7c.4 0 .7-.3.7-.7 0-.5.1-.9.2-1.3s.3-.7.5-.9c.2-.2.5-.4.8-.6.6-.3 1.4-.3 2.2-.1.3.1.6.2.9.4l.6.6c.1.2.2.5.2.8 0 .4-.1.8-.3 1-.2.3-.4.5-.7.6-.3.2-.7.3-1.1.3-.4.1-.9.1-1.3.1-.2 0-.4.1-.6.2-.1.1-.2.3-.2.5v.6c0 .2.1.4.2.5.2.1.4.2.6.2.5 0 1 0 1.5.1.4.1.8.2 1.2.4.3.2.5.4.7.7.2.3.3.7.3 1.2 0 .4-.1.8-.2 1.1-.2.3-.4.6-.6.8-.3.2-.6.4-1 .5-.9.3-1.9.2-2.6-.1-.4-.1-.7-.3-1-.6-.3-.3-.4-.6-.6-1-.1-.4-.2-.9-.2-1.4 0-.2-.1-.4-.2-.5-.1-.1-.3-.2-.5-.2h-.7c-.4 0-.7.3-.8.7 0 .8 0 1.6.3 2.3.2.7.6 1.3 1.1 1.7.5.5 1.1.8 1.8 1.1.7.2 1.4.3 2.2.3.7 0 1.3-.1 2-.3.6-.2 1.2-.5 1.7-.9s.9-.9 1.2-1.5c.3-.6.4-1.3.4-2 0-.5-.1-1-.2-1.5 0-.5-.3-.9-.6-1.3z"/></svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg width="8px" height="11px" viewBox="0 0 8 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
3
|
+
<!-- Generator: Sketch 3.3.2 (12043) - http://www.bohemiancoding.com/sketch -->
|
4
|
+
<title>dropdown-arrow-icon</title>
|
5
|
+
<desc>Created with Sketch.</desc>
|
6
|
+
<defs></defs>
|
7
|
+
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
8
|
+
<path d="M8,7 C8,7.13541734 7.95052133,7.25260367 7.8515625,7.3515625 L4.3515625,10.8515625 C4.25260367,10.9505213 4.13541734,11 4,11 C3.86458266,11 3.74739633,10.9505213 3.6484375,10.8515625 L0.1484375,7.3515625 C0.0494786719,7.25260367 0,7.13541734 0,7 C0,6.86458266 0.0494786719,6.74739633 0.1484375,6.6484375 C0.247396328,6.54947867 0.364582656,6.5 0.5,6.5 L7.5,6.5 C7.63541734,6.5 7.75260367,6.54947867 7.8515625,6.6484375 C7.95052133,6.74739633 8,6.86458266 8,7 L8,7 Z M8,4 C8,4.13541734 7.95052133,4.25260367 7.8515625,4.3515625 C7.75260367,4.45052133 7.63541734,4.5 7.5,4.5 L0.5,4.5 C0.364582656,4.5 0.247396328,4.45052133 0.1484375,4.3515625 C0.0494786719,4.25260367 0,4.13541734 0,4 C0,3.86458266 0.0494786719,3.74739633 0.1484375,3.6484375 L3.6484375,0.1484375 C3.74739633,0.0494786719 3.86458266,0 4,0 C4.13541734,0 4.25260367,0.0494786719 4.3515625,0.1484375 L7.8515625,3.6484375 C7.95052133,3.74739633 8,3.86458266 8,4 L8,4 Z" id="dropdown-arrow-icon" fill="#CCCCCC" sketch:type="MSShapeGroup"></path>
|
9
|
+
</g>
|
10
|
+
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-83 71 150 50"><title>navigation-icons</title><path id="icon" fill="#FFF" d="M54.6 93.5h-2c-.2 0-.5-.2-.6-.5l-1.2-2.8c-.1-.2-.1-.5.1-.7l1.4-1.4c.3-.3.4-.6.4-1s-.1-.7-.4-1l-1.6-1.6c-.5-.5-1.4-.5-1.9 0l-1.4 1.4c-.2.1-.4.2-.7.1l-2.8-1.2c-.2-.1-.4-.3-.4-.6v-2c0-.8-.6-1.4-1.4-1.4h-2.3c-.8 0-1.4.6-1.4 1.4v2c0 .2-.2.5-.5.6L35.1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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>
|
@@ -1,17 +1,17 @@
|
|
1
|
-
$(function() {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
});
|
1
|
+
// $(function() {
|
2
|
+
// $(".edit-preview-toggle").click(function(e) {
|
3
|
+
// e.preventDefault();
|
4
|
+
// var id = $(this).data('id');
|
5
|
+
// if (id == "preview") {
|
6
|
+
// var content = $("#fuel_post_content").serialize();
|
7
|
+
// $.ajax({
|
8
|
+
// url: 'posts/preview',
|
9
|
+
// data: content
|
10
|
+
// });
|
11
|
+
// }
|
12
|
+
// $(".content-area").hide();
|
13
|
+
// $("#content-" + id).show();
|
14
|
+
// $(".edit-preview-toggle").removeClass("active");
|
15
|
+
// $(this).addClass("active");
|
16
|
+
// });
|
17
|
+
// });
|
@@ -12,3 +12,11 @@
|
|
12
12
|
//
|
13
13
|
//= require jquery
|
14
14
|
//= require fuel/admin
|
15
|
+
//= require fuel/facebook
|
16
|
+
//= require fuel/sliding-panel
|
17
|
+
//= require pickadate/picker
|
18
|
+
//= require pickadate/picker.date
|
19
|
+
//= require fuel/datepicker
|
20
|
+
//= require fuel/posts
|
21
|
+
//= require froala_editor.min.js
|
22
|
+
//= require fuel/rich-text
|
@@ -0,0 +1,16 @@
|
|
1
|
+
$(function(){
|
2
|
+
|
3
|
+
$("#fuel_post_published").on("change", function(){
|
4
|
+
var val = $(this).val();
|
5
|
+
var $publishedAtGroup = $("#publishedAtGroup");
|
6
|
+
var $publishedAt = $publishedAtGroup.find("input#fuel_post_published_at");
|
7
|
+
if (val == "true"){
|
8
|
+
$publishedAtGroup.show();
|
9
|
+
$publishedAt.prop('disabled', false);
|
10
|
+
} else {
|
11
|
+
$publishedAtGroup.hide();
|
12
|
+
$publishedAt.prop('disabled', true);
|
13
|
+
}
|
14
|
+
});
|
15
|
+
|
16
|
+
});
|
@@ -0,0 +1,11 @@
|
|
1
|
+
$(function() {
|
2
|
+
|
3
|
+
$(function(){
|
4
|
+
$('.js-menu-trigger,.js-menu-screen').on('click touchstart',function(e) {
|
5
|
+
e.preventDefault();
|
6
|
+
$('.js-menu,.js-menu-screen').toggleClass('is-visible');
|
7
|
+
$('.js-menu').parents('body').toggleClass('is-fixed');
|
8
|
+
});
|
9
|
+
});
|
10
|
+
|
11
|
+
});
|
@@ -0,0 +1,61 @@
|
|
1
|
+
// Page Layout Component
|
2
|
+
// ========================================
|
3
|
+
|
4
|
+
|
5
|
+
// Variables
|
6
|
+
$page-header-border: 1px solid $grey-light;
|
7
|
+
$page-header-offset: 245px;
|
8
|
+
$page-header-padding: 20px 10px;
|
9
|
+
|
10
|
+
$page-offset: 0 25px 50px 275px;
|
11
|
+
|
12
|
+
|
13
|
+
//Page Header
|
14
|
+
.page-header {
|
15
|
+
@include rem(margin, 0 0 30px $page-header-offset);
|
16
|
+
@include rem(padding, $page-header-padding);
|
17
|
+
border-bottom: $page-header-border;
|
18
|
+
background-color: $white-base;
|
19
|
+
width: auto;
|
20
|
+
}
|
21
|
+
|
22
|
+
.page-header--title {
|
23
|
+
@include s-foxtrot;
|
24
|
+
margin-bottom: 0;
|
25
|
+
text-transform: uppercase;
|
26
|
+
display: inline-block;
|
27
|
+
}
|
28
|
+
|
29
|
+
.page-header--link {
|
30
|
+
@extend .link-primary;
|
31
|
+
@include font-type($primary-sans-serif, normal, 700);
|
32
|
+
@include s-foxtrot;
|
33
|
+
display: inline-block;
|
34
|
+
float: right;
|
35
|
+
text-transform: uppercase;
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
// Form Area
|
40
|
+
.page-area {
|
41
|
+
@include rem(margin, $page-offset);
|
42
|
+
}
|
43
|
+
|
44
|
+
.form-container--left {
|
45
|
+
@include span-columns(7 of 12);
|
46
|
+
}
|
47
|
+
|
48
|
+
.form-container--right {
|
49
|
+
@include span-columns(4 of 12);
|
50
|
+
@include shift(1 of 12);
|
51
|
+
margin-right: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
.form-container--full {
|
55
|
+
@include row();
|
56
|
+
@include span-columns(12 of 12);
|
57
|
+
}
|
58
|
+
|
59
|
+
.form-group-half{
|
60
|
+
@include span-columns(3.5 of 7);
|
61
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
// Page Siebar Component
|
2
|
+
// ========================================
|
3
|
+
|
4
|
+
|
5
|
+
// Variables
|
6
|
+
$resource-item-border: 1px solid $grey-light;
|
7
|
+
$resource-item-padding: 15px 20px;
|
8
|
+
|
9
|
+
$resource-hover-background: $white-dark;
|
10
|
+
|
11
|
+
$resource-active-background: $white-dark;
|
12
|
+
$resource-active-color: $blue-base;
|
13
|
+
$resource-date-color: $grey-dark;
|
14
|
+
|
15
|
+
// Structure
|
16
|
+
.resource-list {
|
17
|
+
@include rem(padding-bottom, 50px);
|
18
|
+
height: 100%;
|
19
|
+
overflow-x: hidden;
|
20
|
+
overflow-y: scroll;
|
21
|
+
-webkit-overflow-scrolling: touch;
|
22
|
+
}
|
23
|
+
|
24
|
+
.resource-item {
|
25
|
+
@include rem(padding, $resource-item-padding);
|
26
|
+
@include transition(all 0.2s ease-in-out);
|
27
|
+
border-bottom: $resource-item-border;
|
28
|
+
margin-top: 0;
|
29
|
+
|
30
|
+
&:hover{
|
31
|
+
background-color: $resource-hover-background;
|
32
|
+
}
|
33
|
+
|
34
|
+
&.active {
|
35
|
+
background-color: $resource-active-background;
|
36
|
+
border-left: 5px solid $resource-active-color;
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
// Resource list styles
|
41
|
+
.post-item--date,
|
42
|
+
.author-item--title {
|
43
|
+
@include font-type($primary-sans-serif, normal, 700);
|
44
|
+
@include rem(margin-bottom, 5px);
|
45
|
+
@include s-hotel;
|
46
|
+
color: $resource-date-color;
|
47
|
+
text-transform: uppercase;
|
48
|
+
}
|
49
|
+
|
50
|
+
.post-item--title,
|
51
|
+
.author-item--name {
|
52
|
+
@include rem(margin-bottom, 5px);
|
53
|
+
@include s-echo;
|
54
|
+
}
|
55
|
+
|
56
|
+
.post-item--content, .author-item--bio {
|
57
|
+
@include font-type($primary-serif, normal, 300);
|
58
|
+
@include rem(margin-bottom, 5px);
|
59
|
+
@include s-golf;
|
60
|
+
}
|
61
|
+
|
62
|
+
.author-avatar{
|
63
|
+
@include rem(height, 50px);
|
64
|
+
@include rem(margin-right, 10px);
|
65
|
+
@include rem(width, 50px);
|
66
|
+
border-radius: 30em;
|
67
|
+
float: left;
|
68
|
+
overflow: hidden;
|
69
|
+
}
|
70
|
+
}
|
@@ -1,2 +1,27 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/*
|
2
|
+
*= require froala_editor.min.css
|
3
|
+
*= require froala_style.min.css
|
4
|
+
*= require themes/gray.min.css
|
5
|
+
*/
|
6
|
+
|
7
|
+
// Fuel Styles
|
8
|
+
// ========================================
|
9
|
+
|
10
|
+
// Imports
|
11
|
+
@import "bourbon";
|
12
|
+
@import "neat";
|
13
|
+
@import "pickadate/default";
|
14
|
+
@import "pickadate/default.date";
|
15
|
+
|
16
|
+
// Settings
|
17
|
+
@import "settings/settings";
|
18
|
+
|
19
|
+
// Components
|
20
|
+
@import "components/components";
|
21
|
+
|
22
|
+
// Base
|
23
|
+
@import "base/base";
|
24
|
+
|
25
|
+
// Page Based
|
26
|
+
@import "post-list";
|
27
|
+
@import "page-layout";
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// Base Layout Styles
|
2
|
+
// ========================================
|
3
|
+
|
4
|
+
|
5
|
+
// Variables
|
6
|
+
$site-background: $white-light;
|
7
|
+
$navbar-offset: 75px;
|
8
|
+
|
9
|
+
|
10
|
+
// Global Styles
|
11
|
+
html,
|
12
|
+
body {
|
13
|
+
background-color: $site-background;
|
14
|
+
overflow-x: hidden;
|
15
|
+
|
16
|
+
.is-fixed {
|
17
|
+
@include position(fixed);
|
18
|
+
width: 100%;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
|
23
|
+
// Hide/Show Classes
|
24
|
+
.mobile--show {
|
25
|
+
display: block;
|
26
|
+
@include media($tablet-landscape){ display: none; }
|
27
|
+
}
|
28
|
+
|
29
|
+
.mobile--hide {
|
30
|
+
display: none;
|
31
|
+
@include media($tablet-landscape){ display: block; }
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
// Alignment
|
36
|
+
.left { float: left; }
|
37
|
+
.right { float: right; }
|
38
|
+
|
39
|
+
|
40
|
+
// Page Structure
|
41
|
+
.navbar-offset {
|
42
|
+
@include rem(margin-left, $navbar-offset);
|
43
|
+
}
|
44
|
+
|
45
|
+
.no-content-container {
|
46
|
+
margin-top: 30%;
|
47
|
+
text-align: center;
|
48
|
+
|
49
|
+
.no-content-message {
|
50
|
+
@include font-type($primary-sans-serif, normal, 700);
|
51
|
+
@include s-echo;
|
52
|
+
color: $grey-dark;
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
// Base Typography
|
2
|
+
// ========================================
|
3
|
+
|
4
|
+
html {
|
5
|
+
-ms-text-size-adjust: 100%;
|
6
|
+
-webkit-text-size-adjust: 100%;
|
7
|
+
}
|
8
|
+
|
9
|
+
body {
|
10
|
+
@include font-type($primary-sans-serif, normal, 400);
|
11
|
+
@include s-foxtrot;
|
12
|
+
overflow-x: hidden;
|
13
|
+
text-rendering: optimizeLegibility;
|
14
|
+
-webkit-font-smoothing: antialiased;
|
15
|
+
}
|
16
|
+
|
17
|
+
h1,
|
18
|
+
h2,
|
19
|
+
h3,
|
20
|
+
h4,
|
21
|
+
h5,
|
22
|
+
h6 {
|
23
|
+
@include font-type($primary-sans-serif, normal, 700);
|
24
|
+
@include rem(margin-bottom, 18px);
|
25
|
+
color: $black-base;
|
26
|
+
line-height: 1.0;
|
27
|
+
text-rendering: optimizeLegibility;
|
28
|
+
-webkit-font-smoothing: antialiased;
|
29
|
+
}
|
30
|
+
|
31
|
+
h1 { font-size: $font-size-base * 4.25; }
|
32
|
+
h2 { font-size: $font-size-base * 3.25; }
|
33
|
+
h3 { font-size: $font-size-base * 2.75; }
|
34
|
+
h4 { font-size: $font-size-base * 1.85; }
|
35
|
+
h5 { font-size: $font-size-base * 1.45; }
|
36
|
+
h6 { font-size: $font-size-base; }
|
37
|
+
|
38
|
+
p {
|
39
|
+
@include font-type($primary-sans-serif, normal, 400);
|
40
|
+
@include s-foxtrot;
|
41
|
+
@include rem(margin-bottom, 12px);
|
42
|
+
line-height: $base-line-height;
|
43
|
+
}
|
44
|
+
|
45
|
+
li,
|
46
|
+
dd {
|
47
|
+
@include s-foxtrot;
|
48
|
+
@include rem(margin-top, 3px);
|
49
|
+
line-height: normal;
|
50
|
+
}
|
51
|
+
|
52
|
+
a {
|
53
|
+
@include font-type(inherit, normal, inherit);
|
54
|
+
@include transition(all 0.3s ease-in-out);
|
55
|
+
color: inherit;
|
56
|
+
text-decoration: none;
|
57
|
+
|
58
|
+
&:hover {
|
59
|
+
opacity: 0.75;
|
60
|
+
text-decoration: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
&.image-link:hover {
|
64
|
+
opacity: 1;
|
65
|
+
}
|
66
|
+
|
67
|
+
&:active,
|
68
|
+
&:focus {
|
69
|
+
outline: none;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
blockquote {
|
74
|
+
@include font-type($primary-sans-serif, normal, 300);
|
75
|
+
@include s-bravo;
|
76
|
+
}
|
77
|
+
|
78
|
+
cite {
|
79
|
+
@include font-type($primary-sans-serif, normal, 700);
|
80
|
+
@include rem(margin-top, 15px);
|
81
|
+
@include s-foxtrot;
|
82
|
+
display: block;
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
// Type Styles
|
87
|
+
em { @include font-type(inherit, italic, inherit); }
|
88
|
+
strong { @include font-type(inherit, normal, 700); }
|
89
|
+
|
90
|
+
.center { text-align: center; }
|
91
|
+
.right { text-align: right; }
|
92
|
+
|
93
|
+
.uppercase { text-transform: uppercase; }
|
94
|
+
|
95
|
+
|
96
|
+
// Type Sizes
|
97
|
+
.big { font-size: 35px; @include media($tablet){ @include s-giga; } }
|
98
|
+
.small{ @include s-hotel; }
|
99
|
+
|
100
|
+
|
101
|
+
// Type Colors
|
102
|
+
.inverse { color: $white-base; }
|