pikaday-gem 1.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +53 -0
- data/Rakefile +115 -0
- data/lib/pikaday-gem.rb +6 -0
- data/lib/pikaday-gem/version.rb +3 -0
- data/vendor/assets/javascripts/1.0.0/pikaday.js +816 -0
- data/vendor/assets/javascripts/pikaday.js +816 -0
- data/vendor/assets/stylesheets/1.0.0/pikaday.css +170 -0
- data/vendor/assets/stylesheets/pikaday.css +170 -0
- metadata +143 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/*!
|
4
|
+
* Pikaday
|
5
|
+
* Copyright © 2012 David Bushell | BSD & MIT license | http://dbushell.com/
|
6
|
+
*/
|
7
|
+
|
8
|
+
.pika-single {
|
9
|
+
z-index: 9999;
|
10
|
+
display: block;
|
11
|
+
position: relative;
|
12
|
+
width: 240px;
|
13
|
+
padding: 8px;
|
14
|
+
color: #333;
|
15
|
+
background: #fff;
|
16
|
+
border: 1px solid #ccc;
|
17
|
+
border-bottom-color: #bbb;
|
18
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
19
|
+
}
|
20
|
+
|
21
|
+
.pika-single.is-hidden {
|
22
|
+
display: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
.pika-single.is-bound {
|
26
|
+
position: absolute;
|
27
|
+
box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
|
28
|
+
}
|
29
|
+
|
30
|
+
.pika-title {
|
31
|
+
position: relative;
|
32
|
+
text-align: center;
|
33
|
+
}
|
34
|
+
|
35
|
+
.pika-label {
|
36
|
+
display: inline-block;
|
37
|
+
*display: inline;
|
38
|
+
position: relative;
|
39
|
+
z-index: 9999;
|
40
|
+
overflow: hidden;
|
41
|
+
margin: 0;
|
42
|
+
padding: 5px 3px;
|
43
|
+
font-size: 14px;
|
44
|
+
line-height: 20px;
|
45
|
+
font-weight: bold;
|
46
|
+
background-color: #fff;
|
47
|
+
}
|
48
|
+
.pika-title select {
|
49
|
+
cursor: pointer;
|
50
|
+
position: absolute;
|
51
|
+
z-index: 9998;
|
52
|
+
margin: 0;
|
53
|
+
left: 0;
|
54
|
+
top: 5px;
|
55
|
+
opacity: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.pika-prev,
|
59
|
+
.pika-next {
|
60
|
+
display: block;
|
61
|
+
cursor: pointer;
|
62
|
+
position: relative;
|
63
|
+
outline: none;
|
64
|
+
border: 0;
|
65
|
+
padding: 0;
|
66
|
+
width: 20px;
|
67
|
+
height: 30px;
|
68
|
+
background-color: transparent;
|
69
|
+
background-position: center center;
|
70
|
+
background-repeat: no-repeat;
|
71
|
+
background-size: 75% 75%;
|
72
|
+
white-space: nowrap;
|
73
|
+
text-indent: 100%;
|
74
|
+
overflow: hidden;
|
75
|
+
opacity: .5;
|
76
|
+
*position: absolute;
|
77
|
+
*top: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
.pika-prev:hover,
|
81
|
+
.pika-next:hover {
|
82
|
+
opacity: 1;
|
83
|
+
}
|
84
|
+
|
85
|
+
.pika-prev,
|
86
|
+
.is-rtl .pika-next {
|
87
|
+
float: left;
|
88
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
|
89
|
+
*left: 0;
|
90
|
+
}
|
91
|
+
|
92
|
+
.pika-next,
|
93
|
+
.is-rtl .pika-prev {
|
94
|
+
float: right;
|
95
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
|
96
|
+
*right: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
.pika-prev.is-disabled,
|
100
|
+
.pika-next.is-disabled {
|
101
|
+
cursor: default;
|
102
|
+
opacity: .2;
|
103
|
+
}
|
104
|
+
|
105
|
+
.pika-select {
|
106
|
+
display: inline-block;
|
107
|
+
*display: inline;
|
108
|
+
}
|
109
|
+
|
110
|
+
.pika-table {
|
111
|
+
width: 100%;
|
112
|
+
border-collapse: collapse;
|
113
|
+
border-spacing: 0;
|
114
|
+
border: 0;
|
115
|
+
}
|
116
|
+
|
117
|
+
.pika-table th,
|
118
|
+
.pika-table td {
|
119
|
+
width: 14.285714285714286%;
|
120
|
+
}
|
121
|
+
|
122
|
+
.pika-table th {
|
123
|
+
color: #999;
|
124
|
+
font-size: 12px;
|
125
|
+
line-height: 25px;
|
126
|
+
font-weight: bold;
|
127
|
+
text-align: center;
|
128
|
+
}
|
129
|
+
|
130
|
+
.pika-button {
|
131
|
+
cursor: pointer;
|
132
|
+
display: block;
|
133
|
+
outline: none;
|
134
|
+
border: 0;
|
135
|
+
margin: 0;
|
136
|
+
width: 100%;
|
137
|
+
padding: 5px;
|
138
|
+
color: #666;
|
139
|
+
font-size: 12px;
|
140
|
+
line-height: 15px;
|
141
|
+
text-align: right;
|
142
|
+
background: #f5f5f5;
|
143
|
+
}
|
144
|
+
|
145
|
+
.is-today .pika-button {
|
146
|
+
color: #33aaff;
|
147
|
+
font-weight: bold;
|
148
|
+
}
|
149
|
+
|
150
|
+
.is-selected .pika-button {
|
151
|
+
color: #fff;
|
152
|
+
font-weight: bold;
|
153
|
+
background: #33aaff;
|
154
|
+
box-shadow: inset 0 1px 3px #178fe5;
|
155
|
+
border-radius: 3px;
|
156
|
+
}
|
157
|
+
|
158
|
+
.is-disabled .pika-button {
|
159
|
+
pointer-events: none;
|
160
|
+
cursor: default;
|
161
|
+
color: #999;
|
162
|
+
opacity: .3;
|
163
|
+
}
|
164
|
+
|
165
|
+
.pika-button:hover {
|
166
|
+
color: #fff !important;
|
167
|
+
background: #ff8000 !important;
|
168
|
+
box-shadow: none !important;
|
169
|
+
border-radius: 3px !important;
|
170
|
+
}
|
@@ -0,0 +1,170 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/*!
|
4
|
+
* Pikaday
|
5
|
+
* Copyright © 2012 David Bushell | BSD & MIT license | http://dbushell.com/
|
6
|
+
*/
|
7
|
+
|
8
|
+
.pika-single {
|
9
|
+
z-index: 9999;
|
10
|
+
display: block;
|
11
|
+
position: relative;
|
12
|
+
width: 240px;
|
13
|
+
padding: 8px;
|
14
|
+
color: #333;
|
15
|
+
background: #fff;
|
16
|
+
border: 1px solid #ccc;
|
17
|
+
border-bottom-color: #bbb;
|
18
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
19
|
+
}
|
20
|
+
|
21
|
+
.pika-single.is-hidden {
|
22
|
+
display: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
.pika-single.is-bound {
|
26
|
+
position: absolute;
|
27
|
+
box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
|
28
|
+
}
|
29
|
+
|
30
|
+
.pika-title {
|
31
|
+
position: relative;
|
32
|
+
text-align: center;
|
33
|
+
}
|
34
|
+
|
35
|
+
.pika-label {
|
36
|
+
display: inline-block;
|
37
|
+
*display: inline;
|
38
|
+
position: relative;
|
39
|
+
z-index: 9999;
|
40
|
+
overflow: hidden;
|
41
|
+
margin: 0;
|
42
|
+
padding: 5px 3px;
|
43
|
+
font-size: 14px;
|
44
|
+
line-height: 20px;
|
45
|
+
font-weight: bold;
|
46
|
+
background-color: #fff;
|
47
|
+
}
|
48
|
+
.pika-title select {
|
49
|
+
cursor: pointer;
|
50
|
+
position: absolute;
|
51
|
+
z-index: 9998;
|
52
|
+
margin: 0;
|
53
|
+
left: 0;
|
54
|
+
top: 5px;
|
55
|
+
opacity: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.pika-prev,
|
59
|
+
.pika-next {
|
60
|
+
display: block;
|
61
|
+
cursor: pointer;
|
62
|
+
position: relative;
|
63
|
+
outline: none;
|
64
|
+
border: 0;
|
65
|
+
padding: 0;
|
66
|
+
width: 20px;
|
67
|
+
height: 30px;
|
68
|
+
background-color: transparent;
|
69
|
+
background-position: center center;
|
70
|
+
background-repeat: no-repeat;
|
71
|
+
background-size: 75% 75%;
|
72
|
+
white-space: nowrap;
|
73
|
+
text-indent: 100%;
|
74
|
+
overflow: hidden;
|
75
|
+
opacity: .5;
|
76
|
+
*position: absolute;
|
77
|
+
*top: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
.pika-prev:hover,
|
81
|
+
.pika-next:hover {
|
82
|
+
opacity: 1;
|
83
|
+
}
|
84
|
+
|
85
|
+
.pika-prev,
|
86
|
+
.is-rtl .pika-next {
|
87
|
+
float: left;
|
88
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
|
89
|
+
*left: 0;
|
90
|
+
}
|
91
|
+
|
92
|
+
.pika-next,
|
93
|
+
.is-rtl .pika-prev {
|
94
|
+
float: right;
|
95
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
|
96
|
+
*right: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
.pika-prev.is-disabled,
|
100
|
+
.pika-next.is-disabled {
|
101
|
+
cursor: default;
|
102
|
+
opacity: .2;
|
103
|
+
}
|
104
|
+
|
105
|
+
.pika-select {
|
106
|
+
display: inline-block;
|
107
|
+
*display: inline;
|
108
|
+
}
|
109
|
+
|
110
|
+
.pika-table {
|
111
|
+
width: 100%;
|
112
|
+
border-collapse: collapse;
|
113
|
+
border-spacing: 0;
|
114
|
+
border: 0;
|
115
|
+
}
|
116
|
+
|
117
|
+
.pika-table th,
|
118
|
+
.pika-table td {
|
119
|
+
width: 14.285714285714286%;
|
120
|
+
}
|
121
|
+
|
122
|
+
.pika-table th {
|
123
|
+
color: #999;
|
124
|
+
font-size: 12px;
|
125
|
+
line-height: 25px;
|
126
|
+
font-weight: bold;
|
127
|
+
text-align: center;
|
128
|
+
}
|
129
|
+
|
130
|
+
.pika-button {
|
131
|
+
cursor: pointer;
|
132
|
+
display: block;
|
133
|
+
outline: none;
|
134
|
+
border: 0;
|
135
|
+
margin: 0;
|
136
|
+
width: 100%;
|
137
|
+
padding: 5px;
|
138
|
+
color: #666;
|
139
|
+
font-size: 12px;
|
140
|
+
line-height: 15px;
|
141
|
+
text-align: right;
|
142
|
+
background: #f5f5f5;
|
143
|
+
}
|
144
|
+
|
145
|
+
.is-today .pika-button {
|
146
|
+
color: #33aaff;
|
147
|
+
font-weight: bold;
|
148
|
+
}
|
149
|
+
|
150
|
+
.is-selected .pika-button {
|
151
|
+
color: #fff;
|
152
|
+
font-weight: bold;
|
153
|
+
background: #33aaff;
|
154
|
+
box-shadow: inset 0 1px 3px #178fe5;
|
155
|
+
border-radius: 3px;
|
156
|
+
}
|
157
|
+
|
158
|
+
.is-disabled .pika-button {
|
159
|
+
pointer-events: none;
|
160
|
+
cursor: default;
|
161
|
+
color: #999;
|
162
|
+
opacity: .3;
|
163
|
+
}
|
164
|
+
|
165
|
+
.pika-button:hover {
|
166
|
+
color: #fff !important;
|
167
|
+
background: #ff8000 !important;
|
168
|
+
box-shadow: none !important;
|
169
|
+
border-radius: 3px !important;
|
170
|
+
}
|
metadata
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pikaday-gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Christian Vuerings
|
9
|
+
- Scot Hacker
|
10
|
+
- Yu-Hung Lin
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: railties
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '3.1'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '3.1'
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: bundler
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 1.2.2
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.2.2
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: tzinfo
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: nokogiri
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ! '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
type: :development
|
73
|
+
prerelease: false
|
74
|
+
version_requirements: !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: coveralls
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
description: Include the Pikaday datepicker from @dbushell in your Rails projects
|
97
|
+
email:
|
98
|
+
- vueringschristian@gmail.com
|
99
|
+
- yuhung@yuhunglin.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- lib/pikaday-gem/version.rb
|
105
|
+
- lib/pikaday-gem.rb
|
106
|
+
- vendor/assets/javascripts/1.0.0/pikaday.js
|
107
|
+
- vendor/assets/javascripts/pikaday.js
|
108
|
+
- vendor/assets/stylesheets/1.0.0/pikaday.css
|
109
|
+
- vendor/assets/stylesheets/pikaday.css
|
110
|
+
- MIT-LICENSE
|
111
|
+
- Rakefile
|
112
|
+
- README.md
|
113
|
+
homepage: http://github.com/ets-berkeley-edu/pikaday-gem
|
114
|
+
licenses: []
|
115
|
+
post_install_message:
|
116
|
+
rdoc_options: []
|
117
|
+
require_paths:
|
118
|
+
- lib
|
119
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
segments:
|
126
|
+
- 0
|
127
|
+
hash: -2309618579996471806
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
segments:
|
135
|
+
- 0
|
136
|
+
hash: -2309618579996471806
|
137
|
+
requirements: []
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 1.8.24
|
140
|
+
signing_key:
|
141
|
+
specification_version: 3
|
142
|
+
summary: The Pikaday datepicker as a gem
|
143
|
+
test_files: []
|