pace-cis 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,70 @@
1
+ /* This is a compiled file, you should be editing the file in the templates directory */
2
+ .pace {
3
+ -webkit-pointer-events: none;
4
+ pointer-events: none;
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+ user-select: none;
8
+ }
9
+
10
+ .pace .pace-activity {
11
+ display: block;
12
+ position: fixed;
13
+ z-index: 2000;
14
+ top: 0;
15
+ right: 0;
16
+ width: 300px;
17
+ height: 300px;
18
+ background: #29d;
19
+ -webkit-transition: -webkit-transform 0.3s;
20
+ transition: transform 0.3s;
21
+ -webkit-transform: translateX(100%) translateY(-100%) rotate(45deg);
22
+ transform: translateX(100%) translateY(-100%) rotate(45deg);
23
+ pointer-events: none;
24
+ }
25
+
26
+ .pace.pace-active .pace-activity {
27
+ -webkit-transform: translateX(50%) translateY(-50%) rotate(45deg);
28
+ transform: translateX(50%) translateY(-50%) rotate(45deg);
29
+ }
30
+
31
+ .pace .pace-activity::before,
32
+ .pace .pace-activity::after {
33
+ position: absolute;
34
+ bottom: 30px;
35
+ left: 50%;
36
+ display: block;
37
+ border: 5px solid #fff;
38
+ border-radius: 50%;
39
+ content: '';
40
+ }
41
+
42
+ .pace .pace-activity::before {
43
+ margin-left: -40px;
44
+ width: 80px;
45
+ height: 80px;
46
+ border-right-color: rgba(0, 0, 0, .2);
47
+ border-left-color: rgba(0, 0, 0, .2);
48
+ -webkit-animation: pace-rotation 3s linear infinite;
49
+ animation: pace-rotation 3s linear infinite;
50
+ }
51
+
52
+ .pace .pace-activity::after {
53
+ bottom: 50px;
54
+ margin-left: -20px;
55
+ width: 40px;
56
+ height: 40px;
57
+ border-top-color: rgba(0, 0, 0, .2);
58
+ border-bottom-color: rgba(0, 0, 0, .2);
59
+ -webkit-animation: pace-rotation 1s linear infinite;
60
+ animation: pace-rotation 1s linear infinite;
61
+ }
62
+
63
+ @-webkit-keyframes pace-rotation {
64
+ 0% { -webkit-transform: rotate(0deg); }
65
+ 100% { -webkit-transform: rotate(359deg); }
66
+ }
67
+ @keyframes pace-rotation {
68
+ 0% { transform: rotate(0deg); }
69
+ 100% { transform: rotate(359deg); }
70
+ }
@@ -0,0 +1,22 @@
1
+ /* This is a compiled file, you should be editing the file in the templates directory */
2
+ .pace {
3
+ -webkit-pointer-events: none;
4
+ pointer-events: none;
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+ user-select: none;
8
+ }
9
+
10
+ .pace .pace-progress {
11
+ background-color: rgba(0, 0, 0, 0.19999999999999996);
12
+ position: fixed;
13
+ z-index: -1;
14
+ top: 0;
15
+ left: 0;
16
+ bottom: 0;
17
+
18
+ -webkit-transition: width 1s;
19
+ -moz-transition: width 1s;
20
+ -o-transition: width 1s;
21
+ transition: width 1s;
22
+ }
@@ -0,0 +1,81 @@
1
+ /* This is a compiled file, you should be editing the file in the templates directory */
2
+ .pace {
3
+ -webkit-pointer-events: none;
4
+ pointer-events: none;
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+ user-select: none;
8
+ }
9
+
10
+ .pace-inactive {
11
+ display: none;
12
+ }
13
+
14
+ .pace .pace-progress {
15
+ background: #29d;
16
+ position: fixed;
17
+ z-index: 2000;
18
+ top: 0;
19
+ left: 0;
20
+ height: 2px;
21
+
22
+ -webkit-transition: width 1s;
23
+ -moz-transition: width 1s;
24
+ -o-transition: width 1s;
25
+ transition: width 1s;
26
+ }
27
+
28
+ .pace .pace-progress-inner {
29
+ display: block;
30
+ position: absolute;
31
+ right: 0px;
32
+ width: 100px;
33
+ height: 100%;
34
+ box-shadow: 0 0 10px #29d, 0 0 5px #29d;
35
+ opacity: 1.0;
36
+ -webkit-transform: rotate(3deg) translate(0px, -4px);
37
+ -moz-transform: rotate(3deg) translate(0px, -4px);
38
+ -ms-transform: rotate(3deg) translate(0px, -4px);
39
+ -o-transform: rotate(3deg) translate(0px, -4px);
40
+ transform: rotate(3deg) translate(0px, -4px);
41
+ }
42
+
43
+ .pace .pace-activity {
44
+ display: block;
45
+ position: fixed;
46
+ z-index: 2000;
47
+ top: 15px;
48
+ right: 15px;
49
+ width: 14px;
50
+ height: 14px;
51
+ border: solid 2px transparent;
52
+ border-top-color: #29d;
53
+ border-left-color: #29d;
54
+ border-radius: 10px;
55
+ -webkit-animation: pace-spinner 400ms linear infinite;
56
+ -moz-animation: pace-spinner 400ms linear infinite;
57
+ -ms-animation: pace-spinner 400ms linear infinite;
58
+ -o-animation: pace-spinner 400ms linear infinite;
59
+ animation: pace-spinner 400ms linear infinite;
60
+ }
61
+
62
+ @-webkit-keyframes pace-spinner {
63
+ 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
64
+ 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
65
+ }
66
+ @-moz-keyframes pace-spinner {
67
+ 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
68
+ 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
69
+ }
70
+ @-o-keyframes pace-spinner {
71
+ 0% { -o-transform: rotate(0deg); transform: rotate(0deg); }
72
+ 100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
73
+ }
74
+ @-ms-keyframes pace-spinner {
75
+ 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); }
76
+ 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
77
+ }
78
+ @keyframes pace-spinner {
79
+ 0% { transform: rotate(0deg); transform: rotate(0deg); }
80
+ 100% { transform: rotate(360deg); transform: rotate(360deg); }
81
+ }
@@ -0,0 +1,33 @@
1
+ /* This is a compiled file, you should be editing the file in the templates directory */
2
+ .pace {
3
+ -webkit-pointer-events: none;
4
+ pointer-events: none;
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+ user-select: none;
8
+ }
9
+
10
+ .pace .pace-progress {
11
+ display: block;
12
+ position: fixed;
13
+ z-index: 2000;
14
+ top: 0;
15
+ left: 0;
16
+ height: 12px;
17
+ background: #29d;
18
+
19
+ -webkit-transition: -webkit-transform .3s, width 1s;
20
+ -moz-transition: width 1s;
21
+ -o-transform: width 1s;
22
+ transition: transform .3s, width 1s;
23
+
24
+ -webkit-transform: translateY(-50px);
25
+ transform: translateY(-50px);
26
+
27
+ pointer-events: none;
28
+ }
29
+
30
+ .pace.pace-active .pace-progress {
31
+ -webkit-transform: translateY(0);
32
+ transform: translateY(0);
33
+ }
@@ -0,0 +1,84 @@
1
+ /* This is a compiled file, you should be editing the file in the templates directory */
2
+ .pace {
3
+ -webkit-pointer-events: none;
4
+ pointer-events: none;
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+ user-select: none;
8
+ }
9
+
10
+ .pace-inactive {
11
+ display: none;
12
+ }
13
+
14
+ .pace .pace-progress {
15
+ background-color: #78c0f0;
16
+
17
+ color: #CBE7F9;
18
+ position: fixed;
19
+ z-index: 2000;
20
+ top: 0;
21
+ left: 0;
22
+ height: 12px;
23
+ overflow: hidden;
24
+
25
+ -webkit-border-radius: 0 0 4px 0;
26
+ -moz-border-radius: 0 0 4px 0;
27
+ -o-border-radius: 0 0 4px 0;
28
+ border-radius: 0 0 4px 0;
29
+
30
+ -webkit-box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
31
+ -moz-box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
32
+ -o-box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
33
+ box-shadow: inset -1px 0 rgba(0, 0, 0, 0.3), inset 0 -1px rgba(0, 0, 0, 0.3), inset 0 2px rgba(255, 255, 255, 0.5), inset 0 6px rgba(255, 255, 255, 0.3);
34
+
35
+ -webkit-transition: width 1s;
36
+ -moz-transition: width 1s;
37
+ -o-transition: width 1s;
38
+ transition: width 1s;
39
+ }
40
+
41
+ .pace .pace-progress-inner {
42
+ position: absolute;
43
+ top: 0;
44
+ left: 0;
45
+ right: -28px;
46
+ bottom: 0;
47
+
48
+ background-image: -o-radial-gradient(rgba(25, 147, 228, 0.6) 0%, rgba(120, 192, 240, 0) 100%);
49
+ background-image: -moz-radial-gradient(rgba(25, 147, 228, 0.6) 0%, rgba(120, 192, 240, 0) 100%);
50
+ background-image: -webkit-radial-gradient(rgba(25, 147, 228, 0.6) 0%, rgba(120, 192, 240, 0) 100%);
51
+ background-image: radial-gradient(rgba(25, 147, 228, 0.6) 0%, rgba(120, 192, 240, 0) 100%);
52
+
53
+
54
+ -webkit-background-size: 28px 100%;
55
+ -moz-background-size: 28px 100%;
56
+ -o-background-size: 28px 100%;
57
+ background-size: 28px 100%;
58
+ -webkit-animation: pace-stripe-animation 500ms linear infinite;
59
+ -moz-animation: pace-stripe-animation 500ms linear infinite;
60
+ -ms-animation: pace-stripe-animation 500ms linear infinite;
61
+ -o-animation: pace-stripe-animation 500ms linear infinite;
62
+ animation: pace-stripe-animation 500ms linear infinite;
63
+ }
64
+
65
+ @-webkit-keyframes pace-stripe-animation {
66
+ 0% { -webkit-transform: none; transform: none; }
67
+ 100% { -webkit-transform: translate(-28px, 0); transform: translate(-28px, 0); }
68
+ }
69
+ @-moz-keyframes pace-stripe-animation {
70
+ 0% { -moz-transform: none; transform: none; }
71
+ 100% { -moz-transform: translate(-28px, 0); transform: translate(-28px, 0); }
72
+ }
73
+ @-o-keyframes pace-stripe-animation {
74
+ 0% { -o-transform: none; transform: none; }
75
+ 100% { -o-transform: translate(-28px, 0); transform: translate(-28px, 0); }
76
+ }
77
+ @-ms-keyframes pace-stripe-animation {
78
+ 0% { -ms-transform: none; transform: none; }
79
+ 100% { -ms-transform: translate(-28px, 0); transform: translate(-28px, 0); }
80
+ }
81
+ @keyframes pace-stripe-animation {
82
+ 0% { transform: none; transform: none; }
83
+ 100% { transform: translate(-28px, 0); transform: translate(-28px, 0); }
84
+ }
@@ -0,0 +1,18 @@
1
+ /* This is a compiled file, you should be editing the file in the templates directory */
2
+ .pace .pace-progress {
3
+ background: #29d;
4
+ position: fixed;
5
+ z-index: 2000;
6
+ top: 0;
7
+ left: 0;
8
+ height: 2px;
9
+
10
+ -webkit-transition: width 1s;
11
+ -moz-transition: width 1s;
12
+ -o-transition: width 1s;
13
+ transition: width 1s;
14
+ }
15
+
16
+ .pace-inactive {
17
+ display: none;
18
+ }
@@ -0,0 +1,48 @@
1
+ require 'rails'
2
+
3
+ if ::Rails.version < "3.1"
4
+ module PaceCis
5
+ module Generators
6
+ class InstallGenerator < ::Rails::Generators::Base
7
+
8
+ desc "This generator installs Jquery , CSS and Images"
9
+ source_root File.expand_path('../../../../../app/assets', __FILE__)
10
+
11
+ def copy_jquery_nested
12
+ copy_file "javascripts/pace.js", "public/javascripts/pace.js"
13
+ end
14
+ end
15
+ end
16
+ end
17
+ else
18
+ module PaceCis
19
+ module Generators
20
+ class InstallGenerator < ::Rails::Generators::Base
21
+ desc "This generator installs Jquery , CSS and Images"
22
+ source_root File.expand_path('../../../../../app/assets', __FILE__)
23
+ def add_assets
24
+ if detect_js_format.nil?
25
+ copy_file "javascripts/pace.js", "app/assets/javascripts/pace.js"
26
+ else
27
+ insert_into_file "app/assets/javascripts/application#{detect_js_format[0]}", "#{detect_js_format[1]} require pace\n", :after => "jquery_ujs\n"
28
+ end
29
+ if detect_css_format.nil?
30
+ copy_file "stylesheets/jquery.notifications.css", "app/assets/stylesheets/jquery.notifications.css"
31
+ else
32
+ insert_into_file "app/assets/stylesheets/application#{detect_css_format[0]}", "#{detect_css_format[1]} require pace-theme-corner-indicator\n", :after => "require_self\n"
33
+ end
34
+ end
35
+
36
+
37
+ def detect_js_format
38
+ return ['.js.coffee', '#='] if File.exist?('app/assets/javascripts/application.js.coffee')
39
+ return ['.js', '//='] if File.exist?('app/assets/javascripts/application.js')
40
+ end
41
+ def detect_css_format
42
+ return ['.css.scss', '*='] if File.exist?('app/assets/stylesheets/application.css.scss')
43
+ return ['.css', '*='] if File.exist?('app/assets/stylesheets/application.css')
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
data/lib/pace-cis.rb ADDED
@@ -0,0 +1,18 @@
1
+ module PaceCis
2
+ end
3
+
4
+
5
+
6
+ module PaceCis
7
+ module Rails
8
+ class Engine < ::Rails::Engine
9
+ end
10
+ end
11
+ end
12
+
13
+
14
+
15
+
16
+
17
+
18
+
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pace-cis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mohan Salvi
9
+ - CISROR Team
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2010-10-31 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: jquery-rails
17
+ requirement: &10199380 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *10199380
26
+ - !ruby/object:Gem::Dependency
27
+ name: coffee-rails
28
+ requirement: &10198500 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *10198500
37
+ - !ruby/object:Gem::Dependency
38
+ name: railties
39
+ requirement: &10197640 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *10197640
48
+ description: Automatic page load progress bar
49
+ email:
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/pace-cis.rb
55
+ - lib/generators/pace_cis/install/install_generator.rb
56
+ - app/assets/stylesheets/pace-theme-barber-shop.css
57
+ - app/assets/stylesheets/pace-theme-corner-indicator.css
58
+ - app/assets/stylesheets/pace-theme-bounce.css
59
+ - app/assets/stylesheets/pace-theme-flat-top.css
60
+ - app/assets/stylesheets/pace-theme-minimal.css
61
+ - app/assets/stylesheets/pace-theme-fill-left.css
62
+ - app/assets/stylesheets/pace-theme-mac-osx.css
63
+ - app/assets/stylesheets/pace-theme-center-circle.css
64
+ - app/assets/stylesheets/pace-theme-big-counter.css
65
+ - app/assets/stylesheets/pace-theme-flash.css
66
+ - app/assets/javascripts/pace.min.js
67
+ - app/assets/javascripts/pace.js
68
+ - app/assets/javascripts/pace.coffee
69
+ - Rakefile
70
+ - Gemfile.lock
71
+ - Gemfile
72
+ - README.md
73
+ homepage: http://rubygems.org/gems/pace-cis
74
+ licenses:
75
+ - MIT
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: 1.3.6
92
+ requirements: []
93
+ rubyforge_project: jquery-rails
94
+ rubygems_version: 1.8.11
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: Automatic page load progress bar .Include pace.js and a CSS theme of your
98
+ choice, and you get a beautiful progress indicator for your page load and ajax navigation.
99
+ No need to hook into any of your code, progress is detected automatically.
100
+ test_files: []