Skip to content

Commit

Permalink
Merge pull request #795 from bozana/i10392
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10392 Masthead styling
  • Loading branch information
bozana authored Oct 22, 2024
2 parents 5262d2c + ffe9931 commit b66cbb5
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
cypress/tests/**/*
lib/pkp/cypress/**/*
cypress/support/**/*
package.json
plugins/themes/default/**/*

package.json
1 change: 1 addition & 0 deletions plugins/themes/default/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
@import "pages/issueArchive.less";
@import "pages/login.less";
@import "pages/lostPassword.less";
@import "pages/masthead.less";
@import "pages/register.less";
@import "pages/search.less";
@import "pages/section.less";
Expand Down
56 changes: 56 additions & 0 deletions plugins/themes/default/styles/pages/masthead.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* @file plugins/themes/default/styles/pages/masthead.less
*
* Copyright (c) 2014-2024 Simon Fraser University
* Copyright (c) 2003-2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @brief Styles applying to the masthead and editorial history page
* @link templates/frontend/pages/editorialMasthead.tpl
* @link templates/frontend/pages/editorialHistory.tpl
*/

.page_masthead {
h2 {
margin-top: @double;
margin-bottom: @base;
}

.user_listing {
li {
margin-bottom: @double;
}
li > span {
display: block;
}
list-style-type: none;
padding: 0;
margin-top: @half;

.name {
font-weight: bold;
}

.affiliation {
font-size: @font-sml;
color: @text-light;
}

.date_start {
font-size: @font-sml;
color: @text-light;
}

.orcid {
font-size: @font-sml;
margin-left: 0.2rem;
margin-right: 0.2rem;
}

.orcid_icon {
width: 1.4rem;
height: 1.4rem;
margin: 0;
}
}
}
2 changes: 1 addition & 1 deletion registry/navigationMenus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<navigationMenuItem title="navigation.about" type="NMI_TYPE_ABOUT">
<navigationMenuItem title="about.aboutContext" type="NMI_TYPE_ABOUT" />
<navigationMenuItem title="about.submissions" type="NMI_TYPE_SUBMISSIONS" />
<navigationMenuItem title="common.masthead" type="NMI_TYPE_MASTHEAD" />
<navigationMenuItem title="common.editorialMasthead" type="NMI_TYPE_MASTHEAD" />
<navigationMenuItem title="manager.setup.privacyStatement" type="NMI_TYPE_PRIVACY" />
<navigationMenuItem title="about.contact" type="NMI_TYPE_CONTACT" />
</navigationMenuItem>
Expand Down

0 comments on commit b66cbb5

Please sign in to comment.