mediawiki-extensions-InputBox/resources/ext.inputBox.styles.less
Jon Robson 0d8dcb2f4e InputBox uses Codex instead of mediawiki ui
Bug: T353371
Change-Id: Iedfe34accc0c3469c9391208a1898cb544e896cb
2024-06-25 23:00:32 +00:00

77 lines
1.2 KiB
Plaintext

@import 'mediawiki.skin.variables.less';
.mw-inputbox-centered {
margin-left: auto;
margin-right: auto;
text-align: center;
.cdx-checkbox__icon {
text-align: initial;
}
}
.bodySearchWrap {
display: flex;
}
.mw-inputbox-inline {
display: inline-flex;
min-width: auto;
}
.mw-inputbox-element.mw-inputbox-element {
display: inline-table;
white-space: nowrap;
}
.mw-inputbox-input {
margin-bottom: 0.5em;
}
/* Allow support for the size attribute if it was set */
.mw-inputbox-input[ size ],
.mw-inputbox-createbox[ size ] {
width: auto !important;
}
form.mw-inputbox-form-inline {
display: flex;
justify-content: center;
column-gap: 4px;
.cdx-text-input {
min-width: auto !important;
}
}
form.mw-inputbox-form {
line-height: 0.6;
.cdx-text-input {
display: flex;
justify-content: center;
}
.mw-inputbox-label {
display: flex;
align-items: center;
}
.mw-inputbox-inline {
.cdx-text-input {
display: inline-flex;
min-width: auto;
}
}
}
form.createbox {
&:invalid .cdx-button {
// appear like .mw-ui-input:disabled
background-color: @background-color-disabled !important;
color: @color-inverted !important;
border-color: @border-color-disabled !important;
cursor: @cursor-base--disabled !important;
}
}