Improved visuals for .selectDropdown
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / datePicker.scss
CommitLineData
8882fff9
MS
1// TODO: overhaul file
2
5a961a44 3.inputAddon > .inputDatePicker {
8882fff9 4 // TODO: background-color: @wcfInputBackgroundColor !important;
5a961a44
AE
5 cursor: pointer;
6 flex: 0 1 150px;
7 min-width: 150px;
8}
9
10.datePicker {
8882fff9
MS
11 background-color: $wcfDropdownBackground;
12 border: 1px solid $wcfDropdownBorder;
5a961a44 13 border-radius: 3px;
8882fff9 14 color: $wcfDropdownText;
5a961a44
AE
15 opacity: 0;
16 position: absolute;
17 transition: visibility .3s linear .3s, opacity .3s linear;
18 visibility: hidden;
19 width: 240px;
20 z-index: 450;
81f55d8f 21
8882fff9 22 @include boxShadow(2px, 2px, rgba(0, 0, 0, .2), 10px);
d7f7f6eb 23
5a961a44
AE
24 &.active {
25 opacity: 1;
26 transition-delay: 0s;
27 visibility: visible;
81f55d8f
AE
28 }
29
5a961a44
AE
30 &.datePickerTime > footer {
31 display: block;
81f55d8f
AE
32 }
33
5a961a44 34 > .elementPointer {
8882fff9 35 border-color: $wcfDropdownBorder transparent;
5a961a44
AE
36 border-style: solid;
37 border-width: 0 8px 8px;
81f55d8f 38
5a961a44 39 > span {
8882fff9 40 border-color: $wcfDropdownBackground transparent;
5a961a44
AE
41 border-style: solid;
42 border-width: 0 6px 6px;
43 left: -6px;
44 position: absolute;
45 top: 2px;
7b658f88
MW
46 }
47
5a961a44
AE
48 &.flipVertical {
49 border-width: 8px 8px 0;
556973c1 50
5a961a44
AE
51 > span {
52 border-width: 6px 6px 0;
556973c1 53 }
81f55d8f
AE
54 }
55 }
56
5a961a44
AE
57 > header,
58 > footer {
8882fff9 59 padding: $wcfGapSmall;
5a961a44
AE
60 position: relative;
61 text-align: center;
62 }
63
64 > header > a {
65 display: none;
66 position: absolute;
67 top: 50%;
68 transform: translateY(-50%);
7b658f88 69
5a961a44
AE
70 &.active {
71 display: block;
7b658f88 72 }
81f55d8f 73
5a961a44 74 &.previous {
8882fff9 75 left: $wcfGapSmall;
81f55d8f 76 }
a2ae7499 77
5a961a44 78 &.next {
8882fff9 79 right: $wcfGapSmall;
a2ae7499
MW
80 }
81 }
55b00c1c 82
5a961a44 83 > ul {
8882fff9 84 border-top: 1px solid $wcfDropdownBorder;
5a961a44
AE
85
86 // hide borders
87 margin: 0 -1px -1px 0;
88
89 > li {
90 display: flex;
55b00c1c 91
5a961a44
AE
92 > a,
93 > span {
8882fff9 94 border: 1px solid $wcfDropdownBorder;
5a961a44
AE
95 border-width: 0 1px 1px 0;
96 display: block;
97 flex: 1;
8882fff9 98 padding: $wcfGapTiny 0;
5a961a44 99 text-align: center;
55b00c1c
MS
100 }
101
5a961a44 102 > a {
8882fff9
MS
103 // TODO: background-color: @wcfContainerAccentBackgroundColor;
104 // TODO: color: @wcfColor;
5a961a44
AE
105
106 &:hover {
107 text-decoration: none;
108 }
55b00c1c 109
5a961a44
AE
110 &.active,
111 &:not(.otherMonth):hover {
8882fff9 112 // TODO: background-color: @wcfContainerHoverBackgroundColor;
55b00c1c
MS
113 }
114
5a961a44 115 &.otherMonth {
8882fff9
MS
116 // TODO: background-color: @wcfContainerBackgroundColor;
117 // TODO: color: @wcfDimmedColor;
5a961a44 118 cursor: default;
55b00c1c
MS
119 }
120 }
5a961a44
AE
121
122 > span {
8882fff9
MS
123 // TODO: background-color: @wcfTabularBoxBackgroundColor;
124 // TODO: border-right-color: @wcfTabularBoxBackgroundColor;
125 // TODO: color: @wcfTabularBoxColor;
5a961a44
AE
126 font-size: .85rem;
127 text-transform: uppercase;
128
8882fff9 129 // TODO: .textShadow(@wcfTabularBoxBackgroundColor);
5a961a44 130 }
55b00c1c
MS
131 }
132 }
5a961a44
AE
133
134 > footer {
135 display: none;
136 }
7b658f88 137}