bootstrap-datepicker 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.hgignore +3 -0
- data/.hgtags +9 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +89 -0
- data/CONTRIBUTING.md +40 -0
- data/Gemfile +4 -0
- data/Gruntfile.js +165 -0
- data/LICENSE +202 -0
- data/README.md +24 -0
- data/Rakefile +1 -0
- data/bootstrap-datepicker.gemspec +26 -0
- data/bower.json +9 -0
- data/build/build.less +67 -0
- data/build/build3.less +71 -0
- data/build/build_standalone.less +61 -0
- data/build/build_standalone3.less +63 -0
- data/composer.json +19 -0
- data/css/datepicker.css +509 -0
- data/css/datepicker3.css +790 -0
- data/docs/Makefile +153 -0
- data/docs/REAME.md +8 -0
- data/docs/_static/demo_head.png +0 -0
- data/docs/conf.py +248 -0
- data/docs/events.rst +48 -0
- data/docs/i18n.rst +28 -0
- data/docs/index.rst +122 -0
- data/docs/keyboard.rst +30 -0
- data/docs/make.bat +190 -0
- data/docs/markup.rst +50 -0
- data/docs/methods.rst +156 -0
- data/docs/options.rst +191 -0
- data/js/bootstrap-datepicker.js +1609 -0
- data/js/locales/bootstrap-datepicker.ar.js +15 -0
- data/js/locales/bootstrap-datepicker.bg.js +14 -0
- data/js/locales/bootstrap-datepicker.ca.js +14 -0
- data/js/locales/bootstrap-datepicker.cs.js +15 -0
- data/js/locales/bootstrap-datepicker.cy.js +14 -0
- data/js/locales/bootstrap-datepicker.da.js +15 -0
- data/js/locales/bootstrap-datepicker.de.js +17 -0
- data/js/locales/bootstrap-datepicker.el.js +13 -0
- data/js/locales/bootstrap-datepicker.es.js +14 -0
- data/js/locales/bootstrap-datepicker.et.js +18 -0
- data/js/locales/bootstrap-datepicker.fa.js +17 -0
- data/js/locales/bootstrap-datepicker.fi.js +16 -0
- data/js/locales/bootstrap-datepicker.fr.js +17 -0
- data/js/locales/bootstrap-datepicker.gl.js +11 -0
- data/js/locales/bootstrap-datepicker.he.js +15 -0
- data/js/locales/bootstrap-datepicker.hr.js +13 -0
- data/js/locales/bootstrap-datepicker.hu.js +16 -0
- data/js/locales/bootstrap-datepicker.id.js +15 -0
- data/js/locales/bootstrap-datepicker.is.js +14 -0
- data/js/locales/bootstrap-datepicker.it.js +16 -0
- data/js/locales/bootstrap-datepicker.ja.js +15 -0
- data/js/locales/bootstrap-datepicker.ka.js +17 -0
- data/js/locales/bootstrap-datepicker.kk.js +15 -0
- data/js/locales/bootstrap-datepicker.kr.js +13 -0
- data/js/locales/bootstrap-datepicker.lt.js +16 -0
- data/js/locales/bootstrap-datepicker.lv.js +16 -0
- data/js/locales/bootstrap-datepicker.mk.js +15 -0
- data/js/locales/bootstrap-datepicker.ms.js +14 -0
- data/js/locales/bootstrap-datepicker.nb.js +14 -0
- data/js/locales/bootstrap-datepicker.nl-BE.js +17 -0
- data/js/locales/bootstrap-datepicker.nl.js +14 -0
- data/js/locales/bootstrap-datepicker.no.js +16 -0
- data/js/locales/bootstrap-datepicker.pl.js +15 -0
- data/js/locales/bootstrap-datepicker.pt-BR.js +15 -0
- data/js/locales/bootstrap-datepicker.pt.js +16 -0
- data/js/locales/bootstrap-datepicker.ro.js +15 -0
- data/js/locales/bootstrap-datepicker.rs-latin.js +14 -0
- data/js/locales/bootstrap-datepicker.rs.js +14 -0
- data/js/locales/bootstrap-datepicker.ru.js +15 -0
- data/js/locales/bootstrap-datepicker.sk.js +15 -0
- data/js/locales/bootstrap-datepicker.sl.js +14 -0
- data/js/locales/bootstrap-datepicker.sq.js +15 -0
- data/js/locales/bootstrap-datepicker.sv.js +16 -0
- data/js/locales/bootstrap-datepicker.sw.js +15 -0
- data/js/locales/bootstrap-datepicker.th.js +14 -0
- data/js/locales/bootstrap-datepicker.tr.js +16 -0
- data/js/locales/bootstrap-datepicker.ua.js +15 -0
- data/js/locales/bootstrap-datepicker.uk.js +14 -0
- data/js/locales/bootstrap-datepicker.vi.js +16 -0
- data/js/locales/bootstrap-datepicker.zh-CN.js +16 -0
- data/js/locales/bootstrap-datepicker.zh-TW.js +17 -0
- data/less/datepicker.less +265 -0
- data/less/datepicker3.less +252 -0
- data/lib/bootstrap-datepicker.rb +11 -0
- data/lib/bootstrap-datepicker/version.rb +9 -0
- data/package.json +32 -0
- data/sass/build_standalone-sass.scss +70 -0
- data/sass/datepicker.scss +270 -0
- data/test/Readme.md +9 -0
- data/test/less_test.js +19 -0
- data/test/scss_test.js +19 -0
- data/test/support/less.patch +4 -0
- data/test/support/scss.patch +493 -0
- data/tests/README.md +55 -0
- data/tests/_coverage.html +26 -0
- data/tests/assets/coverage.js +48 -0
- data/tests/assets/jquery-1.7.1.min.js +4 -0
- data/tests/assets/mock.js +26 -0
- data/tests/assets/qunit-logging.js +29 -0
- data/tests/assets/qunit.css +235 -0
- data/tests/assets/qunit.js +1669 -0
- data/tests/assets/utils.js +21 -0
- data/tests/run-qunit.js +157 -0
- data/tests/suites/calendar-weeks.js +48 -0
- data/tests/suites/component.js +202 -0
- data/tests/suites/data-api.js +114 -0
- data/tests/suites/events.js +306 -0
- data/tests/suites/formats.js +235 -0
- data/tests/suites/inline.js +28 -0
- data/tests/suites/keyboard_navigation/2011.js +92 -0
- data/tests/suites/keyboard_navigation/2012.js +468 -0
- data/tests/suites/keyboard_navigation/all.js +26 -0
- data/tests/suites/methods.js +78 -0
- data/tests/suites/mouse_navigation/2011.js +66 -0
- data/tests/suites/mouse_navigation/2012.js +251 -0
- data/tests/suites/mouse_navigation/all.js +33 -0
- data/tests/suites/noconflict.js +20 -0
- data/tests/suites/options.js +648 -0
- data/tests/tests.html +50 -0
- metadata +240 -0
@@ -0,0 +1,252 @@
|
|
1
|
+
/*!
|
2
|
+
* Datepicker for Bootstrap
|
3
|
+
*
|
4
|
+
* Copyright 2012 Stefan Petre
|
5
|
+
* Improvements by Andrew Rowls
|
6
|
+
* Licensed under the Apache License v2.0
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
*
|
9
|
+
*/
|
10
|
+
|
11
|
+
.datepicker {
|
12
|
+
padding: 4px;
|
13
|
+
border-radius: 4px;
|
14
|
+
&-inline {
|
15
|
+
width: 220px;
|
16
|
+
}
|
17
|
+
direction: ltr;
|
18
|
+
&&-rtl {
|
19
|
+
direction: rtl;
|
20
|
+
table tr td span {
|
21
|
+
float: right;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
&-dropdown {
|
25
|
+
top: 0;
|
26
|
+
left: 0;
|
27
|
+
&:before {
|
28
|
+
content: '';
|
29
|
+
display: inline-block;
|
30
|
+
border-left: 7px solid transparent;
|
31
|
+
border-right: 7px solid transparent;
|
32
|
+
border-bottom: 7px solid #ccc;
|
33
|
+
border-top: 0;
|
34
|
+
border-bottom-color: rgba(0,0,0,.2);
|
35
|
+
position: absolute;
|
36
|
+
}
|
37
|
+
&:after {
|
38
|
+
content: '';
|
39
|
+
display: inline-block;
|
40
|
+
border-left: 6px solid transparent;
|
41
|
+
border-right: 6px solid transparent;
|
42
|
+
border-bottom: 6px solid #fff;
|
43
|
+
border-top: 0;
|
44
|
+
position: absolute;
|
45
|
+
}
|
46
|
+
&.datepicker-orient-left:before { left: 6px; }
|
47
|
+
&.datepicker-orient-left:after { left: 7px; }
|
48
|
+
&.datepicker-orient-right:before { right: 6px; }
|
49
|
+
&.datepicker-orient-right:after { right: 7px; }
|
50
|
+
&.datepicker-orient-top:before { top: -7px; }
|
51
|
+
&.datepicker-orient-top:after { top: -6px; }
|
52
|
+
&.datepicker-orient-bottom:before {
|
53
|
+
bottom: -7px;
|
54
|
+
border-bottom: 0;
|
55
|
+
border-top: 7px solid #999;
|
56
|
+
}
|
57
|
+
&.datepicker-orient-bottom:after {
|
58
|
+
bottom: -6px;
|
59
|
+
border-bottom: 0;
|
60
|
+
border-top: 6px solid #fff;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
>div {
|
64
|
+
display: none;
|
65
|
+
}
|
66
|
+
&.days div.datepicker-days {
|
67
|
+
display: block;
|
68
|
+
}
|
69
|
+
&.months div.datepicker-months {
|
70
|
+
display: block;
|
71
|
+
}
|
72
|
+
&.years div.datepicker-years {
|
73
|
+
display: block;
|
74
|
+
}
|
75
|
+
table{
|
76
|
+
margin: 0;
|
77
|
+
-webkit-touch-callout: none;
|
78
|
+
-webkit-user-select: none;
|
79
|
+
-khtml-user-select: none;
|
80
|
+
-moz-user-select: none;
|
81
|
+
-ms-user-select: none;
|
82
|
+
user-select: none;
|
83
|
+
tr {
|
84
|
+
td, th {
|
85
|
+
text-align: center;
|
86
|
+
width: 30px;
|
87
|
+
height: 30px;
|
88
|
+
border-radius: 4px;
|
89
|
+
|
90
|
+
border: none;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
// Inline display inside a table presents some problems with
|
95
|
+
// border and background colors.
|
96
|
+
.table-striped & table tr {
|
97
|
+
td, th {
|
98
|
+
background-color:transparent;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
table tr td {
|
102
|
+
&.day:hover, &.day.focused {
|
103
|
+
background: @gray-lighter;
|
104
|
+
cursor: pointer;
|
105
|
+
}
|
106
|
+
&.old,
|
107
|
+
&.new {
|
108
|
+
color: @btn-link-disabled-color;
|
109
|
+
}
|
110
|
+
&.disabled,
|
111
|
+
&.disabled:hover {
|
112
|
+
background: none;
|
113
|
+
color: @btn-link-disabled-color;
|
114
|
+
cursor: default;
|
115
|
+
}
|
116
|
+
&.today,
|
117
|
+
&.today:hover,
|
118
|
+
&.today.disabled,
|
119
|
+
&.today.disabled:hover {
|
120
|
+
@today-bg: lighten(orange, 30%);
|
121
|
+
.button-variant(#000, @today-bg, darken(@today-bg, 20%));
|
122
|
+
}
|
123
|
+
&.today:hover:hover { // Thank bootstrap 2.0 for this selector...
|
124
|
+
// TODO: Bump min BS to 2.1, use @textColor in buttonBackground above
|
125
|
+
color: #000;
|
126
|
+
}
|
127
|
+
&.today.active:hover {
|
128
|
+
color: #fff;
|
129
|
+
}
|
130
|
+
&.range,
|
131
|
+
&.range:hover,
|
132
|
+
&.range.disabled,
|
133
|
+
&.range.disabled:hover {
|
134
|
+
background:@gray-lighter;
|
135
|
+
border-radius: 0;
|
136
|
+
}
|
137
|
+
&.range.today,
|
138
|
+
&.range.today:hover,
|
139
|
+
&.range.today.disabled,
|
140
|
+
&.range.today.disabled:hover {
|
141
|
+
@today-bg: mix(orange, @gray-lighter, 50%);
|
142
|
+
.button-variant(#000, @today-bg, darken(@today-bg, 20%));
|
143
|
+
border-radius: 0;
|
144
|
+
}
|
145
|
+
&.selected,
|
146
|
+
&.selected:hover,
|
147
|
+
&.selected.disabled,
|
148
|
+
&.selected.disabled:hover {
|
149
|
+
.button-variant(#fff, @gray-light, @gray);
|
150
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
151
|
+
}
|
152
|
+
&.active,
|
153
|
+
&.active:hover,
|
154
|
+
&.active.disabled,
|
155
|
+
&.active.disabled:hover {
|
156
|
+
.button-variant(@btn-primary-color, @btn-primary-bg, @btn-primary-border);
|
157
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
158
|
+
}
|
159
|
+
span {
|
160
|
+
display: block;
|
161
|
+
width: 23%;
|
162
|
+
height: 54px;
|
163
|
+
line-height: 54px;
|
164
|
+
float: left;
|
165
|
+
margin: 1%;
|
166
|
+
cursor: pointer;
|
167
|
+
border-radius: 4px;
|
168
|
+
&:hover {
|
169
|
+
background: @gray-lighter;
|
170
|
+
}
|
171
|
+
&.disabled,
|
172
|
+
&.disabled:hover {
|
173
|
+
background: none;
|
174
|
+
color: @btn-link-disabled-color;
|
175
|
+
cursor: default;
|
176
|
+
}
|
177
|
+
&.active,
|
178
|
+
&.active:hover,
|
179
|
+
&.active.disabled,
|
180
|
+
&.active.disabled:hover {
|
181
|
+
.button-variant(@btn-primary-color, @btn-primary-bg, @btn-primary-border);
|
182
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
183
|
+
}
|
184
|
+
&.old,
|
185
|
+
&.new {
|
186
|
+
color: @btn-link-disabled-color;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
th.datepicker-switch {
|
192
|
+
width: 145px;
|
193
|
+
}
|
194
|
+
|
195
|
+
thead tr:first-child th,
|
196
|
+
tfoot tr th {
|
197
|
+
cursor: pointer;
|
198
|
+
&:hover{
|
199
|
+
background: @gray-lighter;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
/*.dow {
|
203
|
+
border-top: 1px solid #ddd !important;
|
204
|
+
}*/
|
205
|
+
|
206
|
+
// Basic styling for calendar-week cells
|
207
|
+
.cw {
|
208
|
+
font-size: 10px;
|
209
|
+
width: 12px;
|
210
|
+
padding: 0 2px 0 5px;
|
211
|
+
vertical-align: middle;
|
212
|
+
}
|
213
|
+
thead tr:first-child th.cw {
|
214
|
+
cursor: default;
|
215
|
+
background-color: transparent;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
.input-group {
|
219
|
+
&.date {
|
220
|
+
.input-group-addon i {
|
221
|
+
cursor: pointer;
|
222
|
+
width: 16px;
|
223
|
+
height: 16px;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
.input-daterange {
|
228
|
+
input {
|
229
|
+
text-align:center;
|
230
|
+
}
|
231
|
+
input:first-child {
|
232
|
+
border-radius: 3px 0 0 3px;
|
233
|
+
}
|
234
|
+
input:last-child {
|
235
|
+
border-radius: 0 3px 3px 0;
|
236
|
+
}
|
237
|
+
.input-group-addon {
|
238
|
+
width: auto;
|
239
|
+
min-width: 16px;
|
240
|
+
padding: 4px 5px;
|
241
|
+
font-weight: normal;
|
242
|
+
line-height: @line-height-base;
|
243
|
+
text-align: center;
|
244
|
+
text-shadow: 0 1px 0 #fff;
|
245
|
+
vertical-align: middle;
|
246
|
+
background-color: @input-group-addon-bg;
|
247
|
+
border: solid @input-group-addon-border-color;
|
248
|
+
border-width: 1px 0;
|
249
|
+
margin-left:-5px;
|
250
|
+
margin-right:-5px;
|
251
|
+
}
|
252
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require "bootstrap/datepicker/version"
|
2
|
+
|
3
|
+
module Bootstrap
|
4
|
+
module Datepicker
|
5
|
+
def self.base_directory
|
6
|
+
File.expand_path('../../compass', __FILE__)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
Compass::Frameworks.register 'bootstrap-datepicker', :path => Bootstrap::Switch.base_directory
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module Bootstrap
|
2
|
+
module Datepicker
|
3
|
+
# This is updated via the `grunt bump` command, which has a pretty
|
4
|
+
# unflexible matching syntax.
|
5
|
+
VERSION_STRING = "'version': '1.1.1'"
|
6
|
+
# Then, just the version.
|
7
|
+
VERSION = VERSION_STRING.match(/\d+\.\d+\.\d+/)[0]
|
8
|
+
end
|
9
|
+
end
|
data/package.json
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"name": "bootstrap-datepicker",
|
3
|
+
"description": "A datepicker for Bootstrap.",
|
4
|
+
"version": "1.1.1",
|
5
|
+
"main": "js/bootstrap-datepicker.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "grunt test"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git://github.com/eternicode/bootstrap-datepicker.git"
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"bootstrap",
|
15
|
+
"datepicker"
|
16
|
+
],
|
17
|
+
"license": "Apache Version 2",
|
18
|
+
"readmeFilename": "README.md",
|
19
|
+
"devDependencies": {
|
20
|
+
"matchdep": "~0.3.0",
|
21
|
+
"diff": "~1.0.7",
|
22
|
+
"lodash": "~2.4.1",
|
23
|
+
"grunt": "~0.4.2",
|
24
|
+
"grunt-contrib-nodeunit": "~0.2.2",
|
25
|
+
"grunt-sed": "~0.1.1",
|
26
|
+
"grunt-contrib-compass": "~0.7.0",
|
27
|
+
"grunt-contrib-less": "~0.8.3",
|
28
|
+
"grunt-contrib-jshint": "~0.7.2",
|
29
|
+
"grunt-contrib-copy": "~0.4.1",
|
30
|
+
"grunt-bump": "0.0.11"
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
// Datepicker standalone .less buildfile. Includes all necessary mixins/variables/rules from bootstrap
|
2
|
+
// and imports the included datepicker.less to output a minimal standalone datepicker.css
|
3
|
+
//
|
4
|
+
// Usage:
|
5
|
+
// lessc build_standalone.less datepicker.css
|
6
|
+
//
|
7
|
+
// Variables, mixins, and rules copied from bootstrap 2.0.2
|
8
|
+
|
9
|
+
@import "datepicker";
|
10
|
+
|
11
|
+
// Dropdown css
|
12
|
+
|
13
|
+
$zindexDropdown: 1000 !default;
|
14
|
+
|
15
|
+
$grayDark: #333 !default;
|
16
|
+
|
17
|
+
$baseLineHeight: 20px !default;
|
18
|
+
|
19
|
+
$tableBackground: transparent !default;
|
20
|
+
// overall background-color
|
21
|
+
$dropdownBackground: $white !default;
|
22
|
+
|
23
|
+
$dropdownBorder: rgba(0,0,0,.2) !default;
|
24
|
+
|
25
|
+
$dropdownLinkColor: $grayDark !default;
|
26
|
+
|
27
|
+
$dropdownLinkColorHover: $white !default;
|
28
|
+
|
29
|
+
$dropdownLinkBackgroundHover: $linkColor !default;
|
30
|
+
|
31
|
+
|
32
|
+
// Drop shadows
|
33
|
+
@mixin box-shadow($shadow) {
|
34
|
+
-webkit-box-shadow: $shadow;
|
35
|
+
-moz-box-shadow: $shadow;
|
36
|
+
box-shadow: $shadow;
|
37
|
+
}
|
38
|
+
|
39
|
+
// The dropdown menu (ul)
|
40
|
+
// ----------------------
|
41
|
+
.datepicker.dropdown-menu {
|
42
|
+
position: absolute;
|
43
|
+
top: 100%;
|
44
|
+
left: 0;
|
45
|
+
z-index: $zindexDropdown;
|
46
|
+
float: left;
|
47
|
+
display: none; // none by default, but block on "open" of the menu
|
48
|
+
min-width: 160px;
|
49
|
+
list-style: none;
|
50
|
+
background-color: $dropdownBackground;
|
51
|
+
border: 1px solid #ccc;
|
52
|
+
border: 1px solid rgba(0,0,0,.2);
|
53
|
+
@include border-radius(5px);
|
54
|
+
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
55
|
+
-webkit-background-clip: padding-box;
|
56
|
+
-moz-background-clip: padding;
|
57
|
+
background-clip: padding-box;
|
58
|
+
*border-right-width: 2px;
|
59
|
+
*border-bottom-width: 2px;
|
60
|
+
|
61
|
+
// Normally inherited from bootstrap's `body`
|
62
|
+
color: #333333;
|
63
|
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
64
|
+
font-size:13px;
|
65
|
+
line-height: $baseLineHeight;
|
66
|
+
|
67
|
+
th, td {
|
68
|
+
padding: 4px 5px;
|
69
|
+
}
|
70
|
+
}
|
@@ -0,0 +1,270 @@
|
|
1
|
+
/*!
|
2
|
+
* Datepicker for Bootstrap
|
3
|
+
*
|
4
|
+
* Copyright 2012 Stefan Petre
|
5
|
+
* Improvements by Andrew Rowls
|
6
|
+
* Licensed under the Apache License v2.0
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
*
|
9
|
+
*/
|
10
|
+
|
11
|
+
@import "bootstrap/variables";
|
12
|
+
@import "bootstrap/mixins";
|
13
|
+
|
14
|
+
.datepicker {
|
15
|
+
padding: 4px;
|
16
|
+
@include border-radius(4px);
|
17
|
+
direction: ltr;
|
18
|
+
}
|
19
|
+
|
20
|
+
.datepicker-inline {
|
21
|
+
width: 220px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.datepicker {
|
25
|
+
&.datepicker-rtl {
|
26
|
+
direction: rtl;
|
27
|
+
table tr td span {
|
28
|
+
float: right;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.datepicker-dropdown {
|
34
|
+
top: 0;
|
35
|
+
left: 0;
|
36
|
+
&:before {
|
37
|
+
content: '';
|
38
|
+
display: inline-block;
|
39
|
+
border-left: 7px solid transparent;
|
40
|
+
border-right: 7px solid transparent;
|
41
|
+
border-bottom: 7px solid #ccc;
|
42
|
+
border-top: 0;
|
43
|
+
border-bottom-color: rgba(0,0,0,.2);
|
44
|
+
position: absolute;
|
45
|
+
}
|
46
|
+
&:after {
|
47
|
+
content: '';
|
48
|
+
display: inline-block;
|
49
|
+
border-left: 6px solid transparent;
|
50
|
+
border-right: 6px solid transparent;
|
51
|
+
border-bottom: 6px solid $white;
|
52
|
+
border-top: 0;
|
53
|
+
position: absolute;
|
54
|
+
}
|
55
|
+
&.datepicker-orient-left:before { left: 6px; }
|
56
|
+
&.datepicker-orient-left:after { left: 7px; }
|
57
|
+
&.datepicker-orient-right:before { right: 6px; }
|
58
|
+
&.datepicker-orient-right:after { right: 7px; }
|
59
|
+
&.datepicker-orient-top:before { top: -7px; }
|
60
|
+
&.datepicker-orient-top:after { top: -6px; }
|
61
|
+
&.datepicker-orient-bottom:before {
|
62
|
+
bottom: -7px;
|
63
|
+
border-bottom: 0;
|
64
|
+
border-top: 7px solid #999;
|
65
|
+
}
|
66
|
+
&.datepicker-orient-bottom:after {
|
67
|
+
bottom: -6px;
|
68
|
+
border-bottom: 0;
|
69
|
+
border-top: 6px solid $white;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.datepicker {
|
74
|
+
>div {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
&.days div.datepicker-days {
|
78
|
+
display: block;
|
79
|
+
}
|
80
|
+
&.months div.datepicker-months {
|
81
|
+
display: block;
|
82
|
+
}
|
83
|
+
&.years div.datepicker-years {
|
84
|
+
display: block;
|
85
|
+
}
|
86
|
+
table{
|
87
|
+
margin: 0;
|
88
|
+
-webkit-touch-callout: none;
|
89
|
+
-webkit-user-select: none;
|
90
|
+
-khtml-user-select: none;
|
91
|
+
-moz-user-select: none;
|
92
|
+
-ms-user-select: none;
|
93
|
+
user-select: none;
|
94
|
+
}
|
95
|
+
td,
|
96
|
+
th{
|
97
|
+
text-align: center;
|
98
|
+
width: 20px;
|
99
|
+
height: 20px;
|
100
|
+
@include border-radius(4px);
|
101
|
+
|
102
|
+
border: none;
|
103
|
+
}
|
104
|
+
// Inline display inside a table presents some problems with
|
105
|
+
// border and background colors.
|
106
|
+
.table-striped & table tr {
|
107
|
+
td, th {
|
108
|
+
background-color:transparent;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
table tr td {
|
112
|
+
&.day:hover, &.day.focused {
|
113
|
+
background: $grayLighter;
|
114
|
+
cursor: pointer;
|
115
|
+
}
|
116
|
+
&.old,
|
117
|
+
&.new {
|
118
|
+
color: $grayLight;
|
119
|
+
}
|
120
|
+
&.disabled,
|
121
|
+
&.disabled:hover {
|
122
|
+
background: none;
|
123
|
+
color: $grayLight;
|
124
|
+
cursor: default;
|
125
|
+
}
|
126
|
+
&.today,
|
127
|
+
&.today:hover,
|
128
|
+
&.today.disabled,
|
129
|
+
&.today.disabled:hover {
|
130
|
+
$todayBackground: lighten($orange, 30%) !default;
|
131
|
+
|
132
|
+
@include buttonBackground($todayBackground, adjust-hue($todayBackground, 20));
|
133
|
+
color: #000;
|
134
|
+
}
|
135
|
+
&.today:hover:hover { // Thank bootstrap 2.0 for this selector...
|
136
|
+
// TODO: Bump min BS to 2.1, use $textColor in buttonBackground above
|
137
|
+
color: #000;
|
138
|
+
}
|
139
|
+
&.today.active:hover {
|
140
|
+
color: #fff;
|
141
|
+
}
|
142
|
+
&.range,
|
143
|
+
&.range:hover,
|
144
|
+
&.range.disabled,
|
145
|
+
&.range.disabled:hover {
|
146
|
+
background:$grayLighter;
|
147
|
+
@include border-radius(0);
|
148
|
+
}
|
149
|
+
&.range.today,
|
150
|
+
&.range.today:hover,
|
151
|
+
&.range.today.disabled,
|
152
|
+
&.range.today.disabled:hover {
|
153
|
+
$todayBackground: mix($orange, $grayLighter, 50%) !default;
|
154
|
+
|
155
|
+
@include buttonBackground($todayBackground, adjust-hue($todayBackground, 20));
|
156
|
+
@include border-radius(0);
|
157
|
+
}
|
158
|
+
&.selected,
|
159
|
+
&.selected:hover,
|
160
|
+
&.selected.disabled,
|
161
|
+
&.selected.disabled:hover {
|
162
|
+
@include buttonBackground(lighten($grayLight, 10), darken($grayLight, 10));
|
163
|
+
color: #fff;
|
164
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
165
|
+
}
|
166
|
+
&.active,
|
167
|
+
&.active:hover,
|
168
|
+
&.active.disabled,
|
169
|
+
&.active.disabled:hover {
|
170
|
+
@include buttonBackground($btnPrimaryBackground, adjust-hue($btnPrimaryBackground, 20));
|
171
|
+
color: #fff;
|
172
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
173
|
+
}
|
174
|
+
span {
|
175
|
+
display: block;
|
176
|
+
width: 23%;
|
177
|
+
height: 54px;
|
178
|
+
line-height: 54px;
|
179
|
+
float: left;
|
180
|
+
margin: 1%;
|
181
|
+
cursor: pointer;
|
182
|
+
@include border-radius(4px);
|
183
|
+
&:hover {
|
184
|
+
background: $grayLighter;
|
185
|
+
}
|
186
|
+
&.disabled,
|
187
|
+
&.disabled:hover {
|
188
|
+
background:none;
|
189
|
+
color: $grayLight;
|
190
|
+
cursor: default;
|
191
|
+
}
|
192
|
+
&.active,
|
193
|
+
&.active:hover,
|
194
|
+
&.active.disabled,
|
195
|
+
&.active.disabled:hover {
|
196
|
+
@include buttonBackground($btnPrimaryBackground, adjust-hue($btnPrimaryBackground, 20));
|
197
|
+
color: #fff;
|
198
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
199
|
+
}
|
200
|
+
&.old,
|
201
|
+
&.new {
|
202
|
+
color: $grayLight;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
th.datepicker-switch {
|
208
|
+
width: 145px;
|
209
|
+
}
|
210
|
+
|
211
|
+
thead tr:first-child th,
|
212
|
+
tfoot tr th {
|
213
|
+
cursor: pointer;
|
214
|
+
&:hover{
|
215
|
+
background: $grayLighter;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
// .dow {
|
219
|
+
// border-top: 1px solid #ddd !important;
|
220
|
+
// }
|
221
|
+
|
222
|
+
// Basic styling for calendar-week cells
|
223
|
+
.cw {
|
224
|
+
font-size: 10px;
|
225
|
+
width: 12px;
|
226
|
+
padding: 0 2px 0 5px;
|
227
|
+
vertical-align: middle;
|
228
|
+
}
|
229
|
+
thead tr:first-child th.cw {
|
230
|
+
cursor: default;
|
231
|
+
background-color: transparent;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
.input-append,
|
235
|
+
.input-prepend {
|
236
|
+
&.date {
|
237
|
+
.add-on i {
|
238
|
+
cursor: pointer;
|
239
|
+
width: 16px;
|
240
|
+
height: 16px;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
.input-daterange {
|
245
|
+
input {
|
246
|
+
text-align:center;
|
247
|
+
}
|
248
|
+
input:first-child {
|
249
|
+
@include border-radius(3px 0 0 3px);
|
250
|
+
}
|
251
|
+
input:last-child {
|
252
|
+
@include border-radius(0 3px 3px 0);
|
253
|
+
}
|
254
|
+
.add-on {
|
255
|
+
display: inline-block;
|
256
|
+
width: auto;
|
257
|
+
min-width: 16px;
|
258
|
+
height: $baseLineHeight;
|
259
|
+
padding: 4px 5px;
|
260
|
+
font-weight: normal;
|
261
|
+
line-height: $baseLineHeight;
|
262
|
+
text-align: center;
|
263
|
+
text-shadow: 0 1px 0 $white;
|
264
|
+
vertical-align: middle;
|
265
|
+
background-color: $grayLighter;
|
266
|
+
border: 1px solid #ccc;
|
267
|
+
margin-left:-5px;
|
268
|
+
margin-right:-5px;
|
269
|
+
}
|
270
|
+
}
|