blob: bb3482381fbd9bde796d734ce883f491a6f74f75 [file] [log] [blame]
Nils Diewalda1228622015-04-25 01:59:10 +00001@charset "utf-8";
Akron7636edf2025-11-04 12:44:53 +01002@use "../util";
3@use "../base/choose";
4@use "../base/colors";
5@use "../base/icons";
6@use "../base/lengths";
7@use "../base/mixins";
Nils Diewalda1228622015-04-25 01:59:10 +00008
Nils Diewald652e5f42015-05-10 18:11:45 +00009/**
10 * Rules for the datepicker widget
11 * (used in the Virtual Collection creator)
12 * in Kalamar.
13 */
14
Nils Diewalda1228622015-04-25 01:59:10 +000015div.datepicker {
Akron7636edf2025-11-04 12:44:53 +010016 @include choose.choose-item;
Akron7e5afce2020-08-25 15:50:19 +020017 position: absolute;
18 display: inline-block;
19 z-index: 90;
20 font-size: 80%;
21 padding: 4pt;
Akron7636edf2025-11-04 12:44:53 +010022 box-shadow: choose.$choose-box-shadow;
Nils Diewald652e5f42015-05-10 18:11:45 +000023
Nils Diewalda1228622015-04-25 01:59:10 +000024 border: {
Akron7636edf2025-11-04 12:44:53 +010025 width: lengths.$border-size;
Akron7e5afce2020-08-25 15:50:19 +020026 style: solid;
Akron7636edf2025-11-04 12:44:53 +010027 radius: lengths.$standard-border-radius;
Nils Diewalda1228622015-04-25 01:59:10 +000028 }
Akron7e5afce2020-08-25 15:50:19 +020029
Nils Diewalda1228622015-04-25 01:59:10 +000030 > div {
31 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +020032 width: 45%;
33
Nils Diewald652e5f42015-05-10 18:11:45 +000034 &.month {
35 float: right;
36 }
Nils Diewald7148c6f2015-05-04 15:07:53 +000037
Nils Diewald652e5f42015-05-10 18:11:45 +000038 > span {
Akron7e5afce2020-08-25 15:50:19 +020039 display: inline-block;
40 overflow: hidden;
41 white-space: nowrap;
42
Nils Diewald652e5f42015-05-10 18:11:45 +000043 &:first-child,
44 &:last-child {
Akron7e5afce2020-08-25 15:50:19 +020045 width: 15%;
46 &::before {
Akron7636edf2025-11-04 12:44:53 +010047 @include mixins.icon-font;
Akron7e5afce2020-08-25 15:50:19 +020048 display: inline-block;
49 text-align: center;
50 cursor: pointer;
51 min-width: 14px;
52 }
Nils Diewaldbdf79c52015-04-29 23:47:13 +000053 }
Akron7e5afce2020-08-25 15:50:19 +020054
Nils Diewald652e5f42015-05-10 18:11:45 +000055 &:first-child::before {
Akron7636edf2025-11-04 12:44:53 +010056 content: icons.$fa-previous;
Nils Diewaldbdf79c52015-04-29 23:47:13 +000057 }
Akron7e5afce2020-08-25 15:50:19 +020058
Nils Diewald652e5f42015-05-10 18:11:45 +000059 &:last-child::before {
Akron7636edf2025-11-04 12:44:53 +010060 content: icons.$fa-next;
Nils Diewald652e5f42015-05-10 18:11:45 +000061 }
Akron7e5afce2020-08-25 15:50:19 +020062
Nils Diewald652e5f42015-05-10 18:11:45 +000063 &:nth-child(2) {
Akron7e5afce2020-08-25 15:50:19 +020064 display: inline-block;
65 cursor: pointer;
66 width: 70%;
67 text-align: center;
68 text-overflow: ellipsis;
69
70 border: {
Akron7636edf2025-11-04 12:44:53 +010071 radius: lengths.$standard-border-radius;
Akron7e5afce2020-08-25 15:50:19 +020072 style: solid;
Akron7636edf2025-11-04 12:44:53 +010073 width: lengths.$border-size;
Akron7e5afce2020-08-25 15:50:19 +020074 color: transparent;
75 }
76
77 &:hover {
Akron7636edf2025-11-04 12:44:53 +010078 @include choose.choose-hover;
Akron7e5afce2020-08-25 15:50:19 +020079 }
80
81 &.selected {
Akron7636edf2025-11-04 12:44:53 +010082 @include choose.choose-active;
Akron7e5afce2020-08-25 15:50:19 +020083 }
Nils Diewald7148c6f2015-05-04 15:07:53 +000084 }
Nils Diewalda1228622015-04-25 01:59:10 +000085 }
86 }
Nils Diewald652e5f42015-05-10 18:11:45 +000087
Nils Diewalda1228622015-04-25 01:59:10 +000088 table {
89 border-collapse: separate;
Akron7e5afce2020-08-25 15:50:19 +020090 border-spacing: 1px;
Nils Diewalda1228622015-04-25 01:59:10 +000091 }
Nils Diewald652e5f42015-05-10 18:11:45 +000092
Akronc59f7322016-04-20 13:46:05 +020093 input {
Akron7636edf2025-11-04 12:44:53 +010094 @include choose.choose-item;
95 @include mixins.standard-text-padding;
96 background-color: colors.$nearly-white;
Akron7e5afce2020-08-25 15:50:19 +020097 width: 100%;
98
Akronc59f7322016-04-20 13:46:05 +020099 border: {
100 style: solid;
101 width: 1px;
102 }
Akronc59f7322016-04-20 13:46:05 +0200103 }
104
Nils Diewalda1228622015-04-25 01:59:10 +0000105 td {
Akron7636edf2025-11-04 12:44:53 +0100106 @include mixins.standard-text-padding;
Nils Diewalda1228622015-04-25 01:59:10 +0000107 text-align: center;
Akron7e5afce2020-08-25 15:50:19 +0200108
Nils Diewalda1228622015-04-25 01:59:10 +0000109 border: {
110 style: solid;
111 width: 1px;
112 }
Akron7e5afce2020-08-25 15:50:19 +0200113
Nils Diewalda1228622015-04-25 01:59:10 +0000114 &:not(.out) {
Akron7636edf2025-11-04 12:44:53 +0100115 @include choose.choose-item;
Akron7e5afce2020-08-25 15:50:19 +0200116 cursor: pointer;
Akron7636edf2025-11-04 12:44:53 +0100117 background-color: colors.$nearly-white;
Akron7e5afce2020-08-25 15:50:19 +0200118
Nils Diewalda1228622015-04-25 01:59:10 +0000119 &.today {
Akron7636edf2025-11-04 12:44:53 +0100120 background-color: colors.$light-blue;
121 color: colors.$dark-blue;
Akron7e5afce2020-08-25 15:50:19 +0200122 text-shadow: none;
Nils Diewalda1228622015-04-25 01:59:10 +0000123 }
Akron7e5afce2020-08-25 15:50:19 +0200124
Nils Diewalda1228622015-04-25 01:59:10 +0000125 &.selected {
Akron7636edf2025-11-04 12:44:53 +0100126 @include choose.choose-active;
Nils Diewalda1228622015-04-25 01:59:10 +0000127 }
Akron7e5afce2020-08-25 15:50:19 +0200128
Nils Diewalda1228622015-04-25 01:59:10 +0000129 &:hover {
Akron7636edf2025-11-04 12:44:53 +0100130 @include choose.choose-hover;
Nils Diewalda1228622015-04-25 01:59:10 +0000131 }
132 }
Akron7e5afce2020-08-25 15:50:19 +0200133
Nils Diewalda1228622015-04-25 01:59:10 +0000134 &.out {
135 border-color: transparent;
136 }
137 }
138}