blob: faf8336ed1900633075cb25bd10a8f27aeea0411 [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;
Akronbd36c712018-02-15 11:14:23 +010015 z-index: 90;
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
Akronc59f7322016-04-20 13:46:05 +020082 input {
83 @include standard-text-padding;
84 border: {
85 style: solid;
86 width: 1px;
87 }
88 @include choose-item;
89 background-color: $nearly-white;
90 width: 100%;
91 }
92
Nils Diewalda1228622015-04-25 01:59:10 +000093 td {
94 @include standard-text-padding;
95 text-align: center;
96 border: {
97 style: solid;
98 width: 1px;
99 }
100 &:not(.out) {
101 cursor: pointer;
102 @include choose-item;
103 background-color: $nearly-white;
104 &.today {
105 background-color: $light-blue;
106 color: $dark-blue;
107 text-shadow: none;
108 }
109 &.selected {
110 @include choose-active;
111 }
112 &:hover {
113 @include choose-hover;
114 }
115 }
116 &.out {
117 border-color: transparent;
118 }
119 }
120}