causeway-standard-theme
Version:
225 lines (208 loc) • 4.56 kB
text/less
/*!
* Datepicker for Bootstrap
*
*/
.datepicker {
padding: 0;
z-index: 10000 ;
&.dropdown-menu {
border-radius: 0;
font-family: Arial, sans-serif;
.font-size(12);
font-weight: bold;
color: @black080;
border-color: @black080;
}
.table-condensed {
thead tr:first-child th,
tfoot tr th {
&:hover {
background-color: @black010;
color: @black080;
}
&.disabled {
cursor: not-allowed;
.glyphicon {
.opacity(.5);
}
&:hover {
background-color: @black080;
}
}
}
th {
background-color: @black080;
border-radius: 0;
color: @white;
width: 39px;
height: 28px;
&.dow {
background-color: @black010;
color: @black080;
font-weight: normal;
}
&:hover {
color: @black080;
}
}
td {
border-radius: 0;
width: 39px;
height: 33px;
&.active,
&.active.active,
&.active.active:hover,
&.active:active,
&.active:focus,
&.active:hover,
&.active:hover:active,
&.active:hover:focus,
&.active:hover:hover,
&.range,
&.range:hover,
&.selected,
&.selected:hover {
background-color: @enterprise-blue085;
color: @white;
//.box-shadow(inset 1px 2px 5px rgba(44,74,116,0.3));
}
&.active.disabled.active,
&.active.disabled.active:hover,
&.active.disabled:active,
&.active.disabled:focus,
&.active.disabled:hover,
&.active.disabled:hover:active,
&.active.disabled:hover:focus,
&.active.disabled:hover:hover,
&.disabled,
&.disabled:hover,
&.range.disabled,
&.range.disabled:hover,
&.selected.disabled,
&.selected.disabled:hover {
background-color: @black020;
color: @white;
}
}
.prev, .next {
font-family: 'FontAwesome';
position: relative;
text-indent: -9999px;
&:after {
content: "\f054";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
text-align: center;
line-height: 28px;
display: block;
text-indent: 0;
}
}
.prev {
&:after {
content: "\f053";
}
}
}
table {
tr {
td {
&.today {
background-color: @enterprise-blue020;
border-color: @enterprise-blue020;
&:hover, &:focus, &.focused, &:active, &.active {
background-color: @enterprise-blue020;
border-color: @enterprise-blue020;
&:focus, &:hover {
background-color: @enterprise-blue020;
border-color: @enterprise-blue020;
}
}
}
span {
border-radius: 0;
&.focused, &.active {
background-color: @enterprise-blue020;
&.active {
background-color: @enterprise-blue085;
border-color: @enterprise-blue085;
&:hover, &:focus {
background-color: @enterprise-blue085;
border-color: @enterprise-blue085;
}
}
}
}
&.range {
&.today {
background-color: @enterprise-blue085;
&:active, &:hover, &.active, &:focus {
background-color: @enterprise-blue085;
}
}
}
}
}
}
}
.datepicker-dropdown {
&:before, &:after {
border-bottom-color: @black080;
}
&.datepicker-orient-top {
&:before, &:after {
border-top-color: @black080;
}
}
&.datepicker-orient-bottom {
&:before, &:after {
border-bottom-color: @black080;
}
}
}
.open .dropdown-toggle.datepicker table tr td {
&.active,
&.active.disabled,
&.active.disabled:hover,
&.active:hover {
background-color: @enterprise-blue085;
color: @white;
}
}
@media @desktop {
.datepicker {
.table-condensed {
thead {
th {
height: @primary-tap-height;
}
}
td {
height: @primary-tap-height;
}
.prev, .next {
&:after {
line-height: 44px;
}
}
}
}
.datepicker-dropdown {
&.datepicker-orient-top {
display: none;
&:after {
content: '';
display: none;
}
}
}
.next,
.prev {
&:after {
line-height: @primary-tap-height;
}
}
}