// calendar

This commit is contained in:
Kevin Granger committed 2013-10-17 14:35:51 +02:00
1 parent 185c518d3d
commit 1097bb56f9
4 files changed
+150 -141

No files matched your search

+101 -101
View File
@@ -8888,121 +8888,121 @@ textarea {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
*margin-right: 0.3em; } *margin-right: 0.3em; }
/* line 19, admin-theme/_admin-date-range-picker.sass */ /* line 18, admin-theme/_admin-date-range-picker.sass */
#datepicker .input-selected { #datepicker .input-selected {
margin: 0; } margin: 0; }
/* line 21, admin-theme/_admin-date-range-picker.sass */ /* line 20, admin-theme/_admin-date-range-picker.sass */
#datepicker #date-start.input-selected, #datepicker #date-end.input-selected { #datepicker #date-start.input-selected, #datepicker #date-end.input-selected {
border: solid 3px #00a4e7; } border: solid 3px #00a4e7; }
/* line 23, admin-theme/_admin-date-range-picker.sass */ /* line 22, admin-theme/_admin-date-range-picker.sass */
#datepicker #date-start-compare.input-selected, #datepicker #date-end-compare.input-selected { #datepicker #date-start-compare.input-selected, #datepicker #date-end-compare.input-selected {
border: solid 3px #ff8000; } border: solid 3px #ff8000; }
/* line 26, admin-theme/_admin-date-range-picker.sass */ /* line 25, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form #date-range { #datepicker div#datepicker-form #date-range {
border: solid 1px #0092ce; } border: solid 1px #0092ce; }
/* line 28, admin-theme/_admin-date-range-picker.sass */ /* line 27, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form #date-range .form-date-heading { #datepicker div#datepicker-form #date-range .form-date-heading {
background-color: #0092ce; } background-color: #0092ce; }
/* line 30, admin-theme/_admin-date-range-picker.sass */ /* line 29, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form #date-compare { #datepicker div#datepicker-form #date-compare {
border: solid 1px #e67300; } border: solid 1px #e67300; }
/* line 32, admin-theme/_admin-date-range-picker.sass */ /* line 31, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form #date-compare .form-date-heading { #datepicker div#datepicker-form #date-compare .form-date-heading {
background-color: #e67300; } background-color: #e67300; }
/* line 34, admin-theme/_admin-date-range-picker.sass */ /* line 33, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-heading { #datepicker div#datepicker-form .form-date-heading {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
padding: 0 0 0 8px; } padding: 0 0 0 8px; }
/* line 38, admin-theme/_admin-date-range-picker.sass */ /* line 37, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-heading .title, #datepicker div#datepicker-form .form-date-heading .checkbox-title label { #datepicker div#datepicker-form .form-date-heading .title, #datepicker div#datepicker-form .form-date-heading .checkbox-title label {
font-size: 1.15em; font-size: 1.15em;
color: white; color: white;
font-weight: 200; font-weight: 200;
text-transform: uppercase; text-transform: uppercase;
line-height: 2em; } line-height: 2em; }
/* line 44, admin-theme/_admin-date-range-picker.sass */ /* line 43, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-heading .btn-default { #datepicker div#datepicker-form .form-date-heading .btn-default {
background-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.3);
font-weight: 700; font-weight: 700;
color: white; color: white;
border: none; } border: none; }
/* line 49, admin-theme/_admin-date-range-picker.sass */ /* line 48, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-heading select { #datepicker div#datepicker-form .form-date-heading select {
margin: 2px 2px 0 0; } margin: 2px 2px 0 0; }
/* line 51, admin-theme/_admin-date-range-picker.sass */ /* line 50, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-body, #datepicker div#datepicker-form .form-date-actions { #datepicker div#datepicker-form .form-date-body, #datepicker div#datepicker-form .form-date-actions {
width: 100%; width: 100%;
padding: 10px; padding: 10px;
background-color: white; background-color: white;
display: inline-block; } display: inline-block; }
/* line 56, admin-theme/_admin-date-range-picker.sass */ /* line 55, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-actions { #datepicker div#datepicker-form .form-date-actions {
border: solid 1px #cccccc; } border: solid 1px #cccccc; }
/* line 58, admin-theme/_admin-date-range-picker.sass */ /* line 57, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-group { #datepicker div#datepicker-form .form-date-group {
clear: both; clear: both;
width: 100%; width: 100%;
margin: 0 auto 6px auto; } margin: 0 auto 6px auto; }
/* line 62, admin-theme/_admin-date-range-picker.sass */ /* line 61, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-group label { #datepicker div#datepicker-form .form-date-group label {
font-size: 0.8em; font-size: 0.8em;
font-weight: 700; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
color: #666666; } color: #666666; }
/* line 67, admin-theme/_admin-date-range-picker.sass */ /* line 66, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-group input { #datepicker div#datepicker-form .form-date-group input {
margin: 4px 4px 0 0; } margin: 4px 4px 0 0; }
/* line 69, admin-theme/_admin-date-range-picker.sass */ /* line 68, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-group input[type='text'] { #datepicker div#datepicker-form .form-date-group input[type='text'] {
width: 35%; } width: 35%; }
/* line 71, admin-theme/_admin-date-range-picker.sass */ /* line 70, admin-theme/_admin-date-range-picker.sass */
#datepicker div#datepicker-form .form-date-group button { #datepicker div#datepicker-form .form-date-group button {
margin: 5px 0 0 0; } margin: 5px 0 0 0; }
/* line 74, admin-theme/_admin-date-range-picker.sass */ /* line 73, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker { #datepicker .daterangepicker {
position: relative; position: relative;
margin: 0 0 8px 0; margin: 0 0 8px 0;
width: 100%; width: 100%;
font-size: 13px; font-size: 13px;
border: solid 1px #cccccc; } border: solid 1px #cccccc; }
/* line 81, admin-theme/_admin-date-range-picker.sass */ /* line 79, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker table { #datepicker .daterangepicker table {
width: 100%; width: 100%;
margin: 0; margin: 0;
border-spacing: 1px; } border-spacing: 1px; }
/* line 86, admin-theme/_admin-date-range-picker.sass */ /* line 84, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker thead tr th:after { #datepicker .daterangepicker thead tr th:after {
content: ""; content: "";
border-top: 1px solid #0080b4; border-top: 1px solid #0080b4;
width: 100%; width: 100%;
display: block; } display: block; }
/* line 91, admin-theme/_admin-date-range-picker.sass */ /* line 89, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker thead tr th { #datepicker .daterangepicker thead tr th {
background-color: #0092ce; background-color: #0092ce;
color: #004968; color: #004968;
font-size: 0.7em; font-size: 0.7em;
font-weight: 700; font-weight: 700;
border-bottom: solid 1px #0cb8ff; border-bottom: solid 1px #0cb8ff;
text-transform: uppercase; } text-transform: uppercase; }
/* line 98, admin-theme/_admin-date-range-picker.sass */ /* line 96, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker thead tr:first-child th { #datepicker .daterangepicker thead tr:first-child th {
background-color: white; background-color: white;
font-weight: 200; font-weight: 200;
font-size: 1.4em; font-size: 1.4em;
color: #00a4e7; } color: #00a4e7; }
/* line 103, admin-theme/_admin-date-range-picker.sass */ /* line 101, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td, #datepicker .datepicker th { #datepicker .daterangepicker td, #datepicker .daterangepicker th {
text-align: center; text-align: center;
padding: 0; padding: 0;
position: relative; } position: relative; }
/* line 107, admin-theme/_admin-date-range-picker.sass */ /* line 105, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td { #datepicker .daterangepicker td {
color: #00a4e7; color: #00a4e7;
height: 2.4em; height: 2.4em;
padding: 0 8px; } padding: 0 8px; }
/* line 111, admin-theme/_admin-date-range-picker.sass */ /* line 109, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.day:after { #datepicker .daterangepicker td.day:after {
content: ""; content: "";
position: absolute; position: absolute;
display: block; display: block;
@@ -9011,85 +9011,85 @@ textarea {
width: 100%; width: 100%;
z-index: 0; z-index: 0;
background-color: transparent; } background-color: transparent; }
/* line 120, admin-theme/_admin-date-range-picker.sass */ /* line 118, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.day:hover { #datepicker .daterangepicker td.day:hover {
cursor: pointer; } cursor: pointer; }
/* line 120, admin-theme/_admin-date-range-picker.sass */
#datepicker .daterangepicker td.day.disabled {
color: #cccccc; }
/* line 122, admin-theme/_admin-date-range-picker.sass */ /* line 122, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.day.disabled { #datepicker .daterangepicker td.old, #datepicker .daterangepicker td.new {
color: #cccccc; } color: #cccccc; }
/* line 124, admin-theme/_admin-date-range-picker.sass */ /* line 125, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.old, #datepicker .datepicker td.new { #datepicker .daterangepicker td.start-selected:not(.old):not(.new):not(.end-selected) {
color: #cccccc; }
/* line 127, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.start-selected:not(.old):not(.new):not(.end-selected) {
color: white; color: white;
font-weight: 700; font-weight: 700;
background-color: #00a4e7; background-color: #00a4e7;
border-bottom-left-radius: 15px; border-bottom-left-radius: 15px;
border-top-left-radius: 15px; } border-top-left-radius: 15px; }
/* line 133, admin-theme/_admin-date-range-picker.sass */ /* line 131, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.start-selected:not(.old):not(.new):not(.end-selected).range-compare { #datepicker .daterangepicker td.start-selected:not(.old):not(.new):not(.end-selected).range-compare {
background-color: #4ca0b1; background-color: #4ca0b1;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top-left-radius: 0; } border-top-left-radius: 0; }
/* line 134, admin-theme/_admin-date-range-picker.sass */
#datepicker .daterangepicker td.start-selected:not(.old):not(.new):not(.end-selected).end-selected-compare, #datepicker .daterangepicker td.start-selected:not(.old):not(.new):not(.end-selected).start-selected-compare {
background-color: #4c99a1; }
/* line 136, admin-theme/_admin-date-range-picker.sass */ /* line 136, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.start-selected:not(.old):not(.new):not(.end-selected).end-selected-compare, #datepicker .datepicker td.start-selected:not(.old):not(.new):not(.end-selected).start-selected-compare { #datepicker .daterangepicker td.start-selected:not(.old):not(.new):not(.end-selected).end-selected-compare {
background-color: #4c99a1; }
/* line 138, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.start-selected:not(.old):not(.new):not(.end-selected).end-selected-compare {
-webkit-border-radius: 0; -webkit-border-radius: 0;
-moz-border-radius: 0; -moz-border-radius: 0;
-ms-border-radius: 0; -ms-border-radius: 0;
-o-border-radius: 0; -o-border-radius: 0;
border-radius: 0; } border-radius: 0; }
/* line 140, admin-theme/_admin-date-range-picker.sass */ /* line 138, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected:not(.old):not(.new):not(.start-selected) { #datepicker .daterangepicker td.end-selected:not(.old):not(.new):not(.start-selected) {
color: white; color: white;
font-weight: 700; font-weight: 700;
background-color: #00a4e7; background-color: #00a4e7;
border-bottom-right-radius: 15px; border-bottom-right-radius: 15px;
border-top-right-radius: 15px; } border-top-right-radius: 15px; }
/* line 146, admin-theme/_admin-date-range-picker.sass */ /* line 144, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected:not(.old):not(.new):not(.start-selected).range-compare { #datepicker .daterangepicker td.end-selected:not(.old):not(.new):not(.start-selected).range-compare {
background-color: #4ca0b1; background-color: #4ca0b1;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border-top-right-radius: 0; } border-top-right-radius: 0; }
/* line 149, admin-theme/_admin-date-range-picker.sass */ /* line 147, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected:not(.old):not(.new):not(.start-selected).end-selected-compare, #datepicker .datepicker td.end-selected:not(.old):not(.new):not(.start-selected).start-selected-compare { #datepicker .daterangepicker td.end-selected:not(.old):not(.new):not(.start-selected).end-selected-compare, #datepicker .daterangepicker td.end-selected:not(.old):not(.new):not(.start-selected).start-selected-compare {
background-color: #4c99a1; } background-color: #4c99a1; }
/* line 151, admin-theme/_admin-date-range-picker.sass */ /* line 149, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected:not(.old):not(.new):not(.start-selected).start-selected-compare { #datepicker .daterangepicker td.end-selected:not(.old):not(.new):not(.start-selected).start-selected-compare {
-webkit-border-radius: 0; -webkit-border-radius: 0;
-moz-border-radius: 0; -moz-border-radius: 0;
-ms-border-radius: 0; -ms-border-radius: 0;
-o-border-radius: 0; -o-border-radius: 0;
border-radius: 0; } border-radius: 0; }
/* line 153, admin-theme/_admin-date-range-picker.sass */ /* line 151, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.start-selected-compare:not(.old):not(.new):not(.end-selected-compare) { #datepicker .daterangepicker td.start-selected-compare:not(.old):not(.new):not(.end-selected-compare) {
color: white; color: white;
font-weight: 700; font-weight: 700;
background-color: #ff8000; background-color: #ff8000;
border-bottom-left-radius: 15px; border-bottom-left-radius: 15px;
border-top-left-radius: 15px; } border-top-left-radius: 15px; }
/* line 159, admin-theme/_admin-date-range-picker.sass */ /* line 157, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.start-selected-compare:not(.old):not(.new):not(.end-selected-compare).range { #datepicker .daterangepicker td.start-selected-compare:not(.old):not(.new):not(.end-selected-compare).range {
background-color: #ba924c; background-color: #ba924c;
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
border-top-left-radius: 0; } border-top-left-radius: 0; }
/* line 162, admin-theme/_admin-date-range-picker.sass */ /* line 160, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected-compare:not(.old):not(.new):not(.start-selected-compare) { #datepicker .daterangepicker td.end-selected-compare:not(.old):not(.new):not(.start-selected-compare) {
color: white; color: white;
font-weight: 700; font-weight: 700;
background-color: #ff8000; background-color: #ff8000;
border-bottom-right-radius: 15px; border-bottom-right-radius: 15px;
border-top-right-radius: 15px; } border-top-right-radius: 15px; }
/* line 168, admin-theme/_admin-date-range-picker.sass */ /* line 166, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected-compare:not(.old):not(.new):not(.start-selected-compare).range { #datepicker .daterangepicker td.end-selected-compare:not(.old):not(.new):not(.start-selected-compare).range {
background-color: #ba924c; background-color: #ba924c;
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
border-top-right-radius: 0; } border-top-right-radius: 0; }
/* line 171, admin-theme/_admin-date-range-picker.sass */ /* line 169, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected.start-selected { #datepicker .daterangepicker td.end-selected.start-selected {
color: white; color: white;
-webkit-border-radius: 15px; -webkit-border-radius: 15px;
-moz-border-radius: 15px; -moz-border-radius: 15px;
@@ -9098,8 +9098,8 @@ textarea {
border-radius: 15px; border-radius: 15px;
font-weight: 700; font-weight: 700;
background-color: #00a4e7; } background-color: #00a4e7; }
/* line 176, admin-theme/_admin-date-range-picker.sass */ /* line 174, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.end-selected-compare.start-selected-compare { #datepicker .daterangepicker td.end-selected-compare.start-selected-compare {
color: white; color: white;
-webkit-border-radius: 15px; -webkit-border-radius: 15px;
-moz-border-radius: 15px; -moz-border-radius: 15px;
@@ -9108,25 +9108,25 @@ textarea {
border-radius: 15px; border-radius: 15px;
font-weight: 700; font-weight: 700;
background-color: #ff8000; } background-color: #ff8000; }
/* line 183, admin-theme/_admin-date-range-picker.sass */ /* line 179, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.range { #datepicker .daterangepicker td.range {
color: #cef1ff; color: #cef1ff;
background-color: #1bbdff; } background-color: #1bbdff; }
/* line 186, admin-theme/_admin-date-range-picker.sass */ /* line 182, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.range.range-compare { #datepicker .daterangepicker td.range.range-compare {
background-color: #8dab99; } background-color: #8dab99; }
/* line 188, admin-theme/_admin-date-range-picker.sass */ /* line 184, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.range-compare { #datepicker .daterangepicker td.range-compare {
color: #fff2e5; color: #fff2e5;
background-color: #ff9933; } background-color: #ff9933; }
/* line 191, admin-theme/_admin-date-range-picker.sass */ /* line 187, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.range-compare.range { #datepicker .daterangepicker td.range-compare.range {
background-color: #8dab99; } background-color: #8dab99; }
/* line 193, admin-theme/_admin-date-range-picker.sass */ /* line 189, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td.today { #datepicker .daterangepicker td.today {
background-color: white; } background-color: white; }
/* line 195, admin-theme/_admin-date-range-picker.sass */ /* line 191, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td span { #datepicker .daterangepicker td span {
padding: 0; padding: 0;
display: block; display: block;
width: 33.333%; width: 33.333%;
@@ -9136,31 +9136,31 @@ textarea {
float: left; float: left;
text-transform: uppercase; text-transform: uppercase;
cursor: pointer; } cursor: pointer; }
/* line 205, admin-theme/_admin-date-range-picker.sass */ /* line 201, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td span:hover { #datepicker .daterangepicker td span:hover {
background-color: #00a4e7; } background-color: #00a4e7; }
/* line 207, admin-theme/_admin-date-range-picker.sass */ /* line 203, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td span.active { #datepicker .daterangepicker td span.active {
background-color: #00a4e7; background-color: #00a4e7;
color: white; } color: white; }
/* line 210, admin-theme/_admin-date-range-picker.sass */ /* line 206, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker td span.old { #datepicker .daterangepicker td span.old {
color: #cccccc; } color: #cccccc; }
/* line 213, admin-theme/_admin-date-range-picker.sass */ /* line 209, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker th.switch { #datepicker .daterangepicker th.switch {
width: 145px; } width: 145px; }
/* line 215, admin-theme/_admin-date-range-picker.sass */ /* line 211, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker th.next, #datepicker .datepicker th.prev { #datepicker .daterangepicker th.next, #datepicker .daterangepicker th.prev {
font-size: 1.3em; } font-size: 1.3em; }
/* line 217, admin-theme/_admin-date-range-picker.sass */ /* line 213, admin-theme/_admin-date-range-picker.sass */
#datepicker .datepicker thead tr:first-child th { #datepicker .daterangepicker thead tr:first-child th {
cursor: pointer; } cursor: pointer; }
/* line 220, admin-theme/_admin-date-range-picker.sass */ /* line 217, admin-theme/_admin-date-range-picker.sass */
.chevron-left, .chevron-right { .chevron-left, .chevron-right {
position: relative; } position: relative; }
/* line 222, admin-theme/_admin-date-range-picker.sass */ /* line 219, admin-theme/_admin-date-range-picker.sass */
.chevron-left:before, .chevron-right:before { .chevron-left:before, .chevron-right:before {
display: block; display: block;
content: ""; content: "";
@@ -9169,7 +9169,7 @@ textarea {
border-style: solid; border-style: solid;
position: absolute; } position: absolute; }
/* line 229, admin-theme/_admin-date-range-picker.sass */ /* line 226, admin-theme/_admin-date-range-picker.sass */
.chevron-left:before { .chevron-left:before {
right: 0; right: 0;
top: 0; top: 0;
@@ -9177,7 +9177,7 @@ textarea {
border-color: transparent transparent transparent #00a4e7; border-color: transparent transparent transparent #00a4e7;
background-color: #1bbdff; } background-color: #1bbdff; }
/* line 235, admin-theme/_admin-date-range-picker.sass */ /* line 232, admin-theme/_admin-date-range-picker.sass */
.chevron-right:before { .chevron-right:before {
left: 0; left: 0;
top: 0; top: 0;
@@ -9185,7 +9185,7 @@ textarea {
border-color: transparent transparent transparent #1bbdff; border-color: transparent transparent transparent #1bbdff;
background-color: #00a4e7; } background-color: #00a4e7; }
/* line 241, admin-theme/_admin-date-range-picker.sass */ /* line 238, admin-theme/_admin-date-range-picker.sass */
.input-complete { .input-complete {
-webkit-animation: one 0.2s ease-in-out; -webkit-animation: one 0.2s ease-in-out;
-moz-animation: one 0.2s ease-in-out; -moz-animation: one 0.2s ease-in-out;
@@ -9194,21 +9194,21 @@ textarea {
animation: one 0.2s ease-in-out; } animation: one 0.2s ease-in-out; }
@-webkit-keyframes one { @-webkit-keyframes one {
/* line 249, admin-theme/_admin-date-range-picker.sass */ /* line 246, admin-theme/_admin-date-range-picker.sass */
0% { 0% {
background-color: #00a4e7; } background-color: #00a4e7; }
/* line 251, admin-theme/_admin-date-range-picker.sass */ /* line 248, admin-theme/_admin-date-range-picker.sass */
100% { 100% {
background-color: white; } } background-color: white; } }
@-webkit-keyframes two { @-webkit-keyframes two {
/* line 255, admin-theme/_admin-date-range-picker.sass */ /* line 252, admin-theme/_admin-date-range-picker.sass */
0% { 0% {
-webkit-box-shadow: #00a4e7 0 0 0 20px inset; -webkit-box-shadow: #00a4e7 0 0 0 20px inset;
box-shadow: #00a4e7 0 0 0 20px inset; } box-shadow: #00a4e7 0 0 0 20px inset; }
/* line 257, admin-theme/_admin-date-range-picker.sass */ /* line 254, admin-theme/_admin-date-range-picker.sass */
100% { 100% {
-webkit-box-shadow: #00a4e7 0 0 0 inset; -webkit-box-shadow: #00a4e7 0 0 0 inset;
box-shadow: #00a4e7 0 0 0 inset; } } box-shadow: #00a4e7 0 0 0 inset; } }
@@ -15,7 +15,6 @@ $color-calendar-range: lighten($color-calendar,10%)
$color-calendar-range-compare: lighten($color-calendar-compare,10%) $color-calendar-range-compare: lighten($color-calendar-compare,10%)
#datepicker #datepicker
//background-color: darken($color-calendar,10%)
.input-selected .input-selected
margin: 0 margin: 0
#date-start.input-selected, #date-end.input-selected, #date-start.input-selected, #date-end.input-selected,
@@ -71,11 +70,10 @@ $color-calendar-range-compare: lighten($color-calendar-compare,10%)
button button
margin: 5px 0 0 0 margin: 5px 0 0 0
.datepicker .daterangepicker
position: relative position: relative
margin: 0 0 8px 0 margin: 0 0 8px 0
width: 100% width: 100%
//background-color: $color-calendar
font-size: 13px font-size: 13px
border: solid 1px #ccc border: solid 1px #ccc
table table
@@ -178,8 +176,6 @@ $color-calendar-range-compare: lighten($color-calendar-compare,10%)
+border-radius(15px) +border-radius(15px)
font-weight: 700 font-weight: 700
background-color: $color-calendar-day-selected-compare background-color: $color-calendar-day-selected-compare
&.range &.range
color: lighten($color-calendar-range,35%) color: lighten($color-calendar-range,35%)
background-color: $color-calendar-range background-color: $color-calendar-range
@@ -217,6 +213,7 @@ $color-calendar-range-compare: lighten($color-calendar-compare,10%)
thead tr:first-child th thead tr:first-child th
cursor: pointer cursor: pointer
//chevrons are disabled time to figure out the firefox incompatibility..
.chevron-left, .chevron-right .chevron-left, .chevron-right
position: relative position: relative
.chevron-left:before, .chevron-right:before .chevron-left:before, .chevron-right:before
@@ -26,25 +26,28 @@
this.element = $(element); this.element = $(element);
compare = false; compare = false;
if (typeof options.dates !== 'undefined') if (typeof options.dates !== 'undefined'){
DPGlobal.dates = options.dates; DPGlobal.dates = options.dates;
}
if (typeof options.start !== 'undefined'){ if (typeof options.start !== 'undefined'){
if (options.start.constructor === String) if (options.start.constructor === String){
start = DPGlobal.parseDate(options.start, DPGlobal.parseFormat('Y-m-d')).getTime(); start = DPGlobal.parseDate(options.start, DPGlobal.parseFormat('Y-m-d')).getTime();
else if (options.start.constructor === Number) } else if (options.start.constructor === Number){
start = options.start; start = options.start;
else if (options.start.constructor === Date) } else if (options.start.constructor === Date){
start = options.start.getTime(); start = options.start.getTime();
}
} }
if (typeof options.end !== 'undefined'){ if (typeof options.end !== 'undefined'){
if (options.end.constructor === String) if (options.end.constructor === String){
end = DPGlobal.parseDate(options.end, DPGlobal.parseFormat('Y-m-d')).getTime(); end = DPGlobal.parseDate(options.end, DPGlobal.parseFormat('Y-m-d')).getTime();
else if (options.end.constructor === Number) } else if (options.end.constructor === Number) {
end = options.end; end = options.end;
else if (options.end.constructor === Date) } else if (options.end.constructor === Date) {
end = options.end.getTime(); end = options.end.getTime();
}
} }
if (typeof options.compare !== 'undefined'){ if (typeof options.compare !== 'undefined'){
@@ -133,43 +136,50 @@
}, },
setStart: function(date) { setStart: function(date) {
if (date.constructor === String) if (date.constructor === String) {
start = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime(); start = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime();
else if (date.constructor === Number) } else if (date.constructor === Number){
start = date; start = date;
else if (date.constructor === Date) } else if (date.constructor === Date){
start = date.getTime(); start = date.getTime();
}
}, },
setEnd: function(date) { setEnd: function(date) {
if (date.constructor === String) if (date.constructor === String){
end = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime(); end = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime();
else if (date.constructor === Number) } else if (date.constructor === Number){
end = date; end = date;
else if (date.constructor === Date) } else if (date.constructor === Date){
end = date.getTime(); end = date.getTime();
}
}, },
setStartCompare: function(date) { setStartCompare: function(date) {
if (date === null) if (date === null){
startCompare = date; startCompare = date;
else if (date.constructor === String) }
else if (date.constructor === String){
startCompare = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime(); startCompare = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime();
else if (date.constructor === Number) }
else if (date.constructor === Number){
startCompare = date; startCompare = date;
else if (date.constructor === Date) }
else if (date.constructor === Date){
startCompare = date.getTime(); startCompare = date.getTime();
}
}, },
setEndCompare: function(date) { setEndCompare: function(date) {
if (date === null) if (date === null){
endCompare = date; endCompare = date;
else if (date.constructor === String) } else if (date.constructor === String){
endCompare = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime(); endCompare = DPGlobal.parseDate(date, DPGlobal.parseFormat('Y-m-d')).getTime();
else if (date.constructor === Number) } else if (date.constructor === Number){
endCompare = date; endCompare = date;
else if (date.constructor === Date) } else if (date.constructor === Date){
endCompare = date.getTime(); endCompare = date.getTime();
}
}, },
setValue: function(newDate) { setValue: function(newDate) {
@@ -285,31 +295,32 @@
if (end && start) if (end && start)
{ {
if(date_val > start && date_val < end) if(date_val > start && date_val < end) {
$(this).not(".old").not(".new").addClass("range"); $(this).not(".old").not(".new").addClass("range");
}
if(date_val === start) if(date_val === start) {
$(this).not(".old").not(".new").addClass("start-selected"); $(this).not(".old").not(".new").addClass("start-selected");
}
if(date_val === end) if(date_val === end) {
$(this).not(".old").not(".new").addClass("end-selected"); $(this).not(".old").not(".new").addClass("end-selected");
}
} }
if (endCompare && startCompare) if (endCompare && startCompare) {
{ if(date_val > startCompare && date_val < endCompare) {
if(date_val > startCompare && date_val < endCompare)
$(this).not(".old").not(".new").addClass("range-compare"); $(this).not(".old").not(".new").addClass("range-compare");
}
if(date_val === startCompare) if(date_val === startCompare) {
$(this).not(".old").not(".new").addClass("start-selected-compare"); $(this).not(".old").not(".new").addClass("start-selected-compare");
}
if(date_val === endCompare) if(date_val === endCompare) {
$(this).not(".old").not(".new").addClass("end-selected-compare"); $(this).not(".old").not(".new").addClass("end-selected-compare");
} }
else } else {
$(this).not(".old").not(".new").removeClass("range-compare") $(this).not(".old").not(".new").removeClass("range-compare")
.removeClass("start-selected-compare") .removeClass("start-selected-compare")
.removeClass("end-selected-compare"); .removeClass("end-selected-compare");
}
}); });
}, },
@@ -80,6 +80,7 @@
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
{literal} {literal}
function parseFormat(format){ function parseFormat(format){