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,12 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
|
4
|
+
@mixin blogelator-logo($size:100) {
|
5
|
+
background-image: image-url("blogelator/blogelator-logo.svg");
|
6
|
+
background-size: 100% 100%;
|
7
|
+
display: block;
|
8
|
+
height: 1px * $size;
|
9
|
+
overflow: hidden;
|
10
|
+
text-indent: -9999px;
|
11
|
+
width: 3.37px * $size;
|
12
|
+
}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
// Styles for all blog posts
|
2
|
+
@import "bourbon";
|
3
|
+
@import "blogelator/variables";
|
4
|
+
@import "neat";
|
5
|
+
|
6
|
+
body.blogelator.posts .post {
|
7
|
+
border-bottom: 1px solid lighten($base-border-color, 8%);
|
8
|
+
color: $base-font-color;
|
9
|
+
font-family: $base-font-family;
|
10
|
+
font-size: $base-font-size;
|
11
|
+
line-height: $base-line-height;
|
12
|
+
margin-bottom: 2em;
|
13
|
+
padding-bottom: 1em;
|
14
|
+
-webkit-font-smoothing: antialiased;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Post heading styles
|
18
|
+
body.blogelator.posts .post {
|
19
|
+
h1, h2, h3, h4, h5, h6 {
|
20
|
+
font-family: $header-font-family;
|
21
|
+
line-height: 1.25em;
|
22
|
+
margin: 0 0 0.5em;
|
23
|
+
text-rendering: optimizeLegibility; // Fix the character spacing for headings
|
24
|
+
}
|
25
|
+
|
26
|
+
h1 {
|
27
|
+
font-size: $base-font-size * 2.25; // 16 * 2.25 = 36px
|
28
|
+
}
|
29
|
+
|
30
|
+
h2 {
|
31
|
+
font-size: $base-font-size * 2; // 16 * 2 = 32px
|
32
|
+
}
|
33
|
+
|
34
|
+
h3 {
|
35
|
+
font-size: $base-font-size * 1.75; // 16 * 1.75 = 28px
|
36
|
+
}
|
37
|
+
|
38
|
+
h4 {
|
39
|
+
font-size: $base-font-size * 1.5; // 16 * 1.5 = 24px
|
40
|
+
}
|
41
|
+
|
42
|
+
h5 {
|
43
|
+
font-size: $base-font-size * 1.25; // 16 * 1.25 = 20px
|
44
|
+
}
|
45
|
+
|
46
|
+
h6 {
|
47
|
+
font-size: $base-font-size;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
// Post date style
|
52
|
+
body.blogelator.posts .post {
|
53
|
+
& > .date {
|
54
|
+
color: lighten($base-font-color, 40%);
|
55
|
+
font-size: 0.8em;
|
56
|
+
margin: -0.2em auto 1em auto;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
// Post body styles
|
61
|
+
body.blogelator.posts .post {
|
62
|
+
p {
|
63
|
+
margin: 0 0 ($base-line-height * .5);
|
64
|
+
}
|
65
|
+
|
66
|
+
a {
|
67
|
+
color: $base-link-color;
|
68
|
+
text-decoration: none;
|
69
|
+
@include transition(color 0.1s linear);
|
70
|
+
|
71
|
+
&:hover {
|
72
|
+
color: $hover-link-color;
|
73
|
+
}
|
74
|
+
|
75
|
+
&:active, &:focus {
|
76
|
+
color: $hover-link-color;
|
77
|
+
outline: none;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
hr {
|
82
|
+
border-bottom: 1px solid $base-border-color;
|
83
|
+
border-left: none;
|
84
|
+
border-right: none;
|
85
|
+
border-top: none;
|
86
|
+
margin: $base-line-height 0;
|
87
|
+
}
|
88
|
+
|
89
|
+
img {
|
90
|
+
margin: 0;
|
91
|
+
max-width: 100%;
|
92
|
+
}
|
93
|
+
|
94
|
+
abbr, acronym {
|
95
|
+
border-bottom: 1px dotted $base-border-color;
|
96
|
+
cursor: help;
|
97
|
+
}
|
98
|
+
|
99
|
+
address {
|
100
|
+
display: block;
|
101
|
+
margin: 0 0 ($base-line-height / 2);
|
102
|
+
}
|
103
|
+
|
104
|
+
hgroup {
|
105
|
+
margin-bottom: $base-line-height / 2;
|
106
|
+
}
|
107
|
+
|
108
|
+
del {
|
109
|
+
color: lighten($base-font-color, 15);
|
110
|
+
}
|
111
|
+
|
112
|
+
pre {
|
113
|
+
font-family: "Menlo", "Monaco", monospace;
|
114
|
+
margin: 0;
|
115
|
+
padding: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
code {
|
119
|
+
background-color: darken($base-body-color, 3%);
|
120
|
+
border: 1px solid $base-border-color;
|
121
|
+
border-radius: $base-border-radius;
|
122
|
+
font-family: "Menlo", "Monaco", monospace;
|
123
|
+
font-size: 0.95em;
|
124
|
+
margin-left: 1px;
|
125
|
+
margin-right: 1px;
|
126
|
+
padding: 0 4px;
|
127
|
+
}
|
128
|
+
|
129
|
+
blockquote {
|
130
|
+
border-left: 2px solid $base-border-color;
|
131
|
+
color: lighten($base-font-color, 15);
|
132
|
+
margin: $base-line-height 0;
|
133
|
+
padding-left: $base-line-height / 2;
|
134
|
+
}
|
135
|
+
|
136
|
+
cite {
|
137
|
+
color: lighten($base-font-color, 25);
|
138
|
+
font-style: italic;
|
139
|
+
|
140
|
+
&:before {
|
141
|
+
content: '\2014 \00A0';
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
// Post margins
|
147
|
+
body.blogelator.posts {
|
148
|
+
.post > h1,
|
149
|
+
.post > h2,
|
150
|
+
.post > .date,
|
151
|
+
.post > .summary,
|
152
|
+
.post > .body {
|
153
|
+
@include outer-container;
|
154
|
+
max-width: 700px;
|
155
|
+
padding: 0 $base-font-size;
|
156
|
+
}
|
157
|
+
.post > h1,
|
158
|
+
.post > h2 {
|
159
|
+
padding: 0 $base-font-size - 2px;
|
160
|
+
}
|
161
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
|
4
|
+
body.blogelator .highlight,
|
5
|
+
body.blogelator .post pre code.highlight {
|
6
|
+
background-color: darken($base-body-color, 3%);
|
7
|
+
border: 1px solid $base-border-color;
|
8
|
+
border-radius: $base-border-radius;
|
9
|
+
display: block;
|
10
|
+
font-family: "Menlo", "Monaco", monospace;
|
11
|
+
font-size: 0.8em;
|
12
|
+
line-height: normal;
|
13
|
+
margin: 0 0 1em;
|
14
|
+
overflow-x: auto;
|
15
|
+
padding: 1em;
|
16
|
+
width: 100%;
|
17
|
+
|
18
|
+
.sm, /* Pygments Literal.String */
|
19
|
+
.s1, /* Pygments Literal.String.Single */
|
20
|
+
.s2, /* Pygments Literal.String.Double */
|
21
|
+
.sx, /* Pygments Literal.String.Other */
|
22
|
+
.str { /* prettyprint string */
|
23
|
+
color: #ca2969;
|
24
|
+
}
|
25
|
+
.k, /* Pygments Keyword */
|
26
|
+
.kc, /* Pygments Keyword.Constant */
|
27
|
+
.kd, /* Pygments Keyword.Declaration */
|
28
|
+
.kn, /* Pygments Keyword.Namespace */
|
29
|
+
.kr, /* Pygments Keyword.Reserved */
|
30
|
+
.kt, /* Pygments Keyword.Type */
|
31
|
+
.ss, /* Pygments Literal.String.Symbol */
|
32
|
+
.kwd { /* prettyprint keyword */
|
33
|
+
color: #814ede;
|
34
|
+
}
|
35
|
+
.c, /* Pygments Comment */
|
36
|
+
.cm, /* Pygments Comment.Multiline */
|
37
|
+
.cp, /* Pygments Comment.Preproc */
|
38
|
+
.c1, /* Pygments Comment.Single */
|
39
|
+
.cs, /* Pygments Comment.Special */
|
40
|
+
.com { /* prettyprint comment */
|
41
|
+
color: #aaa;
|
42
|
+
font-style: italic;
|
43
|
+
}
|
44
|
+
|
45
|
+
.na, /* Pygments Name.Attribute */
|
46
|
+
.nb, /* Pygments Name.Builtin */
|
47
|
+
.nc, /* Pygments Name.Class */
|
48
|
+
.no, /* Pygments Name.Constant */
|
49
|
+
.nd, /* Pygments Name.Decorator */
|
50
|
+
.ni, /* Pygments Name.Entity */
|
51
|
+
.ne, /* Pygments Name.Exception */
|
52
|
+
.nl, /* Pygments Name.Label */
|
53
|
+
.nn, /* Pygments Name.Namespace */
|
54
|
+
.py, /* Pygments Name.Property */
|
55
|
+
.nt, /* Pygments Name.Tag */
|
56
|
+
.bp, /* Pygments Name.Builtin.Pseudo */
|
57
|
+
.vc, /* Pygments Name.Variable.Class */
|
58
|
+
.vg, /* Pygments Name.Variable.Global */
|
59
|
+
.vi, /* Pygments Name.Variable.Instance */
|
60
|
+
.il, /* Pygments Literal.Number.Integer.Long */
|
61
|
+
.typ { /* prettyprint type */
|
62
|
+
color: #477dca;
|
63
|
+
}
|
64
|
+
.l, /* Pygments Literal */
|
65
|
+
.ld, /* Pygments Literal.Date */
|
66
|
+
.m, /* Pygments Literal.Number */
|
67
|
+
.mf, /* Pygments Literal.Number.Float */
|
68
|
+
.mh, /* Pygments Literal.Number.Hex */
|
69
|
+
.mi, /* Pygments Literal.Number.Integer */
|
70
|
+
.mo, /* Pygments Literal.Number.Oct */
|
71
|
+
.sb, /* Pygments Literal.String.Backtick */
|
72
|
+
.sc, /* Pygments Literal.String.Char */
|
73
|
+
.sd, /* Pygments Literal.String.Doc */
|
74
|
+
.se, /* Pygments Literal.String.Escape */
|
75
|
+
.sh, /* Pygments Literal.String.Heredoc */
|
76
|
+
.si, /* Pygments Literal.String.Interpol */
|
77
|
+
.sr, /* Pygments Literal.String.Regex */
|
78
|
+
.lit { /* prettyprint literal */
|
79
|
+
color: #83c53d;
|
80
|
+
}
|
81
|
+
.o, /* Pygments Operator */
|
82
|
+
.ow, /* Pygments Operator.Word */
|
83
|
+
.p, /* Pygments Punctuation */
|
84
|
+
.pun { /* prettyprint punctuation */
|
85
|
+
color: #777;
|
86
|
+
}
|
87
|
+
.n, /* Pygments Name */
|
88
|
+
.nf, /* Pygments Name.Function */
|
89
|
+
.nx, /* Pygments Name.Other */
|
90
|
+
.nv, /* Pygments Name.Variable */
|
91
|
+
.kp, /* Pygments Keyword.Pseudo */
|
92
|
+
.pln { /* prettyprint plaintext */
|
93
|
+
color: #444;
|
94
|
+
}
|
95
|
+
.tag { /* prettyprint html/xml tag */
|
96
|
+
color: #477dca;
|
97
|
+
}
|
98
|
+
.atn { /* prettyprint html/xml attribute name */
|
99
|
+
color: #814ede;
|
100
|
+
}
|
101
|
+
.atv { /* prettyprint html/xml attribute value */
|
102
|
+
color: #ca2969;
|
103
|
+
}
|
104
|
+
.dec { /* prettyprint decimal */
|
105
|
+
color: #83c53d;
|
106
|
+
}
|
107
|
+
|
108
|
+
.w { color: transparent } /* Pygments Text.Whitespace */
|
109
|
+
.ge { font-style: italic } /* Pygments Generic.Emph */
|
110
|
+
.gs { font-weight: bold } /* Pygments Generic.Strong */
|
111
|
+
}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
|
4
|
+
$form-border-color: $base-border-color;
|
5
|
+
$form-border-color-hover: darken($base-border-color, 10);
|
6
|
+
$form-border-color-focus: $base-accent-color;
|
7
|
+
$form-border-radius: $base-border-radius;
|
8
|
+
$form-box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.06);
|
9
|
+
$form-box-shadow-focus: $form-box-shadow, 0 0 5px rgba(darken($form-border-color-focus, 5), 0.7);
|
10
|
+
$form-font-size: $base-font-size;
|
11
|
+
$form-font-family: $base-font-family;
|
12
|
+
|
13
|
+
body.blogelator {
|
14
|
+
fieldset {
|
15
|
+
background: lighten($base-border-color, 10);
|
16
|
+
border: 1px solid $base-border-color;
|
17
|
+
margin: 0 0 ($base-line-height / 2) 0;
|
18
|
+
padding: $base-line-height;
|
19
|
+
}
|
20
|
+
|
21
|
+
input,
|
22
|
+
label,
|
23
|
+
select {
|
24
|
+
display: block;
|
25
|
+
font-family: $form-font-family;
|
26
|
+
font-size: $form-font-size;
|
27
|
+
}
|
28
|
+
|
29
|
+
label {
|
30
|
+
font-weight: bold;
|
31
|
+
margin-bottom: $base-line-height / 4;
|
32
|
+
|
33
|
+
&.required:after {
|
34
|
+
content: "*";
|
35
|
+
}
|
36
|
+
|
37
|
+
abbr {
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
textarea,
|
43
|
+
#{$all-text-inputs} {
|
44
|
+
@include box-sizing(border-box);
|
45
|
+
@include transition(border-color);
|
46
|
+
background-color: white;
|
47
|
+
border-radius: $form-border-radius;
|
48
|
+
border: 1px solid $form-border-color;
|
49
|
+
box-shadow: $form-box-shadow;
|
50
|
+
font-family: $form-font-family;
|
51
|
+
font-size: $form-font-size;
|
52
|
+
margin-bottom: $base-line-height / 2;
|
53
|
+
padding: ($base-line-height / 3) ($base-line-height / 3);
|
54
|
+
resize: vertical;
|
55
|
+
width: 100%;
|
56
|
+
|
57
|
+
&:hover {
|
58
|
+
border-color: $form-border-color-hover;
|
59
|
+
}
|
60
|
+
|
61
|
+
&:focus {
|
62
|
+
border-color: $form-border-color-focus;
|
63
|
+
box-shadow: $form-box-shadow-focus;
|
64
|
+
outline: none;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
input[type="search"] {
|
69
|
+
@include appearance(none);
|
70
|
+
}
|
71
|
+
|
72
|
+
input[type="checkbox"], input[type="radio"] {
|
73
|
+
display: inline;
|
74
|
+
margin-right: $base-line-height / 4;
|
75
|
+
}
|
76
|
+
|
77
|
+
input[type="file"] {
|
78
|
+
width: 100%;
|
79
|
+
}
|
80
|
+
|
81
|
+
select {
|
82
|
+
width: auto;
|
83
|
+
margin-bottom: $base-line-height;
|
84
|
+
}
|
85
|
+
|
86
|
+
button,
|
87
|
+
input[type="submit"] {
|
88
|
+
@include appearance(none);
|
89
|
+
cursor: pointer;
|
90
|
+
user-select: none;
|
91
|
+
vertical-align: middle;
|
92
|
+
white-space: nowrap;
|
93
|
+
}
|
94
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
|
3
|
+
body.blogelator {
|
4
|
+
h1 {
|
5
|
+
margin-bottom: 1em;
|
6
|
+
}
|
7
|
+
h2 {
|
8
|
+
margin-bottom: 0.7em;
|
9
|
+
}
|
10
|
+
h3 {
|
11
|
+
margin-bottom: 0.5em;
|
12
|
+
}
|
13
|
+
h4 {
|
14
|
+
margin-bottom: 0.25em;
|
15
|
+
}
|
16
|
+
h5 {
|
17
|
+
margin-bottom: 0.25em;
|
18
|
+
}
|
19
|
+
h6 {
|
20
|
+
margin-bottom: 0.25em;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
@import "bourbon";
|
2
|
+
@import "blogelator/variables";
|
3
|
+
|
4
|
+
body.blogelator {
|
5
|
+
ul, ol {
|
6
|
+
margin: 0;
|
7
|
+
padding: 0;
|
8
|
+
margin-bottom: $base-line-height / 2;
|
9
|
+
padding-left: $base-line-height;
|
10
|
+
}
|
11
|
+
|
12
|
+
dl {
|
13
|
+
line-height: $base-line-height;
|
14
|
+
margin-bottom: $base-line-height / 2;
|
15
|
+
|
16
|
+
dt {
|
17
|
+
font-weight: bold;
|
18
|
+
margin-top: $base-line-height / 2;
|
19
|
+
}
|
20
|
+
|
21
|
+
dd {
|
22
|
+
margin: 0;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Blogelator
|
2
|
+
module Admin
|
3
|
+
class ApplicationController < ::ApplicationController
|
4
|
+
include Blogelator::Admin::Auth
|
5
|
+
layout "blogelator/admin"
|
6
|
+
before_filter :set_body_class
|
7
|
+
|
8
|
+
private
|
9
|
+
|
10
|
+
def set_body_class
|
11
|
+
@body_class = "admin"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|