pikaday-gem 1.2.0 → 1.4.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,221 @@
1
+ @charset "UTF-8";
2
+
3
+ /*!
4
+ * Pikaday
5
+ * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/
6
+ */
7
+
8
+ .pika-single {
9
+ z-index: 9999;
10
+ display: block;
11
+ position: relative;
12
+ color: #333;
13
+ background: #fff;
14
+ border: 1px solid #ccc;
15
+ border-bottom-color: #bbb;
16
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
17
+ }
18
+
19
+ /*
20
+ clear child float (pika-lendar), using the famous micro clearfix hack
21
+ http://nicolasgallagher.com/micro-clearfix-hack/
22
+ */
23
+ .pika-single:before,
24
+ .pika-single:after {
25
+ content: " ";
26
+ display: table;
27
+ }
28
+ .pika-single:after { clear: both }
29
+ .pika-single { *zoom: 1 }
30
+
31
+ .pika-single.is-hidden {
32
+ display: none;
33
+ }
34
+
35
+ .pika-single.is-bound {
36
+ position: absolute;
37
+ box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
38
+ }
39
+
40
+ .pika-lendar {
41
+ float: left;
42
+ width: 240px;
43
+ margin: 8px;
44
+ }
45
+
46
+ .pika-title {
47
+ position: relative;
48
+ text-align: center;
49
+ }
50
+
51
+ .pika-label {
52
+ display: inline-block;
53
+ *display: inline;
54
+ position: relative;
55
+ z-index: 9999;
56
+ overflow: hidden;
57
+ margin: 0;
58
+ padding: 5px 3px;
59
+ font-size: 14px;
60
+ line-height: 20px;
61
+ font-weight: bold;
62
+ background-color: #fff;
63
+ }
64
+ .pika-title select {
65
+ cursor: pointer;
66
+ position: absolute;
67
+ z-index: 9998;
68
+ margin: 0;
69
+ left: 0;
70
+ top: 5px;
71
+ filter: alpha(opacity=0);
72
+ opacity: 0;
73
+ }
74
+
75
+ .pika-prev,
76
+ .pika-next {
77
+ display: block;
78
+ cursor: pointer;
79
+ position: relative;
80
+ outline: none;
81
+ border: 0;
82
+ padding: 0;
83
+ width: 20px;
84
+ height: 30px;
85
+ /* hide text using text-indent trick, using width value (it's enough) */
86
+ text-indent: 20px;
87
+ white-space: nowrap;
88
+ overflow: hidden;
89
+ background-color: transparent;
90
+ background-position: center center;
91
+ background-repeat: no-repeat;
92
+ background-size: 75% 75%;
93
+ opacity: .5;
94
+ *position: absolute;
95
+ *top: 0;
96
+ }
97
+
98
+ .pika-prev:hover,
99
+ .pika-next:hover {
100
+ opacity: 1;
101
+ }
102
+
103
+ .pika-prev,
104
+ .is-rtl .pika-next {
105
+ float: left;
106
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
107
+ *left: 0;
108
+ }
109
+
110
+ .pika-next,
111
+ .is-rtl .pika-prev {
112
+ float: right;
113
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
114
+ *right: 0;
115
+ }
116
+
117
+ .pika-prev.is-disabled,
118
+ .pika-next.is-disabled {
119
+ cursor: default;
120
+ opacity: .2;
121
+ }
122
+
123
+ .pika-select {
124
+ display: inline-block;
125
+ *display: inline;
126
+ }
127
+
128
+ .pika-table {
129
+ width: 100%;
130
+ border-collapse: collapse;
131
+ border-spacing: 0;
132
+ border: 0;
133
+ }
134
+
135
+ .pika-table th,
136
+ .pika-table td {
137
+ width: 14.285714285714286%;
138
+ padding: 0;
139
+ }
140
+
141
+ .pika-table th {
142
+ color: #999;
143
+ font-size: 12px;
144
+ line-height: 25px;
145
+ font-weight: bold;
146
+ text-align: center;
147
+ }
148
+
149
+ .pika-button {
150
+ cursor: pointer;
151
+ display: block;
152
+ box-sizing: border-box;
153
+ -moz-box-sizing: border-box;
154
+ outline: none;
155
+ border: 0;
156
+ margin: 0;
157
+ width: 100%;
158
+ padding: 5px;
159
+ color: #666;
160
+ font-size: 12px;
161
+ line-height: 15px;
162
+ text-align: right;
163
+ background: #f5f5f5;
164
+ }
165
+
166
+ .pika-week {
167
+ font-size: 11px;
168
+ color: #999;
169
+ }
170
+
171
+ .is-today .pika-button {
172
+ color: #33aaff;
173
+ font-weight: bold;
174
+ }
175
+
176
+ .is-selected .pika-button {
177
+ color: #fff;
178
+ font-weight: bold;
179
+ background: #33aaff;
180
+ box-shadow: inset 0 1px 3px #178fe5;
181
+ border-radius: 3px;
182
+ }
183
+
184
+ .is-inrange .pika-button {
185
+ background: #D5E9F7;
186
+ }
187
+
188
+ .is-startrange .pika-button {
189
+ color: #fff;
190
+ background: #6CB31D;
191
+ box-shadow: none;
192
+ border-radius: 3px;
193
+ }
194
+
195
+ .is-endrange .pika-button {
196
+ color: #fff;
197
+ background: #33aaff;
198
+ box-shadow: none;
199
+ border-radius: 3px;
200
+ }
201
+
202
+ .is-disabled .pika-button {
203
+ pointer-events: none;
204
+ cursor: default;
205
+ color: #999;
206
+ opacity: .3;
207
+ }
208
+
209
+ .pika-button:hover {
210
+ color: #fff;
211
+ background: #ff8000;
212
+ box-shadow: none;
213
+ border-radius: 3px;
214
+ }
215
+
216
+ /* styling for abbr */
217
+ .pika-table abbr {
218
+ border-bottom: none;
219
+ cursor: help;
220
+ }
221
+
@@ -9,8 +9,6 @@
9
9
  z-index: 9999;
