mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Replace jquery-datetimepicker with native date input (#11684)
This removes the jQuery plugin as well as the associated config options. Native input[type=date] does not require a language attribute as it is localized by default, except for the placeholder attribute for which I currently piggy-back the repo.issues.due_date_form localization option. Implementation should pretty much match GH. Of note is that Safari does not provide a UI for this input type, but I don't think providing one is neccessary and GH did not bother either. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
@@ -1395,80 +1395,6 @@ a.ui.labels .label:hover {
|
||||
}
|
||||
}
|
||||
|
||||
body .xdsoft_datetimepicker {
|
||||
background: #2a2e39;
|
||||
border: 1px solid #4c505c;
|
||||
color: #9e9e9e;
|
||||
|
||||
.xdsoft_monthpicker {
|
||||
height: 36px;
|
||||
background: #464c5d;
|
||||
margin: -2px -8px 2px;
|
||||
padding: 2px 8px 0;
|
||||
|
||||
button {
|
||||
background-image: none;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
color: #9e9e9e;
|
||||
|
||||
&.xdsoft_prev::before {
|
||||
content: "\f0d9";
|
||||
font: normal normal normal 14px/1 FontAwesome, serif;
|
||||
font-size: 1.7em;
|
||||
}
|
||||
|
||||
&.xdsoft_next::before {
|
||||
content: "\f0da";
|
||||
font: normal normal normal 14px/1 FontAwesome, serif;
|
||||
font-size: 1.7em;
|
||||
}
|
||||
|
||||
&.xdsoft_today_button::before {
|
||||
content: "\f015";
|
||||
font: normal normal normal 14px/1 FontAwesome, serif;
|
||||
font-size: 1.4em;
|
||||
}
|
||||
}
|
||||
|
||||
& > div.xdsoft_label {
|
||||
background: #464c5d;
|
||||
|
||||
i {
|
||||
line-height: 14px;
|
||||
background-image: none;
|
||||
text-indent: 0;
|
||||
text-align: center;
|
||||
|
||||
::before {
|
||||
content: "\f0dd";
|
||||
font: normal normal normal 14px/1 FontAwesome, serif;
|
||||
font-size: .7em;
|
||||
}
|
||||
}
|
||||
|
||||
.xdsoft_select {
|
||||
background: #353945;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.xdsoft_datepicker .xdsoft_calendar {
|
||||
td,
|
||||
th {
|
||||
border-color: #4c505c;
|
||||
background-color: #2a2e39;
|
||||
}
|
||||
|
||||
td.xdsoft_other_month,
|
||||
td.xdsoft_disabled {
|
||||
opacity: .8;
|
||||
background: #a0cc75;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.heatmap(@heat) {
|
||||
@heatmap-cold: #2d303b;
|
||||
@heatmap-hot: #a0cc75;
|
||||
|
Reference in New Issue
Block a user