Skip to content

Commit

Permalink
feat(MediaWiki): ✨ tweak changelist styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jul 6, 2023
1 parent 99e475b commit e00f9ba
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,32 @@
* Styling for Special:Watchlist and Special:RecentChanges when preference 'usenewrc'
* a.k.a. Enhanced Recent Changes is enabled.
*/
.mw-enhanced-rc {
table& {
padding: var( --space-sm ) 0;
margin: 0 !important;
font-size: 0.875rem;
transition: @transition-background;

table.mw-enhanced-rc {
padding: var( --space-sm ) 0;
margin: 0 !important;
font-size: 0.875rem;
transition: @transition-background;
&:hover {
background-color: var( --background-color-quiet--hover );
}
}

&:hover {
background-color: var( --background-color-quiet--hover );
td& {
font-family: var( --font-family-monospace );
}

&-time {
font-family: var( --font-family-monospace );
}
}

.mw-enhanced-rc-nested {
display: block;
margin-top: var( --space-xxs );
&-nested {
display: block;
margin-top: var( --space-xxs );

.mw-tag-markers {
margin: var( --space-xxs );
.mw-tag-markers {
margin: var( --space-xxs );
}
}
}
31 changes: 29 additions & 2 deletions skinStyles/mediawiki/special/mediawiki.special.changeslist.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

.mw-changeslist {
.comment {
color: var( --color-base--subtle );
color: var( --color-base );
}

// Need additional parent to override
Expand All @@ -53,8 +53,22 @@
}

.mw-tag-markers {
margin-left: var( --space-xxs );

.mw-tag-marker {
color: var( --color-base--subtle );
padding: 2px 8px;
border-radius: var( --border-radius--pill );
background-color: var( --color-surface-2 );
font-size: 0.8125rem;

&::after {
display: none;
}
}

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

Expand All @@ -69,10 +83,23 @@
}

&-line {
&-inner {
color: var( --color-base--subtle );

.mw-diff-bytes {
margin-right: var( --space-xs );
float: left;
}
}

+ .mw-changeslist-line {
border-top: 1px solid var( --border-color-base ); // Add separator
}
}

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

.rcoptions {
Expand Down

0 comments on commit e00f9ba

Please sign in to comment.