Current File : /home/jvzmxxx/wiki1/extensions/MobileFrontend/resources/mobile.categories.overlays/categories.less
@import 'minerva.variables';
@import 'minerva.mixins';

.category-suggestions {
	button {
		margin-right: 0.5em;
	}
}

// FIXME: code duplication with special watchlist, consolidate!
.category-header {
	margin-bottom: -1px;

	li {
		display: inline-block;
		border-left: 1px solid @colorGray13;
		margin: 0 0 0 -1px;
		border-bottom: 1px solid @colorGray13;
		text-align: center;
		line-height: 1.5;
		padding: 5px 0 0;

		a {
			display: block;
			color: @colorGray5;
			margin: 0 1px 0 0;
			border-bottom: 3px solid transparent;
		}

		&.selected a {
			border-bottom: solid 3px @colorProgressive;
			font-weight: bold;
		}
	}

	/* source: http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/ */
	/* width for two links */
	li:first-child:nth-last-child( 2 ),
	li:first-child:nth-last-child( 2 ) ~ li {
		width: 50%;
	}

	/* width for four links */
	/* stylelint-disable no-descending-specificity */
	li:first-child:nth-last-child( 4 ),
	li:first-child:nth-last-child( 4 ) ~ li {
		width: 25%;
	}
	/* stylelint-enable no-descending-specificity */
}