NIHVIVO-1315, NIHVIVO1316: Re-factored the markup and styles for individual pages. Also I have introduced an image placeholder for non person individuals.
This commit is contained in:
parent
e153452b81
commit
92764b0c1a
4 changed files with 60 additions and 79 deletions
|
@ -6,20 +6,16 @@
|
||||||
/* ADMIN PANEL------> */
|
/* ADMIN PANEL------> */
|
||||||
#admin{
|
#admin{
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
background-color: #f2f9fb;
|
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-right: 40px;
|
padding-right: 40px;
|
||||||
}
|
}
|
||||||
#admin h3{
|
#admin h3{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background-color: #2a98bd;
|
|
||||||
padding: 3px 6px 3px 10px;
|
padding: 3px 6px 3px 10px;
|
||||||
color: #fff;
|
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
#admin .uri-link {
|
#admin .uri-link {
|
||||||
color: #888c8c;
|
|
||||||
padding-left: 11px;
|
padding-left: 11px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
@ -27,12 +23,9 @@
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
#admin a{
|
|
||||||
color: #2a98bc;
|
|
||||||
}
|
|
||||||
/* <------ INDIVIDUAL INTRO FOR ANY CLASS*/
|
/* <------ INDIVIDUAL INTRO FOR ANY CLASS*/
|
||||||
#individual-intro{
|
#individual-intro{
|
||||||
margin-top: 0;
|
margin-top: 15px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -44,48 +37,37 @@
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
#individual-intro #individual-info h3{
|
#individual-info h3{
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
clear: left;
|
||||||
#individual-intro #share-contact h3{
|
|
||||||
padding-bottom: .3em;
|
|
||||||
margin-top: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
}
|
||||||
#individual-intro a.icon-rdf{
|
#individual-intro a.icon-rdf{
|
||||||
font-size: 1.125em;
|
font-size: 1.125em;
|
||||||
}
|
}
|
||||||
#individual-intro .individual-overview{
|
|
||||||
margin-bottom: 30px;
|
|
||||||
margin-top: 10px;
|
|
||||||
display: inline;
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
ul#links-additional{
|
ul#links-additional{
|
||||||
margin-bottom: 20px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
/* <------ INDIVIDUAL INTRO FOR PERSON*/
|
/* <------ INDIVIDUAL INTRO FOR PERSON*/
|
||||||
#individual-intro-person{
|
#individual-intro.person{
|
||||||
margin-top: 0.5em;
|
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
#individual-intro-person #individual-info{
|
#individual-intro.person #individual-info{
|
||||||
float: left;
|
float: left;
|
||||||
width: 78%;
|
width: 78%;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
#individual-intro-person .individual-overview{
|
#individual-intro.person .individual-overview{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
float: none;
|
||||||
}
|
}
|
||||||
/* <------ INDIVIDUAL INTRO - LEFT SIDE CONTENT */
|
/* <------ INDIVIDUAL INTRO - LEFT SIDE CONTENT */
|
||||||
#share-contact{
|
#share-contact{
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 166px;
|
width: 166px;
|
||||||
float: left;
|
float: left;
|
||||||
padding-left: 0.5em;
|
|
||||||
padding-right: 1.5em;
|
padding-right: 1.5em;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
@ -96,24 +78,26 @@ ul#links-additional{
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
#share-contact img.individual-photo{
|
img.individual-photo{
|
||||||
width: 160px;
|
width: 160px;
|
||||||
height: 160px;
|
height: 160px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
|
||||||
img.individual-photo{
|
|
||||||
border: 7px solid #ebebeb;
|
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
margin-left: .5em;
|
|
||||||
}
|
}
|
||||||
#share-contact #mainImage{
|
#mainImage{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 5px 5px 8px 5px;
|
padding: 5px 5px 8px 5px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
top: 123px;
|
top: 126px;
|
||||||
right: 23px;
|
right: 27px;
|
||||||
|
}
|
||||||
|
h2#mainImage, #share-contact h2{
|
||||||
|
font-size: 1em;
|
||||||
|
line-height: 1em;
|
||||||
|
margin-top: 15px;
|
||||||
|
padding-bottom: 0.3em
|
||||||
}
|
}
|
||||||
ul#individual-tools-people{
|
ul#individual-tools-people{
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
@ -183,14 +167,18 @@ ul.individual-urls-people li{
|
||||||
font-size: .875em;
|
font-size: .875em;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
|
#photo-wrapper{
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
/* <------ INDIVIDUAL INTRO - RIGHT SIDE CONTENT */
|
/* <------ INDIVIDUAL INTRO - RIGHT SIDE CONTENT */
|
||||||
#individual-intro #individual-info{
|
#individual-info{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
float: left;
|
float: left;
|
||||||
width: 78%;
|
width: 98%;
|
||||||
}
|
}
|
||||||
#individual-info h1.fn{
|
#individual-info.withThumb{
|
||||||
/*padding-bottom: 12px;*/
|
width: 78%;
|
||||||
}
|
}
|
||||||
h1.fn .preferred-title {
|
h1.fn .preferred-title {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
@ -200,17 +188,14 @@ h1.fn .preferred-title {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
ul#individual-positions{
|
ul#individual-positions{
|
||||||
padding-bottom: 10px;
|
|
||||||
list-style-type: circle;
|
list-style-type: circle;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
ul#individual-positions li{
|
ul#individual-positions li{
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
.individual-overview{
|
ul#individual-positions li:last-child{
|
||||||
font-size: 1em;
|
padding-bottom: 15px;
|
||||||
padding-bottom: 0;
|
|
||||||
line-height: 1.3em;
|
|
||||||
}
|
}
|
||||||
ul#individual-areas{
|
ul#individual-areas{
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
|
@ -224,6 +209,18 @@ ul#individual-areas li{
|
||||||
ul#individual-areas li:first-child{
|
ul#individual-areas li:first-child{
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
#individual-info nav{
|
||||||
|
float: left;
|
||||||
|
width: 78%;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
#individual-intro .individual-overview{
|
||||||
|
margin-bottom: 30px;
|
||||||
|
margin-top: 10px;
|
||||||
|
display: inline;
|
||||||
|
clear: both;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
/* <------ INDIVIDUAL VISUALIZATION */
|
/* <------ INDIVIDUAL VISUALIZATION */
|
||||||
#visualization{
|
#visualization{
|
||||||
float: right;
|
float: right;
|
||||||
|
@ -231,7 +228,7 @@ ul#individual-areas li:first-child{
|
||||||
}
|
}
|
||||||
/* <------ SPARKLINES */
|
/* <------ SPARKLINES */
|
||||||
#sparklines-publications{
|
#sparklines-publications{
|
||||||
padding: 0 10px 35px 30px;
|
padding: 0 0 40px 30px;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
float: right;
|
float: right;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@ -244,22 +241,6 @@ ul#individual-areas li:first-child{
|
||||||
display: block;
|
display: block;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
/* <------ TEMPORAL GRAPH */
|
|
||||||
#temporal-graph{
|
|
||||||
padding: 0 3px 20px 0;
|
|
||||||
background-color: #fff;
|
|
||||||
/*
|
|
||||||
position: absolute;
|
|
||||||
padding: 0 3px 20px 10px;
|
|
||||||
background-color: #fff;
|
|
||||||
top: 0;
|
|
||||||
right: 0
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
#temporal-graph h3 img{
|
|
||||||
padding-right: 10px;
|
|
||||||
vertical-align: text-top;
|
|
||||||
}
|
|
||||||
/* <------ COAUTHORS */
|
/* <------ COAUTHORS */
|
||||||
#co-authors{
|
#co-authors{
|
||||||
padding: 0 20px 30px 20px;
|
padding: 0 20px 30px 20px;
|
||||||
|
@ -292,7 +273,6 @@ p.view-all-coauthors{
|
||||||
}
|
}
|
||||||
#property-group-menu ul{
|
#property-group-menu ul{
|
||||||
display: block;
|
display: block;
|
||||||
color: #5e6363;
|
|
||||||
}
|
}
|
||||||
#property-group-menu li{
|
#property-group-menu li{
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -355,12 +335,6 @@ article.property ul.property-list li{
|
||||||
article.property ul.subclass-property-list{
|
article.property ul.subclass-property-list{
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
#share-contact h3{
|
|
||||||
margin-top: 15px;
|
|
||||||
padding-bottom: .3em;
|
|
||||||
font-size: 1em;
|
|
||||||
line-height: 1em;
|
|
||||||
}
|
|
||||||
article.property ul.subclass-property-list li{
|
article.property ul.subclass-property-list li{
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
padding: 0 20px 10px 20px;
|
padding: 0 20px 10px 20px;
|
||||||
|
@ -377,7 +351,6 @@ article.property ul.subclass-property-list li{
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
.edit-individual{
|
.edit-individual{
|
||||||
border-left: 1px dotted #B2D15A;
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-right: 1px;
|
padding-right: 1px;
|
||||||
|
@ -391,7 +364,7 @@ article.property ul.subclass-property-list li{
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 0 6px 0 0;
|
padding: 0 6px 0 0;
|
||||||
top: 143px;
|
top: 143px;
|
||||||
left: 119px;
|
left: 110px;
|
||||||
}
|
}
|
||||||
a.edit-mainImage img.edit-individual{
|
a.edit-mainImage img.edit-individual{
|
||||||
border: 0;
|
border: 0;
|
||||||
|
@ -401,7 +374,7 @@ a.edit-mainImage img.edit-individual{
|
||||||
.delete-mainImage{
|
.delete-mainImage{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 143px;
|
top: 143px;
|
||||||
left: 149px;
|
left: 140px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 0 6px 0 8px;
|
padding: 0 6px 0 8px;
|
||||||
}
|
}
|
||||||
|
|
BIN
webapp/web/images/placeholders/non.person.thumbnail.jpg
Normal file
BIN
webapp/web/images/placeholders/non.person.thumbnail.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
|
@ -3,16 +3,24 @@
|
||||||
<#-- Default individual profile page template -->
|
<#-- Default individual profile page template -->
|
||||||
|
|
||||||
<section id="individual-intro" class="vcard" role="region">
|
<section id="individual-intro" class="vcard" role="region">
|
||||||
|
|
||||||
<#-- Image -->
|
<#-- Image -->
|
||||||
<@p.imageLinks individual=individual
|
<#assign individualImage>
|
||||||
propertyGroups=propertyGroups
|
<@p.imageLinks individual=individual
|
||||||
namespaces=namespaces
|
propertyGroups=propertyGroups
|
||||||
editable=editable
|
namespaces=namespaces
|
||||||
showPlaceholder="with_add_link"
|
editable=editable
|
||||||
placeholder="${urls.images}/placeholders/person.thumbnail.jpg" />
|
showPlaceholder="with_add_link"
|
||||||
|
placeholder="${urls.images}/placeholders/non.person.thumbnail.jpg" />
|
||||||
|
</#assign>
|
||||||
|
|
||||||
<section id="individual-info" role="region">
|
<#-- <#if ( individualImage?matches('<img class="individual-photo"')?size > 0 )> -->
|
||||||
|
<#if ( individualImage?contains('<img class="individual-photo"') )>
|
||||||
|
<#assign infoClass = 'class="withThumb"'/>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
<div id="photo-wrapper">${individualImage}</div>
|
||||||
|
|
||||||
|
<section id="individual-info" ${infoClass!} role="region">
|
||||||
<#if individual.showAdminPanel>
|
<#if individual.showAdminPanel>
|
||||||
<#include "individual-adminPanel.ftl">
|
<#include "individual-adminPanel.ftl">
|
||||||
</#if>
|
</#if>
|
||||||
|
|
|
@ -45,7 +45,7 @@ name will be used as the label. -->
|
||||||
<#macro addLinkWithLabel property editable label="${property.name?capitalize}">
|
<#macro addLinkWithLabel property editable label="${property.name?capitalize}">
|
||||||
<#local addLink><@addLink property editable /></#local>
|
<#local addLink><@addLink property editable /></#local>
|
||||||
<#if addLink?has_content>
|
<#if addLink?has_content>
|
||||||
<h3 id="${property.localName}">${label} ${addLink}</h3>
|
<h2 id="${property.localName}">${label} ${addLink}</h2>
|
||||||
</#if>
|
</#if>
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue