blob: 79640b6c29ec0f5ee0684fec5cb66e90cc620567 [file] [log] [blame]
Nils Diewalda1228622015-04-25 01:59:10 +00001@charset "utf-8";
2@import "../util";
3
Nils Diewald652e5f42015-05-10 18:11:45 +00004/**
5 * Rules for the datepicker widget
6 * (used in the Virtual Collection creator)
7 * in Kalamar.
8 */
9
Nils Diewaldbdf79c52015-04-29 23:47:13 +000010$border-size: 2px;
11
Nils Diewalda1228622015-04-25 01:59:10 +000012div.datepicker {
13 display: inline-block;
Nils Diewald87507832015-05-01 23:36:41 +000014 position: absolute;
Nils Diewald7148c6f2015-05-04 15:07:53 +000015 z-index: 8000;
Nils Diewald652e5f42015-05-10 18:11:45 +000016
Nils Diewald87507832015-05-01 23:36:41 +000017 font-size: 80%;
Nils Diewalda1228622015-04-25 01:59:10 +000018 padding: 4pt;
Nils Diewald652e5f42015-05-10 18:11:45 +000019 @include choose-item;
Nils Diewalda1228622015-04-25 01:59:10 +000020 box-shadow: $choose-box-shadow;
Nils Diewald652e5f42015-05-10 18:11:45 +000021
Nils Diewalda1228622015-04-25 01:59:10 +000022 border: {
Nils Diewaldbdf79c52015-04-29 23:47:13 +000023 width: $border-size;
Nils Diewalda1228622015-04-25 01:59:10 +000024 style: solid;
25 radius: $standard-border-radius;
26 }
27 > div {
28 font-size: 120%;
29 width: 45%;
Nils Diewald652e5f42015-05-10 18:11:45 +000030 &.month {
31 float: right;
32 }
Nils Diewald7148c6f2015-05-04 15:07:53 +000033
Nils Diewald652e5f42015-05-10 18:11:45 +000034 > span {
Nils Diewalda1228622015-04-25 01:59:10 +000035 display: inline-block;
Nils Diewald652e5f42015-05-10 18:11:45 +000036 &:first-child,
37 &:last-child {
38 width: 15%;
39 &::before {
40 display: inline-block;
41 text-align: center;
42 cursor: pointer;
43 font-family: 'FontAwesome';
44 min-width: 14px;
45 }
Nils Diewaldbdf79c52015-04-29 23:47:13 +000046 }
Nils Diewald652e5f42015-05-10 18:11:45 +000047 &:first-child::before {
48 content: $fa-previous;
Nils Diewaldbdf79c52015-04-29 23:47:13 +000049 }
Nils Diewald652e5f42015-05-10 18:11:45 +000050 &:last-child::before {
51 content: $fa-next;
52 }
53 overflow: hidden;
54 white-space: nowrap;
55 &:nth-child(2) {
56 cursor: pointer;
57 display: inline-block;
58 width: 70%;
59 text-align: center;
60 text-overflow: ellipsis;
61 border: {
62 radius: $standard-border-radius;
63 style: solid;
64 width: $border-size;
65 color: transparent;
66 }
67 &:hover {
68 @include choose-hover;
69 }
70 &.selected {
71 @include choose-active;
72 }
Nils Diewald7148c6f2015-05-04 15:07:53 +000073 }
Nils Diewalda1228622015-04-25 01:59:10 +000074 }
75 }
Nils Diewald652e5f42015-05-10 18:11:45 +000076
Nils Diewalda1228622015-04-25 01:59:10 +000077 table {
78 border-collapse: separate;
79 border-spacing: 1px;
80 }
Nils Diewald652e5f42015-05-10 18:11:45 +000081
Nils Diewalda1228622015-04-25 01:59:10 +000082 td {
83 @include standard-text-padding;
84 text-align: center;
85 border: {
86 style: solid;
87 width: 1px;
88 }
89 &:not(.out) {
90 cursor: pointer;
91 @include choose-item;
92 background-color: $nearly-white;
93 &.today {
94 background-color: $light-blue;
95 color: $dark-blue;
96 text-shadow: none;
97 }
98 &.selected {
99 @include choose-active;
100 }
101 &:hover {
102 @include choose-hover;
103 }
104 }
105 &.out {
106 border-color: transparent;
107 }
108 }
109}