jquery_context_menu-rails4 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,142 @@
1
+ /*!
2
+ * jQuery contextMenu - Plugin for simple contextMenu handling
3
+ *
4
+ * Version: git-master
5
+ *
6
+ * Authors: Rodney Rehm, Addy Osmani (patches for FF)
7
+ * Web: http://medialize.github.com/jQuery-contextMenu/
8
+ *
9
+ * Licensed under
10
+ * MIT License http://www.opensource.org/licenses/mit-license
11
+ * GPL v3 http://opensource.org/licenses/GPL-3.0
12
+ *
13
+ */
14
+
15
+ .context-menu-list {
16
+ margin:0;
17
+ padding:0;
18
+
19
+ min-width: 120px;
20
+ max-width: 250px;
21
+ display: inline-block;
22
+ position: absolute;
23
+ list-style-type: none;
24
+
25
+ border: 1px solid #DDD;
26
+ background: #EEE;
27
+
28
+ -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
29
+ -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
30
+ -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
31
+ -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
32
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
33
+
34
+ font-family: Verdana, Arial, Helvetica, sans-serif;
35
+ font-size: 11px;
36
+ }
37
+
38
+ .context-menu-item {
39
+ padding: 2px 2px 2px 24px;
40
+ background-color: #EEE;
41
+ position: relative;
42
+ -webkit-user-select: none;
43
+ -moz-user-select: -moz-none;
44
+ -ms-user-select: none;
45
+ user-select: none;
46
+ }
47
+
48
+ .context-menu-separator {
49
+ padding-bottom:0;
50
+ border-bottom: 1px solid #DDD;
51
+ }
52
+
53
+ .context-menu-item > label > input,
54
+ .context-menu-item > label > textarea {
55
+ -webkit-user-select: text;
56
+ -moz-user-select: text;
57
+ -ms-user-select: text;
58
+ user-select: text;
59
+ }
60
+
61
+ .context-menu-item.hover {
62
+ cursor: pointer;
63
+ background-color: #39F;
64
+ }
65
+
66
+ .context-menu-item.disabled {
67
+ color: #666;
68
+ }
69
+
70
+ .context-menu-input.hover,
71
+ .context-menu-item.disabled.hover {
72
+ cursor: default;
73
+ background-color: #EEE;
74
+ }
75
+
76
+ .context-menu-submenu:after {
77
+ content: ">";
78
+ color: #666;
79
+ position: absolute;
80
+ top: 0;
81
+ right: 3px;
82
+ z-index: 1;
83
+ }
84
+
85
+ /* icons
86
+ #protip:
87
+ In case you want to use sprites for icons (which I would suggest you do) have a look at
88
+ http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement
89
+ .context-menu-item.icon:before {}
90
+ */
91
+ .context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
92
+ .context-menu-item.icon-edit { background-image: url(images/page_white_edit.png); }
93
+ .context-menu-item.icon-cut { background-image: url(images/cut.png); }
94
+ .context-menu-item.icon-copy { background-image: url(images/page_white_copy.png); }
95
+ .context-menu-item.icon-paste { background-image: url(images/page_white_paste.png); }
96
+ .context-menu-item.icon-delete { background-image: url(images/page_white_delete.png); }
97
+ .context-menu-item.icon-add { background-image: url(images/page_white_add.png); }
98
+ .context-menu-item.icon-quit { background-image: url(images/door.png); }
99
+
100
+ /* vertically align inside labels */
101
+ .context-menu-input > label > * { vertical-align: top; }
102
+
103
+ /* position checkboxes and radios as icons */
104
+ .context-menu-input > label > input[type="checkbox"],
105
+ .context-menu-input > label > input[type="radio"] {
106
+ margin-left: -17px;
107
+ }
108
+ .context-menu-input > label > span {
109
+ margin-left: 5px;
110
+ }
111
+
112
+ .context-menu-input > label,
113
+ .context-menu-input > label > input[type="text"],
114
+ .context-menu-input > label > textarea,
115
+ .context-menu-input > label > select {
116
+ display: block;
117
+ width: 100%;
118
+
119
+ -webkit-box-sizing: border-box;
120
+ -moz-box-sizing: border-box;
121
+ -ms-box-sizing: border-box;
122
+ -o-box-sizing: border-box;
123
+ box-sizing: border-box;
124
+ }
125
+
126
+ .context-menu-input > label > textarea {
127
+ height: 100px;
128
+ }
129
+ .context-menu-item > .context-menu-list {
130
+ display: none;
131
+ /* re-positioned by js */
132
+ right: -5px;
133
+ top: 5px;
134
+ }
135
+
136
+ .context-menu-item.hover > .context-menu-list {
137
+ display: block;
138
+ }
139
+
140
+ .context-menu-accesskey {
141
+ text-decoration: underline;
142
+ }
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jquery_context_menu-rails4
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Harssh Sshrivastava
8
+ - Bill Dieter
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-05-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ~>
19
+ - !ruby/object:Gem::Version
20
+ version: '1.3'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: '1.3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: railties
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 3.2.0
49
+ - - <
50
+ - !ruby/object:Gem::Version
51
+ version: '5.0'
52
+ type: :runtime
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: 3.2.0
59
+ - - <
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: jquery-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ - !ruby/object:Gem::Dependency
77
+ name: jquery-ui-rails
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ description: This gem provides jQuery-contextMenufor your Rails application. (jQuery-contextMenu
91
+ source code is at https://github.com/medialize/jQuery-contextMenu.git)
92
+ email:
93
+ - harssh122@gmail.com
94
+ - dieter@acm.org
95
+ executables: []
96
+ extensions: []
97
+ extra_rdoc_files: []
98
+ files:
99
+ - .gitignore
100
+ - README.md
101
+ - jquery_context_menu-rails.gemspec
102
+ - lib/jquery_context_menu-rails.rb
103
+ - lib/jquery_context_menu/rails.rb
104
+ - lib/jquery_context_menu/rails/engine.rb
105
+ - lib/jquery_context_menu/rails/version.rb
106
+ - vendor/assets/images/cut.png
107
+ - vendor/assets/images/door.png
108
+ - vendor/assets/images/page_white_add.png
109
+ - vendor/assets/images/page_white_copy.png
110
+ - vendor/assets/images/page_white_delete.png
111
+ - vendor/assets/images/page_white_edit.png
112
+ - vendor/assets/images/page_white_paste.png
113
+ - vendor/assets/javascripts/jquery.contextMenu.js
114
+ - vendor/assets/javascripts/jquery.ui.position.js
115
+ - vendor/assets/stylesheets/jquery.contextMenu.css
116
+ homepage: https://github.com/harssh/jquery_context_menu-rails
117
+ licenses:
118
+ - MIT
119
+ metadata: {}
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubyforge_project:
136
+ rubygems_version: 2.2.2
137
+ signing_key:
138
+ specification_version: 4
139
+ summary: Use jQuery-contextMenu with Rails 3 and 4
140
+ test_files: []