leaflet-draw-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,303 @@
1
+ /* ================================================================== */
2
+ /* Toolbars
3
+ /* ================================================================== */
4
+
5
+ .leaflet-draw-section {
6
+ position: relative;
7
+ }
8
+
9
+ .leaflet-draw-toolbar {
10
+ margin-top: 12px;
11
+ }
12
+
13
+ .leaflet-draw-toolbar-top {
14
+ margin-top: 0;
15
+ }
16
+
17
+ .leaflet-draw-toolbar-notop a:first-child {
18
+ border-top-right-radius: 0;
19
+ }
20
+
21
+ .leaflet-draw-toolbar-nobottom a:last-child {
22
+ border-bottom-right-radius: 0;
23
+ }
24
+
25
+ .leaflet-draw-toolbar a {
26
+ background-image: url('images/spritesheet.png');
27
+ background-repeat: no-repeat;
28
+ }
29
+
30
+ .leaflet-retina .leaflet-draw-toolbar a {
31
+ background-image: url('images/spritesheet-2x.png');
32
+ background-size: 270px 30px;
33
+ }
34
+
35
+ .leaflet-draw a {
36
+ display: block;
37
+ text-align: center;
38
+ text-decoration: none;
39
+ }
40
+
41
+ /* ================================================================== */
42
+ /* Toolbar actions menu
43
+ /* ================================================================== */
44
+
45
+ .leaflet-draw-actions {
46
+ display: none;
47
+ list-style: none;
48
+ margin: 0;
49
+ padding: 0;
50
+ position: absolute;
51
+ left: 26px; /* leaflet-draw-toolbar.left + leaflet-draw-toolbar.width */
52
+ top: 0;
53
+ white-space: nowrap;
54
+ }
55
+
56
+ .leaflet-touch .leaflet-draw-actions {
57
+ left: 32px;
58
+ }
59
+
60
+ .leaflet-right .leaflet-draw-actions {
61
+ right:26px;
62
+ left:auto;
63
+ }
64
+
65
+ .leaflet-touch .leaflet-right .leaflet-draw-actions {
66
+ right:32px;
67
+ left:auto;
68
+ }
69
+
70
+ .leaflet-draw-actions li {
71
+ display: inline-block;
72
+ }
73
+
74
+ .leaflet-draw-actions li:first-child a {
75
+ border-left: none;
76
+ }
77
+
78
+ .leaflet-draw-actions li:last-child a {
79
+ -webkit-border-radius: 0 4px 4px 0;
80
+ border-radius: 0 4px 4px 0;
81
+ }
82
+
83
+ .leaflet-right .leaflet-draw-actions li:last-child a {
84
+ -webkit-border-radius: 0;
85
+ border-radius: 0;
86
+ }
87
+
88
+ .leaflet-right .leaflet-draw-actions li:first-child a {
89
+ -webkit-border-radius: 4px 0 0 4px;
90
+ border-radius: 4px 0 0 4px;
91
+ }
92
+
93
+ .leaflet-draw-actions a {
94
+ background-color: #919187;
95
+ border-left: 1px solid #AAA;
96
+ color: #FFF;
97
+ font: 11px/19px "Helvetica Neue", Arial, Helvetica, sans-serif;
98
+ line-height: 28px;
99
+ text-decoration: none;
100
+ padding-left: 10px;
101
+ padding-right: 10px;
102
+ height: 28px;
103
+ }
104
+
105
+ .leaflet-touch .leaflet-draw-actions a {
106
+ font-size: 12px;
107
+ line-height: 30px;
108
+ height: 30px;
109
+ }
110
+
111
+ .leaflet-draw-actions-bottom {
112
+ margin-top: 0;
113
+ }
114
+
115
+ .leaflet-draw-actions-top {
116
+ margin-top: 1px;
117
+ }
118
+
119
+ .leaflet-draw-actions-top a,
120
+ .leaflet-draw-actions-bottom a {
121
+ height: 27px;
122
+ line-height: 27px;
123
+ }
124
+
125
+ .leaflet-draw-actions a:hover {
126
+ background-color: #A0A098;
127
+ }
128
+
129
+ .leaflet-draw-actions-top.leaflet-draw-actions-bottom a {
130
+ height: 26px;
131
+ line-height: 26px;
132
+ }
133
+
134
+ /* ================================================================== */
135
+ /* Draw toolbar
136
+ /* ================================================================== */
137
+
138
+ .leaflet-draw-toolbar .leaflet-draw-draw-polyline {
139
+ background-position: -2px -2px;
140
+ }
141
+
142
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline {
143
+ background-position: 0 -1px;
144
+ }
145
+
146
+ .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
147
+ background-position: -31px -2px;
148
+ }
149
+
150
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
151
+ background-position: -29px -1px;
152
+ }
153
+
154
+ .leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
155
+ background-position: -62px -2px;
156
+ }
157
+
158
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
159
+ background-position: -60px -1px;
160
+ }
161
+
162
+ .leaflet-draw-toolbar .leaflet-draw-draw-circle {
163
+ background-position: -92px -2px;
164
+ }
165
+
166
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle {
167
+ background-position: -90px -1px;
168
+ }
169
+
170
+ .leaflet-draw-toolbar .leaflet-draw-draw-marker {
171
+ background-position: -122px -2px;
172
+ }
173
+
174
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker {
175
+ background-position: -120px -1px;
176
+ }
177
+
178
+ /* ================================================================== */
179
+ /* Edit toolbar
180
+ /* ================================================================== */
181
+
182
+ .leaflet-draw-toolbar .leaflet-draw-edit-edit {
183
+ background-position: -152px -2px;
184
+ }
185
+
186
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit {
187
+ background-position: -150px -1px;
188
+ }
189
+
190
+ .leaflet-draw-toolbar .leaflet-draw-edit-remove {
191
+ background-position: -182px -2px;
192
+ }
193
+
194
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove {
195
+ background-position: -180px -1px;
196
+ }
197
+
198
+ .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
199
+ background-position: -212px -2px;
200
+ }
201
+
202
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
203
+ background-position: -210px -1px;
204
+ }
205
+
206
+ .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
207
+ background-position: -242px -2px;
208
+ }
209
+
210
+ .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
211
+ background-position: -240px -2px;
212
+ }
213
+
214
+ /* ================================================================== */
215
+ /* Drawing styles
216
+ /* ================================================================== */
217
+
218
+ .leaflet-mouse-marker {
219
+ background-color: #fff;
220
+ cursor: crosshair;
221
+ }
222
+
223
+ .leaflet-draw-tooltip {
224
+ background: rgb(54, 54, 54);
225
+ background: rgba(0, 0, 0, 0.5);
226
+ border: 1px solid transparent;
227
+ -webkit-border-radius: 4px;
228
+ border-radius: 4px;
229
+ color: #fff;
230
+ font: 12px/18px "Helvetica Neue", Arial, Helvetica, sans-serif;
231
+ margin-left: 20px;
232
+ margin-top: -21px;
233
+ padding: 4px 8px;
234
+ position: absolute;
235
+ visibility: hidden;
236
+ white-space: nowrap;
237
+ z-index: 6;
238
+ }
239
+
240
+ .leaflet-draw-tooltip:before {
241
+ border-right: 6px solid black;
242
+ border-right-color: rgba(0, 0, 0, 0.5);
243
+ border-top: 6px solid transparent;
244
+ border-bottom: 6px solid transparent;
245
+ content: "";
246
+ position: absolute;
247
+ top: 7px;
248
+ left: -7px;
249
+ }
250
+
251
+ .leaflet-error-draw-tooltip {
252
+ background-color: #F2DEDE;
253
+ border: 1px solid #E6B6BD;
254
+ color: #B94A48;
255
+ }
256
+
257
+ .leaflet-error-draw-tooltip:before {
258
+ border-right-color: #E6B6BD;
259
+ }
260
+
261
+ .leaflet-draw-tooltip-single {
262
+ margin-top: -12px
263
+ }
264
+
265
+ .leaflet-draw-tooltip-subtext {
266
+ color: #f8d5e4;
267
+ }
268
+
269
+ .leaflet-draw-guide-dash {
270
+ font-size: 1%;
271
+ opacity: 0.6;
272
+ position: absolute;
273
+ width: 5px;
274
+ height: 5px;
275
+ }
276
+
277
+ /* ================================================================== */
278
+ /* Edit styles
279
+ /* ================================================================== */
280
+
281
+ .leaflet-edit-marker-selected {
282
+ background: rgba(254, 87, 161, 0.1);
283
+ border: 4px dashed rgba(254, 87, 161, 0.6);
284
+ -webkit-border-radius: 4px;
285
+ border-radius: 4px;
286
+ box-sizing: content-box;
287
+ }
288
+
289
+ .leaflet-edit-move {
290
+ cursor: move;
291
+ }
292
+
293
+ .leaflet-edit-resize {
294
+ cursor: pointer;
295
+ }
296
+
297
+ /* ================================================================== */
298
+ /* Old IE styles
299
+ /* ================================================================== */
300
+
301
+ .leaflet-oldie .leaflet-draw-toolbar {
302
+ border: 1px solid #999;
303
+ }
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leaflet-draw-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Igor Drozdov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>'
18
+ - !ruby/object:Gem::Version
19
+ version: '3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>'
25
+ - !ruby/object:Gem::Version
26
+ version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '2.4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: selenium-webdriver
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.45'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.45'
83
+ - !ruby/object:Gem::Dependency
84
+ name: leaflet-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - iharthrush@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - lib/leaflet-draw-rails/version.rb
105
+ - lib/leaflet-draw-rails.rb
106
+ - vendor/assets/images/images/spritesheet-2x.png
107
+ - vendor/assets/images/images/spritesheet.png
108
+ - vendor/assets/javascripts/leaflet.draw.js
109
+ - vendor/assets/stylesheets/leaflet.draw.css
110
+ - MIT-LICENSE
111
+ - Rakefile
112
+ homepage:
113
+ licenses:
114
+ - MIT
115
+ metadata: {}
116
+ post_install_message:
117
+ rdoc_options: []
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ requirements: []
131
+ rubyforge_project: leaflet-draw-rails
132
+ rubygems_version: 2.0.14
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: Leaflet.draw plugin for your Rails 4 application
136
+ test_files: []