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

@drawerPadding: 20px;

// prevent body from scrolling
// won't work on firefox for android because of this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=886969
.drawer-enabled {
	overflow: hidden;
}

.drawer.references {
	background-color: @colorGray1;
	color: @colorGray12;
	max-height: 400px;  // or half of window height, whichever is smaller (see ReferencesDrawerBeta.js)
	overflow-y: auto;
	padding: @drawerPadding;
	&.text {
		font-size: 1em;
	}

	a {
		background-image: none;
		color: #5880c0;
	}

	.error {
		.background-image( 'images/error.png' );
		padding-left: 20px;
		background-repeat: no-repeat;
	}

	.cite {
		padding-bottom: 20px;

		&:after {
			content: '';
			display: table;
			clear: both;
		}

		.text {
			color: @colorGray8;
			cursor: default;
			letter-spacing: 0.2em;
			float: left;
			font-size: 0.75em;
			padding-top: 0.25em;
			text-transform: uppercase;
		}
		.cancel {
			@extraPadding: 1em;
			cursor: pointer;
			font-size: 0.8em;  // we want a smaller icon
			// Compensate for the padding.
			// Top and bottom margins are for the padding we're adding below.
			// The right margin is for the 1em margin of icon:before
			margin: -@extraPadding -@extraPadding -@extraPadding 0;
			// Make the tappable area bigger. No need to add left and right paddings because
			// the icon:before already has 1em margin on both sides
			padding: @extraPadding 0;
			position: absolute;
			right: @drawerPadding;
			top: @drawerPadding;
		}
	}

	.mw-cite-backlink {
		display: none;
	}

	.reference-text {
		line-height: 1.4;
	}
}