From bf4d843d97c8b5f9ae7d58de892658ef80860ea5 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Mon, 16 May 2022 12:47:48 +0800 Subject: [PATCH] Move a max-width Less variable up into variables.less This makes it accessible elsewhere (such as within WikiEditor; see the dependent patch) without having to include all of screen.less. Bug: T307725 Change-Id: I3fda9886c27fe0b78cf5bd5647d7e497a3aaba0e --- resources/common/variables.less | 1 + resources/skins.vector.styles/layouts/screen.less | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/common/variables.less b/resources/common/variables.less index 551e0808..c8c1af2b 100644 --- a/resources/common/variables.less +++ b/resources/common/variables.less @@ -175,5 +175,6 @@ // Layout // @max-width-page-container: unit( 1514px / @font-size-browser, em ); // 99.75em @ 16 +@max-width-content-container: unit( 960px / @font-size-browser, em ); // 60em @ 16 @padding-horizontal-page-container: unit( 32px / @font-size-browser, em ); @padding-horizontal-page-container-wide: unit( 40px / @font-size-browser, em ); diff --git a/resources/skins.vector.styles/layouts/screen.less b/resources/skins.vector.styles/layouts/screen.less index 3f43a2c8..73da9a8c 100644 --- a/resources/skins.vector.styles/layouts/screen.less +++ b/resources/skins.vector.styles/layouts/screen.less @@ -27,10 +27,9 @@ @min-width-page-container--padded: @max-width-page-container + ( 2 * @padding-horizontal-page-container ); // 106.875em -// Content containers +// Content container @max-width-workspace-container: unit( 1514px / @font-size-browser, em ); // 99.75em @ 16 -@max-width-content-container: unit( 960px / @font-size-browser, em ); // 60em @ 16 // Note this uses variables defined in mediawiki.skin.variables so that VisualEditor can read them // see T259331.