taggle-rails 0.1.0

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,5 @@
1
+ /*
2
+ *= require taggle/base
3
+ *= require taggle/autocomplete
4
+ *= require taggle/custom
5
+ */
@@ -0,0 +1,93 @@
1
+ .ui-autocomplete {
2
+ position: absolute;
3
+ top: 0;
4
+ left: 0; }
5
+
6
+ .ui-menu {
7
+ list-style: none;
8
+ padding: 2px;
9
+ margin: 0;
10
+ display: block;
11
+ outline: none; }
12
+
13
+ .ui-widget-content {
14
+ background: #fff;
15
+ color: #990033; }
16
+
17
+ .ui-menu .ui-menu-item {
18
+ margin: 0;
19
+ padding: 0;
20
+ width: 100%; }
21
+
22
+ .ui-menu .ui-menu-item a {
23
+ text-decoration: none;
24
+ display: block;
25
+ padding: 2px .4em;
26
+ line-height: 1.5;
27
+ min-height: 0;
28
+ font-weight: normal;
29
+ color: #8a8a8a;
30
+ cursor: pointer; }
31
+ .ui-menu .ui-menu-item a:hover {
32
+ color: #fff;
33
+ background: #990033; }
34
+
35
+ .ui-state-hover,
36
+ .ui-widget-content .ui-state-hover,
37
+ .ui-widget-header .ui-state-hover,
38
+ .ui-state-focus,
39
+ .ui-widget-content .ui-state-focus,
40
+ .ui-widget-header .ui-state-focus {
41
+ background: #990033;
42
+ color: #fff !important; }
43
+
44
+ .ui-state-hover a,
45
+ .ui-state-hover a:hover,
46
+ .ui-state-hover a:link,
47
+ .ui-state-hover a:visited {
48
+ color: #fff; }
49
+
50
+ .ui-state-active,
51
+ .ui-widget-content .ui-state-active,
52
+ .ui-widget-header .ui-state-active {
53
+ border: 1px solid #aaaaaa;
54
+ background: #ffffff;
55
+ font-weight: normal;
56
+ color: #212121; }
57
+
58
+ .ui-helper-hidden {
59
+ display: none; }
60
+
61
+ .ui-helper-hidden-accessible {
62
+ border: 0;
63
+ clip: rect(0 0 0 0);
64
+ height: 1px;
65
+ margin: -1px;
66
+ overflow: hidden;
67
+ padding: 0;
68
+ position: absolute;
69
+ width: 1px; }
70
+
71
+ .autocomplete {
72
+ max-height: 200px;
73
+ overflow: scroll;
74
+ position: absolute;
75
+ top: 66px;
76
+ background: white;
77
+ width: 99.5%;
78
+ left: 0.25%;
79
+ z-index: 2; }
80
+
81
+ .autocomplete ul li {
82
+ display: block;
83
+ padding: 6px 8px; }
84
+
85
+ .autocomplete ul li.selected, .autocomplete ul li:hover {
86
+ background: #ff6633;
87
+ color: #fff;
88
+ cursor: pointer; }
89
+
90
+ .ui-autocomplete {
91
+ max-height: 200px;
92
+ overflow: scroll;
93
+ width: 99% !important; }
@@ -0,0 +1,219 @@
1
+ h1, h2, h3, h4, h5, h6 {
2
+ text-shadow: 1px 1px 1px #fff;
3
+ color: #000;
4
+ font-weight: bold;
5
+ line-height: 1.5;
6
+ margin: 0; }
7
+
8
+ pre {
9
+ border-radius: 3px;
10
+ overflow-x: scroll; }
11
+
12
+ p {
13
+ color: #000; }
14
+
15
+ p a {
16
+ color: #990033;
17
+ text-decoration: none;
18
+ transition: all .25s;
19
+ padding: 3px; }
20
+
21
+ p a:hover {
22
+ color: #fff;
23
+ background: #990033;
24
+ transition: all .25s; }
25
+
26
+ .btn {
27
+ background: #990033;
28
+ padding: 12px 30px;
29
+ border-radius: 3px;
30
+ margin-right: 10px;
31
+ color: #fff !important;
32
+ position: relative;
33
+ display: inline-block;
34
+ width: 130px; }
35
+ .btn:hover {
36
+ background: #cc0044; }
37
+ .btn:active {
38
+ top: 1px; }
39
+ .btn:last-child {
40
+ margin-right: 0; }
41
+
42
+ ::-moz-selection {
43
+ background: #990033;
44
+ color: #fff; }
45
+
46
+ ::selection {
47
+ background: #990033;
48
+ color: #fff; }
49
+
50
+ ::-moz-selection {
51
+ background: #990033;
52
+ color: #fff; }
53
+
54
+ @-webkit-keyframes bounce {
55
+ 0%, 20%, 50%, 80%, 100% {
56
+ -webkit-transform: translateY(0); }
57
+ 40% {
58
+ -webkit-transform: translateY(-16px); }
59
+ 60% {
60
+ -webkit-transform: translateY(-7px); } }
61
+
62
+ @keyframes bounce {
63
+ 0%, 20%, 50%, 80%, 100% {
64
+ -webkit-transform: translateY(0);
65
+ transform: translateY(0); }
66
+ 40% {
67
+ -webkit-transform: translateY(-16px);
68
+ transform: translateY(-16px); }
69
+ 60% {
70
+ -webkit-transform: translateY(-7px);
71
+ transform: translateY(-7px); } }
72
+
73
+ .bounce {
74
+ -webkit-animation-name: bounce;
75
+ animation-name: bounce; }
76
+
77
+ .project_container a {
78
+ color: #000; }
79
+
80
+ .clearfix:before, .clearfix:after {
81
+ display: block;
82
+ content: "";
83
+ line-height: 0;
84
+ clear: both; }
85
+
86
+ .taggle_list {
87
+ float: left;
88
+ width: 100%; }
89
+
90
+ .taggle_input {
91
+ border: none;
92
+ outline: none;
93
+ font-size: 16px;
94
+ font-weight: 300; }
95
+
96
+ .taggle_list li {
97
+ float: left;
98
+ display: inline-block;
99
+ white-space: nowrap;
100
+ font-weight: 500;
101
+ margin-bottom: 5px; }
102
+
103
+ .taggle_list .taggle {
104
+ margin-right: 8px;
105
+ background: #E2E1DF;
106
+ padding: 5px 10px;
107
+ border-radius: 3px;
108
+ position: relative;
109
+ cursor: pointer;
110
+ transition: all .3s;
111
+ -webkit-animation-duration: 1s;
112
+ animation-duration: 1s;
113
+ -webkit-animation-fill-mode: both;
114
+ animation-fill-mode: both; }
115
+
116
+ .taggle_list .taggle_hot {
117
+ background: #cac8c4; }
118
+
119
+ .taggle_list .taggle .close {
120
+ font-size: 1.1rem;
121
+ position: absolute;
122
+ top: 5px;
123
+ right: 3px;
124
+ text-decoration: none;
125
+ padding-left: 2px;
126
+ padding-top: 3px;
127
+ line-height: 0.5;
128
+ color: #ccc;
129
+ color: rgba(0, 0, 0, 0.2);
130
+ padding-bottom: 4px;
131
+ display: none;
132
+ border: 0;
133
+ background: none;
134
+ cursor: pointer; }
135
+
136
+ .taggle_list .taggle:hover {
137
+ padding: 5px;
138
+ padding-right: 15px;
139
+ background: #ccc;
140
+ transition: all .3s; }
141
+
142
+ .taggle_list .taggle:hover > .close {
143
+ display: block; }
144
+
145
+ .taggle_list .taggle .close:hover {
146
+ color: #990033; }
147
+
148
+ .taggle_placeholder {
149
+ position: absolute;
150
+ color: #CCC;
151
+ top: 12px;
152
+ left: 8px;
153
+ transition: opacity, .25s;
154
+ -webkit-user-select: none;
155
+ -moz-user-select: none;
156
+ -ms-user-select: none;
157
+ user-select: none; }
158
+
159
+ .taggle_input {
160
+ padding: 8px;
161
+ padding-left: 0;
162
+ float: left;
163
+ margin-top: -5px;
164
+ background: none;
165
+ width: 100%;
166
+ max-width: 100%; }
167
+
168
+ .taggle_sizer {
169
+ padding: 0;
170
+ margin: 0;
171
+ position: absolute;
172
+ top: -500px;
173
+ z-index: -1;
174
+ visibility: hidden; }
175
+
176
+ /*container styles*/
177
+ textarea.input,
178
+ .textarea.input {
179
+ border: 0;
180
+ background: #FDFDFD;
181
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(255, 255, 255, 0.7);
182
+ min-height: 60px;
183
+ padding: 8px;
184
+ border-radius: 3px;
185
+ color: #555;
186
+ transition: all .25s;
187
+ cursor: text;
188
+ margin-bottom: 10px;
189
+ position: relative; }
190
+
191
+ .textarea.input:focus,
192
+ .textarea.input.active,
193
+ textarea.input:focus,
194
+ textarea.input.active {
195
+ background: #fff;
196
+ transition: all .25s; }
197
+
198
+ .textarea.input,
199
+ textarea.input {
200
+ height: auto; }
201
+
202
+ .textarea.tags {
203
+ position: relative; }
204
+
205
+ .textarea.tags * {
206
+ box-sizing: content-box; }
207
+
208
+ .placeholder_input {
209
+ position: relative; }
210
+
211
+ .placeholder_input span {
212
+ position: absolute;
213
+ color: #AAA;
214
+ top: 50%;
215
+ margin-top: -11px;
216
+ left: 10px; }
217
+
218
+ .placeholder_input input {
219
+ width: 120px; }
@@ -0,0 +1,61 @@
1
+ .custom.textarea {
2
+ border-radius: 0;
3
+ box-shadow: none; }
4
+ .custom.textarea .taggle {
5
+ border-radius: 0;
6
+ padding: 5px;
7
+ padding-right: 20px; }
8
+ .custom.textarea .taggle .close {
9
+ display: inline-block;
10
+ right: 3px; }
11
+
12
+ .custom.delicious {
13
+ background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
14
+ border: 1px solid #AAA;
15
+ min-height: 50px; }
16
+ .custom.delicious.active {
17
+ border-color: #3274D1;
18
+ background-image: linear-gradient(to bottom, #eee 1%, #fff 15%); }
19
+ .custom.delicious .taggle {
20
+ color: #444;
21
+ border-radius: 0;
22
+ border-top-left-radius: 1.5rem;
23
+ border-bottom-left-radius: 1.5rem;
24
+ background-color: #ddd;
25
+ font-family: sans-serif;
26
+ font-size: 0.8rem;
27
+ padding: 5px;
28
+ padding-left: 20px; }
29
+ .custom.delicious .taggle .close {
30
+ color: #aaa;
31
+ font-size: 0.9rem;
32
+ height: 0.7rem;
33
+ width: 0.7rem;
34
+ line-height: .1rem;
35
+ margin-top: 3px;
36
+ right: auto;
37
+ left: 5px; }
38
+ .custom.delicious .taggle .close:hover {
39
+ color: #888; }
40
+
41
+ .custom.stackoverflow {
42
+ border: 1px solid #ccc;
43
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
44
+ .custom.stackoverflow .taggle {
45
+ color: #3E6D8E;
46
+ border-radius: 0;
47
+ background-color: #E0EAF1;
48
+ font-weight: 200; }
49
+ .custom.stackoverflow .taggle.taggle_hot {
50
+ background: #BDD0DD; }
51
+ .custom.stackoverflow .taggle .close {
52
+ color: #aaa;
53
+ border-radius: 0.7rem;
54
+ font-size: 0.9rem;
55
+ height: 0.7rem;
56
+ width: 0.7rem;
57
+ line-height: .1rem;
58
+ margin-top: 3px; }
59
+ .custom.stackoverflow .taggle .close:hover {
60
+ background: #C03434;
61
+ color: #fff; }
@@ -0,0 +1,6 @@
1
+ require "taggle/rails/engine"
2
+
3
+ module Taggle
4
+ module Rails
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Taggle
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Taggle
2
+ module Rails
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: taggle-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tom Conroy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Taggle.js packagaged for easy inclusion in Rails applications
14
+ email:
15
+ - tbconroy@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - MIT-LICENSE
21
+ - README.md
22
+ - app/assets/javascripts/taggle.js
23
+ - app/assets/stylesheets/taggle.css
24
+ - app/assets/stylesheets/taggle/autocomplete.css
25
+ - app/assets/stylesheets/taggle/base.css
26
+ - app/assets/stylesheets/taggle/custom.css
27
+ - lib/taggle/rails.rb
28
+ - lib/taggle/rails/engine.rb
29
+ - lib/taggle/rails/version.rb
30
+ homepage: https://github.com/tronroy/taggle-rails
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 2.5.2
51
+ signing_key:
52
+ specification_version: 4
53
+ summary: Taggle.js packagaged for Rails
54
+ test_files: []