Skip to content

Commit

Permalink
feat(MediaWiki): ✨ tweak rcfilter other review tools styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jul 6, 2023
1 parent 45c970e commit 99e475b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
*/

.client-js {
.mw-recentchanges-toplinks {
&:not( .mw-recentchanges-toplinks-collapsed ) {
border-color: var( --border-color-base );
}
}

.mw-rcfilters-spinner {
& .mw-rcfilters-spinner-bounce,
&::before,
Expand Down
35 changes: 35 additions & 0 deletions skinStyles/mediawiki/special/mediawiki.special.changeslist.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,43 @@
}
}

.client-js .mw-recentchanges-toplinks {
padding-left: 0;
}

/* Skeleton lazyloader for rcfilter */
.client-js body:not( .mw-rcfilters-ui-initialized ) .mw-rcfilters-head {
border-radius: var( --border-radius--small );
background: var( --color-surface-2 );
}

.client-js .mw-recentchanges-toplinks:not( .mw-recentchanges-toplinks-collapsed ) {
padding: 0; /* Shift padding to button only */
border-color: var( --border-color-base );
border-radius: var( --border-radius--small );
margin-bottom: 16px; /* Same margin between rcfilter and saved filter */

/* Extend button to full width */
.oo-ui-buttonElement-frameless.oo-ui-labelElement:first-child {
display: block;
background: var( --color-surface-2 );
border-top-left-radius: var( --border-radius--small );
border-top-right-radius: var( --border-radius--small );

.oo-ui-buttonElement-button {
display: block;
}

.oo-ui-indicatorElement-indicator {
right: 6px !important;
}
}
}

.mw-recentchanges-toplinks {
.oo-ui-buttonElement-frameless.oo-ui-labelElement:first-child {
margin: 0;
}
}

/*
Expand Down

0 comments on commit 99e475b

Please sign in to comment.