selectize-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,227 @@
1
+ /**********************************************************
2
+ * THEME: "default" *
3
+ **********************************************************/
4
+
5
+ .selectize-control.default.multi .selectize-input > div {
6
+ color: #3d5d18;
7
+ text-shadow: 0 1px 0 rgba(255,255,255,0.1);
8
+ border: 1px solid #74b21e;
9
+ -webkit-border-radius: 3px;
10
+ -moz-border-radius: 3px;
11
+ border-radius: 3px;
12
+ background: #b8e76f;
13
+ background: -moz-linear-gradient(top, #b8e76f 0%, #a9e25c 100%);
14
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b8e76f), color-stop(100%,#a9e25c));
15
+ background: -webkit-linear-gradient(top, #b8e76f 0%,#a9e25c 100%);
16
+ background: -o-linear-gradient(top, #b8e76f 0%,#a9e25c 100%);
17
+ background: -ms-linear-gradient(top, #b8e76f 0%,#a9e25c 100%);
18
+ background: linear-gradient(to bottom, #b8e76f 0%,#a9e25c 100%);
19
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b8e76f', endColorstr='#a9e25c',GradientType=0 );
20
+ -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
21
+ -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
22
+ box-shadow: 0 1px 1px rgba(0,0,0,0.1);
23
+ }
24
+ .selectize-control.default.multi .selectize-input > div.active {
25
+ border-color: #6f9839;
26
+ background: #92c836;
27
+ background: -moz-linear-gradient(top, #92c836 0%, #006e2e 0%, #92c836 0%, #7abc2c 100%);
28
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#92c836), color-stop(0%,#006e2e), color-stop(0%,#92c836), color-stop(100%,#7abc2c));
29
+ background: -webkit-linear-gradient(top, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
30
+ background: -o-linear-gradient(top, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
31
+ background: -ms-linear-gradient(top, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
32
+ background: linear-gradient(to bottom, #92c836 0%,#006e2e 0%,#92c836 0%,#7abc2c 100%);
33
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#92c836', endColorstr='#7abc2c',GradientType=0 );
34
+ }
35
+
36
+ /**********************************************************
37
+ * BASIC AESTHETIC STYLES (common) *
38
+ **********************************************************/
39
+
40
+ .selectize-input, .selectize-control.single .selectize-input.focus {
41
+ background: #fff;
42
+ padding: 10px;
43
+ cursor: text;
44
+ display: inline-block;
45
+ width: 100%;
46
+ -webkit-border-radius: 3px;
47
+ -moz-border-radius: 3px;
48
+ border-radius: 3px;
49
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
50
+ -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
51
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
52
+ }
53
+ .selectize-input.focus {
54
+ -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
55
+ -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
56
+ box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
57
+ }
58
+ .selectize-input.dropdown-active {
59
+ -webkit-border-radius: 3px 3px 0 0 !important;
60
+ -moz-border-radius: 3px 3px 0 0 !important;
61
+ border-radius: 3px 3px 0 0 !important;
62
+ }
63
+ .selectize-input.full {
64
+ background-color: #f2f2f2;
65
+ }
66
+ .selectize-input.dropdown-active::before {
67
+ content: ' ';
68
+ display: block;
69
+ position: absolute;
70
+ background: #f2f2f2;
71
+ height: 1px;
72
+ bottom: 0;
73
+ left: 0;
74
+ right: 0;
75
+ }
76
+ .selectize-control.multi .selectize-input.has-items {
77
+ padding-top: 8px !important;
78
+ padding-bottom: 3px !important;
79
+ }
80
+ .selectize-control.multi .selectize-input > div {
81
+ cursor: pointer;
82
+ margin: 0 5px 5px 0;
83
+ padding: 1px 5px;
84
+ }
85
+ .selectize-input > div:last-child {
86
+ margin-right: 5px;
87
+ }
88
+ .selectize-input > input {
89
+ margin-right: 2px !important;
90
+ }
91
+ .selectize-dropdown, .selectize-input, .selectize-control.single .selectize-input.dropdown-active {
92
+ border: 1px solid #d0d0d0;
93
+ }
94
+ .selectize-dropdown {
95
+ max-height: 200px;
96
+ overflow-y: auto;
97
+ overflow-x: hidden;
98
+ background: #fff;
99
+ margin-top: -1px;
100
+ border-top: 0 none;
101
+ -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
102
+ -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
103
+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);
104
+ -webkit-border-radius: 0 0 3px 3px;
105
+ -moz-border-radius: 0 0 3px 3px;
106
+ border-radius: 0 0 3px 3px;
107
+ }
108
+ .selectize-dropdown > * {
109
+ padding: 6px 9px;
110
+ }
111
+ .selectize-dropdown > *.create {
112
+ color: #a0a0a0;
113
+ }
114
+ .selectize-dropdown > *.active {
115
+ background-color: #fffceb;
116
+ }
117
+ .selectize-dropdown, .selectize-input, .selectize-input input {
118
+ color: #303030;
119
+ font-family: Helvetica, arial, sans-serif;
120
+ font-size: 14px;
121
+ line-height: 20px;
122
+ -webkit-font-smoothing: antialiased;
123
+ }
124
+ .selectize-dropdown .highlight {
125
+ background: rgba(255,237,40,0.4);
126
+ border-radius: 1px;
127
+ }
128
+
129
+ /**********************************************************
130
+ * BASIC AESTHETIC STYLES (single) *
131
+ **********************************************************/
132
+
133
+ .selectize-control.single .selectize-input {
134
+ cursor: pointer;
135
+ border-color: #b8b8b8;
136
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #c6c6c6;
137
+ -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #c6c6c6;
138
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 0 #e0e0e0, 0 3px 0 #c8c8c8, 0 4px 1px rgba(0,0,0,0.1);
139
+ background: #f6f6f6;
140
+ background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 100%);
141
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#efefef));
142
+ background: -webkit-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
143
+ background: -o-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
144
+ background: -ms-linear-gradient(top, #f5f5f5 0%,#efefef 100%);
145
+ background: linear-gradient(to bottom, #fafafa 0%,#f2f2f2 100%);
146
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f6f6', endColorstr='#e8e8e8',GradientType=0 );
147
+ }
148
+
149
+ .selectize-control.single .selectize-input::after {
150
+ content: ' ';
151
+ display: block;
152
+ position: absolute;
153
+ top: 50%;
154
+ right: 15px;
155
+ margin-top: -2px;
156
+ width: 0;
157
+ height: 0;
158
+ border-style: solid;
159
+ border-width: 5px 5px 0 5px;
160
+ border-color: #808080 transparent transparent transparent;
161
+ }
162
+
163
+ .selectize-control.single .selectize-input.dropdown-active::after {
164
+ margin-top: -3px;
165
+ border-width: 0 5px 5px 5px;
166
+ border-color: transparent transparent #808080 transparent;
167
+ }
168
+
169
+ /**********************************************************
170
+ * BASIC AESTHETIC STYLES (multi) *
171
+ **********************************************************/
172
+
173
+ /**********************************************************
174
+ * LAYOUT STYLES (mandatory) *
175
+ **********************************************************/
176
+
177
+ .selectize-control {
178
+ position: relative;
179
+ }
180
+ .selectize-input {
181
+ overflow: hidden;
182
+ position: relative;
183
+ z-index: 1;
184
+ }
185
+ .selectize-input:after {
186
+ content: ' ';
187
+ display: block;
188
+ clear: left;
189
+ }
190
+ .selectize-input .items {
191
+ display: inline;
192
+ }
193
+ .selectize-input > * {
194
+ vertical-align: baseline;
195
+ display: -moz-inline-stack;
196
+ display: inline-block;
197
+ zoom: 1;
198
+ *display: inline;
199
+ }
200
+ .selectize-input > input {
201
+ max-width: 100% !important;
202
+ text-indent: 0 !important;
203
+ border: 0 none !important;
204
+ background: none !important;
205
+ padding: 0 !important;
206
+ margin: 0;
207
+ line-height: inherit !important;
208
+ -webkit-box-shadow: none !important;
209
+ -moz-box-shadow: none !important;
210
+ box-shadow: none !important;
211
+ }
212
+ .selectize-input > input:focus {
213
+ outline: none !important;
214
+ }
215
+ .selectize-dropdown {
216
+ position: absolute;
217
+ z-index: 2;
218
+ }
219
+ .selectize-dropdown > * {
220
+ cursor: pointer;
221
+ overflow: hidden;
222
+ }
223
+ .selectize-input, .selectize-dropdown {
224
+ -webkit-box-sizing: border-box;
225
+ -moz-box-sizing: border-box;
226
+ box-sizing: border-box;
227
+ }
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: selectize-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Manuel van Rijn
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-29 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.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
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
+ description: A small gem for putting selectize.js into the Rails asset pipeline
42
+ email:
43
+ - manuel@manuelles.nl
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - lib/selectize-rails.rb
54
+ - lib/selectize-rails/engine.rb
55
+ - lib/selectize-rails/railtie.rb
56
+ - lib/selectize-rails/version.rb
57
+ - selectize-rails.gemspec
58
+ - vendor/assets/javascripts/selectize.js
59
+ - vendor/assets/stylesheets/selectize.css
60
+ homepage: https://github.com/manuelvanrijn/selectize-rails
61
+ licenses:
62
+ - MIT, Apache License v2.0
63
+ metadata: {}
64
+ post_install_message:
65
+ rdoc_options: []
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements: []
79
+ rubyforge_project:
80
+ rubygems_version: 2.0.2
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: an asset gemification of the selectize.js plugin
84
+ test_files: []