/**
 * @file less/mix.less
 *
 * Copyright (c) 2014-2020 Simon Fraser University
 * Copyright (c) 2003-2020 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * @brief Stylesheet for mixins
 *
 */

/* container-fluid padding for big screens */
.container-padding() {
	padding-left: 12%;
	padding-right: 12%;
}

/* for header */

.dropDown() {
	background-color: @black * 2;
	border: 0;
	border-top-left-radius: 0.25rem;
}

.modal() {
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
}

.button() {
	padding: 10px 15px;
	font-family: @font-family-secondary;
	font-weight: bold;
	text-align: center;
	white-space: nowrap;
	display: inline-block;
	transition: all .15s ease-in-out;
	cursor: pointer;
}

// for issue arhcive page

.issue-archive(@archive-margin) {
	.issue_item:nth-child(4n+1) {
		& .obj_issue_summary {
			margin-right: @archive-margin;
		}
	}

	.issue_item:nth-child(4n+2) {
		& .obj_issue_summary {
			margin-left: @archive-margin/3;
			margin-right: @archive-margin/3*2;
		}
	}

	.issue_item:nth-child(4n+3) {
		& .obj_issue_summary {
			margin-left: @archive-margin/3*2;
			margin-right: @archive-margin/3;
		}
	}

	.issue_item:nth-child(4n+4) {
		& .obj_issue_summary {
			margin-left: @archive-margin;
		}
	}
}

.issue-archive-media(@multiplier, @count, @archive-margin-left, @archive-margin-right) {
	.issue_item:nth-child(@{multiplier}n+@{count}) {
		& .obj_issue_summary {
			margin-left: @archive-margin-left;
			margin-right: @archive-margin-right;
		}
	}
}
