Merge "Limit editor text area styles to where they are needed"
This commit is contained in:
commit
68d1bc61f6
|
@ -2,6 +2,15 @@
|
|||
@import 'minerva.variables.less';
|
||||
@import 'mediawiki.mixins.animation.less';
|
||||
|
||||
.editor-textarea() {
|
||||
// stylelint-disable-next-line no-descending-specificity
|
||||
.box-sizing( border-box );
|
||||
width: 100%;
|
||||
// Note if a textarea has a .mw-ui-input class, this may be overridden
|
||||
padding: 10px @contentPadding 10px @contentPadding;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
// Generic mixin for applying styles to text that accompanies/adds context to workflows
|
||||
.secondary-text() {
|
||||
font-size: 0.9em;
|
||||
|
|
|
@ -12,7 +12,7 @@ small, strike, strong, sub, sup, tt,
|
|||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
input, textarea, button, select,
|
||||
input, button, select,
|
||||
audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
|
|
@ -7,14 +7,6 @@
|
|||
.box-sizing( border-box );
|
||||
}
|
||||
|
||||
textarea {
|
||||
padding: 5px 0 5px 5px;
|
||||
width: 100%;
|
||||
resize: none;
|
||||
// stylelint-disable-next-line no-descending-specificity
|
||||
.box-sizing( border-box );
|
||||
}
|
||||
|
||||
// We hide the table of contents unless the user is viewing in tablet resolution or higher
|
||||
.toc-mobile,
|
||||
// Table of contents as provided by parser has no styling, this is a temporary measure until we are able
|
||||
|
|
|
@ -255,7 +255,6 @@ input.search {
|
|||
.overlay .content-header,
|
||||
.overlay .panel,
|
||||
.page-list.side-list .list-thumb,
|
||||
.editor-overlay .wikitext-editor,
|
||||
.page-list li,
|
||||
.topic-title-list li,
|
||||
.site-link-list li,
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
@import '../../minerva.less/minerva.mixins';
|
||||
|
||||
.mw-editform {
|
||||
|
||||
textarea {
|
||||
.editor-textarea();
|
||||
}
|
||||
|
||||
.editHelp, .cancelLink {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
.overlay {
|
||||
padding-top: @headerHeight;
|
||||
|
||||
textarea {
|
||||
.editor-textarea();
|
||||
}
|
||||
|
||||
> ul, button {
|
||||
width: @headerHeight;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue