bootstrap-timepicker-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -6,6 +6,7 @@ task 'update' do
|
|
6
6
|
system("rm -rf bootstrap-timepicker-src")
|
7
7
|
system("git clone git://github.com/jdewit/bootstrap-timepicker.git bootstrap-timepicker-src")
|
8
8
|
system("cp bootstrap-timepicker-src/less/timepicker.less vendor/assets/stylesheets/bootstrap-timepicker.less")
|
9
|
+
system("lessc vendor/assets/stylesheets/bootstrap-timepicker.less > vendor/assets/stylesheets/bootstrap-timepicker.css")
|
9
10
|
system("cp bootstrap-timepicker-src/js/bootstrap-timepicker.js vendor/assets/javascripts/bootstrap-timepicker.js")
|
10
11
|
system("git status")
|
11
12
|
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
/*!
|
2
|
+
* Timepicker for Bootstrap
|
3
|
+
*
|
4
|
+
* Copyright 2012 Joris de Wit, Stefan Petre, Andrew Rowls
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
.bootstrap-timepicker.dropdown-menu {
|
10
|
+
top: 0;
|
11
|
+
left: 0;
|
12
|
+
padding: 4px;
|
13
|
+
margin-top: 1px;
|
14
|
+
-webkit-border-radius: 4px;
|
15
|
+
-moz-border-radius: 4px;
|
16
|
+
border-radius: 4px;
|
17
|
+
display: none;
|
18
|
+
}
|
19
|
+
.bootstrap-timepicker.dropdown-menu.open {
|
20
|
+
display: inline-block;
|
21
|
+
}
|
22
|
+
.bootstrap-timepicker.dropdown-menu:before {
|
23
|
+
content: '';
|
24
|
+
border-left: 7px solid transparent;
|
25
|
+
border-right: 7px solid transparent;
|
26
|
+
border-bottom: 7px solid #ccc;
|
27
|
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
28
|
+
position: absolute;
|
29
|
+
top: -7px;
|
30
|
+
left: 6px;
|
31
|
+
}
|
32
|
+
.bootstrap-timepicker.dropdown-menu:after {
|
33
|
+
content: '';
|
34
|
+
border-left: 6px solid transparent;
|
35
|
+
border-right: 6px solid transparent;
|
36
|
+
border-bottom: 6px solid #ffffff;
|
37
|
+
position: absolute;
|
38
|
+
top: -6px;
|
39
|
+
left: 7px;
|
40
|
+
}
|
41
|
+
.bootstrap-timepicker.modal {
|
42
|
+
top: 30%;
|
43
|
+
margin-top: 0;
|
44
|
+
width: 200px;
|
45
|
+
margin-left: -100px;
|
46
|
+
}
|
47
|
+
.bootstrap-timepicker.modal .modal-content {
|
48
|
+
padding: 0;
|
49
|
+
}
|
50
|
+
.bootstrap-timepicker table {
|
51
|
+
width: 100%;
|
52
|
+
margin: 0;
|
53
|
+
}
|
54
|
+
.bootstrap-timepicker td,
|
55
|
+
.bootstrap-timepicker th {
|
56
|
+
text-align: center;
|
57
|
+
height: 20px;
|
58
|
+
-webkit-border-radius: 4px;
|
59
|
+
-moz-border-radius: 4px;
|
60
|
+
border-radius: 4px;
|
61
|
+
}
|
62
|
+
.bootstrap-timepicker td.separator {
|
63
|
+
width: 1px;
|
64
|
+
}
|
65
|
+
.bootstrap-timepicker td a {
|
66
|
+
border: 1px transparent solid;
|
67
|
+
display: block;
|
68
|
+
margin: 4px;
|
69
|
+
padding: 4px 0;
|
70
|
+
}
|
71
|
+
.bootstrap-timepicker td a:hover {
|
72
|
+
background-color: #eee;
|
73
|
+
-webkit-border-radius: 4px;
|
74
|
+
-moz-border-radius: 4px;
|
75
|
+
border-radius: 4px;
|
76
|
+
border-color: #ddd;
|
77
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-timepicker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/bootstrap-timepicker-rails/railtie.rb
|
77
77
|
- lib/bootstrap-timepicker-rails/version.rb
|
78
78
|
- vendor/assets/javascripts/bootstrap-timepicker.js
|
79
|
+
- vendor/assets/stylesheets/bootstrap-timepicker.css
|
79
80
|
- vendor/assets/stylesheets/bootstrap-timepicker.less
|
80
81
|
- vendor/assets/stylesheets/timepicker.less
|
81
82
|
homepage: https://github.com/jdewit/bootstrap-timepicker
|