mediawiki-skins-Citizen/skinStyles/mediawiki/mediawiki.diff.styles.less

64 lines
1.1 KiB
Plaintext
Raw Normal View History

/*
* Citizen - Diff Styles
* https://starcitizen.tools
*/
@import '../../resources/variables.less';
2021-03-06 15:48:58 +00:00
.diff {
display: table; // So that it does not break layout in mobile
&change {
color: var( --color-base--emphasized );
}
2021-03-06 15:48:58 +00:00
&-lineno {
font-size: 0.875rem;
font-weight: var( --font-weight-normal );
letter-spacing: 0.05em;
}
2021-03-06 15:48:58 +00:00
&-context {
border-color: var( --border-color-base );
background: transparent;
2021-03-06 15:48:58 +00:00
color: var( --color-base--subtle );
}
2021-03-06 15:48:58 +00:00
&-addedline {
border-color: var( --color-success );
.diffchange {
background: var( --background-color-success );
}
}
2021-03-06 15:48:58 +00:00
&-deletedline {
border-color: var( --color-destructive );
.diffchange {
background: var( --background-color-destructive );
}
}
&-addedline,
&-deletedline,
&-context {
font-size: 0.8125rem; // relative font size
}
&-editfont-monospace {
.diff {
&-addedline,
&-deletedline,
&-context {
font-family: var( --font-family-monospace );
}
}
}
}
2021-03-06 15:48:58 +00:00
.mw-diff-movedpara-left:after,
.mw-diff-movedpara-right:after {
color: var( --color-base--subtle );
}