x-editable-rails 0.0.1

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,148 @@
1
+ /*! X-editable - v1.3.0
2
+ * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
3
+ * http://github.com/vitalets/x-editable
4
+ * Copyright (c) 2012 Vitaliy Potapov; Licensed MIT */
5
+
6
+ .editableform {
7
+ margin-bottom: 0; /* overwrites bootstrap margin */
8
+ }
9
+
10
+ .editableform .control-group {
11
+ margin-bottom: 0; /* overwrites bootstrap margin */
12
+ white-space: nowrap; /* prevent wrapping buttons on new line */
13
+ }
14
+
15
+ .editable-buttons {
16
+ display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
17
+ vertical-align: top;
18
+ margin-left: 7px;
19
+ /* display-inline emulation for IE7*/
20
+ zoom: 1;
21
+ *display: inline;
22
+ }
23
+
24
+
25
+
26
+ .editable-input {
27
+ vertical-align: top;
28
+ display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
29
+ width: auto; /* bootstrap-responsive has width: 100% that breakes layout */
30
+ white-space: normal; /* reset white-space decalred in parent*/
31
+ /* display-inline emulation for IE7*/
32
+ zoom: 1;
33
+ *display: inline;
34
+ }
35
+
36
+ .editable-buttons .editable-cancel {
37
+ margin-left: 7px;
38
+ }
39
+
40
+ /*for jquery-ui buttons need set height to look more pretty*/
41
+ .editable-buttons button.ui-button-icon-only {
42
+ height: 24px;
43
+ width: 30px;
44
+ }
45
+
46
+ .editableform-loading {
47
+ background: url('img/loading.gif') center center no-repeat;
48
+ height: 25px;
49
+ width: auto;
50
+ min-width: 25px;
51
+ }
52
+
53
+ .editable-inline .editableform-loading {
54
+ background-position: left 5px;
55
+ }
56
+
57
+ .editable-error-block {
58
+ max-width: 300px;
59
+ margin: 5px 0 0 0;
60
+ width: auto;
61
+ white-space: normal;
62
+ }
63
+
64
+ /*add padding for jquery ui*/
65
+ .editable-error-block.ui-state-error {
66
+ padding: 3px;
67
+ }
68
+
69
+ .editable-error {
70
+ color: red;
71
+ }
72
+
73
+ .editableform textarea {
74
+ height: 150px; /*default height for textarea*/
75
+ }
76
+
77
+ .editableform .editable-date {
78
+ padding: 0;
79
+ margin: 0;
80
+ float: left;
81
+ }
82
+
83
+
84
+ /* checklist vertical alignment */
85
+ .editable-checklist label input[type="checkbox"],
86
+ .editable-checklist label span {
87
+ vertical-align: middle;
88
+ margin: 0;
89
+ }
90
+
91
+ .editable-checklist label {
92
+ white-space: nowrap;
93
+ }
94
+
95
+ .editable-clear {
96
+ clear: both;
97
+ font-size: 0.9em;
98
+ text-decoration: none;
99
+ text-align: right;
100
+ }
101
+ .editable-container {
102
+ max-width: none !important; /* without this rule poshytip/tooltip does not stretch */
103
+ }
104
+
105
+ .editable-container.popover {
106
+ /* width: 300px;*/ /* debug */
107
+ width: auto; /* without this rule popover does not stretch */
108
+ }
109
+
110
+ .editable-container.editable-inline {
111
+ /* display: inline; */ /* display: inline does not correctly work with show()/hide() in jquery <= 1.7.2 */
112
+ display: inline-block;
113
+ vertical-align: middle;
114
+ }
115
+
116
+ .editable-container.ui-widget {
117
+ font-size: inherit; /* jqueryui widget font 1.1em too big, overwrite it */
118
+ }
119
+ .editable-click,
120
+ a.editable-click,
121
+ a.editable-click:hover {
122
+ text-decoration: none;
123
+ border-bottom: dashed 1px #0088cc;
124
+ }
125
+
126
+ .editable-click.editable-disabled,
127
+ a.editable-click.editable-disabled,
128
+ a.editable-click.editable-disabled:hover {
129
+ color: #585858;
130
+ cursor: default;
131
+ border-bottom: none;
132
+ }
133
+
134
+ .editable-empty, .editable-empty:hover{
135
+ font-style: italic;
136
+ color: #DD1144;
137
+ border-bottom: none;
138
+ text-decoration: none;
139
+ }
140
+
141
+ .editable-unsaved {
142
+ font-weight: bold;
143
+ }
144
+
145
+ .editable-unsaved:after {
146
+ /* content: '*'*/
147
+ }
148
+
@@ -0,0 +1,148 @@
1
+ /*! X-editable - v1.3.0
2
+ * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
3
+ * http://github.com/vitalets/x-editable
4
+ * Copyright (c) 2012 Vitaliy Potapov; Licensed MIT */
5
+
6
+ .editableform {
7
+ margin-bottom: 0; /* overwrites bootstrap margin */
8
+ }
9
+
10
+ .editableform .control-group {
11
+ margin-bottom: 0; /* overwrites bootstrap margin */
12
+ white-space: nowrap; /* prevent wrapping buttons on new line */
13
+ }
14
+
15
+ .editable-buttons {
16
+ display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
17
+ vertical-align: top;
18
+ margin-left: 7px;
19
+ /* display-inline emulation for IE7*/
20
+ zoom: 1;
21
+ *display: inline;
22
+ }
23
+
24
+
25
+
26
+ .editable-input {
27
+ vertical-align: top;
28
+ display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */
29
+ width: auto; /* bootstrap-responsive has width: 100% that breakes layout */
30
+ white-space: normal; /* reset white-space decalred in parent*/
31
+ /* display-inline emulation for IE7*/
32
+ zoom: 1;
33
+ *display: inline;
34
+ }
35
+
36
+ .editable-buttons .editable-cancel {
37
+ margin-left: 7px;
38
+ }
39
+
40
+ /*for jquery-ui buttons need set height to look more pretty*/
41
+ .editable-buttons button.ui-button-icon-only {
42
+ height: 24px;
43
+ width: 30px;
44
+ }
45
+
46
+ .editableform-loading {
47
+ background: url('img/loading.gif') center center no-repeat;
48
+ height: 25px;
49
+ width: auto;
50
+ min-width: 25px;
51
+ }
52
+
53
+ .editable-inline .editableform-loading {
54
+ background-position: left 5px;
55
+ }
56
+
57
+ .editable-error-block {
58
+ max-width: 300px;
59
+ margin: 5px 0 0 0;
60
+ width: auto;
61
+ white-space: normal;
62
+ }
63
+
64
+ /*add padding for jquery ui*/
65
+ .editable-error-block.ui-state-error {
66
+ padding: 3px;
67
+ }
68
+
69
+ .editable-error {
70
+ color: red;
71
+ }
72
+
73
+ .editableform textarea {
74
+ height: 150px; /*default height for textarea*/
75
+ }
76
+
77
+ .editableform .editable-date {
78
+ padding: 0;
79
+ margin: 0;
80
+ float: left;
81
+ }
82
+
83
+
84
+ /* checklist vertical alignment */
85
+ .editable-checklist label input[type="checkbox"],
86
+ .editable-checklist label span {
87
+ vertical-align: middle;
88
+ margin: 0;
89
+ }
90
+
91
+ .editable-checklist label {
92
+ white-space: nowrap;
93
+ }
94
+
95
+ .editable-clear {
96
+ clear: both;
97
+ font-size: 0.9em;
98
+ text-decoration: none;
99
+ text-align: right;
100
+ }
101
+ .editable-container {
102
+ max-width: none !important; /* without this rule poshytip/tooltip does not stretch */
103
+ }
104
+
105
+ .editable-container.popover {
106
+ /* width: 300px;*/ /* debug */
107
+ width: auto; /* without this rule popover does not stretch */
108
+ }
109
+
110
+ .editable-container.editable-inline {
111
+ /* display: inline; */ /* display: inline does not correctly work with show()/hide() in jquery <= 1.7.2 */
112
+ display: inline-block;
113
+ vertical-align: middle;
114
+ }
115
+
116
+ .editable-container.ui-widget {
117
+ font-size: inherit; /* jqueryui widget font 1.1em too big, overwrite it */
118
+ }
119
+ .editable-click,
120
+ a.editable-click,
121
+ a.editable-click:hover {
122
+ text-decoration: none;
123
+ border-bottom: dashed 1px #0088cc;
124
+ }
125
+
126
+ .editable-click.editable-disabled,
127
+ a.editable-click.editable-disabled,
128
+ a.editable-click.editable-disabled:hover {
129
+ color: #585858;
130
+ cursor: default;
131
+ border-bottom: none;
132
+ }
133
+
134
+ .editable-empty, .editable-empty:hover{
135
+ font-style: italic;
136
+ color: #DD1144;
137
+ border-bottom: none;
138
+ text-decoration: none;
139
+ }
140
+
141
+ .editable-unsaved {
142
+ font-weight: bold;
143
+ }
144
+
145
+ .editable-unsaved:after {
146
+ /* content: '*'*/
147
+ }
148
+
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'x-editable-rails/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "x-editable-rails"
8
+ gem.version = X::Editable::Rails::VERSION
9
+ gem.authors = ["Jiri Kolarik"]
10
+ gem.email = ["jiri.kolarik@imin.cz"]
11
+ gem.description = %q{X-editable for Rails}
12
+ gem.summary = %q{X-editable for Rails}
13
+ gem.homepage = ""
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+ end
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: x-editable-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jiri Kolarik
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-26 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: X-editable for Rails
15
+ email:
16
+ - jiri.kolarik@imin.cz
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE.txt
24
+ - README.md
25
+ - Rakefile
26
+ - lib/x-editable-rails.rb
27
+ - lib/x-editable-rails/version.rb
28
+ - vendor/assets/images/loading.gif
29
+ - vendor/assets/javascripts/bootstrap-editable-inline.js
30
+ - vendor/assets/javascripts/bootstrap-editable-inline.min.js
31
+ - vendor/assets/javascripts/bootstrap-editable.js
32
+ - vendor/assets/javascripts/bootstrap-editable.min.js
33
+ - vendor/assets/javascripts/jquery-editable-inline.js
34
+ - vendor/assets/javascripts/jquery-editable-inline.min.js
35
+ - vendor/assets/javascripts/jquery-editable-poshytip.js
36
+ - vendor/assets/javascripts/jquery-editable-poshytip.min.js
37
+ - vendor/assets/javascripts/jqueryui-editable-inline.js
38
+ - vendor/assets/javascripts/jqueryui-editable-inline.min.js
39
+ - vendor/assets/javascripts/jqueryui-editable.js
40
+ - vendor/assets/javascripts/jqueryui-editable.min.js
41
+ - vendor/assets/javascripts/rails-editable.js.coffee
42
+ - vendor/assets/stylesheets/bootstrap-editable.css
43
+ - vendor/assets/stylesheets/jquery-editable.css
44
+ - vendor/assets/stylesheets/jqueryui-editable.css
45
+ - x-editable-rails.gemspec
46
+ homepage: ''
47
+ licenses: []
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubyforge_project:
66
+ rubygems_version: 1.8.24
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: X-editable for Rails
70
+ test_files: []