/* Copyright 2014 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* This sheet is appended to html.css before parsing which means the selectors
below are in the default html namespace:
@namespace "http://www.w3.org/1999/xhtml"
*/
input[type="date" i],
input[type="datetime-local" i],
input[type="month" i],
input[type="time" i],
input[type="week" i] {
font-family: monospace;
padding: 0;
padding-inline-start: 1px;
cursor: default;
}
input::-webkit-datetime-edit {
flex: 1;
min-width: 0;
-webkit-user-modify: read-only !important;
display: inline-block;
overflow: hidden;
}
input::-internal-datetime-container {
display: flex;
align-items: center;
}
input::-webkit-datetime-edit-fields-wrapper {
-webkit-user-modify: read-only !important;
display: inline-block;
padding: 1px 0;
white-space: pre;
}
/* If you update padding, border, or margin in the following ruleset, update
DateTimeFieldElement::maximumWidth too. */
input::-webkit-datetime-edit-ampm-field,
input::-webkit-datetime-edit-day-field,
input::-webkit-datetime-edit-hour-field,
input::-webkit-datetime-edit-millisecond-field,
input::-webkit-datetime-edit-minute-field,
input::-webkit-datetime-edit-month-field,
input::-webkit-datetime-edit-second-field,
input::-webkit-datetime-edit-week-field,
input::-webkit-datetime-edit-year-field {
-webkit-user-modify: read-only !important;
border: none;
display: inline;
font: inherit !important;
padding: 1px;
}
/* If you update padding, border, or margin in the following ruleset, update
DateTimeEditElement::customStyelForRenderer too. */
input::-webkit-datetime-edit-text {
-webkit-user-modify: read-only !important;
display: inline;
font: inherit !important;
}
input[type="date" i]::-webkit-inner-spin-button,
input[type="datetime" i]::-webkit-inner-spin-button,
input[type="datetime-local" i]::-webkit-inner-spin-button,
input[type="month" i]::-webkit-inner-spin-button,
input[type="time" i]::-webkit-inner-spin-button,
input[type="week" i]::-webkit-inner-spin-button {
/* FIXME: Remove height. */
height: 1.5em;
margin-inline-start: 2px;
}