jcrop-rails 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,165 @@
1
+ /* jquery.Jcrop.css v0.9.12 - MIT License */
2
+ /*
3
+ The outer-most container in a typical Jcrop instance
4
+ If you are having difficulty with formatting related to styles
5
+ on a parent element, place any fixes here or in a like selector
6
+
7
+ You can also style this element if you want to add a border, etc
8
+ A better method for styling can be seen below with .jcrop-light
9
+ (Add a class to the holder and style elements for that extended class)
10
+ */
11
+ .jcrop-holder {
12
+ direction: ltr;
13
+ text-align: left;
14
+ }
15
+ /* Selection Border */
16
+ .jcrop-vline,
17
+ .jcrop-hline {
18
+ background: #ffffff url(<%= image_path('jcrop/Jcrop.gif') %>);
19
+ font-size: 0;
20
+ position: absolute;
21
+ }
22
+ .jcrop-vline {
23
+ height: 100%;
24
+ width: 1px !important;
25
+ }
26
+ .jcrop-vline.right {
27
+ right: 0;
28
+ }
29
+ .jcrop-hline {
30
+ height: 1px !important;
31
+ width: 100%;
32
+ }
33
+ .jcrop-hline.bottom {
34
+ bottom: 0;
35
+ }
36
+ /* Invisible click targets */
37
+ .jcrop-tracker {
38
+ height: 100%;
39
+ width: 100%;
40
+ /* "turn off" link highlight */
41
+ -webkit-tap-highlight-color: transparent;
42
+ /* disable callout, image save panel */
43
+ -webkit-touch-callout: none;
44
+ /* disable cut copy paste */
45
+ -webkit-user-select: none;
46
+ }
47
+ /* Selection Handles */
48
+ .jcrop-handle {
49
+ background-color: #333333;
50
+ border: 1px #eeeeee solid;
51
+ width: 7px;
52
+ height: 7px;
53
+ font-size: 1px;
54
+ }
55
+ .jcrop-handle.ord-n {
56
+ left: 50%;
57
+ margin-left: -4px;
58
+ margin-top: -4px;
59
+ top: 0;
60
+ }
61
+ .jcrop-handle.ord-s {
62
+ bottom: 0;
63
+ left: 50%;
64
+ margin-bottom: -4px;
65
+ margin-left: -4px;
66
+ }
67
+ .jcrop-handle.ord-e {
68
+ margin-right: -4px;
69
+ margin-top: -4px;
70
+ right: 0;
71
+ top: 50%;
72
+ }
73
+ .jcrop-handle.ord-w {
74
+ left: 0;
75
+ margin-left: -4px;
76
+ margin-top: -4px;
77
+ top: 50%;
78
+ }
79
+ .jcrop-handle.ord-nw {
80
+ left: 0;
81
+ margin-left: -4px;
82
+ margin-top: -4px;
83
+ top: 0;
84
+ }
85
+ .jcrop-handle.ord-ne {
86
+ margin-right: -4px;
87
+ margin-top: -4px;
88
+ right: 0;
89
+ top: 0;
90
+ }
91
+ .jcrop-handle.ord-se {
92
+ bottom: 0;
93
+ margin-bottom: -4px;
94
+ margin-right: -4px;
95
+ right: 0;
96
+ }
97
+ .jcrop-handle.ord-sw {
98
+ bottom: 0;
99
+ left: 0;
100
+ margin-bottom: -4px;
101
+ margin-left: -4px;
102
+ }
103
+ /* Dragbars */
104
+ .jcrop-dragbar.ord-n,
105
+ .jcrop-dragbar.ord-s {
106
+ height: 7px;
107
+ width: 100%;
108
+ }
109
+ .jcrop-dragbar.ord-e,
110
+ .jcrop-dragbar.ord-w {
111
+ height: 100%;
112
+ width: 7px;
113
+ }
114
+ .jcrop-dragbar.ord-n {
115
+ margin-top: -4px;
116
+ }
117
+ .jcrop-dragbar.ord-s {
118
+ bottom: 0;
119
+ margin-bottom: -4px;
120
+ }
121
+ .jcrop-dragbar.ord-e {
122
+ margin-right: -4px;
123
+ right: 0;
124
+ }
125
+ .jcrop-dragbar.ord-w {
126
+ margin-left: -4px;
127
+ }
128
+ /* The "jcrop-light" class/extension */
129
+ .jcrop-light .jcrop-vline,
130
+ .jcrop-light .jcrop-hline {
131
+ background: #ffffff;
132
+ filter: alpha(opacity=70) !important;
133
+ opacity: .70!important;
134
+ }
135
+ .jcrop-light .jcrop-handle {
136
+ -moz-border-radius: 3px;
137
+ -webkit-border-radius: 3px;
138
+ background-color: #000000;
139
+ border-color: #ffffff;
140
+ border-radius: 3px;
141
+ }
142
+ /* The "jcrop-dark" class/extension */
143
+ .jcrop-dark .jcrop-vline,
144
+ .jcrop-dark .jcrop-hline {
145
+ background: #000000;
146
+ filter: alpha(opacity=70) !important;
147
+ opacity: 0.7 !important;
148
+ }
149
+ .jcrop-dark .jcrop-handle {
150
+ -moz-border-radius: 3px;
151
+ -webkit-border-radius: 3px;
152
+ background-color: #ffffff;
153
+ border-color: #000000;
154
+ border-radius: 3px;
155
+ }
156
+ /* Simple macro to turn off the antlines */
157
+ .solid-line .jcrop-vline,
158
+ .solid-line .jcrop-hline {
159
+ background: #ffffff;
160
+ }
161
+ /* Fix for twitter bootstrap et al. */
162
+ .jcrop-holder img,
163
+ img.jcrop-preview {
164
+ max-width: none;
165
+ }
metadata CHANGED
@@ -1,62 +1,72 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jcrop-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nick Ragaz
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-08-12 00:00:00.000000000 -04:00
13
- default_executable:
11
+ date: 2013-04-30 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
- name: railties
17
- requirement: &70197924376220 !ruby/object:Gem::Requirement
18
- none: false
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ~>
17
+ - !ruby/object:Gem::Version
18
+ version: '3.0'
19
+ version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ~>
21
22
  - !ruby/object:Gem::Version
