_datePicker.appendChild(header);
_dateMonthPrevious = elCreate('a');
- _dateMonthPrevious.className = 'icon icon16 fa-arrow-left previous';
+ _dateMonthPrevious.className = 'previous';
+ _dateMonthPrevious.innerHTML = '<span class="icon icon16 fa-arrow-left"></span>';
_dateMonthPrevious.addEventListener(WCF_CLICK_EVENT, this.previousMonth.bind(this));
header.appendChild(_dateMonthPrevious);
monthYearContainer.appendChild(selectWrapper);
_dateMonthNext = elCreate('a');
- _dateMonthNext.className = 'icon icon16 fa-arrow-right next';
+ _dateMonthNext.className = 'next';
+ _dateMonthNext.innerHTML = '<span class="icon icon16 fa-arrow-right"></span>';
_dateMonthNext.addEventListener(WCF_CLICK_EVENT, this.nextMonth.bind(this));
header.appendChild(_dateMonthNext);
.inputAddon > .inputDatePicker {
cursor: pointer;
- flex: 0 1 150px;
- min-width: 150px;
+ flex: 0 1 200px;
+ min-width: 200px;
}
.datePicker {
display: block;
}
- > header,
- > footer {
- padding: 10px;
- position: relative;
- text-align: center;
- }
-
- > header > a {
- display: none;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
+ > header {
+ align-items: center;
+ display: flex;
- &.active {
+ > a {
display: block;
+ flex: 0 0 auto;
+ padding: 10px;
+
+ &:not(.active) {
+ visibility: hidden;
+ }
}
- &.previous {
- left: 10px;
- }
-
- &.next {
- right: 10px;
+ > span {
+ display: block;
+ flex: 1 1 auto;
+ padding: 10px 0;
+ text-align: center;
}
}
> footer {
border-top: 1px solid $wcfDropdownBorder;
display: none;
+ padding: 10px;
+ position: relative;
+ text-align: center;
}
}