mediawiki-skins-MinervaNeue/skinStyles/mediawiki.action.history.styles.less

202 lines
4.5 KiB
Plaintext
Raw Normal View History

@import '../minerva.less/minerva.mixins.less';
@import '../minerva.less/minerva.variables.less';
@import 'mediawiki.ui/variables';
@import 'mediawiki.ui/mixins.buttons';
.action-history {
#mw-content-text > form {
margin: 0;
}
// the margin value used to create a "faux" column after the
// radio buttons.
@revision-selectors-width: 50px;
// form element wrapping history page content. Overrides #mw-content-text > form
// for tablet widths.
#mw-history-compare {
width: 100%;
max-width: 100%;
}
// The large "Compare selected revisions" button container
.mw-history-compareselectedversions {
position: sticky;
position: -webkit-sticky;
top: 0;
background: @skinContentBgColor;
z-index: @z-indexAboveContent;
// "Compare selected revisions" button
.mw-history-compareselectedversions-button {
.mw-ui-button();
.mw-ui-button-colors-primary( @colorProgressive, @colorProgressiveHighlight, @colorProgressiveActive );
width: 100%;
max-width: 100%;
-webkit-appearance: unset;
font-weight: bold;
border-radius: 2px;
margin: 10px 0;
}
// Admin specific "change visibility of selected revisions" buttons.
.mw-history-revisionactions,
.mw-checkbox-toggle-controls {
display: none;
}
// Second large "Compare selected revisions" button container at bottom of page
& ~ .mw-history-compareselectedversions {
// hide second "Compare selected revisions" button near bottom
.mw-history-compareselectedversions-button {
display: none;
}
// show second "Change visibility of selected revisions" button near bottom
.mw-history-revisionactions,
.mw-checkbox-toggle-controls {
display: block;
}
}
}
// "Change visibility of selected revisions" button (for admins only)
.mw-history-revisiondelete-button {
.mw-ui-button();
.mw-ui-button-states();
background-color: @colorGray15;
margin-bottom: 1em;
}
#pagehistory {
margin-bottom: 24px;
Feature flag overhaul Two new feature flags: 1) MinervaPersonalMenu 2) MinervaAdvancedMainMenu Changes: * AMC defaults to false on desktop - desktop doesn't have AMC mode it just enables several skin options. * WHen inserting a link at the bottom of the page check whether the talk at top of the page (tabs) is enabled.. not AMC * Update ServiceWiring to construct menu based on MinervaAdvancedMainMenu and MinervaPersonalMenu - note when former is enabled but not latter there is no way to logout. Noted in README. * Use one entry point for skins.minerva.amc.styles/index.less * Document files inside skins.minerva.amc.styles to make it clear which features they are associated with * Drop history page styles when AMC is disabled - it's not possible to ever get to these as the history page redirects in non-AMC mode * Rename the class .minerva--amc-enabled to minerva--history-page-action-enabled to reflect its real purpose and move styles from skins.minerva.base.styles to skins.minerva.amc.styles No need to worry about cached HTML as AMC runs without cache... * Remove isAnyAMCOptionEnabled - it's an antipattern and should be discouraged as it discourages the art of feature flagging. Nothing is using it after these changes. * The AMC_MODE flag is disabled. There is no need for this - AMC is not a feature and therefore not a skin option. It is a mechanism for turning on other skin options. Tests are updated. Testing: It should now be possible to enable any feature in `beta` and see it in the beta of the site. Bug: T229295 Change-Id: I48959905f5c09721b14a27aa1a5ad82849ac6263
2019-08-22 20:31:31 +00:00
padding: 0;
li {
Feature flag overhaul Two new feature flags: 1) MinervaPersonalMenu 2) MinervaAdvancedMainMenu Changes: * AMC defaults to false on desktop - desktop doesn't have AMC mode it just enables several skin options. * WHen inserting a link at the bottom of the page check whether the talk at top of the page (tabs) is enabled.. not AMC * Update ServiceWiring to construct menu based on MinervaAdvancedMainMenu and MinervaPersonalMenu - note when former is enabled but not latter there is no way to logout. Noted in README. * Use one entry point for skins.minerva.amc.styles/index.less * Document files inside skins.minerva.amc.styles to make it clear which features they are associated with * Drop history page styles when AMC is disabled - it's not possible to ever get to these as the history page redirects in non-AMC mode * Rename the class .minerva--amc-enabled to minerva--history-page-action-enabled to reflect its real purpose and move styles from skins.minerva.base.styles to skins.minerva.amc.styles No need to worry about cached HTML as AMC runs without cache... * Remove isAnyAMCOptionEnabled - it's an antipattern and should be discouraged as it discourages the art of feature flagging. Nothing is using it after these changes. * The AMC_MODE flag is disabled. There is no need for this - AMC is not a feature and therefore not a skin option. It is a mechanism for turning on other skin options. Tests are updated. Testing: It should now be possible to enable any feature in `beta` and see it in the beta of the site. Bug: T229295 Change-Id: I48959905f5c09721b14a27aa1a5ad82849ac6263
2019-08-22 20:31:31 +00:00
.changeslist-row();
min-height: inherit;
padding: 12px 0;
}
li:after {
.clearfix();
}
// diff radio buttons, admin revision-delete checkbox
input[ type='radio' ],
input[ type='checkbox' ] {
float: left;
position: relative;
display: inline-block;
vertical-align: baseline;
// aligning checkboxes with text
top: 5px;
margin-right: 10px;
// FIXME: Overrides the border: 0 in reset.less
// When that reset rule doesn't exist, neither should this.
border: 1px solid @grayLight;
}
// FIXME: Override the background: none; in reset.less.
// When that reset rule doesn't exist, neither should this.
input[ type='radio' ] {
background: @grayMediumDark;
}
// checkbox appears slightly smaller than radio buttons,
// moving down 6px to vertically center.
input[ type='checkbox' ] {
top: 6px;
}
// (cur|prev) links
.mw-history-histlinks {
float: right;
}
// date
.mw-changeslist-date {
float: left;
font-weight: bold;
clear: none;
}
// user name
.history-user {
float: left;
// margin separates the entire username (talk | contrib) block
// from the (cur|prev) links on the right. Approximates a  
margin-right: 0.5em;
.mw-userlink {
// margin separates the username
// from the (talk | contrib) links. Approximates a  
margin-right: 0.5em;
}
}
// container for rollback, undo buttons
.mw-changeslist-links:not( .mw-usertoollinks ):not( .mw-history-histlinks ) {
float: right;
font-size: @font-size-minerva-small;
&:after {
.clearfix();
}
// removing parentheses around undo button
& > span:before {
content: '';
}
& > span:after {
content: '';
}
// rollback edit link
.mw-rollback-link a {
// separating rollback link from undo link.
margin-left: 1em;
}
}
// edit summary
.comment {
// meant to give space for the undo button to the right of
// the revision description.
width: 65%;
}
// edit summary, +/- bytes changed, tags
.comment,
.updatedmarker,
.mw-diff-bytes,
.mw-tag-markers {
float: left;
clear: left;
}
// add left margin to create a faux column after the radio buttons
.history-user,
.comment,
.updatedmarker,
.mw-diff-bytes,
.mw-history-tools,
.mw-tag-markers {
margin-left: @revision-selectors-width;
}
}
// hide page instructions
.mw-history-legend,
// article size
.history-size,
// double dot separator
.mw-changeslist-separator,
// thank link
.mw-thanks-thank-link,
abbr {
display: none;
}
}