Skip to content

Commit

Permalink
feat(core): ✨ make changelist item more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Dec 14, 2023
1 parent 0da7d8f commit e0f9ac1
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion skinStyles/mediawiki/special/mediawiki.special.changeslist.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,63 @@
}

&-inner {
width: 100%; // always take all avaliable width
color: var( --color-base--subtle );

/* New line for user */
& .changedby,
&-userLink {
&::before {
white-space: pre;
content: '\a';
}
}
}
}

&-separator {
color: var( --color-base--subtle );

&:empty {
display: inline-block;
width: var( --space-xs );

&::before {
content: none;
}
}
}
}

/* Sticky change byte */
.mw-diff-bytes {
float: right;
margin-left: var( --space-xs );
background: var( --color-surface-0 );

&::before,
&::after {
content: none;
}

.selected &,
.mw-changeslist-line:hover & {
background: transparent;
}
}

.mw-diff-bytes:not( .mw-changeslist-line-inner-characterDiff .mw-diff-bytes ),
.mw-changeslist-line-inner-characterDiff {
position: sticky;
top: 0;
right: 0;
}

.mw-diff-bytes ~ .mw-changeslist-separator,
.mw-changeslist-line-inner-separatorAftercharacterDiff {
display: none;
}

.cloptions {
padding: 0;
margin: 0;
Expand Down Expand Up @@ -160,7 +208,10 @@ body:not( .mw-rcfilters-ui-initialized ) .mw-rcfilters-head {
padding: var( --space-sm ) var( --space-xs ) !important;
margin: 0 0 0 16px !important;
color: var( --color-base--subtle );
border-radius: var( --border-radius--small );

& + & {
border-top: 1px solid var( --border-color-base );
}

&:hover {
background-color: var( --background-color-quiet--hover );
Expand Down

0 comments on commit e0f9ac1

Please sign in to comment.