less-rails-bootstrap-datepicker 1.4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +7 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +47 -0
- data/app/assets/javascripts/bootstrap-datepicker/bootstrap-datepicker.js +2 -0
- data/app/assets/javascripts/bootstrap-datepicker/core.js +1782 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ar.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.az.js +12 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bg.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.bs.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ca.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js +18 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.cy.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.da.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.de.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.el.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.en-GB.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.es.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.et.js +18 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.eu.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fa.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fi.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fo.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fr-CH.js +20 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.fr.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.gl.js +13 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.he.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hr.js +13 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hu.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.hy.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.id.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.is.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.it-CH.js +20 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.it.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ja.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ka.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kh.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kk.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.kr.js +13 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.lt.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.lv.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.me.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.mk.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nb.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl-BE.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.nl.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.no.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pl.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pt-BR.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.pt.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ro.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.rs-latin.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.rs.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.ru.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sk.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sl.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sq.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sr-latin.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sr.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.sw.js +15 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.th.js +14 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.tr.js +18 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.uk.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.vi.js +16 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js +17 -0
- data/app/assets/javascripts/bootstrap-datepicker/locales/bootstrap-datepicker.zh-TW.js +17 -0
- data/app/assets/stylesheets/bootstrap-datepicker/datepicker.less +239 -0
- data/app/assets/stylesheets/bootstrap-datepicker/datepicker3.less +230 -0
- data/less-rails-bootstrap-datepicker.gemspec +27 -0
- data/lib/less/rails/bootstrap/datepicker.rb +12 -0
- data/lib/less/rails/bootstrap/datepicker/engine.rb +15 -0
- data/lib/less/rails/bootstrap/datepicker/version.rb +9 -0
- metadata +219 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Serbian latin translation for bootstrap-datepicker
|
3
|
+
* Bojan Milosavlević <milboj@gmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['sr-latin'] = {
|
7
|
+
days: ["Nedelja","Ponedeljak", "Utorak", "Sreda", "Četvrtak", "Petak", "Subota", "Nedelja"],
|
8
|
+
daysShort: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub", "Ned"],
|
9
|
+
daysMin: ["N", "Po", "U", "Sr", "Č", "Pe", "Su", "N"],
|
10
|
+
months: ["Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"],
|
11
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Avg", "Sep", "Okt", "Nov", "Dec"],
|
12
|
+
today: "Danas",
|
13
|
+
weekStart: 1,
|
14
|
+
format: "dd.mm.yyyy"
|
15
|
+
};
|
16
|
+
}(jQuery));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Serbian cyrillic translation for bootstrap-datepicker
|
3
|
+
* Bojan Milosavlević <milboj@gmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['sr'] = {
|
7
|
+
days: ["Недеља","Понедељак", "Уторак", "Среда", "Четвртак", "Петак", "Субота", "Недеља"],
|
8
|
+
daysShort: ["Нед", "Пон", "Уто", "Сре", "Чет", "Пет", "Суб", "Нед"],
|
9
|
+
daysMin: ["Н", "По", "У", "Ср", "Ч", "Пе", "Су", "Н"],
|
10
|
+
months: ["Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар"],
|
11
|
+
monthsShort: ["Јан", "Феб", "Мар", "Апр", "Мај", "Јун", "Јул", "Авг", "Сеп", "Окт", "Нов", "Дец"],
|
12
|
+
today: "Данас",
|
13
|
+
weekStart: 1,
|
14
|
+
format: "dd.mm.yyyy"
|
15
|
+
};
|
16
|
+
}(jQuery));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Swedish translation for bootstrap-datepicker
|
3
|
+
* Patrik Ragnarsson <patrik@starkast.net>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['sv'] = {
|
7
|
+
days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag", "Söndag"],
|
8
|
+
daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör", "Sön"],
|
9
|
+
daysMin: ["Sö", "Må", "Ti", "On", "To", "Fr", "Lö", "Sö"],
|
10
|
+
months: ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"],
|
11
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
12
|
+
today: "Idag",
|
13
|
+
format: "yyyy-mm-dd",
|
14
|
+
weekStart: 1,
|
15
|
+
clear: "Rensa"
|
16
|
+
};
|
17
|
+
}(jQuery));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Swahili translation for bootstrap-datepicker
|
3
|
+
* Edwin Mugendi <https://github.com/edwinmugendi>
|
4
|
+
* Source: http://scriptsource.org/cms/scripts/page.php?item_id=entry_detail&uid=xnfaqyzcku
|
5
|
+
*/
|
6
|
+
;(function($){
|
7
|
+
$.fn.datepicker.dates['sw'] = {
|
8
|
+
days: ["Jumapili", "Jumatatu", "Jumanne", "Jumatano", "Alhamisi", "Ijumaa", "Jumamosi", "Jumapili"],
|
9
|
+
daysShort: ["J2", "J3", "J4", "J5", "Alh", "Ij", "J1", "J2"],
|
10
|
+
daysMin: ["2", "3", "4", "5", "A", "I", "1", "2"],
|
11
|
+
months: ["Januari", "Februari", "Machi", "Aprili", "Mei", "Juni", "Julai", "Agosti", "Septemba", "Oktoba", "Novemba", "Desemba"],
|
12
|
+
monthsShort: ["Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ago", "Sep", "Okt", "Nov", "Des"],
|
13
|
+
today: "Leo"
|
14
|
+
};
|
15
|
+
}(jQuery));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* Thai translation for bootstrap-datepicker
|
3
|
+
* Suchau Jiraprapot <seroz24@gmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['th'] = {
|
7
|
+
days: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์", "อาทิตย์"],
|
8
|
+
daysShort: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
|
9
|
+
daysMin: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
|
10
|
+
months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
|
11
|
+
monthsShort: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
|
12
|
+
today: "วันนี้"
|
13
|
+
};
|
14
|
+
}(jQuery));
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Turkish translation for bootstrap-datepicker
|
3
|
+
* Serkan Algur <kaisercrazy_2@hotmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['tr'] = {
|
7
|
+
days: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar"],
|
8
|
+
daysShort: ["Pz", "Pzt", "Sal", "Çrş", "Prş", "Cu", "Cts", "Pz"],
|
9
|
+
daysMin: ["Pz", "Pzt", "Sa", "Çr", "Pr", "Cu", "Ct", "Pz"],
|
10
|
+
months: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"],
|
11
|
+
monthsShort: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"],
|
12
|
+
today: "Bugün",
|
13
|
+
clear: "Temizle",
|
14
|
+
weekStart: 1,
|
15
|
+
format: "dd.mm.yyyy"
|
16
|
+
};
|
17
|
+
}(jQuery));
|
18
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Ukrainian translation for bootstrap-datepicker
|
3
|
+
* Igor Polynets
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['uk'] = {
|
7
|
+
days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота", "Неділя"],
|
8
|
+
daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб", "Нед"],
|
9
|
+
daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Нд"],
|
10
|
+
months: ["Cічень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень"],
|
11
|
+
monthsShort: ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"],
|
12
|
+
today: "Сьогодні",
|
13
|
+
clear: "Очистити",
|
14
|
+
format: "dd.mm.yyyy",
|
15
|
+
weekStart: 1
|
16
|
+
};
|
17
|
+
}(jQuery));
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Vietnamese translation for bootstrap-datepicker
|
3
|
+
* An Vo <https://github.com/anvoz/>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['vi'] = {
|
7
|
+
days: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy", "Chủ nhật"],
|
8
|
+
daysShort: ["CN", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7", "CN"],
|
9
|
+
daysMin: ["CN", "T2", "T3", "T4", "T5", "T6", "T7", "CN"],
|
10
|
+
months: ["Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"],
|
11
|
+
monthsShort: ["Th1", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7", "Th8", "Th9", "Th10", "Th11", "Th12"],
|
12
|
+
today: "Hôm nay",
|
13
|
+
clear: "Xóa",
|
14
|
+
format: "dd/mm/yyyy"
|
15
|
+
};
|
16
|
+
}(jQuery));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Simplified Chinese translation for bootstrap-datepicker
|
3
|
+
* Yuan Cheung <advanimal@gmail.com>
|
4
|
+
*/
|
5
|
+
;(function($){
|
6
|
+
$.fn.datepicker.dates['zh-CN'] = {
|
7
|
+
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
|
8
|
+
daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
|
9
|
+
daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
|
10
|
+
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
11
|
+
monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
12
|
+
today: "今日",
|
13
|
+
format: "yyyy年mm月dd日",
|
14
|
+
weekStart: 1,
|
15
|
+
clear: "清空"
|
16
|
+
};
|
17
|
+
}(jQuery));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* Traditional Chinese translation for bootstrap-datepicker
|
3
|
+
* Rung-Sheng Jang <daniel@i-trend.co.cc>
|
4
|
+
* FrankWu <frankwu100@gmail.com> Fix more appropriate use of Traditional Chinese habit
|
5
|
+
*/
|
6
|
+
;(function($){
|
7
|
+
$.fn.datepicker.dates['zh-TW'] = {
|
8
|
+
days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
|
9
|
+
daysShort: ["週日", "週一", "週二", "週三", "週四", "週五", "週六", "週日"],
|
10
|
+
daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
|
11
|
+
months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
12
|
+
monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
13
|
+
today: "今天",
|
14
|
+
format: "yyyy年mm月dd日",
|
15
|
+
weekStart: 1
|
16
|
+
};
|
17
|
+
}(jQuery));
|
@@ -0,0 +1,239 @@
|
|
1
|
+
.datepicker {
|
2
|
+
padding: 4px;
|
3
|
+
.border-radius(4px);
|
4
|
+
&-inline {
|
5
|
+
width: 220px;
|
6
|
+
}
|
7
|
+
direction: ltr;
|
8
|
+
&&-rtl {
|
9
|
+
direction: rtl;
|
10
|
+
table tr td span {
|
11
|
+
float: right;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
&-dropdown {
|
15
|
+
top: 0;
|
16
|
+
left: 0;
|
17
|
+
&:before {
|
18
|
+
content: '';
|
19
|
+
display: inline-block;
|
20
|
+
border-left: 7px solid transparent;
|
21
|
+
border-right: 7px solid transparent;
|
22
|
+
border-bottom: 7px solid #ccc;
|
23
|
+
border-top: 0;
|
24
|
+
border-bottom-color: rgba(0,0,0,.2);
|
25
|
+
position: absolute;
|
26
|
+
}
|
27
|
+
&:after {
|
28
|
+
content: '';
|
29
|
+
display: inline-block;
|
30
|
+
border-left: 6px solid transparent;
|
31
|
+
border-right: 6px solid transparent;
|
32
|
+
border-bottom: 6px solid @white;
|
33
|
+
border-top: 0;
|
34
|
+
position: absolute;
|
35
|
+
}
|
36
|
+
&.datepicker-orient-left:before { left: 6px; }
|
37
|
+
&.datepicker-orient-left:after { left: 7px; }
|
38
|
+
&.datepicker-orient-right:before { right: 6px; }
|
39
|
+
&.datepicker-orient-right:after { right: 7px; }
|
40
|
+
&.datepicker-orient-top:before { top: -7px; }
|
41
|
+
&.datepicker-orient-top:after { top: -6px; }
|
42
|
+
&.datepicker-orient-bottom:before {
|
43
|
+
bottom: -7px;
|
44
|
+
border-bottom: 0;
|
45
|
+
border-top: 7px solid #999;
|
46
|
+
}
|
47
|
+
&.datepicker-orient-bottom:after {
|
48
|
+
bottom: -6px;
|
49
|
+
border-bottom: 0;
|
50
|
+
border-top: 6px solid @white;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
> div {
|
54
|
+
display: none;
|
55
|
+
}
|
56
|
+
&.days .datepicker-days,
|
57
|
+
&.months .datepicker-months,
|
58
|
+
&.years .datepicker-years {
|
59
|
+
display: block;
|
60
|
+
}
|
61
|
+
table {
|
62
|
+
margin: 0;
|
63
|
+
-webkit-touch-callout: none;
|
64
|
+
-webkit-user-select: none;
|
65
|
+
-khtml-user-select: none;
|
66
|
+
-moz-user-select: none;
|
67
|
+
-ms-user-select: none;
|
68
|
+
user-select: none;
|
69
|
+
}
|
70
|
+
td, th {
|
71
|
+
text-align: center;
|
72
|
+
width: 20px;
|
73
|
+
height: 20px;
|
74
|
+
.border-radius(4px);
|
75
|
+
|
76
|
+
border: none;
|
77
|
+
}
|
78
|
+
// Inline display inside a table presents some problems with
|
79
|
+
// border and background colors.
|
80
|
+
.table-striped & table tr {
|
81
|
+
td, th {
|
82
|
+
background-color:transparent;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
table tr td {
|
86
|
+
&.day:hover, &.day.focused {
|
87
|
+
background: @grayLighter;
|
88
|
+
cursor: pointer;
|
89
|
+
}
|
90
|
+
&.old,
|
91
|
+
&.new {
|
92
|
+
color: @grayLight;
|
93
|
+
}
|
94
|
+
&.disabled,
|
95
|
+
&.disabled:hover {
|
96
|
+
background: none;
|
97
|
+
color: @grayLight;
|
98
|
+
cursor: default;
|
99
|
+
}
|
100
|
+
&.today,
|
101
|
+
&.today:hover,
|
102
|
+
&.today.disabled,
|
103
|
+
&.today.disabled:hover {
|
104
|
+
@todayBackground: lighten(@orange, 30%);
|
105
|
+
.buttonBackground(@todayBackground, spin(@todayBackground, 20));
|
106
|
+
color: #000;
|
107
|
+
}
|
108
|
+
&.today:hover:hover { // Thank bootstrap 2.0 for this selector...
|
109
|
+
// TODO: Bump min BS to 2.1, use @textColor in buttonBackground above
|
110
|
+
color: #000;
|
111
|
+
}
|
112
|
+
&.today.active:hover {
|
113
|
+
color: #fff;
|
114
|
+
}
|
115
|
+
&.range,
|
116
|
+
&.range:hover,
|
117
|
+
&.range.disabled,
|
118
|
+
&.range.disabled:hover {
|
119
|
+
background:@grayLighter;
|
120
|
+
.border-radius(0);
|
121
|
+
}
|
122
|
+
&.range.today,
|
123
|
+
&.range.today:hover,
|
124
|
+
&.range.today.disabled,
|
125
|
+
&.range.today.disabled:hover {
|
126
|
+
@todayBackground: mix(@orange, @grayLighter, 50%);
|
127
|
+
.buttonBackground(@todayBackground, spin(@todayBackground, 20));
|
128
|
+
.border-radius(0);
|
129
|
+
}
|
130
|
+
&.selected,
|
131
|
+
&.selected:hover,
|
132
|
+
&.selected.disabled,
|
133
|
+
&.selected.disabled:hover {
|
134
|
+
.buttonBackground(lighten(@grayLight, 10), darken(@grayLight, 10));
|
135
|
+
color: #fff;
|
136
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
137
|
+
}
|
138
|
+
&.active,
|
139
|
+
&.active:hover,
|
140
|
+
&.active.disabled,
|
141
|
+
&.active.disabled:hover {
|
142
|
+
.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
|
143
|
+
color: #fff;
|
144
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
145
|
+
}
|
146
|
+
span {
|
147
|
+
display: block;
|
148
|
+
width: 23%;
|
149
|
+
height: 54px;
|
150
|
+
line-height: 54px;
|
151
|
+
float: left;
|
152
|
+
margin: 1%;
|
153
|
+
cursor: pointer;
|
154
|
+
.border-radius(4px);
|
155
|
+
&:hover {
|
156
|
+
background: @grayLighter;
|
157
|
+
}
|
158
|
+
&.disabled,
|
159
|
+
&.disabled:hover {
|
160
|
+
background:none;
|
161
|
+
color: @grayLight;
|
162
|
+
cursor: default;
|
163
|
+
}
|
164
|
+
&.active,
|
165
|
+
&.active:hover,
|
166
|
+
&.active.disabled,
|
167
|
+
&.active.disabled:hover {
|
168
|
+
.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
|
169
|
+
color: #fff;
|
170
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
171
|
+
}
|
172
|
+
&.old,
|
173
|
+
&.new {
|
174
|
+
color: @grayLight;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
.datepicker-switch {
|
180
|
+
width: 145px;
|
181
|
+
}
|
182
|
+
|
183
|
+
thead tr:first-child th,
|
184
|
+
tfoot tr th {
|
185
|
+
cursor: pointer;
|
186
|
+
&:hover {
|
187
|
+
background: @grayLighter;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
// Basic styling for calendar-week cells
|
192
|
+
.cw {
|
193
|
+
font-size: 10px;
|
194
|
+
width: 12px;
|
195
|
+
padding: 0 2px 0 5px;
|
196
|
+
vertical-align: middle;
|
197
|
+
}
|
198
|
+
thead tr:first-child .cw {
|
199
|
+
cursor: default;
|
200
|
+
background-color: transparent;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
.input-append,
|
204
|
+
.input-prepend {
|
205
|
+
&.date .add-on {
|
206
|
+
cursor: pointer;
|
207
|
+
|
208
|
+
i {
|
209
|
+
margin-top: 3px;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
.input-daterange {
|
214
|
+
input {
|
215
|
+
text-align:center;
|
216
|
+
}
|
217
|
+
input:first-child {
|
218
|
+
.border-radius(3px 0 0 3px);
|
219
|
+
}
|
220
|
+
input:last-child {
|
221
|
+
.border-radius(0 3px 3px 0);
|
222
|
+
}
|
223
|
+
.add-on {
|
224
|
+
display: inline-block;
|
225
|
+
width: auto;
|
226
|
+
min-width: 16px;
|
227
|
+
height: @baseLineHeight;
|
228
|
+
padding: 4px 5px;
|
229
|
+
font-weight: normal;
|
230
|
+
line-height: @baseLineHeight;
|
231
|
+
text-align: center;
|
232
|
+
text-shadow: 0 1px 0 @white;
|
233
|
+
vertical-align: middle;
|
234
|
+
background-color: @grayLighter;
|
235
|
+
border: 1px solid #ccc;
|
236
|
+
margin-left:-5px;
|
237
|
+
margin-right:-5px;
|
238
|
+
}
|
239
|
+
}
|
@@ -0,0 +1,230 @@
|
|
1
|
+
.datepicker {
|
2
|
+
padding: 4px;
|
3
|
+
border-radius: 4px;
|
4
|
+
&-inline {
|
5
|
+
width: 220px;
|
6
|
+
}
|
7
|
+
direction: ltr;
|
8
|
+
&&-rtl {
|
9
|
+
direction: rtl;
|
10
|
+
table tr td span {
|
11
|
+
float: right;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
&-dropdown {
|
15
|
+
top: 0;
|
16
|
+
left: 0;
|
17
|
+
&:before {
|
18
|
+
content: '';
|
19
|
+
display: inline-block;
|
20
|
+
border-left: 7px solid transparent;
|
21
|
+
border-right: 7px solid transparent;
|
22
|
+
border-bottom: 7px solid #ccc;
|
23
|
+
border-top: 0;
|
24
|
+
border-bottom-color: rgba(0,0,0,.2);
|
25
|
+
position: absolute;
|
26
|
+
}
|
27
|
+
&:after {
|
28
|
+
content: '';
|
29
|
+
display: inline-block;
|
30
|
+
border-left: 6px solid transparent;
|
31
|
+
border-right: 6px solid transparent;
|
32
|
+
border-bottom: 6px solid #fff;
|
33
|
+
border-top: 0;
|
34
|
+
position: absolute;
|
35
|
+
}
|
36
|
+
&.datepicker-orient-left:before { left: 6px; }
|
37
|
+
&.datepicker-orient-left:after { left: 7px; }
|
38
|
+
&.datepicker-orient-right:before { right: 6px; }
|
39
|
+
&.datepicker-orient-right:after { right: 7px; }
|
40
|
+
&.datepicker-orient-top:before { top: -7px; }
|
41
|
+
&.datepicker-orient-top:after { top: -6px; }
|
42
|
+
&.datepicker-orient-bottom:before {
|
43
|
+
bottom: -7px;
|
44
|
+
border-bottom: 0;
|
45
|
+
border-top: 7px solid #999;
|
46
|
+
}
|
47
|
+
&.datepicker-orient-bottom:after {
|
48
|
+
bottom: -6px;
|
49
|
+
border-bottom: 0;
|
50
|
+
border-top: 6px solid #fff;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
> div {
|
54
|
+
display: none;
|
55
|
+
}
|
56
|
+
&.days .datepicker-days,
|
57
|
+
&.months .datepicker-months,
|
58
|
+
&.years .datepicker-years {
|
59
|
+
display: block;
|
60
|
+
}
|
61
|
+
table {
|
62
|
+
margin: 0;
|
63
|
+
-webkit-touch-callout: none;
|
64
|
+
-webkit-user-select: none;
|
65
|
+
-khtml-user-select: none;
|
66
|
+
-moz-user-select: none;
|
67
|
+
-ms-user-select: none;
|
68
|
+
user-select: none;
|
69
|
+
tr {
|
70
|
+
td, th {
|
71
|
+
text-align: center;
|
72
|
+
width: 30px;
|
73
|
+
height: 30px;
|
74
|
+
border-radius: 4px;
|
75
|
+
|
76
|
+
border: none;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
// Inline display inside a table presents some problems with
|
81
|
+
// border and background colors.
|
82
|
+
.table-striped & table tr {
|
83
|
+
td, th {
|
84
|
+
background-color:transparent;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
table tr td {
|
88
|
+
&.day:hover, &.day.focused {
|
89
|
+
background: @gray-lighter;
|
90
|
+
cursor: pointer;
|
91
|
+
}
|
92
|
+
&.old,
|
93
|
+
&.new {
|
94
|
+
color: @btn-link-disabled-color;
|
95
|
+
}
|
96
|
+
&.disabled,
|
97
|
+
&.disabled:hover {
|
98
|
+
background: none;
|
99
|
+
color: @btn-link-disabled-color;
|
100
|
+
cursor: default;
|
101
|
+
}
|
102
|
+
&.today,
|
103
|
+
&.today:hover,
|
104
|
+
&.today.disabled,
|
105
|
+
&.today.disabled:hover {
|
106
|
+
@today-bg: lighten(orange, 30%);
|
107
|
+
.button-variant(#000, @today-bg, darken(@today-bg, 20%));
|
108
|
+
}
|
109
|
+
&.today:hover:hover { // Thank bootstrap 2.0 for this selector...
|
110
|
+
// TODO: Bump min BS to 2.1, use @textColor in buttonBackground above
|
111
|
+
color: #000;
|
112
|
+
}
|
113
|
+
&.today.active:hover {
|
114
|
+
color: #fff;
|
115
|
+
}
|
116
|
+
&.range,
|
117
|
+
&.range:hover,
|
118
|
+
&.range.disabled,
|
119
|
+
&.range.disabled:hover {
|
120
|
+
background:@gray-lighter;
|
121
|
+
border-radius: 0;
|
122
|
+
}
|
123
|
+
&.range.today,
|
124
|
+
&.range.today:hover,
|
125
|
+
&.range.today.disabled,
|
126
|
+
&.range.today.disabled:hover {
|
127
|
+
@today-bg: mix(orange, @gray-lighter, 50%);
|
128
|
+
.button-variant(#000, @today-bg, darken(@today-bg, 20%));
|
129
|
+
border-radius: 0;
|
130
|
+
}
|
131
|
+
&.selected,
|
132
|
+
&.selected:hover,
|
133
|
+
&.selected.disabled,
|
134
|
+
&.selected.disabled:hover {
|
135
|
+
.button-variant(#fff, @gray-light, @gray);
|
136
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
137
|
+
}
|
138
|
+
&.active,
|
139
|
+
&.active:hover,
|
140
|
+
&.active.disabled,
|
141
|
+
&.active.disabled:hover {
|
142
|
+
.button-variant(@btn-primary-color, @btn-primary-bg, @btn-primary-border);
|
143
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
144
|
+
}
|
145
|
+
span {
|
146
|
+
display: block;
|
147
|
+
width: 23%;
|
148
|
+
height: 54px;
|
149
|
+
line-height: 54px;
|
150
|
+
float: left;
|
151
|
+
margin: 1%;
|
152
|
+
cursor: pointer;
|
153
|
+
border-radius: 4px;
|
154
|
+
&:hover {
|
155
|
+
background: @gray-lighter;
|
156
|
+
}
|
157
|
+
&.disabled,
|
158
|
+
&.disabled:hover {
|
159
|
+
background: none;
|
160
|
+
color: @btn-link-disabled-color;
|
161
|
+
cursor: default;
|
162
|
+
}
|
163
|
+
&.active,
|
164
|
+
&.active:hover,
|
165
|
+
&.active.disabled,
|
166
|
+
&.active.disabled:hover {
|
167
|
+
.button-variant(@btn-primary-color, @btn-primary-bg, @btn-primary-border);
|
168
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
169
|
+
}
|
170
|
+
&.old,
|
171
|
+
&.new {
|
172
|
+
color: @btn-link-disabled-color;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.datepicker-switch {
|
178
|
+
width: 145px;
|
179
|
+
}
|
180
|
+
|
181
|
+
thead tr:first-child th,
|
182
|
+
tfoot tr th {
|
183
|
+
cursor: pointer;
|
184
|
+
&:hover {
|
185
|
+
background: @gray-lighter;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
// Basic styling for calendar-week cells
|
190
|
+
.cw {
|
191
|
+
font-size: 10px;
|
192
|
+
width: 12px;
|
193
|
+
padding: 0 2px 0 5px;
|
194
|
+
vertical-align: middle;
|
195
|
+
}
|
196
|
+
thead tr:first-child .cw {
|
197
|
+
cursor: default;
|
198
|
+
background-color: transparent;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
.input-group.date .input-group-addon {
|
202
|
+
cursor: pointer;
|
203
|
+
}
|
204
|
+
.input-daterange {
|
205
|
+
width: 100%;
|
206
|
+
input {
|
207
|
+
text-align:center;
|
208
|
+
}
|
209
|
+
input:first-child {
|
210
|
+
border-radius: 3px 0 0 3px;
|
211
|
+
}
|
212
|
+
input:last-child {
|
213
|
+
border-radius: 0 3px 3px 0;
|
214
|
+
}
|
215
|
+
.input-group-addon {
|
216
|
+
width: auto;
|
217
|
+
min-width: 16px;
|
218
|
+
padding: 4px 5px;
|
219
|
+
font-weight: normal;
|
220
|
+
line-height: @line-height-base;
|
221
|
+
text-align: center;
|
222
|
+
text-shadow: 0 1px 0 #fff;
|
223
|
+
vertical-align: middle;
|
224
|
+
background-color: @input-group-addon-bg;
|
225
|
+
border: solid @input-group-addon-border-color;
|
226
|
+
border-width: 1px 0;
|
227
|
+
margin-left:-5px;
|
228
|
+
margin-right:-5px;
|
229
|
+
}
|
230
|
+
}
|