blogelator 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +86 -0
- data/Rakefile +29 -0
- data/app/assets/images/blogelator/blogelator-logo.svg +15 -0
- data/app/assets/javascripts/blogelator/admin.js +19 -0
- data/app/assets/javascripts/blogelator/application.js +2 -0
- data/app/assets/javascripts/blogelator/components/markdown_editor_component.js +187 -0
- data/app/assets/javascripts/blogelator/components/save_button_component.js +76 -0
- data/app/assets/javascripts/blogelator/config/marked.js +10 -0
- data/app/assets/javascripts/blogelator/config/router.js +9 -0
- data/app/assets/javascripts/blogelator/config/routes.js +13 -0
- data/app/assets/javascripts/blogelator/config/serializer.js +10 -0
- data/app/assets/javascripts/blogelator/config/store.js +10 -0
- data/app/assets/javascripts/blogelator/controllers/application_controller.js +11 -0
- data/app/assets/javascripts/blogelator/controllers/posts/posts_edit_controller.js +97 -0
- data/app/assets/javascripts/blogelator/controllers/posts/posts_index_controller.js +9 -0
- data/app/assets/javascripts/blogelator/controllers/posts/posts_new_controller.js +6 -0
- data/app/assets/javascripts/blogelator/controllers/posts/posts_show_controller.js +37 -0
- data/app/assets/javascripts/blogelator/models/post.js +34 -0
- data/app/assets/javascripts/blogelator/routes/index_route.js +10 -0
- data/app/assets/javascripts/blogelator/routes/posts_edit_route.js +36 -0
- data/app/assets/javascripts/blogelator/routes/posts_index_route.js +20 -0
- data/app/assets/javascripts/blogelator/routes/posts_new_route.js +53 -0
- data/app/assets/javascripts/blogelator/routes/posts_route.js +10 -0
- data/app/assets/javascripts/blogelator/routes/posts_show_route.js +14 -0
- data/app/assets/javascripts/blogelator/templates/application.handlebars +23 -0
- data/app/assets/javascripts/blogelator/templates/components/markdown-editor.handlebars +8 -0
- data/app/assets/javascripts/blogelator/templates/components/save-button.handlebars +8 -0
- data/app/assets/javascripts/blogelator/templates/posts/_footer.handlebars +0 -0
- data/app/assets/javascripts/blogelator/templates/posts/_form.handlebars +6 -0
- data/app/assets/javascripts/blogelator/templates/posts/_form_action_bar.handlebars +22 -0
- data/app/assets/javascripts/blogelator/templates/posts/_show_action_bar.handlebars +20 -0
- data/app/assets/javascripts/blogelator/templates/posts/edit.handlebars +1 -0
- data/app/assets/javascripts/blogelator/templates/posts/index.handlebars +30 -0
- data/app/assets/javascripts/blogelator/templates/posts/new.handlebars +1 -0
- data/app/assets/javascripts/blogelator/templates/posts/show.handlebars +22 -0
- data/app/assets/stylesheets/blogelator/admin/all.scss +7 -0
- data/app/assets/stylesheets/blogelator/admin/components/markdown_editor.scss +142 -0
- data/app/assets/stylesheets/blogelator/admin/components/save_button.scss +121 -0
- data/app/assets/stylesheets/blogelator/admin/layout.scss +94 -0
- data/app/assets/stylesheets/blogelator/admin/posts/_form.scss +12 -0
- data/app/assets/stylesheets/blogelator/admin/posts/_form_action_bar.scss +84 -0
- data/app/assets/stylesheets/blogelator/admin/posts/_posts_list.scss +43 -0
- data/app/assets/stylesheets/blogelator/admin/posts/edit.scss +7 -0
- data/app/assets/stylesheets/blogelator/admin/posts/index.scss +14 -0
- data/app/assets/stylesheets/blogelator/admin/posts/new.scss +16 -0
- data/app/assets/stylesheets/blogelator/admin/posts/show.scss +17 -0
- data/app/assets/stylesheets/blogelator/application/all.scss +19 -0
- data/app/assets/stylesheets/blogelator/application/layout.scss +49 -0
- data/app/assets/stylesheets/blogelator/application/posts/index.scss +50 -0
- data/app/assets/stylesheets/blogelator/application/posts/show.scss +64 -0
- data/app/assets/stylesheets/blogelator/mixins/blogelator_button.scss +57 -0
- data/app/assets/stylesheets/blogelator/mixins/blogelator_logo.scss +12 -0
- data/app/assets/stylesheets/blogelator/shared/post.scss +161 -0
- data/app/assets/stylesheets/blogelator/shared/typography/code_highlighting.scss +111 -0
- data/app/assets/stylesheets/blogelator/shared/typography/forms.scss +94 -0
- data/app/assets/stylesheets/blogelator/shared/typography/headings.scss +22 -0
- data/app/assets/stylesheets/blogelator/shared/typography/lists.scss +25 -0
- data/app/controllers/blogelator/admin/application_controller.rb +15 -0
- data/app/controllers/blogelator/admin/images_controller.rb +40 -0
- data/app/controllers/blogelator/admin/posts_controller.rb +67 -0
- data/app/controllers/blogelator/application_controller.rb +5 -0
- data/app/controllers/blogelator/posts_controller.rb +37 -0
- data/app/controllers/concerns/blogelator/admin/auth.rb +23 -0
- data/app/helpers/blogelator/admin/posts_helper.rb +7 -0
- data/app/helpers/blogelator/posts_helper.rb +28 -0
- data/app/models/blogelator/ability.rb +11 -0
- data/app/models/blogelator/html_renderer.rb +10 -0
- data/app/models/blogelator/post.rb +63 -0
- data/app/models/blogelator/tag.rb +5 -0
- data/app/serializers/blogelator/post_serializer.rb +6 -0
- data/app/views/blogelator/admin/posts/index.html.erb +0 -0
- data/app/views/blogelator/posts/_post.html.erb +14 -0
- data/app/views/blogelator/posts/index.html.erb +39 -0
- data/app/views/blogelator/posts/show.html.erb +27 -0
- data/app/views/layouts/blogelator/_footer.html.erb +3 -0
- data/app/views/layouts/blogelator/_head.html.erb +7 -0
- data/app/views/layouts/blogelator/_header.html.erb +7 -0
- data/app/views/layouts/blogelator/admin.html.erb +14 -0
- data/app/views/layouts/blogelator/application.html.erb +14 -0
- data/config/jshint.json +43 -0
- data/config/routes.rb +15 -0
- data/db/migrate/20140221192000_create_blogelator_posts.rb +12 -0
- data/db/migrate/20140221204230_add_slug_and_change_user_to_author.rb +6 -0
- data/db/migrate/20140221212026_create_blogelator_tags.rb +10 -0
- data/db/migrate/20140224024607_change_posts_properties_to_have_defaults.rb +14 -0
- data/db/migrate/20140224175024_add_slugs_to_existing_posts.rb +16 -0
- data/db/migrate/20140224192058_add_published_at_to_posts.rb +13 -0
- data/db/migrate/20140303015004_add_summary_to_posts.rb +9 -0
- data/lib/assets/stylesheets/blogelator/_variables_sample.scss +38 -0
- data/lib/blogelator.rb +27 -0
- data/lib/blogelator/engine.rb +35 -0
- data/lib/blogelator/version.rb +3 -0
- data/lib/generators/blogelator/install_generator.rb +94 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +1 -0
- data/spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js +12 -0
- data/spec/dummy/app/assets/javascripts/features/user_visits_post_page_spec.js +12 -0
- data/spec/dummy/app/assets/javascripts/fixtures/post.js +17 -0
- data/spec/dummy/app/assets/javascripts/test_helper.js +12 -0
- data/spec/dummy/app/assets/stylesheets/application.css +12 -0
- data/spec/dummy/app/assets/stylesheets/blogelator/_variables.scss +38 -0
- data/spec/dummy/app/assets/stylesheets/blogelator/admin.css.scss +4 -0
- data/spec/dummy/app/assets/stylesheets/blogelator/application.css.scss +4 -0
- data/spec/dummy/app/assets/stylesheets/test_helper.css +21 -0
- data/spec/dummy/app/controllers/application_controller.rb +9 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/blogelator/ability.rb +9 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/q_unit/rails/test/index.html.erb +17 -0
- data/spec/dummy/app/views/qunit/rails/test/index.html.erb +17 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +24 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +32 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/blogelator.rb +6 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140221215439_create_blogelator_posts.blogelator.rb +13 -0
- data/spec/dummy/db/migrate/20140221215440_add_slug_and_change_user_to_author.blogelator.rb +7 -0
- data/spec/dummy/db/migrate/20140224024931_create_blogelator_tags.blogelator.rb +11 -0
- data/spec/dummy/db/migrate/20140224025218_change_posts_properties_to_have_defaults.blogelator.rb +15 -0
- data/spec/dummy/db/migrate/20140224205646_add_slugs_to_existing_posts.blogelator.rb +17 -0
- data/spec/dummy/db/migrate/20140224205647_add_published_at_to_posts.blogelator.rb +14 -0
- data/spec/dummy/db/migrate/20140303015133_add_summary_to_posts.blogelator.rb +6 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +37 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +50393 -0
- data/spec/dummy/log/production.log +76 -0
- data/spec/dummy/log/test.log +11750 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/index.html.erb +14 -0
- data/spec/dummy/tmp/ember-rails/ember-data.js +11132 -0
- data/spec/dummy/tmp/ember-rails/ember.js +42882 -0
- data/spec/factories/post.rb +11 -0
- data/spec/features/user_visits_blog_post_spec.rb +44 -0
- data/spec/features/user_visits_blog_spec.rb +85 -0
- data/spec/models/blogelator/post_spec.rb +95 -0
- data/spec/qunit_runner.js +148 -0
- data/spec/spec_helper.rb +34 -0
- metadata +764 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
@import "neat";
|
4
|
+
|
5
|
+
body.blogelator.admin.posts .form-action-bar .save-button {
|
6
|
+
background-color: $base-accent-color;
|
7
|
+
color: $base-body-color;
|
8
|
+
display: block;
|
9
|
+
float: right;
|
10
|
+
font-weight: bold;
|
11
|
+
margin: 6px 0.5em;
|
12
|
+
min-width: 100px;
|
13
|
+
text-align: center;
|
14
|
+
text-decoration: none;
|
15
|
+
-webkit-font-smoothing: antialiased;
|
16
|
+
|
17
|
+
&.destroy {
|
18
|
+
float: left;
|
19
|
+
}
|
20
|
+
|
21
|
+
&.disabled {
|
22
|
+
cursor: default;
|
23
|
+
opacity: 0.6;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
body.blogelator.admin.posts .form-action-bar .save-button {
|
28
|
+
.button-label {
|
29
|
+
border: 1px solid $base-accent-color;
|
30
|
+
padding: 4px;
|
31
|
+
@include transition(border-color 0.1s linear);
|
32
|
+
}
|
33
|
+
|
34
|
+
&.publish {
|
35
|
+
background-color: adjust-hue($base-accent-color, 210deg);
|
36
|
+
|
37
|
+
.button-label {
|
38
|
+
border: 1px solid adjust-hue($base-accent-color, 210deg);
|
39
|
+
}
|
40
|
+
|
41
|
+
.saving {
|
42
|
+
background-color: adjust-hue($base-accent-color, 210deg);
|
43
|
+
color: $base-body-color;
|
44
|
+
}
|
45
|
+
|
46
|
+
.saved,
|
47
|
+
.error {
|
48
|
+
color: adjust-hue($base-accent-color, 210deg);
|
49
|
+
}
|
50
|
+
|
51
|
+
&.disabled:hover {
|
52
|
+
.button-label {
|
53
|
+
border: 1px solid adjust-hue($base-accent-color, 210deg);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
&:hover {
|
59
|
+
.button-label {
|
60
|
+
border-color: rgba($base-body-color, 0.8);
|
61
|
+
}
|
62
|
+
&.disabled {
|
63
|
+
.button-label {
|
64
|
+
border-color: $base-accent-color;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
body.blogelator.admin.posts .form-action-bar .last-saved {
|
71
|
+
color: $base-body-color;
|
72
|
+
float: right;
|
73
|
+
font-size: 0.75em;
|
74
|
+
opacity: 0.9;
|
75
|
+
margin-right: 4px;
|
76
|
+
min-width: 110px;
|
77
|
+
text-align: center;
|
78
|
+
-webkit-font-smoothing: antialiased;
|
79
|
+
|
80
|
+
label {
|
81
|
+
font-size: 1em;
|
82
|
+
margin: 4px 0 0 0;
|
83
|
+
}
|
84
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
@import "blogelator/mixins/blogelator_logo";
|
4
|
+
@import "neat";
|
5
|
+
|
6
|
+
body.blogelator.admin.posts section.posts-list .post {
|
7
|
+
background-color: darken($base-body-color, 2%);
|
8
|
+
border-bottom: 1px solid lighten($base-border-color, 5%);
|
9
|
+
border-left: 10px solid darken($base-body-color, 2%);
|
10
|
+
border-top: 1px solid lighten($base-border-color, 5%);
|
11
|
+
color: lighten($base-font-color, 30%);
|
12
|
+
cursor: pointer;
|
13
|
+
margin-bottom: -1px;
|
14
|
+
padding: 0.6em 0.5em 0.8em 0.4em;
|
15
|
+
position: relative;
|
16
|
+
z-index: 1;
|
17
|
+
|
18
|
+
.summary {
|
19
|
+
font-size: 0.8em;
|
20
|
+
line-height: 1.2em;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
body.blogelator.admin.posts section.posts-list .post {
|
25
|
+
h2 {
|
26
|
+
color: lighten($base-font-color, 20%);
|
27
|
+
font-size: 1.2em;
|
28
|
+
margin-bottom: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
&.active {
|
32
|
+
background-color: $base-body-color;
|
33
|
+
border-bottom: 1px solid $base-accent-color;
|
34
|
+
border-left: 10px solid $base-accent-color;
|
35
|
+
border-top: 1px solid $base-accent-color;
|
36
|
+
color: $base-font-color;
|
37
|
+
z-index: 2;
|
38
|
+
|
39
|
+
h2 {
|
40
|
+
color: $base-font-color;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
@import "neat";
|
4
|
+
|
5
|
+
body.blogelator.admin.posts.new {
|
6
|
+
background-color: darken($base-body-color, 5%);
|
7
|
+
|
8
|
+
header ul li a.posts-index-link.active {
|
9
|
+
border-bottom: 5px solid $base-accent-color;
|
10
|
+
color: $base-accent-color;
|
11
|
+
&:hover {
|
12
|
+
border-bottom: 5px solid $admin-header-highlight-color;
|
13
|
+
color: $admin-header-highlight-color;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
@import "neat";
|
4
|
+
|
5
|
+
body.blogelator.admin.posts.show {
|
6
|
+
article.post > * {
|
7
|
+
max-width: 100%;
|
8
|
+
}
|
9
|
+
article.post > h1 {
|
10
|
+
margin: 0.5em 0 0 0;
|
11
|
+
padding: 0;
|
12
|
+
text-align: center;
|
13
|
+
}
|
14
|
+
article.post > .date {
|
15
|
+
text-align: center;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/*
|
2
|
+
*= require normalize
|
3
|
+
*= require font-awesome
|
4
|
+
*= require_tree ../shared
|
5
|
+
*= require_tree .
|
6
|
+
*= require_self
|
7
|
+
*/
|
8
|
+
|
9
|
+
@import "font-awesome/variables";
|
10
|
+
@font-face {
|
11
|
+
font-family: 'FontAwesome';
|
12
|
+
src: font-url('fontawesome-webfont.eot?v=#{$fa-version}');
|
13
|
+
src: font-url('fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
|
14
|
+
font-url('fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),
|
15
|
+
font-url('fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),
|
16
|
+
font-url('fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');
|
17
|
+
font-weight: normal;
|
18
|
+
font-style: normal;
|
19
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
// Global styles for the application layout
|
2
|
+
|
3
|
+
@import "bourbon";
|
4
|
+
@import "blogelator/variables";
|
5
|
+
@import "blogelator/mixins/blogelator_logo";
|
6
|
+
@import "neat";
|
7
|
+
|
8
|
+
body.blogelator {
|
9
|
+
header {
|
10
|
+
h1 {
|
11
|
+
padding: 1em 0;
|
12
|
+
text-align: center;
|
13
|
+
a {
|
14
|
+
border-bottom: 1px solid lighten($base-border-color, 8%);
|
15
|
+
color: $base-font-color;
|
16
|
+
padding: 0 1em 0.5em 1em;
|
17
|
+
text-decoration: none;
|
18
|
+
@include transition(border-bottom 0.2s linear);
|
19
|
+
|
20
|
+
&:hover {
|
21
|
+
border-bottom: 1px solid lighten($base-accent-color, 30%);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
h2 {
|
26
|
+
border-bottom: 1px solid #f2f2f2;
|
27
|
+
margin-bottom: 1em;
|
28
|
+
padding: 0 0.5em 0.5em;
|
29
|
+
|
30
|
+
a {
|
31
|
+
@include outer-container;
|
32
|
+
color: $base-font-color;
|
33
|
+
display: block;
|
34
|
+
max-width: 900px;
|
35
|
+
text-decoration: none;
|
36
|
+
@include transition(color 0.1s linear);
|
37
|
+
|
38
|
+
&:hover {
|
39
|
+
color: $base-accent-color;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
footer .logo {
|
46
|
+
@include blogelator-logo(32);
|
47
|
+
margin: 2em auto;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Styles for PostsController#index
|
2
|
+
|
3
|
+
@import "bourbon";
|
4
|
+
@import "blogelator/variables";
|
5
|
+
@import "blogelator/mixins/blogelator_button";
|
6
|
+
@import "neat";
|
7
|
+
|
8
|
+
body.blogelator.posts.index .post {
|
9
|
+
& > h2 {
|
10
|
+
margin-bottom: 0;
|
11
|
+
|
12
|
+
a {
|
13
|
+
text-decoration: none;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.summary {
|
18
|
+
.continue {
|
19
|
+
color: $base-body-color;
|
20
|
+
font-size: 0.8em;
|
21
|
+
margin: 0 0.2em;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
&:hover {
|
26
|
+
.summary .continue {
|
27
|
+
border-bottom: 1px solid $base-body-color;
|
28
|
+
color: lighten($base-font-color, 30%);
|
29
|
+
|
30
|
+
&:hover {
|
31
|
+
color: $base-accent-color;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
body.blogelator.posts.index .pagination {
|
38
|
+
@include outer-container;
|
39
|
+
max-width: 700px;
|
40
|
+
padding: 0 1em;
|
41
|
+
|
42
|
+
a.older {
|
43
|
+
@include blogelator-button($base-body-color, $base-accent-color, "chevron-circle-right", "right");
|
44
|
+
float: right;
|
45
|
+
}
|
46
|
+
a.newer {
|
47
|
+
@include blogelator-button($base-body-color, $base-accent-color, "chevron-circle-left", "left");
|
48
|
+
float: left;
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
// Styles for PostsController#show
|
2
|
+
|
3
|
+
@import "bourbon";
|
4
|
+
@import "blogelator/variables";
|
5
|
+
@import "blogelator/mixins/blogelator_button";
|
6
|
+
@import "neat";
|
7
|
+
|
8
|
+
body.blogelator.posts.show .post {
|
9
|
+
& > h1 {
|
10
|
+
margin-bottom: 0;
|
11
|
+
text-align: center;
|
12
|
+
|
13
|
+
a {
|
14
|
+
border-bottom: 1px solid $base-body-color;
|
15
|
+
color: $base-font-color;
|
16
|
+
text-decoration: none;
|
17
|
+
@include transition(border-bottom 0.2s linear);
|
18
|
+
|
19
|
+
&:hover {
|
20
|
+
border-bottom: 1px solid lighten($base-accent-color, 30%);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
& > .date {
|
26
|
+
text-align: center;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
body.blogelator.posts.show .more-posts {
|
31
|
+
@include outer-container;
|
32
|
+
max-width: 700px;
|
33
|
+
padding: 0 1em;
|
34
|
+
|
35
|
+
a.previous {
|
36
|
+
@include blogelator-button($base-body-color, $base-accent-color, "chevron-circle-right", "right");
|
37
|
+
float: right;
|
38
|
+
}
|
39
|
+
|
40
|
+
a.next {
|
41
|
+
@include blogelator-button($base-body-color, $base-accent-color, "chevron-circle-left", "left");
|
42
|
+
float: left;
|
43
|
+
}
|
44
|
+
|
45
|
+
a.previous,
|
46
|
+
a.next {
|
47
|
+
line-height: normal;
|
48
|
+
max-width: 300px;
|
49
|
+
text-align: left;
|
50
|
+
width: auto;
|
51
|
+
|
52
|
+
time {
|
53
|
+
color: lighten($base-font-color, 40%);
|
54
|
+
font-size: 0.8em;
|
55
|
+
font-weight: normal;
|
56
|
+
}
|
57
|
+
|
58
|
+
&:hover {
|
59
|
+
time {
|
60
|
+
color: rgba($base-body-color, 0.8);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
@import "font-awesome/variables";
|
4
|
+
@import "font-awesome/core";
|
5
|
+
@import "font-awesome/icons";
|
6
|
+
|
7
|
+
@mixin blogelator-button($background-color:$base-body-color, $accent-color:$base-accent-color, $icon:"none", $icon-position:"none") {
|
8
|
+
background-color: $background-color;
|
9
|
+
border: 1px solid $accent-color;
|
10
|
+
border-radius: 1.5em;
|
11
|
+
color: $accent-color;
|
12
|
+
display: block;
|
13
|
+
font-weight: bold;
|
14
|
+
overflow: hidden;
|
15
|
+
position: relative;
|
16
|
+
text-align: center;
|
17
|
+
text-decoration: none;
|
18
|
+
text-overflow: ellipsis;
|
19
|
+
white-space: nowrap;
|
20
|
+
@include transition(all 0.1s linear);
|
21
|
+
|
22
|
+
&:active,
|
23
|
+
&:hover {
|
24
|
+
background-color: $accent-color;
|
25
|
+
color: $background-color;
|
26
|
+
}
|
27
|
+
|
28
|
+
@if $icon != "none" {
|
29
|
+
$icon-class: "." + $fa-css-prefix + "-" + $icon;
|
30
|
+
padding: 0.8em 1.1em;
|
31
|
+
|
32
|
+
&:before {
|
33
|
+
@extend .fa;
|
34
|
+
height: 1em;
|
35
|
+
font-size: 1.3em;
|
36
|
+
margin-top: -0.5em;
|
37
|
+
position: absolute;
|
38
|
+
top: 50%;
|
39
|
+
}
|
40
|
+
|
41
|
+
@if $icon-position == "left" {
|
42
|
+
padding-left: 2.6em;
|
43
|
+
|
44
|
+
&:before {
|
45
|
+
@extend #{$icon-class};
|
46
|
+
left: 0.7em;
|
47
|
+
}
|
48
|
+
} @else if $icon-position == "right" {
|
49
|
+
padding-right: 2.6em;
|
50
|
+
|
51
|
+
&:before {
|
52
|
+
@extend #{$icon-class};
|
53
|
+
right: 0.7em;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|