blob: ecc509d937fea116d0dfaa4cad47f239a7af0db1 [file] [log] [blame]
@charset "utf-8";
@import "../util";
/**
* Rules for the datepicker widget
* (used in the Virtual Collection creator)
* in Kalamar.
*/
div.datepicker {
@include choose-item;
position: absolute;
display: inline-block;
z-index: 90;
font-size: 80%;
padding: 4pt;
box-shadow: $choose-box-shadow;
border: {
width: $border-size;
style: solid;
radius: $standard-border-radius;
}
> div {
font-size: 120%;
width: 45%;
&.month {
float: right;
}
> span {
display: inline-block;
overflow: hidden;
white-space: nowrap;
&:first-child,
&:last-child {
width: 15%;
&::before {
@include icon-font;
display: inline-block;
text-align: center;
cursor: pointer;
min-width: 14px;
}
}
&:first-child::before {
content: $fa-previous;
}
&:last-child::before {
content: $fa-next;
}
&:nth-child(2) {
display: inline-block;
cursor: pointer;
width: 70%;
text-align: center;
text-overflow: ellipsis;
border: {
radius: $standard-border-radius;
style: solid;
width: $border-size;
color: transparent;
}
&:hover {
@include choose-hover;
}
&.selected {
@include choose-active;
}
}
}
}
table {
border-collapse: separate;
border-spacing: 1px;
}
input {
@include choose-item;
@include standard-text-padding;
background-color: $nearly-white;
width: 100%;
border: {
style: solid;
width: 1px;
}
}
td {
@include standard-text-padding;
text-align: center;
border: {
style: solid;
width: 1px;
}
&:not(.out) {
@include choose-item;
cursor: pointer;
background-color: $nearly-white;
&.today {
background-color: $light-blue;
color: $dark-blue;
text-shadow: none;
}
&.selected {
@include choose-active;
}
&:hover {
@include choose-hover;
}
}
&.out {
border-color: transparent;
}
}
}