Merge "Limit editor text area styles to where they are needed"

This commit is contained in:
jenkins-bot 2018-07-26 23:28:55 +00:00 committed by Gerrit Code Review
commit 68d1bc61f6
6 changed files with 19 additions and 10 deletions

View File

@ -2,6 +2,15 @@
@import 'minerva.variables.less'; @import 'minerva.variables.less';
@import 'mediawiki.mixins.animation.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 // Generic mixin for applying styles to text that accompanies/adds context to workflows
.secondary-text() { .secondary-text() {
font-size: 0.9em; font-size: 0.9em;

View File

@ -12,7 +12,7 @@ small, strike, strong, sub, sup, tt,
b, u, i, center, b, u, i, center,
dl, dt, dd, ol, ul, li, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, fieldset, form, label, legend,
input, textarea, button, select, input, button, select,
audio, video { audio, video {
margin: 0; margin: 0;
padding: 0; padding: 0;

View File

@ -7,14 +7,6 @@
.box-sizing( border-box ); .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 // We hide the table of contents unless the user is viewing in tablet resolution or higher
.toc-mobile, .toc-mobile,
// Table of contents as provided by parser has no styling, this is a temporary measure until we are able // Table of contents as provided by parser has no styling, this is a temporary measure until we are able

View File

@ -255,7 +255,6 @@ input.search {
.overlay .content-header, .overlay .content-header,
.overlay .panel, .overlay .panel,
.page-list.side-list .list-thumb, .page-list.side-list .list-thumb,
.editor-overlay .wikitext-editor,
.page-list li, .page-list li,
.topic-title-list li, .topic-title-list li,
.site-link-list li, .site-link-list li,

View File

@ -2,6 +2,11 @@
@import '../../minerva.less/minerva.mixins'; @import '../../minerva.less/minerva.mixins';
.mw-editform { .mw-editform {
textarea {
.editor-textarea();
}
.editHelp, .cancelLink { .editHelp, .cancelLink {
display: none; display: none;
} }

View File

@ -4,6 +4,10 @@
.overlay { .overlay {
padding-top: @headerHeight; padding-top: @headerHeight;
textarea {
.editor-textarea();
}
> ul, button { > ul, button {
width: @headerHeight; width: @headerHeight;
} }