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,177 @@
|
|
1
|
+
// Underscore.inflection.js
|
2
|
+
// (c) 2011 Jeremy Ruppel
|
3
|
+
// Underscore.inflection is freely distributable under the MIT license.
|
4
|
+
// Portions of Underscore.inflection are inspired or borrowed from ActiveSupport
|
5
|
+
// Version 1.0.0
|
6
|
+
|
7
|
+
( function( _, undefined )
|
8
|
+
{
|
9
|
+
var
|
10
|
+
plurals = [ ],
|
11
|
+
|
12
|
+
singulars = [ ],
|
13
|
+
|
14
|
+
uncountables = [ ];
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Inflector
|
18
|
+
*/
|
19
|
+
var inflector = {
|
20
|
+
|
21
|
+
gsub : function( word, rule, replacement )
|
22
|
+
{
|
23
|
+
var pattern = new RegExp( rule.source || rule, 'gi' );
|
24
|
+
|
25
|
+
return pattern.test( word ) ? word.replace( pattern, replacement ) : null;
|
26
|
+
},
|
27
|
+
|
28
|
+
plural : function( rule, replacement )
|
29
|
+
{
|
30
|
+
plurals.unshift( [ rule, replacement ] );
|
31
|
+
},
|
32
|
+
|
33
|
+
pluralize : function( word, count, includeNumber )
|
34
|
+
{
|
35
|
+
var result;
|
36
|
+
|
37
|
+
if( count !== undefined )
|
38
|
+
{
|
39
|
+
count = Math.round(count);
|
40
|
+
result = ( count === 1 ) ? this.singularize( word ) : this.pluralize( word );
|
41
|
+
result = ( includeNumber ) ? [ count, result ].join( ' ' ) : result;
|
42
|
+
}
|
43
|
+
else
|
44
|
+
{
|
45
|
+
if( _( uncountables ).include( word ) )
|
46
|
+
{
|
47
|
+
return word;
|
48
|
+
}
|
49
|
+
|
50
|
+
result = word;
|
51
|
+
|
52
|
+
_( plurals ).detect( function( rule )
|
53
|
+
{
|
54
|
+
var gsub = this.gsub( word, rule[ 0 ], rule[ 1 ] );
|
55
|
+
|
56
|
+
return gsub ? ( result = gsub ) : false;
|
57
|
+
},
|
58
|
+
this );
|
59
|
+
}
|
60
|
+
|
61
|
+
return result;
|
62
|
+
},
|
63
|
+
|
64
|
+
singular : function( rule, replacement )
|
65
|
+
{
|
66
|
+
singulars.unshift( [ rule, replacement ] );
|
67
|
+
},
|
68
|
+
|
69
|
+
singularize : function( word )
|
70
|
+
{
|
71
|
+
if( _( uncountables ).include( word ) )
|
72
|
+
{
|
73
|
+
return word;
|
74
|
+
}
|
75
|
+
|
76
|
+
var result = word;
|
77
|
+
|
78
|
+
_( singulars ).detect( function( rule )
|
79
|
+
{
|
80
|
+
var gsub = this.gsub( word, rule[ 0 ], rule[ 1 ] );
|
81
|
+
|
82
|
+
return gsub ? ( result = gsub ) : false;
|
83
|
+
},
|
84
|
+
this );
|
85
|
+
|
86
|
+
return result;
|
87
|
+
},
|
88
|
+
|
89
|
+
irregular : function( singular, plural )
|
90
|
+
{
|
91
|
+
this.plural( '\\b' + singular + '\\b', plural );
|
92
|
+
this.singular( '\\b' + plural + '\\b', singular );
|
93
|
+
},
|
94
|
+
|
95
|
+
uncountable : function( word )
|
96
|
+
{
|
97
|
+
uncountables.unshift( word );
|
98
|
+
},
|
99
|
+
|
100
|
+
resetInflections : function( )
|
101
|
+
{
|
102
|
+
plurals = [ ];
|
103
|
+
singulars = [ ];
|
104
|
+
uncountables = [ ];
|
105
|
+
|
106
|
+
this.plural( /$/, 's' );
|
107
|
+
this.plural( /s$/, 's' );
|
108
|
+
this.plural( /(ax|test)is$/, '$1es' );
|
109
|
+
this.plural( /(octop|vir)us$/, '$1i' );
|
110
|
+
this.plural( /(octop|vir)i$/, '$1i' );
|
111
|
+
this.plural( /(alias|status)$/, '$1es' );
|
112
|
+
this.plural( /(bu)s$/, '$1ses' );
|
113
|
+
this.plural( /(buffal|tomat)o$/, '$1oes' );
|
114
|
+
this.plural( /([ti])um$/, '$1a' );
|
115
|
+
this.plural( /([ti])a$/, '$1a' );
|
116
|
+
this.plural( /sis$/, 'ses' );
|
117
|
+
this.plural( /(?:([^f])fe|([lr])f)$/, '$1$2ves' );
|
118
|
+
this.plural( /(hive)$/, '$1s' );
|
119
|
+
this.plural( /([^aeiouy]|qu)y$/, '$1ies' );
|
120
|
+
this.plural( /(x|ch|ss|sh)$/, '$1es' );
|
121
|
+
this.plural( /(matr|vert|ind)(?:ix|ex)$/, '$1ices' );
|
122
|
+
this.plural( /([m|l])ouse$/, '$1ice' );
|
123
|
+
this.plural( /([m|l])ice$/, '$1ice' );
|
124
|
+
this.plural( /^(ox)$/, '$1en' );
|
125
|
+
this.plural( /^(oxen)$/, '$1' );
|
126
|
+
this.plural( /(quiz)$/, '$1zes' );
|
127
|
+
|
128
|
+
this.singular( /s$/, '' );
|
129
|
+
this.singular( /(n)ews$/, '$1ews' );
|
130
|
+
this.singular( /([ti])a$/, '$1um' );
|
131
|
+
this.singular( /((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/, '$1$2sis' );
|
132
|
+
this.singular( /(^analy)ses$/, '$1sis' );
|
133
|
+
this.singular( /([^f])ves$/, '$1fe' );
|
134
|
+
this.singular( /(hive)s$/, '$1' );
|
135
|
+
this.singular( /(tive)s$/, '$1' );
|
136
|
+
this.singular( /([lr])ves$/, '$1f' );
|
137
|
+
this.singular( /([^aeiouy]|qu)ies$/, '$1y' );
|
138
|
+
this.singular( /(s)eries$/, '$1eries' );
|
139
|
+
this.singular( /(m)ovies$/, '$1ovie' );
|
140
|
+
this.singular( /(x|ch|ss|sh)es$/, '$1' );
|
141
|
+
this.singular( /([m|l])ice$/, '$1ouse' );
|
142
|
+
this.singular( /(bus)es$/, '$1' );
|
143
|
+
this.singular( /(o)es$/, '$1' );
|
144
|
+
this.singular( /(shoe)s$/, '$1' );
|
145
|
+
this.singular( /(cris|ax|test)es$/, '$1is' );
|
146
|
+
this.singular( /(octop|vir)i$/, '$1us' );
|
147
|
+
this.singular( /(alias|status)es$/, '$1' );
|
148
|
+
this.singular( /^(ox)en/, '$1' );
|
149
|
+
this.singular( /(vert|ind)ices$/, '$1ex' );
|
150
|
+
this.singular( /(matr)ices$/, '$1ix' );
|
151
|
+
this.singular( /(quiz)zes$/, '$1' );
|
152
|
+
this.singular( /(database)s$/, '$1' );
|
153
|
+
|
154
|
+
this.irregular( 'person', 'people' );
|
155
|
+
this.irregular( 'man', 'men' );
|
156
|
+
this.irregular( 'child', 'children' );
|
157
|
+
this.irregular( 'sex', 'sexes' );
|
158
|
+
this.irregular( 'move', 'moves' );
|
159
|
+
this.irregular( 'cow', 'kine' );
|
160
|
+
|
161
|
+
_( 'equipment information rice money species series fish sheep jeans'.split( /\s+/ ) ).each( function( word )
|
162
|
+
{
|
163
|
+
this.uncountable( word );
|
164
|
+
},
|
165
|
+
this );
|
166
|
+
|
167
|
+
return this;
|
168
|
+
}
|
169
|
+
|
170
|
+
};
|
171
|
+
|
172
|
+
/**
|
173
|
+
* Underscore integration
|
174
|
+
*/
|
175
|
+
_.mixin( inflector.resetInflections( ) );
|
176
|
+
|
177
|
+
} )( _ );
|
@@ -0,0 +1,361 @@
|
|
1
|
+
/*
|
2
|
+
(cs)spinner.css - http://jh3y.github.io/-cs-spinner
|
3
|
+
Licensed under the MIT license
|
4
|
+
|
5
|
+
Jhey Tompkins (c) 2014.
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
8
|
+
|
9
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
10
|
+
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
12
|
+
*/
|
13
|
+
/* BASE */
|
14
|
+
.csspinner {
|
15
|
+
position: relative;
|
16
|
+
}
|
17
|
+
.csspinner:before {
|
18
|
+
content: "";
|
19
|
+
z-index: 1;
|
20
|
+
position: absolute;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
display: block;
|
24
|
+
height: 100%;
|
25
|
+
width: 100%;
|
26
|
+
background-color: #999999;
|
27
|
+
opacity: 0.6;
|
28
|
+
}
|
29
|
+
.csspinner:after {
|
30
|
+
z-index: 2;
|
31
|
+
content: "";
|
32
|
+
height: 40px;
|
33
|
+
width: 40px;
|
34
|
+
position: absolute;
|
35
|
+
top: 50%;
|
36
|
+
left: 50%;
|
37
|
+
margin: -20px 0 0 -20px;
|
38
|
+
transition: all .75s ease 0s;
|
39
|
+
-webkit-transition: all .75s ease 0s;
|
40
|
+
border-radius: 100%;
|
41
|
+
border-top: 4px solid #555555;
|
42
|
+
animation: standard .75s infinite linear;
|
43
|
+
-webkit-animation: standard .75s infinite linear;
|
44
|
+
}
|
45
|
+
.csspinner.no-overlay:before {
|
46
|
+
content: none;
|
47
|
+
display: none;
|
48
|
+
}
|
49
|
+
/* STANDARD ROTATION ANIMATION */
|
50
|
+
@-webkit-keyframes standard {
|
51
|
+
from {
|
52
|
+
-webkit-transform: rotate(0deg);
|
53
|
+
}
|
54
|
+
to {
|
55
|
+
-webkit-transform: rotate(360deg);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
@keyframes standard {
|
59
|
+
from {
|
60
|
+
transform: rotate(0deg);
|
61
|
+
}
|
62
|
+
to {
|
63
|
+
transform: rotate(360deg);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
/* TRADITIONAL */
|
67
|
+
.csspinner.traditional:after {
|
68
|
+
border-right: 4px solid #777777;
|
69
|
+
border-top: 4px solid #777777;
|
70
|
+
border-left: 4px solid #999999;
|
71
|
+
border-bottom: 4px solid #bbbbbb;
|
72
|
+
}
|
73
|
+
/* DOUBLE UP*/
|
74
|
+
.csspinner.double-up:after {
|
75
|
+
border-right: 4px solid #e74c3c;
|
76
|
+
border-top: 4px double #e74c3c;
|
77
|
+
border-left: 4px double #e74c3c;
|
78
|
+
border-bottom: 4px double #e74c3c;
|
79
|
+
}
|
80
|
+
/* DUO */
|
81
|
+
.csspinner.duo:after {
|
82
|
+
border-right: 4px solid #333333;
|
83
|
+
border-left: 4px solid #333333;
|
84
|
+
border-top: 4px solid #f1c40f;
|
85
|
+
border-bottom: 4px solid #f1c40f;
|
86
|
+
}
|
87
|
+
/* SPHERICAL */
|
88
|
+
.csspinner.sphere.horizontal:after,
|
89
|
+
.csspinner.sphere:after {
|
90
|
+
border-radius: 100%;
|
91
|
+
animation: sphere .5s infinite;
|
92
|
+
-webkit-animation: sphere .5s infinite;
|
93
|
+
border: none;
|
94
|
+
height: 40px;
|
95
|
+
}
|
96
|
+
.csspinner.sphere.vertical:after {
|
97
|
+
border-radius: 100%;
|
98
|
+
animation: sphere-v 0.5s infinite;
|
99
|
+
-webkit-animation: sphere-v 0.5s infinite;
|
100
|
+
border: none;
|
101
|
+
height: 40px;
|
102
|
+
}
|
103
|
+
@-webkit-keyframes sphere {
|
104
|
+
from {
|
105
|
+
box-shadow: inset 45px 0px 10px rgba(0, 0, 0, 0.5);
|
106
|
+
}
|
107
|
+
to {
|
108
|
+
box-shadow: inset -45px 0px 10px rgba(0, 0, 0, 0.5);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
@keyframes sphere {
|
112
|
+
from {
|
113
|
+
box-shadow: inset 45px 0px 10px rgba(0, 0, 0, 0.5);
|
114
|
+
}
|
115
|
+
to {
|
116
|
+
box-shadow: inset -45px 0px 10px rgba(0, 0, 0, 0.5);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
@-webkit-keyframes sphere-v {
|
120
|
+
from {
|
121
|
+
box-shadow: inset 0px 45px 10px rgba(0, 0, 0, 0.5);
|
122
|
+
}
|
123
|
+
to {
|
124
|
+
box-shadow: inset 0px -45px 10px rgba(0, 0, 0, 0.5);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
@keyframes sphere-v {
|
128
|
+
from {
|
129
|
+
box-shadow: inset 0px 45px 10px rgba(0, 0, 0, 0.5);
|
130
|
+
}
|
131
|
+
to {
|
132
|
+
box-shadow: inset 0px -45px 10px rgba(0, 0, 0, 0.5);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
/* BAR */
|
136
|
+
.csspinner.bar:after {
|
137
|
+
height: 20px;
|
138
|
+
width: 40px;
|
139
|
+
border-radius: 0;
|
140
|
+
border: none;
|
141
|
+
animation: bar 1s infinite linear;
|
142
|
+
-webkit-animation: bar 1s infinite linear;
|
143
|
+
}
|
144
|
+
@-webkit-keyframes bar {
|
145
|
+
from {
|
146
|
+
box-shadow: inset 0px 0px 0px rgba(0, 0, 0, 0.5);
|
147
|
+
}
|
148
|
+
to {
|
149
|
+
box-shadow: inset 80px 0px 0px rgba(0, 0, 0, 0.5);
|
150
|
+
}
|
151
|
+
}
|
152
|
+
@keyframes bar {
|
153
|
+
from {
|
154
|
+
box-shadow: inset 0px 0px 0px rgba(0, 0, 0, 0.5);
|
155
|
+
}
|
156
|
+
to {
|
157
|
+
box-shadow: inset 80px 0px 0px rgba(0, 0, 0, 0.5);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
.csspinner.bar.follow:after {
|
161
|
+
animation: bar-follow 1s infinite linear;
|
162
|
+
-webkit-animation: bar-follow 1s infinite linear;
|
163
|
+
}
|
164
|
+
@-webkit-keyframes bar-follow {
|
165
|
+
0% {
|
166
|
+
box-shadow: inset 40px 0px 0px rgba(0, 0, 0, 0.5);
|
167
|
+
}
|
168
|
+
100% {
|
169
|
+
box-shadow: inset -40px 0px 0px rgba(0, 0, 0, 0.5);
|
170
|
+
}
|
171
|
+
}
|
172
|
+
@keyframes bar-follow {
|
173
|
+
0% {
|
174
|
+
box-shadow: inset 40px 0px 0px rgba(0, 0, 0, 0.5);
|
175
|
+
}
|
176
|
+
100% {
|
177
|
+
box-shadow: inset -40px 0px 0px rgba(0, 0, 0, 0.5);
|
178
|
+
}
|
179
|
+
}
|
180
|
+
/* LINE */
|
181
|
+
.csspinner.line:after {
|
182
|
+
height: 20px;
|
183
|
+
border-radius: 0;
|
184
|
+
border: none;
|
185
|
+
box-shadow: inset -10px 0px 0px rgba(0, 0, 0, 0.5);
|
186
|
+
animation: line .75s infinite linear;
|
187
|
+
-webkit-animation: line .75s infinite linear;
|
188
|
+
}
|
189
|
+
@-webkit-keyframes line {
|
190
|
+
from {
|
191
|
+
width: 10px;
|
192
|
+
}
|
193
|
+
to {
|
194
|
+
width: 50px;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
@keyframes line {
|
198
|
+
from {
|
199
|
+
width: 10px;
|
200
|
+
}
|
201
|
+
to {
|
202
|
+
width: 50px;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
.csspinner.line.grow:after {
|
206
|
+
animation: line 0.75s infinite linear, line-grow 0.75s infinite linear;
|
207
|
+
-webkit-animation: line 0.75s infinite linear, line-grow 0.75s infinite linear;
|
208
|
+
}
|
209
|
+
@keyframes line-grow {
|
210
|
+
0% {
|
211
|
+
transform: scaleY(1);
|
212
|
+
-webkit-transform: scaleY(1);
|
213
|
+
}
|
214
|
+
50% {
|
215
|
+
transform: scaleY(2);
|
216
|
+
-webkit-transform: scaleY(2);
|
217
|
+
}
|
218
|
+
100% {
|
219
|
+
transform: scaleY(1);
|
220
|
+
-webkit-transform: scaleY(1);
|
221
|
+
}
|
222
|
+
}
|
223
|
+
@-webkit-keyframes line-grow {
|
224
|
+
0% {
|
225
|
+
transform: scaleY(1);
|
226
|
+
-webkit-transform: scaleY(1);
|
227
|
+
}
|
228
|
+
50% {
|
229
|
+
transform: scaleY(2);
|
230
|
+
-webkit-transform: scaleY(2);
|
231
|
+
}
|
232
|
+
100% {
|
233
|
+
transform: scaleY(1);
|
234
|
+
-webkit-transform: scaleY(1);
|
235
|
+
}
|
236
|
+
}
|
237
|
+
/* LINE BACK AND FOURTH */
|
238
|
+
.csspinner.line.back-and-fourth:after {
|
239
|
+
animation: line-back-and-fourth 1s infinite linear;
|
240
|
+
-webkit-animation: line-back-and-fourth 1s infinite linear;
|
241
|
+
}
|
242
|
+
@-webkit-keyframes line-back-and-fourth {
|
243
|
+
0% {
|
244
|
+
width: 10px;
|
245
|
+
}
|
246
|
+
50% {
|
247
|
+
width: 50px;
|
248
|
+
}
|
249
|
+
100% {
|
250
|
+
width: 10px;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
@keyframes line-back-and-fourth {
|
254
|
+
0% {
|
255
|
+
width: 10px;
|
256
|
+
}
|
257
|
+
50% {
|
258
|
+
width: 50px;
|
259
|
+
}
|
260
|
+
100% {
|
261
|
+
width: 10px;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
.csspinner.line.back-and-fourth.grow:after {
|
265
|
+
animation: line-back-and-fourth 1s infinite linear, line-back-and-fourth-grow 1s infinite linear;
|
266
|
+
-webkit-animation: line-back-and-fourth 1s infinite linear, line-back-and-fourth-grow 1s infinite linear;
|
267
|
+
}
|
268
|
+
@keyframes line-back-and-fourth-grow {
|
269
|
+
0% {
|
270
|
+
transform: scaleY(1);
|
271
|
+
-webkit-transform: scaleY(1);
|
272
|
+
}
|
273
|
+
25% {
|
274
|
+
transform: scaleY(2);
|
275
|
+
-webkit-transform: scaleY(2);
|
276
|
+
}
|
277
|
+
50% {
|
278
|
+
transform: scaleY(1);
|
279
|
+
-webkit-transform: scaleY(1);
|
280
|
+
}
|
281
|
+
75% {
|
282
|
+
transform: scaleY(2);
|
283
|
+
-webkit-transform: scaleY(2);
|
284
|
+
}
|
285
|
+
100% {
|
286
|
+
transform: scaleY(1);
|
287
|
+
-webkit-transform: scaleY(1);
|
288
|
+
}
|
289
|
+
}
|
290
|
+
@-webkit-keyframes line-back-and-fourth-grow {
|
291
|
+
0% {
|
292
|
+
transform: scaleY(1);
|
293
|
+
-webkit-transform: scaleY(1);
|
294
|
+
}
|
295
|
+
25% {
|
296
|
+
transform: scaleY(2);
|
297
|
+
-webkit-transform: scaleY(2);
|
298
|
+
}
|
299
|
+
50% {
|
300
|
+
transform: scaleY(1);
|
301
|
+
-webkit-transform: scaleY(1);
|
302
|
+
}
|
303
|
+
75% {
|
304
|
+
transform: scaleY(2);
|
305
|
+
-webkit-transform: scaleY(2);
|
306
|
+
}
|
307
|
+
100% {
|
308
|
+
transform: scaleY(1);
|
309
|
+
-webkit-transform: scaleY(1);
|
310
|
+
}
|
311
|
+
}
|
312
|
+
/* BOX SHADOWING */
|
313
|
+
.csspinner.shadow:after {
|
314
|
+
animation: spin-shadow 0.25s infinite linear;
|
315
|
+
-webkit-animation: spin-shadow 0.25s infinite linear;
|
316
|
+
border-radius: 100%;
|
317
|
+
border: none;
|
318
|
+
}
|
319
|
+
.csspinner.shadow.oval.left:after,
|
320
|
+
.csspinner.shadow.oval:after {
|
321
|
+
animation: spin-shadow 0.25s infinite linear;
|
322
|
+
-webkit-animation: spin-shadow 0.25s infinite linear;
|
323
|
+
border-radius: 100%;
|
324
|
+
border: none;
|
325
|
+
border-radius: 40% 100%;
|
326
|
+
}
|
327
|
+
.csspinner.shadow.oval.right:after {
|
328
|
+
animation: spin-shadow 0.25s infinite linear;
|
329
|
+
-webkit-animation: spin-shadow 0.25s infinite linear;
|
330
|
+
border-radius: 100%;
|
331
|
+
border: none;
|
332
|
+
border-radius: 100% 40%;
|
333
|
+
}
|
334
|
+
@-webkit-keyframes spin-shadow {
|
335
|
+
0% {
|
336
|
+
box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.5);
|
337
|
+
}
|
338
|
+
25% {
|
339
|
+
box-shadow: inset -5px 5px 5px rgba(0, 0, 0, 0.5);
|
340
|
+
}
|
341
|
+
50% {
|
342
|
+
box-shadow: inset -5px -5px 5px rgba(0, 0, 0, 0.5);
|
343
|
+
}
|
344
|
+
100% {
|
345
|
+
box-shadow: inset 5px -5px 5px rgba(0, 0, 0, 0.5);
|
346
|
+
}
|
347
|
+
}
|
348
|
+
@keyframes spin-shadow {
|
349
|
+
0% {
|
350
|
+
box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.5);
|
351
|
+
}
|
352
|
+
25% {
|
353
|
+
box-shadow: inset -5px 5px 5px rgba(0, 0, 0, 0.5);
|
354
|
+
}
|
355
|
+
50% {
|
356
|
+
box-shadow: inset -5px -5px 5px rgba(0, 0, 0, 0.5);
|
357
|
+
}
|
358
|
+
100% {
|
359
|
+
box-shadow: inset 5px -5px 5px rgba(0, 0, 0, 0.5);
|
360
|
+
}
|
361
|
+
}
|