10
10
  display: block;
11
11
  position: relative;
12
- width: 240px;
13
- padding: 8px;
14
12
  color: #333;
15
13
  background: #fff;
16
14
  border: 1px solid #ccc;
@@ -18,6 +16,18 @@
18
16
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
19
17
  }
20
18
 
19
+ /*
20
+ clear child float (pika-lendar), using the famous micro clearfix hack
21
+ http://nicolasgallagher.com/micro-clearfix-hack/
22
+ */
23
+ .pika-single:before,
24
+ .pika-single:after {
25
+ content: " ";
26
+ display: table;
27
+ }
28
+ .pika-single:after { clear: both }
29
+ .pika-single { *zoom: 1 }
30
+
21
31
  .pika-single.is-hidden {
22
32
  display: none;
23
33
  }
@@ -27,6 +37,12 @@
27
37
  box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
28
38
  }
29
39
 
40
+ .pika-lendar {
41
+ float: left;
42
+ width: 240px;
43
+ margin: 8px;
44
+ }
45
+
30
46
  .pika-title {
31
47
  position: relative;
32
48
  text-align: center;
@@ -133,6 +149,8 @@
133
149
  .pika-button {
134
150
  cursor: pointer;
135
151
  display: block;
152
+ box-sizing: border-box;
153
+ -moz-box-sizing: border-box;
136
154
  outline: none;
137
155
  border: 0;
138
156
  margin: 0;
@@ -145,6 +163,11 @@
145
163
  background: #f5f5f5;
146
164
  }
147
165
 
166
+ .pika-week {
167
+ font-size: 11px;
168
+ color: #999;
169
+ }
170
+
148
171
  .is-today .pika-button {
149
172
  color: #33aaff;
150
173
  font-weight: bold;
@@ -158,6 +181,24 @@
158
181
  border-radius: 3px;
159
182
  }
160
183
 
184
+ .is-inrange .pika-button {
185
+ background: #D5E9F7;
186
+ }
187
+
188
+ .is-startrange .pika-button {
189
+ color: #fff;
190
+ background: #6CB31D;
191
+ box-shadow: none;
192
+ border-radius: 3px;
193
+ }
194
+
195
+ .is-endrange .pika-button {
196
+ color: #fff;
197
+ background: #33aaff;
198
+ box-shadow: none;
199
+ border-radius: 3px;
200
+ }
201
+
161
202
  .is-disabled .pika-button {
162
203
  pointer-events: none;
163
204
  cursor: default;
@@ -166,8 +207,15 @@
166
207
  }
167
208
 
168
209
  .pika-button:hover {
169
- color: #fff !important;
170
- background: #ff8000 !important;
171
- box-shadow: none !important;
172
- border-radius: 3px !important;
173
- }
210
+ color: #fff;
211
+ background: #ff8000;
212
+ box-shadow: none;
213
+ border-radius: 3px;
214
+ }
215
+
216
+ /* styling for abbr */
217
+ .pika-table abbr {
218
+ border-bottom: none;
219
+ cursor: help;
220
+ }
221
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pikaday-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Vuerings
@@ -10,34 +10,34 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-28 00:00:00.000000000 Z
13
+ date: 2016-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ! '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  version: '3.1'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: bundler
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ! '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.2.2
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ! '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.2.2
43
43
  description: Include the Pikaday datepicker from @dbushell in your Rails projects
@@ -56,10 +56,12 @@ files:
56
56
  - vendor/assets/javascripts/1.0.0/pikaday.js
57
57
  - vendor/assets/javascripts/1.1.0/pikaday.js
58
58
  - vendor/assets/javascripts/1.2.0/pikaday.js
59
+ - vendor/assets/javascripts/1.4.0/pikaday.js
59
60
  - vendor/assets/javascripts/pikaday.js
60
61
  - vendor/assets/stylesheets/1.0.0/pikaday.css
61
62
  - vendor/assets/stylesheets/1.1.0/pikaday.css
62
63
  - vendor/assets/stylesheets/1.2.0/pikaday.css
64
+ - vendor/assets/stylesheets/1.4.0/pikaday.css
63
65
  - vendor/assets/stylesheets/pikaday.css
64
66
  homepage: http://github.com/ets-berkeley-edu/pikaday-gem
65
67
  licenses: []
@@ -70,17 +72,17 @@ require_paths:
70
72
  - lib
71
73
  required_ruby_version: !ruby/object:Gem::Requirement
72
74
  requirements:
73
- - - ! '>='
75
+ - - ">="
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0'
76
78
  required_rubygems_version: !ruby/object:Gem::Requirement
77
79
  requirements:
78
- - - ! '>='
80
+ - - ">="
79
81
  - !ruby/object:Gem::Version
80
82
  version: '0'
81
83
  requirements: []
82
84
  rubyforge_project:
83
- rubygems_version: 2.2.2
85
+ rubygems_version: 2.5.1
84
86
  signing_key:
85
87
  specification_version: 4
86
88
  summary: The Pikaday datepicker as a gem