/**
 * @file plugins/themes/material/styles/main.less
 *
 * Copyright (c) 2021 Madi Nuralin
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * @brief Styles applying to the main content panel
 */

main {
	.html-preloader {
		position: fixed; /* Sit on top of the page content */
		display: flex; /* Hidden by default */
		width: 100%; /* Full width (cover the whole page) */
		height: 100%; /* Full height (cover the whole page) */
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0,0,0,0.5); /* Black background with opacity */
		z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
		cursor: pointer; /* Add a pointer on hover */
		justify-content: center;
		align-items: center;
	}

	.no-html-preloader {
		display: none !important;
	}

	.page {
		.about_section {
			.pkp_helpers_clear;
			color: @text-light;
			line-height: @triple;

			.cover {
				float: right;
				width: 20%;
				margin-left: 10%;
				margin-right: 10%;

				img {
					display: block;
					margin: 0 auto;
				}
			}
		}
	}
}

/**
.pkp_structure_main {

	h1 {
		font-family: @font-heading;
		font-size: @font-header;
		line-height: @line-header;
		font-weight: @bold;
	}

	h2 {
		font-family: @font-heading;
		font-size: @font-lead;
		line-height: @line-lead;
		font-weight: @bold;
	}

	h3 {
		font-family: @font-heading;
		font-size: @font-bump;
		line-height: @line-bump;
		font-weight: @bold;
	}

	h4 {
		font-size: @font-base;
		line-height: @line-base;
		font-weight: @bold;
	}

	h5 {
		font-size: @font-base;
		line-height: @line-base;
		font-weight: @normal;
	}

	h6 {
		font-size: @font-sml;
		line-height: @line-sml;
		font-weight: @bold;
	}

	h1,
	h2,
	h3,
	h4 {
		margin: @quadruple 0 @double;
	}

	h5,
	h6 {
		margin: @double 0;
	}

	p {
		line-height: @line-base-large;
		margin: @line-base 0;
	}

	p:last-child {
		margin-bottom: 0;
	}

	.page {

		// Titles in pages
		h1 {
			margin-top: 0;
		}

	    // Edit link that isn't nested in a section
	    > .cmp_edit_link {
	        float: right;
	        padding: @half 0;
	        line-height: @triple;
	    }

		// Count of catalog entries on the current page
		// used in catalog, category, series and search pages
		.monograph_count {
			float: right;
			padding: @base 0;
			font-size: @font-sml;
			color: @text-light;
		}

		// Description and image for catalog category/series
		.about_section {
			.pkp_helpers_clear;
			color: @text-light;
			line-height: @triple;

			.cover {
				float: right;
				width: 20%;
				margin-left: 10%;
				margin-right: 10%;

				img {
					display: block;
					margin: 0 auto;
				}
			}

			.description p:first-child {
				margin-top: 0;
			}

			.description p:last-child {
				margin-bottom: 0;
			}

			@media(min-width: @screen-phone) {
				font-size: @font-bump;
				font-style: italic;
			}
		}
	}
} //main.less */