mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-14 09:54:45 +00:00
38ca243e39
Replacing 'mediawiki.ui/variables.less' @import with new skin-aware 'mediawiki.skin.variables.less' standard. Removing calls for 'mediawiki.skin.variables.less' in favor for 'minerva.variables.less' for consistency. Also - replacing several static values with new Codex design token featuring skin variables of `background-color`, `color`, `border-*` and `transition` categories - renaming several Less variables to variable naming standard - moving a small number of MinervaNeue specific variables into 'minderva.variables.less' file. Those should be replaced in mid-future by Codex design tokens Please note, that this patch is not replacing all values with possible Codex tokens. It's just applying them on selected categories for consistency for now to keep the patch easier reviewable. Further replacements will be done in follow-up patches. Bump MediaWiki core required version to >= v1.41.0. Bug: T319381 Bug: T332541 Depends-On: I98c8cc27527533e2efb3b987ee34bc403e988b75 Change-Id: I86c5a35377541a784552c29456e0b8b507b3ee9c
77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
@import 'minerva.variables.less';
|
|
|
|
.editor-textarea() {
|
|
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;
|
|
// stylelint-disable-next-line plugin/no-unsupported-browser-features
|
|
resize: none;
|
|
}
|
|
|
|
.clearfix() {
|
|
display: block;
|
|
content: '';
|
|
clear: both;
|
|
}
|
|
|
|
// Mixins for history, contributions, watchlist and recent changes' changes list
|
|
.changeslist-minor-edit() {
|
|
background-color: @background-color-light;
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 85px;
|
|
border-radius: @border-radius-base;
|
|
padding: 0 6px 1px;
|
|
font-size: @font-size-minerva-small;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.changeslist-meta() {
|
|
position: absolute;
|
|
left: 0;
|
|
font-size: @font-size-minerva-small;
|
|
}
|
|
|
|
.changeslist-row() {
|
|
font-size: 0.85em;
|
|
list-style: none;
|
|
position: relative;
|
|
min-height: 80px;
|
|
width: 100%;
|
|
/* !important to override the too-specific rule .content ol li, .content ul li */
|
|
margin: 0 !important;
|
|
padding: 12px 0;
|
|
border-bottom: @border-width-base @border-style-base #eaecf0;
|
|
|
|
&::before,
|
|
&::after {
|
|
.clearfix();
|
|
}
|
|
}
|
|
|
|
.changeslist-row-item() {
|
|
color: #72777d;
|
|
margin: 0.5em 0;
|
|
padding-left: 85px;
|
|
font-size: @font-size-minerva-small;
|
|
}
|
|
|
|
.changeslist-header() {
|
|
background-color: @background-color-light;
|
|
color: @color-subtle;
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0.5em 16px 0.4em;
|
|
font-size: 0.85em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
// Generic mixin for applying styles to text that accompanies/adds context to workflows
|
|
.secondary-text() {
|
|
font-size: @font-size-minerva-small;
|
|
color: #72777d;
|
|
margin-top: 0.5em;
|
|
line-height: 1.4;
|
|
}
|