timepiece 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timepiece/version.rb +1 -1
- metadata +2 -3
- data/app/assets/stylesheets/timepiece.css +0 -136
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 436d600f468b6a3f94909275d0fdf6fe0ecfb644
|
4
|
+
data.tar.gz: a474c8c380cdc3a45d0cee36f240c5dcfc66286f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a8f1efb19a40acb05dbc79bf218d2732dd805ab6fcb6153058c3609ed2ad1e5ab6f3a340627d716eeaf1f6325317527a2d169289fb2db4b9ca0045cfb2f3d6b
|
7
|
+
data.tar.gz: 29ecee2ef9155b8ade841fc004d0c5939bd5b4084d058df1f60fedee399e86e3b6811f4c57cbca232355c742180384fc14af98964e594158f2d7fc2e1eb6020d
|
data/lib/timepiece/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timepiece
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom Bruce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- README.rdoc
|
37
37
|
- Rakefile
|
38
38
|
- app/assets/javascripts/timepiece.js
|
39
|
-
- app/assets/stylesheets/timepiece.css
|
40
39
|
- app/controllers/timepiece_controller.rb
|
41
40
|
- app/helpers/timepiece_helper.rb
|
42
41
|
- config/routes.rb
|
@@ -1,136 +0,0 @@
|
|
1
|
-
/* CSS for the analogue clock version of timepiece, and maybe some optional styles for the digital. */
|
2
|
-
|
3
|
-
.timepiece-analog {
|
4
|
-
/*border:solid 1em;*/
|
5
|
-
/*border-color:#222;*/
|
6
|
-
border-radius: 50%;
|
7
|
-
background-color: #eee;
|
8
|
-
background-size: 88%;
|
9
|
-
position: relative;
|
10
|
-
height:0;
|
11
|
-
-ms-box-sizing:content-box;
|
12
|
-
-webkit-box-sizing:content-box;
|
13
|
-
box-sizing:content-box;
|
14
|
-
}
|
15
|
-
|
16
|
-
.timepiece-analog:after {
|
17
|
-
background: #d00;
|
18
|
-
border-radius: 50%;
|
19
|
-
content: "";
|
20
|
-
position: absolute;
|
21
|
-
left: 50%;
|
22
|
-
top: 50%;
|
23
|
-
-ms-transform: translate(-50%, -50%);
|
24
|
-
-webkit-transform: translate(-50%, -50%);
|
25
|
-
transform: translate(-50%, -50%);
|
26
|
-
width: 5%;
|
27
|
-
height: 5%;
|
28
|
-
z-index: 10;
|
29
|
-
}
|
30
|
-
|
31
|
-
.timepiece-analog-abbr {
|
32
|
-
color: #333;
|
33
|
-
font-family:Helvetica,Arial,sans-serif;
|
34
|
-
font-size:1.25em;
|
35
|
-
position: absolute;
|
36
|
-
left: 25%;
|
37
|
-
top: 50%;
|
38
|
-
-ms-transform: translate(-50%, -50%);
|
39
|
-
-webkit-transform: translate(-50%, -50%);
|
40
|
-
transform: translate(-50%, -50%);
|
41
|
-
z-index: 3;
|
42
|
-
}
|
43
|
-
|
44
|
-
.timepiece-minutes-container, .timepiece-hours-container, .timepiece-seconds-container {
|
45
|
-
position: absolute;
|
46
|
-
top: 0;
|
47
|
-
right: 0;
|
48
|
-
bottom: 0;
|
49
|
-
left: 0;
|
50
|
-
z-index:5;
|
51
|
-
}
|
52
|
-
|
53
|
-
.timepiece-analog-hours {
|
54
|
-
background: #333;
|
55
|
-
height: 25%; /**/
|
56
|
-
left: 48.75%;
|
57
|
-
position: absolute;
|
58
|
-
top: 25%; /**/
|
59
|
-
-ms-transform-origin: 50% 100%;
|
60
|
-
-webkit-transform-origin: 50% 100%;
|
61
|
-
transform-origin: 50% 100%;
|
62
|
-
width: 2.5%;
|
63
|
-
}
|
64
|
-
|
65
|
-
.timepiece-analog-minutes {
|
66
|
-
background: #333;
|
67
|
-
height: 40%; /**/
|
68
|
-
left: 49%;
|
69
|
-
position: absolute;
|
70
|
-
top: 10%; /**/
|
71
|
-
-ms-transform-origin: 50% 100%;
|
72
|
-
-webkit-transform-origin: 50% 100%;
|
73
|
-
transform-origin: 50% 100%;
|
74
|
-
width: 2%;
|
75
|
-
}
|
76
|
-
|
77
|
-
.timepiece-analog-seconds {
|
78
|
-
background: #d00;
|
79
|
-
height: 45%; /**/
|
80
|
-
left: 49.5%;
|
81
|
-
position: absolute;
|
82
|
-
top: 14%; /**/
|
83
|
-
-ms-transform-origin: 50% 80%;
|
84
|
-
-webkit-transform-origin: 50% 80%;
|
85
|
-
transform-origin: 50% 80%;
|
86
|
-
width: 1%;
|
87
|
-
z-index: 8;
|
88
|
-
}
|
89
|
-
|
90
|
-
/* Animation code - unused but kept for reference: */
|
91
|
-
/* We should animate the clocks into correct positions when the clock refreshes on page reentry. */
|
92
|
-
/*
|
93
|
-
@-webkit-keyframes rotate {
|
94
|
-
100% {-webkit-transform: rotateZ(360deg);}
|
95
|
-
}
|
96
|
-
|
97
|
-
.timepiece-hours-container {
|
98
|
-
-webkit-animation: rotate 43200s infinite linear;
|
99
|
-
}
|
100
|
-
.timepiece-minutes-container {
|
101
|
-
-webkit-animation: rotate 3600s infinite steps(60);
|
102
|
-
}
|
103
|
-
.timepiece-seconds-container {
|
104
|
-
-webkit-animation: rotate 60s infinite steps(60);
|
105
|
-
}
|
106
|
-
*/
|
107
|
-
|
108
|
-
.timepiece-analog-day{
|
109
|
-
/* border-color:#222; */
|
110
|
-
background-color:#eee;
|
111
|
-
}
|
112
|
-
.timepiece-analog-day:after, .timepiece-analog-day .timepiece-analog-seconds {
|
113
|
-
background: #d00;
|
114
|
-
}
|
115
|
-
.timepiece-analog-day .timepiece-analog-hours, .timepiece-analog-day .timepiece-analog-minutes {
|
116
|
-
background: #333;
|
117
|
-
}
|
118
|
-
|
119
|
-
.timepiece-analog-day .timepiece-analog-abbr {
|
120
|
-
color: #333;
|
121
|
-
}
|
122
|
-
|
123
|
-
.timepiece-analog-night .timepiece-analog-abbr {
|
124
|
-
color: #eee;
|
125
|
-
}
|
126
|
-
|
127
|
-
.timepiece-analog-night{
|
128
|
-
/* border-color:#222; */
|
129
|
-
background-color:#333;
|
130
|
-
}
|
131
|
-
.timepiece-analog-night:after, .timepiece-analog-night .timepiece-analog-seconds {
|
132
|
-
background: #d00;
|
133
|
-
}
|
134
|
-
.timepiece-analog-night .timepiece-analog-hours, .timepiece-analog-night .timepiece-analog-minutes {
|
135
|
-
background: #eee;
|
136
|
-
}
|