22
23
  version: '3.0'
23
24
  type: :runtime
24
25
  prerelease: false
25
- version_requirements: *70197924376220
26
+ name: railties
26
27
  - !ruby/object:Gem::Dependency
27
- name: thor
28
- requirement: &70197924375760 !ruby/object:Gem::Requirement
29
- none: false
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '0.14'
33
+ version_requirements: !ruby/object:Gem::Requirement
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0.14'
34
38
  type: :runtime
35
39
  prerelease: false
36
- version_requirements: *70197924375760
40
+ name: thor
37
41
  - !ruby/object:Gem::Dependency
38
- name: bundler
39
- requirement: &70197924375300 !ruby/object:Gem::Requirement
40
- none: false
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '1.0'
47
+ version_requirements: !ruby/object:Gem::Requirement
41
48
  requirements:
42
49
  - - ~>
43
50
  - !ruby/object:Gem::Version
44
- version: 1.0.0
51
+ version: '1.0'
45
52
  type: :development
46
53
  prerelease: false
47
- version_requirements: *70197924375300
54
+ name: bundler
48
55
  - !ruby/object:Gem::Dependency
49
- name: rails
50
- requirement: &70197924374840 !ruby/object:Gem::Requirement
51
- none: false
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: '3.0'
61
+ version_requirements: !ruby/object:Gem::Requirement
52
62
  requirements:
53
63
  - - ~>
54
64
  - !ruby/object:Gem::Version
55
65
  version: '3.0'
56
66
  type: :development
57
67
  prerelease: false
58
- version_requirements: *70197924374840
59
- description: This gem provides the Jcrop jQuery plugin for your Rails 3.1 application.
68
+ name: rails
69
+ description: This gem provides the Jcrop jQuery plugin for your Rails 3.1+ application.
60
70
  email:
61
71
  - nick.ragaz@gmail.com
62
72
  executables: []
@@ -76,30 +86,28 @@ files:
76
86
  - lib/jcrop/rails/version.rb
77
87
  - vendor/assets/images/jcrop/Jcrop.gif
78
88
  - vendor/assets/javascripts/jcrop.js
79
- - vendor/assets/stylesheets/jcrop.css.scss
80
- has_rdoc: true
89
+ - vendor/assets/stylesheets/jcrop.css.erb
81
90
  homepage: http://rubygems.org/gems/jcrop-rails
82
91
  licenses: []
92
+ metadata: {}
83
93
  post_install_message:
84
94
  rdoc_options: []
85
95
  require_paths:
86
96
  - lib
87
97
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
98
  requirements:
90
99
  - - ! '>='
91
100
  - !ruby/object:Gem::Version
92
101
  version: '0'
93
102
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
103
  requirements:
96
104
  - - ! '>='
97
105
  - !ruby/object:Gem::Version
98
106
  version: 1.3.6
99
107
  requirements: []
100
108
  rubyforge_project:
101
- rubygems_version: 1.6.2
109
+ rubygems_version: 2.0.3
102
110
  signing_key:
103
- specification_version: 3
104
- summary: Use the Jcrop jQuery plugin with Rails 3.1
111
+ specification_version: 4
112
+ summary: Use the Jcrop jQuery plugin with Rails 3.1+
105
113
  test_files: []
@@ -1,35 +0,0 @@
1
- /* Fixes issue here http://code.google.com/p/jcrop/issues/detail?id=1 */
2
- .jcrop-holder { text-align: left; }
3
-
4
- .jcrop-vline, .jcrop-hline
5
- {
6
- font-size: 0px;
7
- position: absolute;
8
- background: white url(image-path('jcrop/Jcrop.gif')) top left repeat;
9
- }
10
- .jcrop-vline { height: 100%; width: 1px !important; }
11
- .jcrop-hline { width: 100%; height: 1px !important; }
12
- .jcrop-vline.right { right: 0px; }
13
- .jcrop-hline.bottom { bottom: 0px; }
14
- .jcrop-handle {
15
- font-size: 1px;
16
- width: 7px !important;
17
- height: 7px !important;
18
- border: 1px #eee solid;
19
- background-color: #333;
20
- }
21
-
22
- .jcrop-tracker { width: 100%; height: 100%; }
23
-
24
- .custom .jcrop-vline,
25
- .custom .jcrop-hline
26
- {
27
- background: yellow;
28
- }
29
- .custom .jcrop-handle
30
- {
31
- border-color: black;
32
- background-color: #C7BB00;
33
- -moz-border-radius: 3px;
34
- -webkit-border-radius: 3px;
35
- }