first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/objects/announcement_full.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 full view of an announcement
|
||||
* @link templates/frontend/objects/announcement_full.tpl
|
||||
*/
|
||||
.obj_announcement_full {
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.date {
|
||||
margin: 16px 0;
|
||||
color: @text-light;
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
content: @fa-var-calendar;
|
||||
margin-right: 0.5em;
|
||||
color: @bg-shade;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-top: @quadruple;
|
||||
|
||||
p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* @file plugins/themes/default/styles/objects/announcement_summary.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 summary view of an announcement
|
||||
* @link templates/frontend/objects/announcement_summary.tpl
|
||||
*/
|
||||
.obj_announcement_summary {
|
||||
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
margin: 0;
|
||||
font-size: @font-base;
|
||||
line-height: @line-base;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.date {
|
||||
font-size: @font-sml;
|
||||
line-height: @line-base-large;
|
||||
color: @text-light;
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
content: @fa-var-calendar;
|
||||
margin-right: 0.5em;
|
||||
font-size: @font-base;
|
||||
color: @bg-shade;
|
||||
}
|
||||
}
|
||||
|
||||
.summary {
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
margin-top: @base;
|
||||
|
||||
p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.read_more {
|
||||
.cmp_button_text(@fa-var-chevron-right);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,366 @@
|
||||
/**
|
||||
* @file styles/objects/article_details.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 a view of an article with all details
|
||||
* @link templates/frontend/objects/article_details.tpl
|
||||
*/
|
||||
.obj_article_details {
|
||||
|
||||
> .page_title {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
> .subtitle {
|
||||
margin: 0;
|
||||
font-size: @font-base;
|
||||
line-height: @line-lead;
|
||||
font-weight: @normal;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-top: @triple;
|
||||
}
|
||||
|
||||
.item {
|
||||
padding-top: @double;
|
||||
padding-bottom: @double;
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
> h2 + p {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sub_item {
|
||||
margin-bottom: @double;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.main_entry {
|
||||
|
||||
.item {
|
||||
|
||||
.label {
|
||||
margin: 0 0 @double;
|
||||
font-family: @font-heading;
|
||||
font-size: @font-bump;
|
||||
font-weight: @bold;
|
||||
}
|
||||
|
||||
&.doi .label,
|
||||
&.keywords .label {
|
||||
display: inline;
|
||||
font-size: @font-base;
|
||||
}
|
||||
}
|
||||
|
||||
.sub_item {
|
||||
|
||||
.label {
|
||||
font-size: @font-base;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.authors {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
|
||||
li {
|
||||
margin-bottom: @base;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.userGroup {
|
||||
display: block;
|
||||
}
|
||||
.orcid {
|
||||
display: block;
|
||||
font-size: @font-sml;
|
||||
line-height: @double;
|
||||
|
||||
a {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.orcid_icon {
|
||||
width: @double;
|
||||
height: @double;
|
||||
}
|
||||
|
||||
.affiliation {
|
||||
font-size: @font-sml;
|
||||
color: @text-light;
|
||||
}
|
||||
}
|
||||
|
||||
.author_bios {
|
||||
|
||||
.sub_item {
|
||||
|
||||
.label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.value > p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item.doi,
|
||||
.item.keywords {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.galleys_links {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: start;
|
||||
|
||||
li {
|
||||
margin-inline-end: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.supplementary_galleys_links {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
margin-top: @base;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
|
||||
a[rel="license"] + p {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.entry_details {
|
||||
margin-left: -@double;
|
||||
margin-right: -@double;
|
||||
border-top: @bg-border;
|
||||
|
||||
.item {
|
||||
padding: @double;
|
||||
border-bottom: @bg-border;
|
||||
word-wrap: break-word;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
margin: 0;
|
||||
font-family: @font-heading;
|
||||
font-size: @font-sml;
|
||||
font-weight: @normal;
|
||||
color: @text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.categories {
|
||||
.pkp_unstyled_list;
|
||||
}
|
||||
|
||||
.versions ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.citation_display {
|
||||
|
||||
.value {
|
||||
font-size: @font-sml;
|
||||
}
|
||||
|
||||
// Hide the bibliography number produced by some CSL styles
|
||||
.csl-left-margin {
|
||||
display: none;
|
||||
}
|
||||
|
||||
[aria-hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.citation_formats {
|
||||
margin-top: 1em;
|
||||
border: @form-border;
|
||||
border-radius: @radius;
|
||||
}
|
||||
|
||||
.citation_formats_button {
|
||||
position: relative;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
box-shadow: none;
|
||||
padding: 0 1em;
|
||||
width: 100%;
|
||||
font-family: @font-heading;
|
||||
font-weight: @normal;
|
||||
color: @text-light;
|
||||
text-align: left;
|
||||
|
||||
&:after {
|
||||
.fa();
|
||||
content: @fa-var-caret-down;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 1em;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
&[aria-expanded="true"] {
|
||||
|
||||
&:after {
|
||||
content: @fa-var-caret-up;
|
||||
}
|
||||
}
|
||||
|
||||
&:focus {
|
||||
background: @bg-shade;
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.citation_formats_styles {
|
||||
.pkp_unstyled_list;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 0.5em 1em;
|
||||
border-bottom: @bg-border;
|
||||
text-decoration: none;
|
||||
|
||||
&:focus {
|
||||
background: @bg-shade;
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
li:last-child a {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.citation_formats_list .label {
|
||||
padding: 1em 1em 0.25em 1em;
|
||||
}
|
||||
|
||||
.citation_formats_styles + .label {
|
||||
border-top: @bg-border;
|
||||
}
|
||||
|
||||
span {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-phone) {
|
||||
|
||||
.entry_details {
|
||||
margin-left: -@triple;
|
||||
margin-right: -@triple;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.row {
|
||||
margin-left: -@double;
|
||||
margin-right: -@double;
|
||||
border-top: @bg-border;
|
||||
border-bottom: @bg-border;
|
||||
}
|
||||
|
||||
.main_entry {
|
||||
float: left;
|
||||
width: @screen-tablet-container - @sidebar-width;
|
||||
border-right: @bg-border;
|
||||
}
|
||||
|
||||
.item {
|
||||
padding: @double;
|
||||
|
||||
.label {
|
||||
margin: 0 0 @double;
|
||||
font-family: @font-heading;
|
||||
font-size: @font-bump;
|
||||
font-weight: @bold;
|
||||
}
|
||||
|
||||
&.doi .label,
|
||||
&.keywords .label {
|
||||
display: inline;
|
||||
font-size: @font-base;
|
||||
}
|
||||
}
|
||||
|
||||
.entry_details {
|
||||
float: left;
|
||||
width: @sidebar-width;
|
||||
margin: 0 0 0 -1px; // border overlap with main content
|
||||
border-top: none;
|
||||
border-left: @bg-border;
|
||||
|
||||
.item {
|
||||
margin-right: -1px; // border reach out to edge
|
||||
border-bottom: @bg-border;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
|
||||
.row {
|
||||
margin-left: -@triple;
|
||||
margin-right: -@triple;
|
||||
}
|
||||
|
||||
.main_entry {
|
||||
width: @screen-desktop-container - (@sidebar-width * 2);
|
||||
}
|
||||
|
||||
.item {
|
||||
padding: @triple;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media(min-width: @screen-lg-desktop) {
|
||||
|
||||
.main_entry {
|
||||
width: @screen-lg-desktop-container - (@sidebar-width * 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* @file styles/objects/article_summary.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 a summary view of an article for lists
|
||||
* @link templates/frontend/objects/article_details.tpl
|
||||
*/
|
||||
.obj_article_summary {
|
||||
.pkp_helpers_clear();
|
||||
|
||||
.cover {
|
||||
display: block;
|
||||
margin-bottom: @double;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-height: 250px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
> .title {
|
||||
font-family: @font-heading;
|
||||
font-size: @font-base;
|
||||
line-height: @line-base;
|
||||
font-weight: @bold;
|
||||
border-bottom: none;
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
display: block;
|
||||
margin-top: 0.25em;
|
||||
margin-bottom: 0.5em;
|
||||
font-weight: @normal;
|
||||
color: @text-light;
|
||||
}
|
||||
|
||||
.meta {
|
||||
position: relative;
|
||||
padding-top: @half;
|
||||
font-size: @font-sml;
|
||||
line-height: @double;
|
||||
}
|
||||
|
||||
.pages,
|
||||
.published {
|
||||
color: @text-light;
|
||||
}
|
||||
|
||||
.galleys_links {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
margin-top: @base;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: start;
|
||||
|
||||
li {
|
||||
margin-inline-end: 1rem;
|
||||
|
||||
&:last-child {
|
||||
margin-inline-end: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.authors {
|
||||
padding-right: 5em;
|
||||
}
|
||||
|
||||
.pages {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
line-height: @line-lead;
|
||||
}
|
||||
|
||||
.cover {
|
||||
float: left;
|
||||
width: 25%;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
margin-right: @double;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
|
||||
.cover {
|
||||
margin-right: @triple;
|
||||
margin-bottom: @triple;
|
||||
|
||||
img {
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* @file styles/objects/galley_link.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 an issue table of contents view
|
||||
* @link templates/frontend/objects/galley_link.tpl
|
||||
*/
|
||||
.obj_galley_link {
|
||||
&:extend(.cmp_button_wire);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
&:extend(.cmp_button_wire:hover);
|
||||
}
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
content: @fa-var-file-text-o;
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
&.pdf:before {
|
||||
content: @fa-var-file-pdf-o;
|
||||
}
|
||||
|
||||
&.restricted {
|
||||
border-color: @offset;
|
||||
color: @offset;
|
||||
|
||||
&:before {
|
||||
.fa();
|
||||
content: @fa-var-lock;
|
||||
color: @offset;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: @offset;
|
||||
color: @lift;
|
||||
|
||||
&:before {
|
||||
color: @lift;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.obj_galley_link_supplementary {
|
||||
.cmp_button_text(@fa-var-file-text-o);
|
||||
padding-right: 0;
|
||||
padding-left: @double;
|
||||
|
||||
&:after {
|
||||
right: auto;
|
||||
left: 0;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* @file styles/objects/issue_summary.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 an issue summary view
|
||||
* @link templates/frontend/objects/issue_summary.tpl
|
||||
*/
|
||||
.obj_issue_summary {
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: @font-base;
|
||||
line-height: @line-base;
|
||||
font-weight: @normal;
|
||||
}
|
||||
|
||||
.cover {
|
||||
display: block;
|
||||
margin-bottom: @double;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: auto;
|
||||
max-height: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: @font-heading;
|
||||
font-weight: @bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.series {
|
||||
margin-bottom: @half;
|
||||
color: @text-light;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: @font-sml;
|
||||
line-height: @line-sml;
|
||||
|
||||
p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
.pkp_helpers_clear;
|
||||
|
||||
.cover {
|
||||
float: left;
|
||||
width: 25%;
|
||||
height: auto;
|
||||
margin-right: @double;
|
||||
|
||||
img {
|
||||
max-height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
/**
|
||||
* @file styles/objects/issue_toc.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 an issue table of contents view
|
||||
* @link templates/frontend/objects/issue_toc.tpl
|
||||
*/
|
||||
.obj_issue_toc {
|
||||
|
||||
.cover {
|
||||
display: block;
|
||||
margin-bottom: @double;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-height: 250px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.pub_id {
|
||||
margin: @double 0;
|
||||
|
||||
.type {
|
||||
font-weight: @bold;
|
||||
}
|
||||
}
|
||||
|
||||
.published {
|
||||
margin: @double 0;
|
||||
|
||||
.label {
|
||||
font-weight: @bold;
|
||||
}
|
||||
}
|
||||
|
||||
.articles {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
|
||||
// Prevent articles from moving up into section divider
|
||||
// if the title of a section is omitted from the table of contents
|
||||
margin-top: calc(~"@{triple} + @{double}");
|
||||
}
|
||||
|
||||
h2 + .articles,
|
||||
h3 + .articles {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.sections:not(:first-child) {
|
||||
margin-top: @triple * 2;
|
||||
}
|
||||
|
||||
.section:last-child .articles > li:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.galleys_links {
|
||||
&:extend(.pkp_unstyled_list);
|
||||
margin-top: @base;
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
justify-content: start;
|
||||
|
||||
li {
|
||||
margin-inline-end: 1rem;
|
||||
|
||||
&:last-child {
|
||||
margin-inline-end: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-tablet) {
|
||||
|
||||
.heading {
|
||||
.pkp_helpers_clear;
|
||||
}
|
||||
|
||||
.cover {
|
||||
float: left;
|
||||
width: 25%;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
margin-right: @double;
|
||||
}
|
||||
|
||||
.galleys,
|
||||
.section {
|
||||
position: relative;
|
||||
margin: @triple -@double;
|
||||
padding: @triple;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 45px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
border-top: @bg-border;
|
||||
}
|
||||
|
||||
> h2,
|
||||
> h3 {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
left: -15px;
|
||||
margin-top: 0;
|
||||
padding: 0 (@triple / 2);
|
||||
background: @lift;
|
||||
font-size: @font-bump;
|
||||
font-weight: @normal;
|
||||
line-height: @triple;
|
||||
color: @text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media(min-width: @screen-desktop) {
|
||||
|
||||
.galleys,
|
||||
.section {
|
||||
margin: @triple -@triple;
|
||||
}
|
||||
|
||||
.cover {
|
||||
margin-right: @triple;
|
||||
margin-bottom: @triple;
|
||||
|
||||
img {
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user