mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 13:10:14 +01:00
99eaef6ee6
Fixes #7210, replacing #9651 as per https://github.com/wagtail/wagtail/issues/7210#issuecomment-1325707942. AdminAutoHeightTextInput now inserts a w-field__autosize classname which explicitly disables the resizing handle, leaving resizing fully in control of the jquery.autosize plugin.
50 lines
1.1 KiB
SCSS
50 lines
1.1 KiB
SCSS
// All HTML5 input types, with irrelevant ones commented out.
|
|
// input[type="button"],
|
|
// input[type="checkbox"],
|
|
// input[type="color"],
|
|
input[type="date"],
|
|
input[type="datetime-local"],
|
|
input[type="email"],
|
|
input[type="file"],
|
|
// input[type="hidden"],
|
|
// input[type="image"],
|
|
input[type="month"],
|
|
input[type="number"],
|
|
input[type="password"],
|
|
// input[type="radio"],
|
|
// input[type="range"],
|
|
// input[type="reset"],
|
|
input[type="search"],
|
|
// input[type="submit"],
|
|
input[type="tel"],
|
|
input[type="text"],
|
|
input[type="time"],
|
|
input[type="url"],
|
|
input[type="week"],
|
|
textarea {
|
|
@include input-base();
|
|
@apply w-body-text-large;
|
|
width: 100%;
|
|
padding: theme('spacing.[1.5]') theme('spacing.5');
|
|
min-height: $text-input-height;
|
|
}
|
|
|
|
// Multiline text fields have larger top-bottom padding.
|
|
textarea {
|
|
padding: theme('spacing.5');
|
|
}
|
|
|
|
// Disable resize handle on textareas with auto-sizing behaviour
|
|
.w-field__autosize {
|
|
resize: none;
|
|
}
|
|
|
|
// Make non-text field types with custom widgets have a smaller width.
|
|
.w-field--date_field,
|
|
.w-field--date_time_field,
|
|
.w-field--time_field {
|
|
input {
|
|
width: auto;
|
|
}
|
|
}
|