2020-04-09 19:16:36 +00:00
|
|
|
// Modern Vector stylesheets
|
|
|
|
|
2020-03-10 21:01:09 +00:00
|
|
|
@import '../../variables.less';
|
2020-04-28 01:44:16 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2020-03-10 21:01:09 +00:00
|
|
|
|
2020-03-10 19:13:42 +00:00
|
|
|
@media screen {
|
2020-06-12 00:24:17 +00:00
|
|
|
@import 'common/normalize.less';
|
2020-04-28 01:44:16 +00:00
|
|
|
@import 'layout.less';
|
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-06-23 18:02:32 +00:00
|
|
|
@import 'layout-max-width.less';
|
2020-04-09 19:16:36 +00:00
|
|
|
@import 'common/typography.less';
|
|
|
|
|
|
|
|
// Components
|
|
|
|
@import 'Indicators.less';
|
|
|
|
@import 'SiteNotice.less';
|
2020-05-05 23:26:35 +00:00
|
|
|
@import 'Menu.less';
|
2020-03-10 19:13:42 +00:00
|
|
|
@import 'SearchBox.less';
|
2020-05-06 17:15:50 +00:00
|
|
|
@import 'MenuTabs.less';
|
2020-04-09 19:16:36 +00:00
|
|
|
@import 'TabWatchstarLink.less';
|
2020-05-06 00:00:56 +00:00
|
|
|
@import 'MenuDropdown.less';
|
2020-04-07 23:21:20 +00:00
|
|
|
@import 'MenuPortal.less';
|
2020-03-10 19:13:42 +00:00
|
|
|
@import 'Sidebar.less';
|
2020-04-14 22:44:33 +00:00
|
|
|
@import 'SidebarLogo.less';
|
2020-03-10 19:13:42 +00:00
|
|
|
@import 'Footer.less';
|
|
|
|
}
|
|
|
|
|
2020-07-29 18:15:08 +00:00
|
|
|
@media all {
|
|
|
|
// Component styles that should apply in all modes.
|
|
|
|
@import 'Logo.less';
|
|
|
|
}
|
|
|
|
|
2020-04-09 19:16:36 +00:00
|
|
|
// Support: IE8
|
|
|
|
// Media query hack required.
|
|
|
|
@import 'TabWatchstarLink-ie8.less';
|
|
|
|
|
|
|
|
// Media: Print
|
|
|
|
@import 'common/print.less';
|