blob: ecc509d937fea116d0dfaa4cad47f239a7af0db1 [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 Diewalda1228622015-04-25 01:59:10 +000010div.datepicker {
Nils Diewald652e5f42015-05-10 18:11:45 +000011 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +020012 position: absolute;
13 display: inline-block;
14 z-index: 90;
15 font-size: 80%;
16 padding: 4pt;
Nils Diewalda1228622015-04-25 01:59:10 +000017 box-shadow: $choose-box-shadow;
Nils Diewald652e5f42015-05-10 18:11:45 +000018
Nils Diewalda1228622015-04-25 01:59:10 +000019 border: {
Akron7e5afce2020-08-25 15:50:19 +020020 width: $border-size;
21 style: solid;
Nils Diewalda1228622015-04-25 01:59:10 +000022 radius: $standard-border-radius;
23 }
Akron7e5afce2020-08-25 15:50:19 +020024
Nils Diewalda1228622015-04-25 01:59:10 +000025 > div {
26 font-size: 120%;
Akron7e5afce2020-08-25 15:50:19 +020027 width: 45%;
28
Nils Diewald652e5f42015-05-10 18:11:45 +000029 &.month {
30 float: right;
31 }
Nils Diewald7148c6f2015-05-04 15:07:53 +000032
Nils Diewald652e5f42015-05-10 18:11:45 +000033 > span {
Akron7e5afce2020-08-25 15:50:19 +020034 display: inline-block;
35 overflow: hidden;
36 white-space: nowrap;
37
Nils Diewald652e5f42015-05-10 18:11:45 +000038 &:first-child,
39 &:last-child {
Akron7e5afce2020-08-25 15:50:19 +020040 width: 15%;
41 &::before {
42 @include icon-font;
43 display: inline-block;
44 text-align: center;
45 cursor: pointer;
46 min-width: 14px;
47 }
Nils Diewaldbdf79c52015-04-29 23:47:13 +000048 }
Akron7e5afce2020-08-25 15:50:19 +020049
Nils Diewald652e5f42015-05-10 18:11:45 +000050 &:first-child::before {
Akron7e5afce2020-08-25 15:50:19 +020051 content: $fa-previous;
Nils Diewaldbdf79c52015-04-29 23:47:13 +000052 }
Akron7e5afce2020-08-25 15:50:19 +020053
Nils Diewald652e5f42015-05-10 18:11:45 +000054 &:last-child::before {
Akron7e5afce2020-08-25 15:50:19 +020055 content: $fa-next;
Nils Diewald652e5f42015-05-10 18:11:45 +000056 }
Akron7e5afce2020-08-25 15:50:19 +020057
Nils Diewald652e5f42015-05-10 18:11:45 +000058 &:nth-child(2) {
Akron7e5afce2020-08-25 15:50:19 +020059 display: inline-block;
60 cursor: pointer;
61 width: 70%;
62 text-align: center;
63 text-overflow: ellipsis;
64
65 border: {
66 radius: $standard-border-radius;
67 style: solid;
68 width: $border-size;
69 color: transparent;
70 }
71
72 &:hover {
73 @include choose-hover;
74 }
75
76 &.selected {
77 @include choose-active;
78 }
Nils Diewald7148c6f2015-05-04 15:07:53 +000079 }
Nils Diewalda1228622015-04-25 01:59:10 +000080 }
81 }
Nils Diewald652e5f42015-05-10 18:11:45 +000082
Nils Diewalda1228622015-04-25 01:59:10 +000083 table {
84 border-collapse: separate;
Akron7e5afce2020-08-25 15:50:19 +020085 border-spacing: 1px;
Nils Diewalda1228622015-04-25 01:59:10 +000086 }
Nils Diewald652e5f42015-05-10 18:11:45 +000087
Akronc59f7322016-04-20 13:46:05 +020088 input {
Akron7e5afce2020-08-25 15:50:19 +020089 @include choose-item;
Akronc59f7322016-04-20 13:46:05 +020090 @include standard-text-padding;
Akron7e5afce2020-08-25 15:50:19 +020091 background-color: $nearly-white;
92 width: 100%;
93
Akronc59f7322016-04-20 13:46:05 +020094 border: {
95 style: solid;
96 width: 1px;
97 }
Akronc59f7322016-04-20 13:46:05 +020098 }
99
Nils Diewalda1228622015-04-25 01:59:10 +0000100 td {
101 @include standard-text-padding;
102 text-align: center;
Akron7e5afce2020-08-25 15:50:19 +0200103
Nils Diewalda1228622015-04-25 01:59:10 +0000104 border: {
105 style: solid;
106 width: 1px;
107 }
Akron7e5afce2020-08-25 15:50:19 +0200108
Nils Diewalda1228622015-04-25 01:59:10 +0000109 &:not(.out) {
Nils Diewalda1228622015-04-25 01:59:10 +0000110 @include choose-item;
Akron7e5afce2020-08-25 15:50:19 +0200111 cursor: pointer;
Nils Diewalda1228622015-04-25 01:59:10 +0000112 background-color: $nearly-white;
Akron7e5afce2020-08-25 15:50:19 +0200113
Nils Diewalda1228622015-04-25 01:59:10 +0000114 &.today {
Akron7e5afce2020-08-25 15:50:19 +0200115 background-color: $light-blue;
116 color: $dark-blue;
117 text-shadow: none;
Nils Diewalda1228622015-04-25 01:59:10 +0000118 }
Akron7e5afce2020-08-25 15:50:19 +0200119
Nils Diewalda1228622015-04-25 01:59:10 +0000120 &.selected {
Akron7e5afce2020-08-25 15:50:19 +0200121 @include choose-active;
Nils Diewalda1228622015-04-25 01:59:10 +0000122 }
Akron7e5afce2020-08-25 15:50:19 +0200123
Nils Diewalda1228622015-04-25 01:59:10 +0000124 &:hover {
Akron7e5afce2020-08-25 15:50:19 +0200125 @include choose-hover;
Nils Diewalda1228622015-04-25 01:59:10 +0000126 }
127 }
Akron7e5afce2020-08-25 15:50:19 +0200128
Nils Diewalda1228622015-04-25 01:59:10 +0000129 &.out {
130 border-color: transparent;
131 }
132 }
133}