mediawiki-extensions-InputBox/resources/ext.inputBox.styles.less

77 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

@import 'mediawiki.skin.variables.less';
2021-05-21 02:03:06 +00:00
.mw-inputbox-centered {
margin-left: auto;
margin-right: auto;
text-align: center;
.cdx-checkbox__icon {
text-align: initial;
}
}
.bodySearchWrap {
display: flex;
2021-05-21 02:03:06 +00:00
}
.mw-inputbox-inline {
display: inline-flex;
min-width: auto;
2021-05-21 02:03:06 +00:00
}
.mw-inputbox-element.mw-inputbox-element {
display: inline-table;
2021-05-21 02:03:06 +00:00
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;
}
2021-05-21 02:03:06 +00:00
}