first commit
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/category.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the contact page
|
||||
* @link templates/frontend/pages/category.tpl
|
||||
*/
|
||||
.page_catalog_category {
|
||||
|
||||
.article_count {
|
||||
float: right;
|
||||
padding: @base 0;
|
||||
font-size: @font-sml;
|
||||
color: @text-light;
|
||||
}
|
||||
|
||||
.about_section .cover {
|
||||
float: right;
|
||||
width: 20%;
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
}
|
||||
|
||||
.subcategories {
|
||||
|
||||
ul {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
}
|
||||
|
||||
li {
|
||||
padding-top: @half;
|
||||
padding-bottom: @half;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
position: relative;
|
||||
margin-top: @triple * 2;
|
||||
margin-left: -@double;
|
||||
margin-right: -@double;
|
||||
padding: @triple;
|
||||
border-top: @bg-border;
|
||||
border-bottom: @bg-border;
|
||||
|
||||
h2 {
|
||||
position: absolute;
|
||||
top: -15px;
|
||||
left: @double;
|
||||
margin: 0;
|
||||
padding-left: @base;
|
||||
padding-right: @base;
|
||||
line-height: @triple;
|
||||
background: @bg;
|
||||
color: @text-light;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
margin-left: -@triple;
|
||||
margin-right: -@triple;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.cmp_article_list {
|
||||
padding-top: @double;
|
||||
}
|
||||
|
||||
h2.title {
|
||||
.pkp_screen_reader();
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
|
||||
.cmp_article_list {
|
||||
padding-top: @triple;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/contact.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the contact page
|
||||
* @link templates/frontend/pages/contact.tpl
|
||||
*/
|
||||
.page_contact {
|
||||
|
||||
.address,
|
||||
.phone,
|
||||
.email {
|
||||
margin-top: @base;
|
||||
margin-bottom: @base;
|
||||
font-size: @font-sml;
|
||||
}
|
||||
|
||||
.address {
|
||||
margin-top: 0;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.label {
|
||||
display: block;
|
||||
font-weight: @bold;
|
||||
}
|
||||
|
||||
.contact.support {
|
||||
margin-top: @quadruple;
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.contact_section {
|
||||
.pkp_helpers_clear;
|
||||
}
|
||||
|
||||
.contact {
|
||||
float: left;
|
||||
width: 50%;
|
||||
|
||||
&.primary {
|
||||
padding-right: @double;
|
||||
}
|
||||
|
||||
&.support {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/indexJournal.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the front page of the journal
|
||||
* @link templates/frontend/pages/indexJournal.tpl
|
||||
*/
|
||||
.pkp_page_index {
|
||||
|
||||
.homepage_image,
|
||||
.additional_content {
|
||||
margin-left: -@base;
|
||||
margin-right: -@base;
|
||||
|
||||
@media (min-width: @screen-phone) {
|
||||
margin-left: -@double;
|
||||
margin-right: -@double;
|
||||
}
|
||||
|
||||
@media (min-width: @screen-desktop) {
|
||||
margin-left: -@triple;
|
||||
margin-right: -@triple;
|
||||
}
|
||||
}
|
||||
|
||||
.homepage_image {
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media (min-width: @screen-desktop) {
|
||||
margin-top: -@triple; // flush with top nav
|
||||
}
|
||||
}
|
||||
|
||||
.homepage_about {
|
||||
padding-top: @triple;
|
||||
padding-bottom: @triple;
|
||||
|
||||
h2 {
|
||||
margin-top: -@base
|
||||
}
|
||||
}
|
||||
|
||||
.cmp_announcements {
|
||||
.pkp_helpers_clear();
|
||||
border-top: @bg-border;
|
||||
border-bottom: @bg-border;
|
||||
|
||||
h2 {
|
||||
&:extend(.pkp_screen_reader all);
|
||||
}
|
||||
|
||||
> .obj_announcement_summary {
|
||||
position: relative;
|
||||
padding: @triple @base;
|
||||
}
|
||||
|
||||
.more {
|
||||
position: relative;
|
||||
|
||||
.obj_announcement_summary {
|
||||
padding: @base;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: @font-sml;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-phone) {
|
||||
|
||||
> .obj_announcement_summary,
|
||||
.more .obj_announcement_summary {
|
||||
padding-left: @double;
|
||||
padding-right: @double;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
> .obj_announcement_summary {
|
||||
float: left;
|
||||
width: 65%;
|
||||
|
||||
// Right border
|
||||
&:before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: -1px;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
border-left: @bg-border;
|
||||
}
|
||||
}
|
||||
|
||||
.more {
|
||||
float: right;
|
||||
width: 35%;
|
||||
padding-top: @double;
|
||||
padding-bottom: @double;
|
||||
|
||||
// Left border
|
||||
&:before {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
height: 100%;
|
||||
border-left: @bg-border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
|
||||
> .obj_announcement_summary,
|
||||
.more .obj_announcement_summary {
|
||||
padding-left: @triple;
|
||||
padding-right: @triple;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.current_issue {
|
||||
|
||||
.current_issue_title {
|
||||
margin: @double 0;
|
||||
font-weight: @bold;
|
||||
}
|
||||
|
||||
.read_more {
|
||||
.cmp_button_text(@fa-var-chevron-right);
|
||||
margin-bottom: @double;
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.section:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.additional_content {
|
||||
padding: @triple @base 0 @base;
|
||||
border-top: @bg-border;
|
||||
|
||||
@media (min-width: @screen-phone) {
|
||||
padding-left: @double;
|
||||
padding-right: @double;
|
||||
}
|
||||
|
||||
@media (min-width: @screen-desktop) {
|
||||
padding-left: @triple;
|
||||
padding-right: @triple;
|
||||
}
|
||||
|
||||
> p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.cmp_announcements + .additional_content {
|
||||
border-top: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/indexSite.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the front page of the journal
|
||||
* @link templates/frontend/pages/indexSite.tpl
|
||||
*/
|
||||
.pkp_page_index {
|
||||
|
||||
.journals {
|
||||
margin-top: @triple;
|
||||
|
||||
h2 {
|
||||
&:extend(.pkp_screen_reader);
|
||||
}
|
||||
|
||||
ul {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
}
|
||||
|
||||
> ul > li {
|
||||
margin: @triple 0;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-height: 20em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: @base 0;
|
||||
font-size: @font-base;
|
||||
font-weight: @bold;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: @base 0;
|
||||
}
|
||||
|
||||
.links {
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0 @base @base 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
> ul > li {
|
||||
.pkp_helpers_clear;
|
||||
margin: 0 -@double;
|
||||
padding: @double;
|
||||
border-top: @bg-border;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
float: left;
|
||||
width: 25%;
|
||||
padding-right: @double;
|
||||
|
||||
+ .body {
|
||||
float: right;
|
||||
width: 75%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
|
||||
> ul > li {
|
||||
margin: 0 -@triple;
|
||||
padding: @triple;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
padding-right: @triple;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/issueArchive.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to issue archive page
|
||||
* @link templates/frontend/pages/issueArchive.tpl
|
||||
*/
|
||||
.page_issue_archive {
|
||||
|
||||
.issues_archive {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
margin-left: -@base;
|
||||
margin-right: -@base;
|
||||
border-top: @bg-border;
|
||||
|
||||
> li {
|
||||
padding: @triple @base;
|
||||
border-bottom: @bg-border;
|
||||
}
|
||||
|
||||
@media(min-width: @screen-phone) {
|
||||
margin-left: -@double;
|
||||
margin-right: -@double;
|
||||
|
||||
> li {
|
||||
padding-left: @double;
|
||||
padding-right: @double;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
margin-left: -@triple;
|
||||
margin-right: -@triple;
|
||||
|
||||
> li {
|
||||
padding-left: @triple;
|
||||
padding-right: @triple;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cmp_pagination {
|
||||
margin-top: @double;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* @file styles/pages/login.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the lightweight page for viewing PDFs
|
||||
* @link templates/frontend/pages/userLogin.tpl
|
||||
*/
|
||||
.page_login {
|
||||
|
||||
// Form
|
||||
.login {
|
||||
margin-bottom: 0;
|
||||
max-width: 17em;
|
||||
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.password {
|
||||
|
||||
a {
|
||||
font-size: @font-sml;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.remember {
|
||||
padding-bottom: 0;
|
||||
|
||||
.label {
|
||||
display: inline;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.buttons {
|
||||
|
||||
button {
|
||||
float: right;
|
||||
}
|
||||
|
||||
a {
|
||||
float: right;
|
||||
margin-right: 1em;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* @file styles/pages/lostPassword.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the lightweight page for viewing PDFs
|
||||
* @link templates/frontend/pages/userLostPassword.tpl
|
||||
*/
|
||||
.page_lost_password {
|
||||
|
||||
// Form
|
||||
.lost_password {
|
||||
margin-bottom: 0;
|
||||
max-width: 17em;
|
||||
|
||||
input[type="text"] {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.pkp_form_error {
|
||||
margin: @double 0;
|
||||
padding: @base;
|
||||
background: @no;
|
||||
color: #fff;
|
||||
font-size: @font-sml;
|
||||
font-weight: @bold;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
.pkp_helpers_clear;
|
||||
|
||||
button {
|
||||
&:extend(.cmp_button);
|
||||
float: right;
|
||||
}
|
||||
|
||||
a {
|
||||
float: right;
|
||||
font-size: @font-sml;
|
||||
line-height: @triple;
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/register.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the registration page
|
||||
* @link templates/frontend/pages/userRegister.tpl
|
||||
*/
|
||||
.page_register {
|
||||
|
||||
.required_label {
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
color: @text-light;
|
||||
margin-bottom: @double;
|
||||
}
|
||||
|
||||
.consent {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.fields .reviewer_interests {
|
||||
max-height: 0;
|
||||
padding-bottom: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transition: all 0.3s;
|
||||
|
||||
&.is_visible {
|
||||
max-height: 400px;
|
||||
overflow: visible;
|
||||
padding-bottom: @triple;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.context_optin {
|
||||
|
||||
.contexts {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
|
||||
> li {
|
||||
margin-bottom: 1em;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.roles {
|
||||
padding: @half 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
legend {
|
||||
&:extend(.pkp_screen_reader);
|
||||
}
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
margin-right: 1em;
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
}
|
||||
}
|
||||
|
||||
.context_privacy {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
padding: @half 0;
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
}
|
||||
|
||||
.context_privacy_visible {
|
||||
position: relative;
|
||||
left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// Styles for form error list, which is still tied to a template shared by
|
||||
// the backend
|
||||
#formErrors {
|
||||
margin: @double 0;
|
||||
padding: @base;
|
||||
background: @no;
|
||||
color: #fff;
|
||||
|
||||
.pkp_form_error {
|
||||
padding: 0;
|
||||
font-size: @font-sml;
|
||||
font-weight: bold;
|
||||
line-height: @line-sml;
|
||||
|
||||
}
|
||||
|
||||
.pkp_form_error_list {
|
||||
margin: 0;
|
||||
padding-left: @double;
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.identity li {
|
||||
display: inline-block;
|
||||
padding-right: 1em;
|
||||
max-width: 13em;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-lg-desktop) {
|
||||
|
||||
.identity li {
|
||||
max-width: 17em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pkp_op_register {
|
||||
|
||||
.ui-helper-hidden-accessible {
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
position: absolute !important;
|
||||
left: -2000px;
|
||||
|
||||
&:focus {
|
||||
background-color: #fff;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
-webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
color: #000;
|
||||
display: block;
|
||||
font-size: @font-base;
|
||||
height: auto;
|
||||
line-height: normal;
|
||||
padding: @base;
|
||||
position: absolute;
|
||||
left: @half;
|
||||
top: @half;
|
||||
text-decoration: none;
|
||||
width: auto;
|
||||
z-index: 100000;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-autocomplete {
|
||||
position: absolute !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* @file styles/pages/search.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the search form and results page
|
||||
* @link templates/frontend/pages/search.tpl
|
||||
*/
|
||||
.page_search {
|
||||
|
||||
.search_input {
|
||||
|
||||
.query {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
height: calc(~"@{quadruple} - 2px"); // account for border;
|
||||
font-size: @font-lead;
|
||||
line-height: calc(~"@{quadruple} - 2px"); // account for border;
|
||||
}
|
||||
}
|
||||
|
||||
.search_advanced {
|
||||
border: @bg-border;
|
||||
padding: 0 @double @double;
|
||||
|
||||
legend {
|
||||
padding: @base @double;
|
||||
margin: 0;
|
||||
font-weight: @normal;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: @font-base;
|
||||
font-style: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.date_range {
|
||||
|
||||
legend {
|
||||
padding: 0;
|
||||
font-size: @font-base;
|
||||
}
|
||||
|
||||
label {
|
||||
.pkp_screen_reader();
|
||||
}
|
||||
|
||||
select + label + select {
|
||||
margin-left: 0.25em;
|
||||
}
|
||||
|
||||
[name*="Year"] {
|
||||
width: 6em;
|
||||
}
|
||||
|
||||
[name*="Day"] {
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
[name*="Month"] {
|
||||
width: 10em;
|
||||
}
|
||||
}
|
||||
|
||||
.label_contexts {
|
||||
margin-top: @double;
|
||||
}
|
||||
|
||||
.submit {
|
||||
text-align: right;
|
||||
|
||||
button {
|
||||
&:extend(.cmp_button all);
|
||||
.cmp_button_icon(@fa-var-search);
|
||||
.cmp_button_icon_left(@fa-var-search);
|
||||
|
||||
&:after {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search_results {
|
||||
margin: @quadruple 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
.obj_article_summary {
|
||||
margin: @double 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Deprecated pagination of search results
|
||||
.cmp_pagination {
|
||||
margin-top: @double;
|
||||
font-size: @font-sml;
|
||||
line-height: @double;
|
||||
color: @text-light;
|
||||
text-align: right;
|
||||
|
||||
a {
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: @screen-tablet) {
|
||||
|
||||
.search_advanced {
|
||||
.pkp_helpers_clear;
|
||||
}
|
||||
|
||||
.date_range {
|
||||
float: left;
|
||||
width: 50%;
|
||||
|
||||
.to fieldset {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.author {
|
||||
float: right;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @file styles/pages/section.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles for the section archive.
|
||||
*/
|
||||
.page_section {
|
||||
|
||||
.section_description {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/pages/viewPdf.less
|
||||
*
|
||||
* Copyright (c) 2014-2021 Simon Fraser University
|
||||
* Copyright (c) 2003-2021 John Willinsky
|
||||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
|
||||
*
|
||||
* @brief Styles applying to the lightweight page for viewing PDFs
|
||||
* @link templates/frontend/pages/viewPdf.tpl
|
||||
*/
|
||||
|
||||
.header_view {
|
||||
z-index: 2;
|
||||
position: relative;
|
||||
background: @primary;
|
||||
|
||||
a {
|
||||
line-height: @line-header;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.return {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: @line-header;
|
||||
height: @line-header;
|
||||
line-height: @line-header;
|
||||
background: @bg;
|
||||
color: @primary;
|
||||
text-align: center;
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
content: @fa-var-arrow-left;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: @primary-lift;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
display: block;
|
||||
padding-left: @line-header + @base;
|
||||
max-width: 100%;
|
||||
overflow-x: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: @font-sml;
|
||||
color: #fff;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: @primary-lift;
|
||||
}
|
||||
}
|
||||
|
||||
.download {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: @line-header;
|
||||
background: @bg;
|
||||
text-align: center;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: @primary-lift;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
content: @fa-var-download;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.title {
|
||||
font-size: @font-base;
|
||||
}
|
||||
|
||||
.download {
|
||||
width: auto;
|
||||
padding: 0 @double;
|
||||
|
||||
.label {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
// Prevent duplicate download labels once the regular label is visible
|
||||
.pkp_screen_reader {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.galley_view {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
overflow-y: hidden;
|
||||
|
||||
iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding-top: @line-header;
|
||||
border: none;
|
||||
}
|
||||
|
||||
&.galley_view_with_notice {
|
||||
|
||||
iframe {
|
||||
padding-top: @line-header * 3;
|
||||
}
|
||||
}
|
||||
|
||||
.galley_view_notice {
|
||||
position: absolute;
|
||||
top: @line-header;
|
||||
width: 100%;
|
||||
height: @line-header * 2;
|
||||
background: @no;
|
||||
}
|
||||
|
||||
.galley_view_notice_message {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
transform: translate(-50%, -50%);
|
||||
color: @text-bg-base;
|
||||
font-weight: @bold;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
color: @text-bg-base;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user