/*!
 * Structures generated by the CodexTablePager PHP class.
 */

@import 'mediawiki.skin.variables.less';

.cdx-table-pager {
	&__limit-form {
		display: flex;
		align-items: center;

		// Extra class to override .cdx-button styles.
		.cdx-table-pager__limit-form__submit {
			// Stylelint says we can't use `gap`.
			margin-left: @spacing-50;
		}
	}

	// When JS is enabled, hide the submit button since the form will submit when the limit select
	// changes.
	.client-js & {
		.cdx-table-pager__limit-form__submit {
			display: none;
		}
	}
}

.cdx-table {
	thead {
		// Override MediaWiki style.
		font-size: 100%;
	}

	.cdx-table__table__sort-button {
		// Ensure proper sizing of interior link.
		box-sizing: @box-sizing-base;
		// Account for link styles on fake button.
		color: @color-emphasized;
		text-decoration: none;
	}
}
