/** * @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: 1000; /* 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 { width: 100%; padding-left: 0.75rem; padding-right: 0.75rem; margin-right: auto; margin-left: auto; .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; } } } } @media(min-width:576px) { .page { max-width:540px; } } @media(min-width:768px) { .page { max-width:720px; } } @media(min-width:992px) { .page { max-width:960px } } @media(min-width:1200px){ .page { max-width:1140px } } @media(min-width:1400px){ .page { max-width:1320px } } } /** .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 */