cambium 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +339 -15
- data/{lib/generators/cambium/templates/app/assets/javascripts/admin/admin.js.coffee → app/assets/javascripts/cambium/admin/application.js.coffee} +4 -10
- data/app/assets/javascripts/cambium/admin/routers/router.js.coffee +25 -0
- data/app/assets/javascripts/cambium/admin/users.js +2 -0
- data/app/assets/javascripts/cambium/admin/views/dropdown_menu.js.coffee +24 -0
- data/app/assets/javascripts/cambium/admin/views/pickadate.js.coffee +15 -0
- data/app/assets/stylesheets/cambium/admin/application.scss +27 -0
- data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_colors.scss +7 -7
- data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones.scss +18 -18
- data/app/assets/stylesheets/cambium/admin/partials/_globals.scss +21 -0
- data/app/assets/stylesheets/cambium/admin/partials/activity.scss +52 -0
- data/app/assets/stylesheets/cambium/admin/partials/components.scss +64 -0
- data/app/assets/stylesheets/cambium/admin/partials/dashboard.scss +48 -0
- data/app/assets/stylesheets/cambium/admin/partials/forms.scss +107 -0
- data/app/assets/stylesheets/cambium/admin/partials/header.scss +113 -0
- data/app/assets/stylesheets/cambium/admin/partials/page_title.scss +42 -0
- data/app/assets/stylesheets/cambium/admin/partials/sidebar.scss +41 -0
- data/app/assets/stylesheets/cambium/admin/partials/tables.scss +80 -0
- data/app/assets/stylesheets/cambium/admin/partials/typography.scss +5 -0
- data/app/assets/stylesheets/cambium/admin/partials/wireframe.scss +52 -0
- data/app/assets/stylesheets/cambium/admin/users.css +4 -0
- data/app/controllers/cambium/admin/dashboard_controller.rb +12 -0
- data/app/controllers/cambium/admin/search_controller.rb +9 -0
- data/app/controllers/cambium/admin/users_controller.rb +30 -0
- data/app/controllers/cambium/admin_controller.rb +90 -0
- data/app/helpers/cambium/cambium_helper.rb +205 -0
- data/app/presenters/cambium/admin_presenter.rb +127 -0
- data/app/views/cambium/admin/_activity.html.erb +6 -0
- data/app/views/cambium/admin/_header.html.erb +41 -0
- data/app/views/cambium/admin/_sidebar.html.erb +19 -0
- data/app/views/cambium/admin/_status.html.erb +5 -0
- data/app/views/cambium/admin/dashboard/show.html.erb +5 -0
- data/app/views/cambium/admin/edit.html.erb +7 -0
- data/app/views/cambium/admin/index.html.erb +7 -0
- data/app/views/cambium/admin/new.html.erb +7 -0
- data/app/views/cambium/admin/paper_trail/versions/_version.html.erb +20 -0
- data/app/views/cambium/admin/search/index.html.erb +38 -0
- data/app/views/layouts/admin.html.erb +25 -0
- data/bin/rails +12 -0
- data/cambium.gemspec +19 -15
- data/config/routes.rb +10 -0
- data/lib/cambium/configuration.rb +28 -0
- data/lib/cambium/engine.rb +2 -1
- data/lib/cambium/version.rb +1 -1
- data/lib/cambium.rb +12 -1
- data/lib/generators/cambium/admin_generator.rb +104 -0
- data/lib/generators/cambium/app_generator.rb +205 -0
- data/lib/generators/cambium/controller_generator.rb +81 -0
- data/lib/generators/cambium/gemfile_generator.rb +36 -0
- data/lib/generators/cambium/install_generator.rb +19 -0
- data/lib/generators/cambium/user_generator.rb +40 -0
- data/lib/generators/{cambium/helpers → helpers}/generators_helper.rb +32 -24
- data/lib/generators/templates/Gemfile.erb +79 -0
- data/lib/generators/{cambium/templates/app/assets/javascripts/backbone/app.js.coffee → templates/app/assets/javascripts/application.js.coffee} +9 -1
- data/lib/generators/templates/app/assets/javascripts/views/default_helpers.js.coffee +16 -0
- data/lib/generators/templates/app/assets/stylesheets/admin/admin.scss +3 -0
- data/lib/generators/templates/app/controllers/admin/controller.rb.erb +2 -0
- data/lib/generators/{cambium/templates → templates}/app/controllers/application_controller.rb +1 -5
- data/lib/generators/{cambium/templates → templates}/app/models/user.rb +4 -4
- data/lib/generators/templates/app/views/application/_status.html.erb +3 -0
- data/lib/generators/{cambium/templates → templates}/app/views/layouts/application.html.erb +1 -1
- data/lib/generators/templates/config/admin/controller.yml.erb +24 -0
- data/lib/generators/templates/config/admin/sidebar.yml +9 -0
- data/lib/generators/templates/config/admin/users.yml +31 -0
- data/lib/generators/{cambium/templates → templates}/config/application.rb +6 -4
- data/lib/generators/templates/config/initializers/_hash.rb +23 -0
- data/lib/generators/templates/config/initializers/_settings.rb +18 -0
- data/lib/generators/templates/config/initializers/assets.rb +1 -0
- data/lib/generators/templates/config/initializers/cambium.rb +16 -0
- data/lib/generators/templates/config/private.yml +16 -0
- data/lib/generators/templates/config/routes.rb +54 -0
- data/lib/generators/templates/config/settings.yml +16 -0
- data/lib/generators/{cambium/templates → templates}/gitignore +1 -1
- data/lib/help/cambium_prereqs.txt +13 -0
- data/lib/help/pg_search_post_install.txt +13 -0
- data/lib/{generators/cambium/templates/lib/tasks → tasks}/db.rake +2 -2
- data/lib/{generators/cambium/templates/lib/tasks → tasks}/rename.rake +1 -1
- data/test/controllers/cambium/admin/dashboard_controller_test.rb +9 -0
- data/test/controllers/cambium/admin/users_controller_test.rb +9 -0
- data/test/controllers/cambium/admin_controller_test.rb +9 -0
- metadata +192 -152
- data/bin/cambium +0 -16
- data/lib/generators/cambium/helpers/dependencies_helper.rb +0 -58
- data/lib/generators/cambium/install/admin_generator.rb +0 -110
- data/lib/generators/cambium/install/app_generator.rb +0 -162
- data/lib/generators/cambium/install/config_generator.rb +0 -182
- data/lib/generators/cambium/install/utilities_generator.rb +0 -57
- data/lib/generators/cambium/model/image_generator.rb +0 -67
- data/lib/generators/cambium/model/page_generator.rb +0 -131
- data/lib/generators/cambium/model/post_generator.rb +0 -71
- data/lib/generators/cambium/model/tag_generator.rb +0 -40
- data/lib/generators/cambium/model/user_generator.rb +0 -78
- data/lib/generators/cambium/templates/Gemfile +0 -43
- data/lib/generators/cambium/templates/Gemfile.erb +0 -40
- data/lib/generators/cambium/templates/_partials/pages/admin_icon.rb +0 -6
- data/lib/generators/cambium/templates/app/assets/javascripts/.DS_Store +0 -0
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/collections/.gitkeep +0 -0
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/models/.gitkeep +0 -0
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/models/image.js.coffee +0 -14
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/models/tag.js.coffee +0 -14
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/parser_rules/custom.js +0 -552
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/routers/router.js.coffee +0 -37
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/tag.jst.ejs +0 -7
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/templates/image.jst.ejs +0 -3
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/templates/paginator_controls.jst.ejs +0 -8
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/templates/paginator_nav.jst.ejs +0 -11
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/templates/post_tag.jst.ejs +0 -1
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/accordion.js.coffee +0 -33
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/counter.js.coffee +0 -25
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/dropdown_toggle.js.coffee +0 -16
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/image_upload.js.coffee +0 -28
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/init_counter.js.coffee +0 -13
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/paginator.js.coffee +0 -86
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/publishable.js.coffee +0 -12
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/tags.js.coffee +0 -158
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/views/wysiwyg.js.coffee +0 -87
- data/lib/generators/cambium/templates/app/assets/javascripts/admin/wysihtml5.js +0 -9521
- data/lib/generators/cambium/templates/app/assets/javascripts/application.js +0 -10
- data/lib/generators/cambium/templates/app/assets/javascripts/backbone/templates/.keep +0 -0
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/admin.scss +0 -14
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_content.scss +0 -88
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_form.scss +0 -470
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_globals.scss +0 -39
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_header.scss +0 -121
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_nav.scss +0 -45
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/partials/_wireframe.scss +0 -24
- data/lib/generators/cambium/templates/app/assets/stylesheets/admin/wysihtml5.css +0 -7
- data/lib/generators/cambium/templates/app/controllers/admin/images_controller.rb +0 -45
- data/lib/generators/cambium/templates/app/controllers/admin/pages_controller.rb +0 -42
- data/lib/generators/cambium/templates/app/controllers/admin/posts_controller.rb +0 -39
- data/lib/generators/cambium/templates/app/controllers/admin/taggings_controller.rb +0 -69
- data/lib/generators/cambium/templates/app/controllers/admin/tags_controller.rb +0 -11
- data/lib/generators/cambium/templates/app/controllers/admin/users_controller.rb +0 -13
- data/lib/generators/cambium/templates/app/controllers/admin_controller.rb +0 -97
- data/lib/generators/cambium/templates/app/controllers/images_controller.rb +0 -45
- data/lib/generators/cambium/templates/app/controllers/pages_controller.rb +0 -12
- data/lib/generators/cambium/templates/app/controllers/posts_controller.rb +0 -11
- data/lib/generators/cambium/templates/app/helpers/admin/pages_controller.rb +0 -47
- data/lib/generators/cambium/templates/app/helpers/admin_helper.rb +0 -121
- data/lib/generators/cambium/templates/app/models/concerns/name.rb +0 -7
- data/lib/generators/cambium/templates/app/models/concerns/title.rb +0 -7
- data/lib/generators/cambium/templates/app/models/image.rb +0 -43
- data/lib/generators/cambium/templates/app/models/page.rb +0 -81
- data/lib/generators/cambium/templates/app/models/post.rb +0 -45
- data/lib/generators/cambium/templates/app/models/tag.rb +0 -33
- data/lib/generators/cambium/templates/app/models/tagging.rb +0 -20
- data/lib/generators/cambium/templates/app/uploaders/image_uploader.rb +0 -91
- data/lib/generators/cambium/templates/app/views/admin/_buttons.html.erb +0 -5
- data/lib/generators/cambium/templates/app/views/admin/_form.html.erb +0 -11
- data/lib/generators/cambium/templates/app/views/admin/_title.html.erb +0 -1
- data/lib/generators/cambium/templates/app/views/admin/edit.html.erb +0 -2
- data/lib/generators/cambium/templates/app/views/admin/images/_image.html.erb +0 -1
- data/lib/generators/cambium/templates/app/views/admin/images/create.js.erb +0 -7
- data/lib/generators/cambium/templates/app/views/admin/images/index.json.jbuilder +0 -4
- data/lib/generators/cambium/templates/app/views/admin/index.html.erb +0 -50
- data/lib/generators/cambium/templates/app/views/admin/new.html.erb +0 -2
- data/lib/generators/cambium/templates/app/views/admin/pages/_form.html.erb +0 -26
- data/lib/generators/cambium/templates/app/views/admin/posts/_form.html.erb +0 -40
- data/lib/generators/cambium/templates/app/views/admin/shared/_footer.html.erb +0 -2
- data/lib/generators/cambium/templates/app/views/admin/shared/_header.html.erb +0 -2
- data/lib/generators/cambium/templates/app/views/admin/shared/_insert_image.html.erb +0 -12
- data/lib/generators/cambium/templates/app/views/admin/shared/_nav.html.erb +0 -12
- data/lib/generators/cambium/templates/app/views/admin/shared/_status.html.erb +0 -3
- data/lib/generators/cambium/templates/app/views/admin/shared/forms/_editor.html.erb +0 -54
- data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_column_left.html.erb +0 -9
- data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_column_right.html.erb +0 -9
- data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_page.html.erb +0 -22
- data/lib/generators/cambium/templates/app/views/admin/shared/forms/_form_section.html.erb +0 -8
- data/lib/generators/cambium/templates/app/views/admin/shared/forms/_publishable.html.erb +0 -33
- data/lib/generators/cambium/templates/app/views/admin/users/_form.html.erb +0 -11
- data/lib/generators/cambium/templates/app/views/application/_status.html.erb +0 -3
- data/lib/generators/cambium/templates/app/views/layouts/.DS_Store +0 -0
- data/lib/generators/cambium/templates/app/views/layouts/admin.html.erb +0 -44
- data/lib/generators/cambium/templates/app/views/page_templates/default.html.erb +0 -2
- data/lib/generators/cambium/templates/app/views/posts/_post.html.erb +0 -4
- data/lib/generators/cambium/templates/app/views/posts/index.html.erb +0 -1
- data/lib/generators/cambium/templates/app/views/posts/show.html.erb +0 -10
- data/lib/generators/cambium/templates/config/app_routes.rb +0 -77
- data/lib/generators/cambium/templates/config/database.mysql2.yml.erb +0 -15
- data/lib/generators/cambium/templates/config/database.pg.yml.erb +0 -14
- data/lib/generators/cambium/templates/config/database.sqlite3.yml.erb +0 -18
- data/lib/generators/cambium/templates/config/initializers/_settings.rb +0 -11
- data/lib/generators/cambium/templates/config/initializers/assets.rb +0 -1
- data/lib/generators/cambium/templates/config/routes.rb.erb +0 -42
- data/lib/generators/cambium/templates/config/settings.yml +0 -15
- data/lib/generators/cambium/templates/config/settings_private.sample.yml +0 -15
- data/lib/generators/cambium/templates/config/settings_private.yml +0 -13
- data/lib/generators/cambium/templates/db/migrate/create_pages.rb.erb +0 -24
- data/lib/generators/cambium/templates/db/migrate/create_posts.rb +0 -19
- data/lib/generators/cambium/templates/lib/.DS_Store +0 -0
- data/lib/help/cambium +0 -7
- /data/{lib/generators/cambium/templates/app/assets/javascripts/backbone/collections → app/assets/javascripts/cambium/admin/templates}/.keep +0 -0
- /data/{lib/generators/cambium/templates/app/assets/javascripts/backbone → app/assets/javascripts/cambium/admin}/views/default_helpers.js.coffee +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/__default.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_buttons.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_components.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_forms.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_helpers.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_images.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_nav.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_tables.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_typography.scss +0 -0
- /data/{lib/generators/cambium/templates/app/assets/stylesheets → app/assets/stylesheets/cambium}/admin/bones/bones-config/_wireframe.scss +0 -0
- /data/{lib/generators/cambium/templates/app → app}/models/concerns/idx.rb +0 -0
- /data/{lib/generators/cambium/templates/app → app}/models/concerns/image_cropper.rb +0 -0
- /data/{lib/generators/cambium/templates/app → app}/models/concerns/publishable.rb +0 -0
- /data/{lib/generators/cambium/templates/app → app}/models/concerns/slug.rb +0 -0
- /data/{lib/generators/cambium/templates/app → app}/models/concerns/tags.rb +0 -0
- /data/lib/generators/{cambium/helpers → helpers}/_autoloader.rb +0 -0
- /data/lib/generators/{cambium/templates/app/assets/javascripts/backbone → templates/app/assets/javascripts}/routers/router.js.coffee +0 -0
- /data/lib/generators/{cambium/templates/app/assets/javascripts/backbone/models → templates/app/assets/javascripts/templates}/.keep +0 -0
- /data/lib/generators/{cambium/templates → templates}/app/assets/stylesheets/application.scss +0 -0
- /data/lib/generators/{cambium/templates → templates}/app/views/home/index.html.erb +0 -0
- /data/lib/generators/{cambium/templates → templates}/db/seeds.rb +0 -0
- /data/{lib/generators/cambium/templates/vendor → vendor}/assets/javascripts/modernizr.js +0 -0
- /data/{lib/generators/cambium/templates/vendor → vendor}/assets/stylesheets/normalize.scss +0 -0
File without changes
|
@@ -1,14 +0,0 @@
|
|
1
|
-
// Vendor
|
2
|
-
@import 'bourbon';
|
3
|
-
@import 'admin/bones/bones';
|
4
|
-
@import 'pickadate/classic';
|
5
|
-
@import 'pickadate/classic.date';
|
6
|
-
@import 'pickadate/classic.time';
|
7
|
-
|
8
|
-
// Partials
|
9
|
-
@import 'admin/partials/globals';
|
10
|
-
@import 'admin/partials/wireframe';
|
11
|
-
@import 'admin/partials/nav';
|
12
|
-
@import 'admin/partials/header';
|
13
|
-
@import 'admin/partials/form';
|
14
|
-
@import 'admin/partials/content';
|
@@ -1,88 +0,0 @@
|
|
1
|
-
.table-container {
|
2
|
-
padding: 25px 50px;
|
3
|
-
|
4
|
-
table {
|
5
|
-
opacity: 0;
|
6
|
-
@include transition(opacity 0.5s ease);
|
7
|
-
|
8
|
-
&.active {
|
9
|
-
opacity: 1;
|
10
|
-
}
|
11
|
-
|
12
|
-
tbody tr {
|
13
|
-
display: none;
|
14
|
-
}
|
15
|
-
|
16
|
-
th {
|
17
|
-
&.actions {
|
18
|
-
width: 175px;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
td {
|
23
|
-
&.actions {
|
24
|
-
text-align: center;
|
25
|
-
a {
|
26
|
-
margin: 0 7.5px;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
&.image {
|
30
|
-
width: 120px;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
img {
|
35
|
-
width: 100px;
|
36
|
-
margin: 5px;
|
37
|
-
border: 1px solid $color-light-dark;
|
38
|
-
}
|
39
|
-
|
40
|
-
a {
|
41
|
-
border-bottom: 1px dotted $color-1;
|
42
|
-
&:hover {
|
43
|
-
border-bottom: 1px solid $color-1-dark;
|
44
|
-
i {
|
45
|
-
color: $color-1-dark;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
i {
|
49
|
-
color: $color-1;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
.controls {
|
55
|
-
.next, .prev {
|
56
|
-
i {
|
57
|
-
color: $color-light;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
.paginav {
|
63
|
-
padding: 25px;
|
64
|
-
background: $color-light-dark;
|
65
|
-
.location {
|
66
|
-
padding: 3px 0;
|
67
|
-
}
|
68
|
-
.jump-to {
|
69
|
-
float: right;
|
70
|
-
input {
|
71
|
-
float: right;
|
72
|
-
outline: none;
|
73
|
-
&:focus {
|
74
|
-
outline: none;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
input[type=submit] {
|
78
|
-
margin: 0;
|
79
|
-
font-size: 14px;
|
80
|
-
padding: 5px;
|
81
|
-
background: $color-1;
|
82
|
-
&:focus, &:hover {
|
83
|
-
background: $color-1-dark;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
@@ -1,470 +0,0 @@
|
|
1
|
-
.form-container {
|
2
|
-
padding: 25px;
|
3
|
-
|
4
|
-
form {
|
5
|
-
.column-6 {
|
6
|
-
width: 50%;
|
7
|
-
}
|
8
|
-
|
9
|
-
.picker__table {
|
10
|
-
thead tr th {
|
11
|
-
color: $color-light;
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
.picker__nav--prev:hover, .picker__nav--next {
|
16
|
-
background: transparent;
|
17
|
-
}
|
18
|
-
|
19
|
-
.picker__button--clear, .picker__button--today {
|
20
|
-
color: $color-dark-lightest;
|
21
|
-
}
|
22
|
-
|
23
|
-
h3 {
|
24
|
-
font-size: 26px;
|
25
|
-
font-weight: 400;
|
26
|
-
color: $color-dark-lightest;
|
27
|
-
}
|
28
|
-
|
29
|
-
.button {
|
30
|
-
margin: 0;
|
31
|
-
padding: 16px;
|
32
|
-
font-size: 16px;
|
33
|
-
background: $color-2;
|
34
|
-
&:hover, &:active {
|
35
|
-
background: $color-2-dark;
|
36
|
-
}
|
37
|
-
span, i {
|
38
|
-
color: $color-light;
|
39
|
-
font-size: 14px;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
input[type=submit] {
|
44
|
-
padding: 15px;
|
45
|
-
background: $color-1;
|
46
|
-
&:hover, &:active {
|
47
|
-
background: $color-1-dark;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
.accordion, .group {
|
52
|
-
margin: 0 0 25px 0;
|
53
|
-
display: block;
|
54
|
-
header {
|
55
|
-
position: relative;
|
56
|
-
margin: 0;
|
57
|
-
padding: 10px 15px;
|
58
|
-
background: $color-1;
|
59
|
-
h2 {
|
60
|
-
margin: 0;
|
61
|
-
font-size: 1.15em;
|
62
|
-
font-weight: 200;
|
63
|
-
color: $shade-1;
|
64
|
-
}
|
65
|
-
a.arrow {
|
66
|
-
position: absolute;
|
67
|
-
top: 7px;
|
68
|
-
right: 15px;
|
69
|
-
padding: 5px;
|
70
|
-
background: $shade-4;
|
71
|
-
&:hover {
|
72
|
-
background: $color-dark;
|
73
|
-
}
|
74
|
-
i {
|
75
|
-
color: $shade-1;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
.fields {
|
81
|
-
@include clearfix;
|
82
|
-
box-sizing: border-box;
|
83
|
-
width: 100%;
|
84
|
-
padding: 25px;
|
85
|
-
border: 1px solid $shade-2;
|
86
|
-
|
87
|
-
h3 {
|
88
|
-
clear: both;
|
89
|
-
margin: 15px 0 5px 0;
|
90
|
-
font-size: 18px;
|
91
|
-
text-transform: uppercase;
|
92
|
-
color: $color-dark-lightest;
|
93
|
-
}
|
94
|
-
|
95
|
-
img {
|
96
|
-
position: relative;
|
97
|
-
float: left;
|
98
|
-
width: 150px;
|
99
|
-
height: 150px;
|
100
|
-
margin: 0 15px 5px 0;
|
101
|
-
}
|
102
|
-
|
103
|
-
input[type=file] {
|
104
|
-
margin-top: 7.5px;
|
105
|
-
}
|
106
|
-
|
107
|
-
textarea {
|
108
|
-
height: 300px;
|
109
|
-
&.small {
|
110
|
-
height: 150px;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
label.check_boxes {
|
115
|
-
display: none;
|
116
|
-
}
|
117
|
-
|
118
|
-
ul.inline {
|
119
|
-
margin: 0;
|
120
|
-
padding: 0;
|
121
|
-
list-style: none;
|
122
|
-
li {
|
123
|
-
display: inline-block;
|
124
|
-
margin: 3px 10px;
|
125
|
-
width: 200px;
|
126
|
-
}
|
127
|
-
}
|
128
|
-
|
129
|
-
.checkbox {
|
130
|
-
display: inline-block;
|
131
|
-
width: 250px;
|
132
|
-
label {
|
133
|
-
display: inline;
|
134
|
-
margin-left: 5px;
|
135
|
-
}
|
136
|
-
}
|
137
|
-
|
138
|
-
.feature-image-preview {
|
139
|
-
float: right;
|
140
|
-
margin-right: 5px;
|
141
|
-
}
|
142
|
-
|
143
|
-
.datetime {
|
144
|
-
select {
|
145
|
-
display: inline;
|
146
|
-
width: auto;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
.time-js, .date-js {
|
151
|
-
display: inline;
|
152
|
-
float: left;
|
153
|
-
width: 48%;
|
154
|
-
margin: 10px 2% 15px 0;
|
155
|
-
}
|
156
|
-
|
157
|
-
.warning {
|
158
|
-
color: $color-danger;
|
159
|
-
font-weight: 600;
|
160
|
-
}
|
161
|
-
|
162
|
-
.item-status {
|
163
|
-
.status {
|
164
|
-
margin-right: 10px;
|
165
|
-
}
|
166
|
-
.published {
|
167
|
-
color: $color-success;
|
168
|
-
font-weight: 600;
|
169
|
-
i {
|
170
|
-
color: $color-success;
|
171
|
-
}
|
172
|
-
}
|
173
|
-
.draft {
|
174
|
-
color: $color-danger;
|
175
|
-
font-weight: 600;
|
176
|
-
i {
|
177
|
-
color: $color-danger;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
}
|
181
|
-
|
182
|
-
.images-container {
|
183
|
-
@include clearfix;
|
184
|
-
div.image {
|
185
|
-
position: relative;
|
186
|
-
float: left;
|
187
|
-
width: 160px;
|
188
|
-
height: 160px;
|
189
|
-
margin: 5px;
|
190
|
-
a {
|
191
|
-
position: absolute;
|
192
|
-
top: 5px;
|
193
|
-
right: 5px;
|
194
|
-
padding: 5px;
|
195
|
-
background: $color-dark-lightest;
|
196
|
-
&:hover {
|
197
|
-
background: $color-dark-lighter;
|
198
|
-
}
|
199
|
-
&.edit {
|
200
|
-
right: 31px;
|
201
|
-
}
|
202
|
-
i {
|
203
|
-
color: $color-light;
|
204
|
-
}
|
205
|
-
}
|
206
|
-
img {
|
207
|
-
border: 5px solid transparent;
|
208
|
-
&:hover {
|
209
|
-
border-color: $color-light-darkest;
|
210
|
-
cursor: pointer;
|
211
|
-
}
|
212
|
-
&.featured {
|
213
|
-
border-color: $color-1;
|
214
|
-
}
|
215
|
-
}
|
216
|
-
}
|
217
|
-
|
218
|
-
div.loading {
|
219
|
-
float: left;
|
220
|
-
width: 150px;
|
221
|
-
height: 150px;
|
222
|
-
margin: 5px;
|
223
|
-
border: 5px solid $color-light-darkest;
|
224
|
-
}
|
225
|
-
}
|
226
|
-
|
227
|
-
#new-category, #new-client {
|
228
|
-
select {
|
229
|
-
width: 386px;
|
230
|
-
}
|
231
|
-
hr {
|
232
|
-
width: 386px;
|
233
|
-
margin: 15px 0 5px 0;
|
234
|
-
}
|
235
|
-
input#new-cat-title, input#new-client-title {
|
236
|
-
display: inline-block;
|
237
|
-
width: 250px;
|
238
|
-
padding: 8px;
|
239
|
-
}
|
240
|
-
.add-new-cat, .add-new-client {
|
241
|
-
display: inline-block;
|
242
|
-
width: 100px;
|
243
|
-
text-align: center;
|
244
|
-
}
|
245
|
-
}
|
246
|
-
|
247
|
-
.crop-image-container {
|
248
|
-
display: none;
|
249
|
-
|
250
|
-
.crop-image {
|
251
|
-
width: 500px;
|
252
|
-
margin: 25px auto 0 auto;
|
253
|
-
}
|
254
|
-
}
|
255
|
-
}
|
256
|
-
|
257
|
-
#tag-container {
|
258
|
-
position: relative;
|
259
|
-
z-index: 99;
|
260
|
-
|
261
|
-
ul.autocomplete {
|
262
|
-
position: absolute;
|
263
|
-
top: 28px;
|
264
|
-
width: 100%;
|
265
|
-
margin: 0;
|
266
|
-
padding: 0;
|
267
|
-
list-style: none;
|
268
|
-
background: $color-light;
|
269
|
-
li {
|
270
|
-
border: 1px solid $color-light-dark;
|
271
|
-
border-top: none;
|
272
|
-
a {
|
273
|
-
display: block;
|
274
|
-
width: 100%;
|
275
|
-
padding: 5px 10px;
|
276
|
-
}
|
277
|
-
&.active, a:hover {
|
278
|
-
background: $color-light-dark;
|
279
|
-
}
|
280
|
-
}
|
281
|
-
}
|
282
|
-
|
283
|
-
ul#tag-list {
|
284
|
-
list-style: none;
|
285
|
-
margin: 0;
|
286
|
-
padding: 0;
|
287
|
-
|
288
|
-
li {
|
289
|
-
display: inline-block;
|
290
|
-
margin: 0 10px;
|
291
|
-
a {
|
292
|
-
i {
|
293
|
-
font-size: 14px;
|
294
|
-
color: $color-light-darkest;
|
295
|
-
}
|
296
|
-
&:hover {
|
297
|
-
i {
|
298
|
-
color: $color-1;
|
299
|
-
}
|
300
|
-
}
|
301
|
-
}
|
302
|
-
}
|
303
|
-
|
304
|
-
.separator {
|
305
|
-
color: $color-light-darkest;
|
306
|
-
&:last-child {
|
307
|
-
display: none;
|
308
|
-
}
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}
|
312
|
-
}
|
313
|
-
|
314
|
-
.table-container {
|
315
|
-
margin: 35px 0 0 0;
|
316
|
-
padding: 0;
|
317
|
-
}
|
318
|
-
}
|
319
|
-
}
|
320
|
-
|
321
|
-
form .wysihtml5-toolbar {
|
322
|
-
margin-top: 25px;
|
323
|
-
background: $color-light-dark;
|
324
|
-
|
325
|
-
& > .group {
|
326
|
-
display: inline-block;
|
327
|
-
width: auto;
|
328
|
-
margin: 0 25px 0 0;
|
329
|
-
padding: 0;
|
330
|
-
|
331
|
-
a {
|
332
|
-
display: inline-block;
|
333
|
-
margin: 0 -3px 0 0;
|
334
|
-
padding: 10px;
|
335
|
-
line-height: 20px;
|
336
|
-
font-weight: 600;
|
337
|
-
color: $color-dark;
|
338
|
-
|
339
|
-
&:hover, &.wysihtml5-command-active, &.wysihtml5-command-dialog-opened {
|
340
|
-
background: $color-1;
|
341
|
-
color: $color-light;
|
342
|
-
i {
|
343
|
-
color: $color-light;
|
344
|
-
}
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
|
-
.dialog {
|
349
|
-
position: absolute;
|
350
|
-
width: 350px;
|
351
|
-
padding: 10px 25px;
|
352
|
-
background: $color-light-dark;
|
353
|
-
border: 1px solid $color-light-darker;
|
354
|
-
|
355
|
-
a:hover {
|
356
|
-
cursor: pointer;
|
357
|
-
}
|
358
|
-
}
|
359
|
-
|
360
|
-
&.right {
|
361
|
-
float: right;
|
362
|
-
margin: 0 0 0 25px;
|
363
|
-
a {
|
364
|
-
margin: 0;
|
365
|
-
}
|
366
|
-
}
|
367
|
-
}
|
368
|
-
|
369
|
-
&.wysihtml5-commands-disabled {
|
370
|
-
|
371
|
-
.group {
|
372
|
-
|
373
|
-
a {
|
374
|
-
color: $color-light-darker;
|
375
|
-
i {
|
376
|
-
color: $color-light-darker;
|
377
|
-
}
|
378
|
-
&:hover {
|
379
|
-
color: $color-light-darker;
|
380
|
-
background: transparent;
|
381
|
-
cursor: default;
|
382
|
-
i {
|
383
|
-
color: $color-light-darker;
|
384
|
-
}
|
385
|
-
}
|
386
|
-
&.wysihtml5-action-active {
|
387
|
-
background: $color-1;
|
388
|
-
color: $color-light;
|
389
|
-
i {
|
390
|
-
color: $color-light;
|
391
|
-
}
|
392
|
-
&:hover {
|
393
|
-
cursor: pointer;
|
394
|
-
}
|
395
|
-
}
|
396
|
-
}
|
397
|
-
}
|
398
|
-
}
|
399
|
-
}
|
400
|
-
|
401
|
-
#wysihtml5-insert-image-modal {
|
402
|
-
display: none;
|
403
|
-
position: fixed;
|
404
|
-
top: 0;
|
405
|
-
left: 0;
|
406
|
-
width: 100%;
|
407
|
-
height: 100%;
|
408
|
-
z-index: 9999;
|
409
|
-
background: rgba(0,0,0,0.5);
|
410
|
-
|
411
|
-
.modal {
|
412
|
-
position: absolute;
|
413
|
-
width: 662px;
|
414
|
-
height: 400px;
|
415
|
-
padding: 10px 20px;
|
416
|
-
background: $color-light-dark;
|
417
|
-
border: 1px solid $color-light-darkest;
|
418
|
-
opacity: 1;
|
419
|
-
overflow: scroll;
|
420
|
-
|
421
|
-
a.close {
|
422
|
-
float: right;
|
423
|
-
padding: 5px 10px;
|
424
|
-
border: 2px solid $color-light-darkest;
|
425
|
-
color: $color-light-darkest;
|
426
|
-
font-size: 24px;
|
427
|
-
font-weight: 600;
|
428
|
-
&:hover {
|
429
|
-
color: $color-1;
|
430
|
-
border-color: $color-1;
|
431
|
-
}
|
432
|
-
}
|
433
|
-
|
434
|
-
h1 {
|
435
|
-
font-size: 24px;
|
436
|
-
}
|
437
|
-
|
438
|
-
hr {
|
439
|
-
background: $color-light-darker;
|
440
|
-
}
|
441
|
-
|
442
|
-
img {
|
443
|
-
float: left;
|
444
|
-
width: 125px;
|
445
|
-
margin: 10px;
|
446
|
-
border: 5px solid transparent;
|
447
|
-
outline: 2.5px solid $color-light-darker;
|
448
|
-
&:hover {
|
449
|
-
cursor: pointer;
|
450
|
-
outline-color: $color-1;
|
451
|
-
}
|
452
|
-
}
|
453
|
-
|
454
|
-
div.loading {
|
455
|
-
float: left;
|
456
|
-
width: 125px;
|
457
|
-
margin: 10px;
|
458
|
-
border: 5px solid transparent;
|
459
|
-
outline: 2.5px solid $color-light-darker;
|
460
|
-
}
|
461
|
-
}
|
462
|
-
}
|
463
|
-
|
464
|
-
.wysihtml5-sandbox {
|
465
|
-
margin: 0 0 12px 0 !important;
|
466
|
-
}
|
467
|
-
|
468
|
-
.wysihtml5-textarea {
|
469
|
-
margin-top: 0;
|
470
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* formatting
|
3
|
-
*
|
4
|
-
*/
|
5
|
-
$sidebar-width: 100px;
|
6
|
-
|
7
|
-
/*
|
8
|
-
* additional color helpers
|
9
|
-
*
|
10
|
-
* several shades of grey (no novel included)
|
11
|
-
* from lightest to darkest
|
12
|
-
*
|
13
|
-
*/
|
14
|
-
$shade-1: $color-light;
|
15
|
-
$shade-2: $color-light-dark;
|
16
|
-
$shade-3: lighten($color-dark, 60%);
|
17
|
-
$shade-4: lighten($color-dark, 50%);
|
18
|
-
|
19
|
-
/*
|
20
|
-
* mixins
|
21
|
-
*
|
22
|
-
*/
|
23
|
-
@mixin media($size) {
|
24
|
-
@if $size == tablet {
|
25
|
-
@media (max-width: 800px) { @content; }
|
26
|
-
}
|
27
|
-
@if $size == phone {
|
28
|
-
@media (max-width: 500px) { @content; }
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
/*
|
33
|
-
* global styles
|
34
|
-
*
|
35
|
-
*/
|
36
|
-
* {
|
37
|
-
font-family: 'Source Sans Pro', 'Segoe UI', 'Droid Sans', Tahoma,
|
38
|
-
"Helvetica Neue", Helvetica, Arial, sans-serif;
|
39
|
-
}
|