character 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -1
- data/.rspec +1 -0
- data/README.md +185 -14
- data/Rakefile +8 -1
- data/app/assets/images/character/logo.jpg +0 -0
- data/app/assets/javascripts/character.coffee +134 -0
- data/app/assets/javascripts/character/dashboard/_visitors.coffee +27 -0
- data/app/assets/javascripts/character/dashboard/layout.coffee +156 -0
- data/app/assets/javascripts/character/dashboard/module.coffee +51 -0
- data/app/assets/javascripts/character/generic/details.coffee +233 -0
- data/app/assets/javascripts/character/generic/helpers/compact_object.coffee +7 -0
- data/app/assets/javascripts/character/generic/helpers/data_inputs.coffee +21 -0
- data/app/assets/javascripts/character/generic/helpers/date_select.coffee +45 -0
- data/app/assets/javascripts/character/generic/helpers/editor.coffee +11 -0
- data/app/assets/javascripts/character/generic/helpers/redactor.coffee +38 -0
- data/app/assets/javascripts/character/generic/helpers/reorder.coffee +36 -0
- data/app/assets/javascripts/character/generic/layout.coffee +40 -0
- data/app/assets/javascripts/character/generic/list.coffee +214 -0
- data/app/assets/javascripts/character/generic/model.coffee +135 -0
- data/app/assets/javascripts/character/generic/module.coffee +157 -0
- data/app/assets/javascripts/character/images/module.coffee +148 -0
- data/app/assets/javascripts/character/pages/module.coffee +43 -0
- data/app/assets/javascripts/character/posts/module.coffee +113 -0
- data/app/assets/javascripts/character/settings/_admins.coffee +61 -0
- data/app/assets/javascripts/character/settings/_authors.coffee +56 -0
- data/app/assets/javascripts/character/settings/_categories.coffee +61 -0
- data/app/assets/javascripts/character/settings/_layout.coffee +7 -0
- data/app/assets/javascripts/character/settings/_redirects.coffee +56 -0
- data/app/assets/javascripts/character/settings/_website.coffee +7 -0
- data/app/assets/javascripts/character/settings/details.coffee +16 -0
- data/app/assets/javascripts/character/settings/layout.coffee +46 -0
- data/app/assets/javascripts/character/settings/module.coffee +78 -0
- data/app/assets/stylesheets/character.scss +37 -0
- data/app/assets/stylesheets/character/_admins.scss +30 -0
- data/app/assets/stylesheets/character/_authors.scss +30 -0
- data/app/assets/stylesheets/character/_categories.scss +32 -0
- data/app/assets/stylesheets/character/_dashboard.scss +143 -0
- data/app/assets/stylesheets/character/_posts.scss +93 -0
- data/app/assets/stylesheets/character/_redirects.scss +35 -0
- data/app/assets/stylesheets/character/base.scss +967 -0
- data/app/assets/stylesheets/character/typography.scss +29 -0
- data/app/controllers/character/api_controller.rb +170 -0
- data/app/controllers/character/application_controller.rb +37 -0
- data/app/controllers/character/settings_controller.rb +72 -0
- data/app/controllers/concerns/character/auth_concern.rb +41 -0
- data/app/controllers/concerns/character/instance_concern.rb +31 -0
- data/app/controllers/concerns/character/json_object_concern.rb +32 -0
- data/app/controllers/concerns/character/model_class_concern.rb +28 -0
- data/app/controllers/concerns/character/params_concern.rb +33 -0
- data/app/controllers/concerns/character/templates_concern.rb +32 -0
- data/app/controllers/concerns/not_found.rb +18 -0
- data/app/controllers/concerns/website_settings.rb +18 -0
- data/app/controllers/pages_controller.rb +8 -0
- data/app/controllers/posts_controller.rb +43 -0
- data/app/helpers/character_helper.rb +8 -0
- data/app/helpers/page_helper.rb +67 -0
- data/app/inputs/foundation_string_input.rb +44 -0
- data/app/inputs/foundation_switch_input.rb +35 -0
- data/app/models/character/image.rb +12 -0
- data/app/models/character/page.rb +21 -0
- data/app/models/character/post.rb +32 -12
- data/app/models/character/post_author.rb +22 -0
- data/app/models/character/post_category.rb +21 -0
- data/app/models/character/redirect.rb +15 -0
- data/app/models/character/settings/variable.rb +23 -0
- data/app/models/character/sitemap/sitemap_generator_helper.rb +15 -0
- data/app/models/character/user.rb +29 -0
- data/app/models/concerns/created_ago.rb +12 -0
- data/app/models/concerns/hideable.rb +27 -0
- data/app/models/concerns/orderable.rb +8 -0
- data/app/models/concerns/report.rb +11 -0
- data/app/models/concerns/report_daily.rb +32 -0
- data/app/models/concerns/report_monthly.rb +18 -0
- data/app/models/concerns/report_weekly.rb +19 -0
- data/app/models/concerns/updated_ago.rb +12 -0
- data/app/models/reports/analytics_daily.rb +26 -0
- data/app/models/reports/analytics_monthly.rb +16 -0
- data/app/models/reports/analytics_weekly.rb +16 -0
- data/app/services/google_analytics.rb +43 -0
- data/app/uploaders/character/image_uploader.rb +22 -0
- data/app/uploaders/character/settings/file_uploader.rb +5 -0
- data/app/views/character/character.html.erb +67 -0
- data/app/views/character/generic/form.html.erb +8 -0
- data/app/views/character/pages/form.html.erb +28 -0
- data/app/views/character/posts/form.html.erb +38 -0
- data/app/views/character/settings/admins.html.erb +29 -0
- data/app/views/character/settings/post_authors.html.erb +28 -0
- data/app/views/character/settings/post_categories.html.erb +31 -0
- data/app/views/character/settings/redirects.html.erb +30 -0
- data/app/views/character/settings/settings_group.html.erb +67 -0
- data/app/views/errors/not_found.html.erb +157 -0
- data/app/views/pages/_default.html.erb +3 -0
- data/app/views/pages/_redactor.html.erb +3 -0
- data/app/views/pages/show.html.erb +5 -0
- data/app/views/posts/_post.html.erb +17 -0
- data/app/views/posts/author.html.erb +18 -0
- data/app/views/posts/category.html.erb +18 -0
- data/app/views/posts/index.html.erb +18 -0
- data/app/views/posts/rss.builder +19 -0
- data/app/views/posts/show.html.erb +14 -0
- data/app/views/shared/_google_analytics.html.erb +13 -0
- data/character.gemspec +48 -5
- data/doc/README_old.md +161 -0
- data/doc/generic_app.md +19 -0
- data/doc/img/demo-1.jpg +0 -0
- data/doc/img/demo-2.jpg +0 -0
- data/doc/img/demo-3.jpg +0 -0
- data/doc/img/demo-4.jpg +0 -0
- data/doc/img/demo-5.jpg +0 -0
- data/doc/instances.md +39 -0
- data/doc/settings.md +1 -0
- data/lib/character.rb +29 -1
- data/lib/character/engine.rb +33 -1
- data/lib/character/generators/bootstrap_generator.rb +51 -0
- data/lib/character/instance.rb +59 -0
- data/lib/character/routing.rb +42 -5
- data/lib/character/settings.rb +101 -0
- data/lib/character/templates/admin.coffee +15 -0
- data/lib/character/templates/admin.scss +3 -0
- data/lib/character/templates/application.html.erb +44 -0
- data/lib/character/templates/application.scss +12 -0
- data/lib/character/templates/assets.rb +1 -0
- data/lib/character/templates/initializer.rb +5 -0
- data/lib/character/templates/settings.scss +11 -0
- data/lib/character/templates/settings.yml +67 -0
- data/lib/character/templates/typography.scss +13 -0
- data/lib/character/version.rb +2 -2
- data/lib/mongoid/carrierwave_serialization_patch.rb +9 -0
- data/lib/tasks/analytics.rake +52 -0
- data/test/config/application.rb +65 -0
- data/test/config/mongoid.yml +12 -0
- data/test/config/secrets.yml +22 -0
- data/test/controllers/character/api_controller_test.rb +94 -0
- data/test/factories/product_factory.rb +5 -0
- data/test/lib/character/engine_test.rb +33 -0
- data/test/lib/character/routing_test.rb +31 -0
- data/test/test_helper.rb +48 -0
- data/vendor/assets/javascripts/backbone.js +944 -794
- data/vendor/assets/javascripts/jquery.fileupload.js +1426 -0
- data/vendor/assets/javascripts/jquery.form.js +1278 -0
- data/vendor/assets/javascripts/jquery.iframe-transport.js +214 -0
- data/vendor/assets/javascripts/raphael.js +8117 -0
- data/vendor/assets/javascripts/raphael.morris.js +1885 -0
- data/vendor/assets/javascripts/underscore.inflection.js +177 -0
- data/vendor/assets/javascripts/underscore.string.js +1 -1
- data/vendor/assets/stylesheets/csspinner.css +361 -0
- data/vendor/assets/stylesheets/normalize.css +423 -0
- metadata +499 -49
- data/app/controllers/character/posts_controller.rb +0 -27
- data/lib/generators/character/install_generator.rb +0 -42
- data/lib/generators/character/templates/README +0 -1
- data/lib/generators/character/templates/admin/character.rb +0 -3
- data/vendor/assets/fonts/general_foundicons.eot +0 -0
- data/vendor/assets/fonts/general_foundicons.svg +0 -15
- data/vendor/assets/fonts/general_foundicons.ttf +0 -0
- data/vendor/assets/fonts/general_foundicons.woff +0 -0
- data/vendor/assets/javascripts/character/index.js.coffee +0 -53
- data/vendor/assets/javascripts/character/models/post.js.coffee +0 -39
- data/vendor/assets/javascripts/character/views/app.js.coffee +0 -81
- data/vendor/assets/javascripts/character/views/editor.js.coffee +0 -231
- data/vendor/assets/javascripts/character/views/editor_settings.js.coffee +0 -44
- data/vendor/assets/javascripts/character/views/index.js.coffee +0 -116
- data/vendor/assets/javascripts/character/views/preview.js.coffee +0 -49
- data/vendor/assets/javascripts/jquery.smartresize.js +0 -30
- data/vendor/assets/javascripts/lodash.js +0 -4258
- data/vendor/assets/javascripts/showdown.js +0 -62
- data/vendor/assets/stylesheets/character/_base.css.scss +0 -84
- data/vendor/assets/stylesheets/character/_icons.css.scss.erb +0 -96
- data/vendor/assets/stylesheets/character/_view_editor.css.scss +0 -115
- data/vendor/assets/stylesheets/character/_view_index.css.scss +0 -73
- data/vendor/assets/stylesheets/character/_view_preview.css.scss +0 -49
- data/vendor/assets/stylesheets/character/index.css.scss +0 -32
@@ -0,0 +1,56 @@
|
|
1
|
+
# ---------------------------------------------------------
|
2
|
+
# SETTINGS REDIRECTS
|
3
|
+
# ---------------------------------------------------------
|
4
|
+
|
5
|
+
@Character.Settings.RedirectsLayout = Character.Settings.DetailsLayout.extend
|
6
|
+
_bindAdd: ->
|
7
|
+
@ui.actionAdd.on 'click', (e) =>
|
8
|
+
e.preventDefault()
|
9
|
+
|
10
|
+
$item = @ui.template.clone()
|
11
|
+
|
12
|
+
$item.removeAttr('id')
|
13
|
+
|
14
|
+
objectId = new Date().getTime()
|
15
|
+
$item.find('[name]').each (idx, el) ->
|
16
|
+
newName = $(el).attr('name').replace(/objects\[\]\[\]/g, "objects[][#{ objectId }]")
|
17
|
+
$(el).attr('name', newName)
|
18
|
+
|
19
|
+
@ui.template.before($item)
|
20
|
+
|
21
|
+
$item.find('.action_add').hide()
|
22
|
+
$item.find('.action_delete').show()
|
23
|
+
|
24
|
+
_bindDelete: ->
|
25
|
+
@ui.content.on 'click', '.action_delete', (e) ->
|
26
|
+
itemCls = $(e.currentTarget).attr('data-item-class')
|
27
|
+
item = $(e.currentTarget).closest(".#{ itemCls }")
|
28
|
+
|
29
|
+
# TODO: query could be optimized with one regex
|
30
|
+
destroy_field = _.find item.find("input[type=hidden]"), (f) ->
|
31
|
+
name = $(f).attr('name') ; _(name).endsWith('[_destroy]')
|
32
|
+
|
33
|
+
if destroy_field
|
34
|
+
$(destroy_field).attr('value', 'true')
|
35
|
+
item.replaceWith(destroy_field)
|
36
|
+
else
|
37
|
+
item.remove()
|
38
|
+
false
|
39
|
+
|
40
|
+
afterRenderContent: ->
|
41
|
+
@ui.template = $('#template')
|
42
|
+
@ui.actionAdd = @ui.form.find('.action_add')
|
43
|
+
|
44
|
+
@_bindAdd()
|
45
|
+
@_bindDelete()
|
46
|
+
|
47
|
+
afterOnClose: ->
|
48
|
+
@ui.actionAdd.off 'click'
|
49
|
+
|
50
|
+
beforeSave: ->
|
51
|
+
@ui.template.remove()
|
52
|
+
|
53
|
+
chr.settingsRedirects = (titleMenu = 'Redirects') ->
|
54
|
+
chr.settingsModule 'Redirects',
|
55
|
+
titleMenu: titleMenu
|
56
|
+
detailsViewClass: Character.Settings.RedirectsLayout
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#
|
2
|
+
# character/generic/details.coffee
|
3
|
+
#
|
4
|
+
@Character.Settings.DetailsHeaderView = Character.Generic.DetailsHeaderView.extend
|
5
|
+
initialize: ->
|
6
|
+
|
7
|
+
onRender: ->
|
8
|
+
@ui.actionDelete.hide()
|
9
|
+
|
10
|
+
#
|
11
|
+
# character/generic/details.coffee
|
12
|
+
#
|
13
|
+
@Character.Settings.DetailsLayout = Character.Generic.DetailsLayout.extend
|
14
|
+
beforeContentRequest: ->
|
15
|
+
@ui.content.addClass(@options.moduleName)
|
16
|
+
@headerView.ui.title.html(@options.titleDetails)
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# Marionette.js Layout Documentation
|
3
|
+
# https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.layout.md
|
4
|
+
#
|
5
|
+
@Character.Settings.Layout = Backbone.Marionette.LayoutView.extend
|
6
|
+
tagName: 'section'
|
7
|
+
className: 'chr-layout'
|
8
|
+
|
9
|
+
template: -> """<aside class='left'>
|
10
|
+
<header class='chr-list-header'>
|
11
|
+
<span class='title'>Settings</span>
|
12
|
+
</header>
|
13
|
+
<div id=list_content class='chr-list'>
|
14
|
+
<ul id=list></ul>
|
15
|
+
</div>
|
16
|
+
</aside>
|
17
|
+
<div id=details class='right chr-logo'></div>"""
|
18
|
+
|
19
|
+
regions:
|
20
|
+
details: '#details'
|
21
|
+
|
22
|
+
ui:
|
23
|
+
list: '#list'
|
24
|
+
user_email: '#user_email'
|
25
|
+
action_logout: '.browserid_logout'
|
26
|
+
|
27
|
+
onRender: ->
|
28
|
+
submodules = @options.module.submodules
|
29
|
+
|
30
|
+
@ui.action_logout.attr('href', chr.options.url + '/logout')
|
31
|
+
@ui.user_email.html(chr.options.user_email)
|
32
|
+
|
33
|
+
# add left menu options
|
34
|
+
_.each submodules, (m) =>
|
35
|
+
title = m.options.titleMenu
|
36
|
+
name = m.options.moduleName
|
37
|
+
@ui.list.append """<li class='chr-list-item'>
|
38
|
+
<a href='#/settings/#{ name }' class='#{ name }'><div class='title'>#{ title }</div></a>
|
39
|
+
</li>"""
|
40
|
+
|
41
|
+
unsetActiveMenuItem: ->
|
42
|
+
@ui.list.find('.active').removeClass('active')
|
43
|
+
|
44
|
+
setActiveMenuItem: (path) ->
|
45
|
+
@unsetActiveMenuItem()
|
46
|
+
@ui.list.find("a.#{ path }").parent().addClass('active')
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#= require_self
|
2
|
+
#= require ./layout
|
3
|
+
#= require ./details
|
4
|
+
#= require ./_admins
|
5
|
+
#= require ./_categories
|
6
|
+
#= require ./_website
|
7
|
+
#= require ./_redirects
|
8
|
+
#= require ./_layout
|
9
|
+
#= require ./_authors
|
10
|
+
|
11
|
+
# ---------------------------------------------------------
|
12
|
+
# SETTINGS
|
13
|
+
# ---------------------------------------------------------
|
14
|
+
|
15
|
+
@Character.Settings ||= {}
|
16
|
+
|
17
|
+
#
|
18
|
+
# Marionette.js Module Documentation
|
19
|
+
# https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.application.module.md
|
20
|
+
#
|
21
|
+
chr.module 'settings', (module) ->
|
22
|
+
module.addInitializer ->
|
23
|
+
@layout = new Character.Settings.Layout({ module: @ })
|
24
|
+
@controller = new Character.Settings.Controller({ module: @ })
|
25
|
+
@router = new Character.Settings.Router({ controller: @controller })
|
26
|
+
|
27
|
+
#
|
28
|
+
# Marionette.js Router Documentation
|
29
|
+
# https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.approuter.md
|
30
|
+
#
|
31
|
+
@Character.Settings.Router = Backbone.Marionette.AppRouter.extend
|
32
|
+
appRoutes:
|
33
|
+
'settings': 'index'
|
34
|
+
'settings/:settingsModuleName': 'edit'
|
35
|
+
|
36
|
+
#
|
37
|
+
# Marionette.js Controller Documentation
|
38
|
+
# https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.controller.md
|
39
|
+
#
|
40
|
+
@Character.Settings.Controller = Marionette.Controller.extend
|
41
|
+
initialize: ->
|
42
|
+
@module = @options.module
|
43
|
+
|
44
|
+
index: ->
|
45
|
+
@module.layout.details.reset()
|
46
|
+
chr.execute('showModule', @module)
|
47
|
+
chr.currentPath = "settings"
|
48
|
+
@module.layout.unsetActiveMenuItem()
|
49
|
+
|
50
|
+
edit: (settingsModuleName) ->
|
51
|
+
@index()
|
52
|
+
|
53
|
+
# this is required to work with generic details view
|
54
|
+
options = @module.submodules[settingsModuleName].options
|
55
|
+
options.module = @module.submodules[settingsModuleName]
|
56
|
+
options.formUrl = "#{ chr.options.url }/settings/#{ settingsModuleName }"
|
57
|
+
options.fullscreen = false
|
58
|
+
|
59
|
+
detailsView = new options.detailsViewClass(options)
|
60
|
+
|
61
|
+
@module.layout.details.show(detailsView)
|
62
|
+
@module.layout.setActiveMenuItem(settingsModuleName)
|
63
|
+
|
64
|
+
#
|
65
|
+
# Character Settings Module
|
66
|
+
# Initialize function
|
67
|
+
#
|
68
|
+
chr.settingsModule = (title, options={}) ->
|
69
|
+
options.titleMenu ?= title
|
70
|
+
options.titleDetails ?= title
|
71
|
+
options.moduleName ?= _.underscored(title)
|
72
|
+
|
73
|
+
options.detailsViewClass ?= Character.Settings.DetailsLayout
|
74
|
+
options.detailsHeaderViewClass ?= Character.Settings.DetailsHeaderView
|
75
|
+
|
76
|
+
chr.module "settings.#{options.moduleName}", (module) ->
|
77
|
+
module.DetailsHeaderView = options.detailsHeaderViewClass
|
78
|
+
@options = options
|
@@ -0,0 +1,37 @@
|
|
1
|
+
//= require normalize
|
2
|
+
//= require csspinner
|
3
|
+
//= require font-awesome
|
4
|
+
|
5
|
+
$primary_color: #12a0ce!default;
|
6
|
+
$secondary_color: #1fc776!default;
|
7
|
+
$error_color: #bc3737!default;
|
8
|
+
|
9
|
+
$menu_color: #414d64!default;
|
10
|
+
$menu_border_color: #4b5872!default;
|
11
|
+
$menu_active_color: #28344d!default;
|
12
|
+
$menu_icon_color: #8b97ad!default;
|
13
|
+
|
14
|
+
$header_color: $primary_color;
|
15
|
+
$header_border_color: #108cb5!default;
|
16
|
+
$list_color: #edf1f5!default;
|
17
|
+
$list_border_color: #d1d6e0!default;
|
18
|
+
$list_item_color: #fafbfc!default;
|
19
|
+
$list_item_active_color: #ffffff!default;
|
20
|
+
$list_item_meta_color: #8c9092!default;
|
21
|
+
$list_scope_color: #414d64!default;
|
22
|
+
$meta_color: #97e4f4!default;
|
23
|
+
|
24
|
+
$font_regular: 400!default;
|
25
|
+
$font_semi_bold: 600!default;
|
26
|
+
$font_bold: 700!default;
|
27
|
+
|
28
|
+
@import "simple_form_scss";
|
29
|
+
@import "character/base";
|
30
|
+
@import "character/admins";
|
31
|
+
@import "character/categories";
|
32
|
+
@import "character/dashboard";
|
33
|
+
@import "character/posts";
|
34
|
+
@import "character/redirects";
|
35
|
+
@import "character/authors";
|
36
|
+
@import "character_editor";
|
37
|
+
@import "redactor";
|
@@ -0,0 +1,30 @@
|
|
1
|
+
//---------------------------------------------------------
|
2
|
+
// ADMINS
|
3
|
+
//---------------------------------------------------------
|
4
|
+
|
5
|
+
.admins .simple_form {
|
6
|
+
|
7
|
+
.admin { margin-left: 62px + 20px;
|
8
|
+
.input.email > input { @include input-placeholder { color: #cbd0d3; }
|
9
|
+
padding-left: 1.5em;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.picture { float: left;
|
14
|
+
margin-top: 10px;
|
15
|
+
margin-left: -80px;
|
16
|
+
display: inline-block;
|
17
|
+
width: 62px;
|
18
|
+
height: 62px;
|
19
|
+
img { border-radius: 31px;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
a:hover .chr-icon { color: #414d64;
|
24
|
+
}
|
25
|
+
|
26
|
+
.chr-icon { color: #d1d6e0;
|
27
|
+
position: absolute;
|
28
|
+
margin-top: 33px;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
//---------------------------------------------------------
|
2
|
+
// AUTHORS
|
3
|
+
//---------------------------------------------------------
|
4
|
+
|
5
|
+
.post_authors .simple_form {
|
6
|
+
.input.email.objects_email > input,
|
7
|
+
.input.string.objects_name > input { font-size: 1.2em;
|
8
|
+
border-bottom: none;
|
9
|
+
margin-bottom: 0;
|
10
|
+
padding: .3em .5em;
|
11
|
+
}
|
12
|
+
.objects_name { float: left;
|
13
|
+
width: 30em;
|
14
|
+
}
|
15
|
+
.input.email.objects_email > input { border-top: 1px solid #e6e9f0;
|
16
|
+
padding-right: 60px;
|
17
|
+
}
|
18
|
+
.action_add { @include button;
|
19
|
+
margin-top: 4em;
|
20
|
+
}
|
21
|
+
.action_delete { position: absolute;
|
22
|
+
margin-left: -35px;
|
23
|
+
margin-top: 25px;
|
24
|
+
}
|
25
|
+
.fields { margin-bottom: 1em;
|
26
|
+
}
|
27
|
+
#template,
|
28
|
+
#template .action_delete { display: none;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
//---------------------------------------------------------
|
2
|
+
// CATEGORIES
|
3
|
+
//---------------------------------------------------------
|
4
|
+
|
5
|
+
.post_categories .simple_form {
|
6
|
+
.category {
|
7
|
+
.input.string > input { padding: .61em 1.5em;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.chr-icon { color: #d1d6e0;
|
12
|
+
position: absolute;
|
13
|
+
margin-top: 21px;
|
14
|
+
}
|
15
|
+
.fa { color: #d1d6e0;
|
16
|
+
font-size: 22px;
|
17
|
+
padding: 21px 20px 0 0;
|
18
|
+
position: absolute;
|
19
|
+
}
|
20
|
+
a:hover .fa,
|
21
|
+
a:hover .chr-icon { color: #414d64;
|
22
|
+
}
|
23
|
+
.action_sort { position: relative;
|
24
|
+
float: right;
|
25
|
+
margin-right: -40px;
|
26
|
+
left: -45px;
|
27
|
+
padding: 21px 0px;
|
28
|
+
cursor: pointer;
|
29
|
+
&:hover { color: #414d64;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
//---------------------------------------------------------
|
2
|
+
// DASHBOARD
|
3
|
+
//---------------------------------------------------------
|
4
|
+
|
5
|
+
.dashboard-view { @include position(0, 71px, 0, 0);
|
6
|
+
overflow: auto;
|
7
|
+
background-color: #fafbfc;
|
8
|
+
}
|
9
|
+
|
10
|
+
.dashboard-chart-select { position: absolute;
|
11
|
+
margin-left: 30px;
|
12
|
+
margin-top: 28px;
|
13
|
+
z-index: 1;
|
14
|
+
}
|
15
|
+
|
16
|
+
.dashboard-chart-options { position: absolute;
|
17
|
+
top: 23px;
|
18
|
+
right: 30px;
|
19
|
+
color: #a1a7b2;
|
20
|
+
z-index: 1;
|
21
|
+
select { margin-right: 10px;
|
22
|
+
}
|
23
|
+
input { @include input;
|
24
|
+
width: 130px;
|
25
|
+
font-size: 12px;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.dashboard-chart-wrapper { padding: 56px 20px 20px;
|
30
|
+
background-color: #fff;
|
31
|
+
border-bottom: 1px solid #d1d6e0;
|
32
|
+
min-height: 394px;
|
33
|
+
z-index: 0;
|
34
|
+
&:before { content: attr(data-title);
|
35
|
+
display: block;
|
36
|
+
position: relative;
|
37
|
+
margin: -28px 0 10px;
|
38
|
+
@include font;
|
39
|
+
font-weight: $font_bold;
|
40
|
+
font-size: 14px;
|
41
|
+
text-align: center;
|
42
|
+
text-transform: uppercase;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.dashboard-info { display: inline-block;
|
47
|
+
width: 100%;
|
48
|
+
margin-bottom: 60px;
|
49
|
+
border-bottom: 1px solid #d1d6e0;
|
50
|
+
.left { float: left;
|
51
|
+
width: 50%;
|
52
|
+
border-right: 1px solid #d1d6e0;
|
53
|
+
min-height: 400px;
|
54
|
+
}
|
55
|
+
.right { float: right;
|
56
|
+
width: 50%;
|
57
|
+
}
|
58
|
+
header { border-bottom: 1px solid #d1d6e0;
|
59
|
+
padding: 20px;
|
60
|
+
text-transform: uppercase;
|
61
|
+
@include font;
|
62
|
+
font-weight: $font_bold;
|
63
|
+
font-size: 14px;
|
64
|
+
color: #414d64;
|
65
|
+
select { float: right;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
aside { float: right;
|
69
|
+
color: #14181a;
|
70
|
+
}
|
71
|
+
.row { padding: 12px 30px 12px 20px;
|
72
|
+
color: #909699;
|
73
|
+
font-size: 12px;
|
74
|
+
font-weight: $font_bold;
|
75
|
+
&:nth-child(even) { background: #f5f7fa;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
.title { color: #414d64;
|
79
|
+
}
|
80
|
+
.outline { margin-top: 10px;
|
81
|
+
margin-left: 10px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// MORIS CHARTS
|
86
|
+
// http://morrisjs.github.io/morris.js/
|
87
|
+
|
88
|
+
.morris-hover { position: absolute;
|
89
|
+
z-index: 1000;
|
90
|
+
&.morris-default-style { @include font();
|
91
|
+
border-radius: 4px;
|
92
|
+
padding: 6px 12px;
|
93
|
+
color: #666;
|
94
|
+
background: rgba(255, 255, 255, 0.95);
|
95
|
+
border: solid 1px rgba(230, 230, 230, 0.8);
|
96
|
+
font-size: 12px;
|
97
|
+
text-align: center;
|
98
|
+
.morris-hover-row-label { margin: 0.25em 0;
|
99
|
+
font-weight: bold;
|
100
|
+
}
|
101
|
+
.morris-hover-point { white-space: nowrap;
|
102
|
+
margin: 0.1em 0;
|
103
|
+
font-weight: bold;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
// .dashboard-highlights { @include reset-list;
|
117
|
+
// //border-top: 1px solid #d1d6e0;
|
118
|
+
// border-bottom: 1px solid #d1d6e0;
|
119
|
+
// display: inline-block;
|
120
|
+
// width: 100%;
|
121
|
+
// background-color: #fff;
|
122
|
+
// li { float: left;
|
123
|
+
// display: block;
|
124
|
+
// width: 33.3333%;
|
125
|
+
// height: 128px;
|
126
|
+
// border-right: 1px solid #d1d6e0;
|
127
|
+
// padding: 20px;
|
128
|
+
// text-align: center;
|
129
|
+
// &:last-child { border-right: 0;
|
130
|
+
// }
|
131
|
+
// .value { color: #414d64;
|
132
|
+
// font-size: 42px;
|
133
|
+
// @include font;
|
134
|
+
// font-weight: $font_bold;
|
135
|
+
// }
|
136
|
+
// small { color: #a8aebb;
|
137
|
+
// font-size: 16px;
|
138
|
+
// @include font;
|
139
|
+
// font-weight: $font_bold;
|
140
|
+
// display: block;
|
141
|
+
// }
|
142
|
+
// }
|
143
|
+
// }
|