mediawiki-skins-Vector/includes/templates
Nicholas Ray 092a2957af Implement Page, Workspace, Content, and Article Toolbar Containers
This patch closely follows the desired guidelines/desired
styles Alex Hollender has put forth in his prototype, but uses
multiple containers to achieve this look since our DOM order/structure
is different than the DOM structure in the prototype. The following
containers are used, but unlike his prototype, they are sometimes used
more than once:

* Page Container: Contains every other container and limits the overall
max-width of the white part of the page.

* Workspace Container: Contains the sidebar and content container. The
sidebar is displaced ~30 pixels to the start (left) of the workspace
container at all times.

* Content Container: Contains the content. The max-width of this changes
depending on whether you are on a special page/history page vs. other
pages.

* Article Toolbar Container: Contains the article toolbar. The max-width
of this is always the same as the max-width of the article content as we
don't want the toolbar to move when going from the article page to the
history/special page.

Changes to be aware:

* To test locally, `$wgVectorLayoutMaxWidth = true;`. This design is
temporarily feature flagged and defaults to being "off".

* Note that layout-max-width.less is a temporary file made to meet the
feature flag requirement of T246420 (intended to derisk the deployment).
After the deploy, we should merge most if not all of the rules into
layout.less where the max-width design will become the default.

* Per Jon's code review comment, I have relaxed the indenting of
skin.mustache to make the diff easier to reason about. If desired, the
correct indenting can be achieved in a (much less risky) follow-up
commit.

Bug: T246420
Bug: T153043
Change-Id: Ie49f629bc705850c6996164a516957476c034048
2020-07-07 18:34:38 -06:00
..
legacy Separate languages portal from other portals in sidebar 2020-06-22 15:28:02 -07:00
Footer.mustache Use semantic HTML5 elements where applicable 2020-06-09 17:43:45 +00:00
Indicators.mustache Model indicators as their own template rather than a block of HTML 2020-06-09 14:30:08 -07:00
Logo.mustache [modern] A new version of Vector with a new logo 2020-04-30 14:11:54 -07:00
Menu.mustache Replace deprecated classes with modern ones 2020-06-11 14:05:15 -07:00
SearchBox.mustache [refactor] Drop form-id template property 2020-06-25 18:21:38 +00:00
Sidebar.mustache Remove unused mw-checkbox-hack-target class 2020-06-24 17:31:11 -07:00
skin-legacy.mustache Use core .mixin-clearfix() instead of DOM element 2020-07-01 11:20:26 -07:00
skin.mustache Implement Page, Workspace, Content, and Article Toolbar Containers 2020-07-07 18:34:38 -06:00