gridsterJS-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,121 @@
1
+ /*! gridster.js - v0.5.6 - 2014-09-25
2
+ * http://gridster.net/
3
+ * Copyright (c) 2014 ducksboard; Licensed MIT */
4
+
5
+ .gridster {
6
+ position:relative;
7
+ }
8
+
9
+ .gridster > * {
10
+ margin: 0 auto;
11
+ -webkit-transition: height .4s, width .4s;
12
+ -moz-transition: height .4s, width .4s;
13
+ -o-transition: height .4s, width .4s;
14
+ -ms-transition: height .4s, width .4s;
15
+ transition: height .4s, width .4s;
16
+ }
17
+
18
+ .gridster .gs-w {
19
+ z-index: 2;
20
+ position: absolute;
21
+ }
22
+
23
+ .ready .gs-w:not(.preview-holder) {
24
+ -webkit-transition: opacity .3s, left .3s, top .3s;
25
+ -moz-transition: opacity .3s, left .3s, top .3s;
26
+ -o-transition: opacity .3s, left .3s, top .3s;
27
+ transition: opacity .3s, left .3s, top .3s;
28
+ }
29
+
30
+ .ready .gs-w:not(.preview-holder),
31
+ .ready .resize-preview-holder {
32
+ -webkit-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
33
+ -moz-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
34
+ -o-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
35
+ transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
36
+ }
37
+
38
+ .gridster .preview-holder {
39
+ z-index: 1;
40
+ position: absolute;
41
+ background-color: #fff;
42
+ border-color: #fff;
43
+ opacity: 0.3;
44
+ }
45
+
46
+ .gridster .player-revert {
47
+ z-index: 10!important;
48
+ -webkit-transition: left .3s, top .3s!important;
49
+ -moz-transition: left .3s, top .3s!important;
50
+ -o-transition: left .3s, top .3s!important;
51
+ transition: left .3s, top .3s!important;
52
+ }
53
+
54
+ .gridster .dragging,
55
+ .gridster .resizing {
56
+ z-index: 10!important;
57
+ -webkit-transition: all 0s !important;
58
+ -moz-transition: all 0s !important;
59
+ -o-transition: all 0s !important;
60
+ transition: all 0s !important;
61
+ }
62
+
63
+
64
+ .gs-resize-handle {
65
+ position: absolute;
66
+ z-index: 1;
67
+ }
68
+
69
+ .gs-resize-handle-both {
70
+ width: 20px;
71
+ height: 20px;
72
+ bottom: -8px;
73
+ right: -8px;
74
+ background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=');
75
+ background-position: top left;
76
+ background-repeat: no-repeat;
77
+ cursor: se-resize;
78
+ z-index: 20;
79
+ }
80
+
81
+ .gs-resize-handle-x {
82
+ top: 0;
83
+ bottom: 13px;
84
+ right: -5px;
85
+ width: 10px;
86
+ cursor: e-resize;
87
+ }
88
+
89
+ .gs-resize-handle-y {
90
+ left: 0;
91
+ right: 13px;
92
+ bottom: -5px;
93
+ height: 10px;
94
+ cursor: s-resize;
95
+ }
96
+
97
+ .gs-w:hover .gs-resize-handle,
98
+ .resizing .gs-resize-handle {
99
+ opacity: 1;
100
+ }
101
+
102
+ .gs-resize-handle,
103
+ .gs-w.dragging .gs-resize-handle {
104
+ opacity: 0;
105
+ }
106
+
107
+ .gs-resize-disabled .gs-resize-handle {
108
+ display: none!important;
109
+ }
110
+
111
+ [data-max-sizex="1"] .gs-resize-handle-x,
112
+ [data-max-sizey="1"] .gs-resize-handle-y,
113
+ [data-max-sizey="1"][data-max-sizex="1"] .gs-resize-handle {
114
+ display: none !important;
115
+ }
116
+
117
+ /* Uncomment this if you set helper : "clone" in draggable options */
118
+ /*.gridster .player {
119
+ opacity:0;
120
+ }
121
+ */
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gridsterJS-rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gridsterJS-rails"
8
+ spec.version = GridsterJS::Rails::VERSION
9
+ spec.authors = ["TwoWeb"]
10
+ spec.email = ["dev@twoweb.com.br"]
11
+ spec.summary = "gem for gridster.js"
12
+ spec.description = "gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns"
13
+ spec.homepage = "https://github.com/twoweb/gridsterJS-rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ end
@@ -0,0 +1,8 @@
1
+ require "gridsterJS-rails/version"
2
+
3
+ module GridsterJS
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module GridsterJS
2
+ module Rails
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gridsterJS-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - TwoWeb
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-07-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: gridster.js is a jQuery plugin that makes building intuitive draggable
42
+ layouts from elements spanning multiple columns
43
+ email:
44
+ - dev@twoweb.com.br
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - app/assets/javascripts/jquery.gridster.js
54
+ - app/assets/javascripts/jquery.gridster.with-extras.js
55
+ - app/assets/stylesheets/jquery.gridster.css
56
+ - gridsterJS-rails.gemspec
57
+ - lib/gridsterJS-rails.rb
58
+ - lib/gridsterJS-rails/version.rb
59
+ homepage: https://github.com/twoweb/gridsterJS-rails
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.4.7
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: gem for gridster.js
83
+ test_files: []