/*
 * Citizen
 *
 * SkinStyles for Special:RecentChanges and Watchlist
 * Module: mediawiki.special.changeslist
 * Version: 1.39.0
 *
 * Date: 2022-10-20
*/

@import '../../../resources/variables.less';
@import '../../../resources/mixins.less';

/* default.less */
.mw-plusminus {
	&-pos {
		color: var( --color-success );
	}

	&-minus {
		color: var( --color-destructive );
	}

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

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

	// Need additional parent to override
	.mw-changeslist-legend {
		z-index: @z-index-page-header + 1; // so that it won't be covered by sticky header
		border-color: var( --border-color-base );
		border-radius: var( --border-radius--small );
		background-color: var( --color-surface-1 );
	}

	.mw-tag-markers {
		.mw-tag-marker {
			color: var( --color-base--subtle );
		}
	}

	h4 {
		padding: var( --space-sm ) 0;
		margin-bottom: 0;
		color: var( --color-base--subtle );
		font-size: 0.8125rem;
		font-weight: var( --font-weight-normal );
		letter-spacing: 0.05em;
	}
}

@media ( max-width: @width-breakpoint-tablet ) {
	.mw-changeslist .mw-changeslist-legend {
		margin-left: 100%;
	}
}

.rcoptions {
	padding: 0;
	border: 0;
	margin: var( --space-xl ) 0;

	legend {
		width: 100%;
		padding: var( --space-xs ) 0;
		border-bottom: 1px solid var( --border-color-base );
		margin-bottom: var( --space-xs );
		font-size: 0.8125rem;
	}
}

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

// Disable sticky header
#citizen-body-header-sticky-sentinel {
	display: none;
}
