Improve positions layout
This commit is contained in:
parent
eb6f0e5d8c
commit
812c62cf1b
3 changed files with 56 additions and 5 deletions
|
@ -94,6 +94,10 @@ article.property li h3 {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul#individual-hasResearchArea {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
ul#individual-hasResearchArea li,
|
ul#individual-hasResearchArea li,
|
||||||
ul#individual-facultyMemberships li {
|
ul#individual-facultyMemberships li {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -109,3 +113,16 @@ ul#individual-facultyMemberships li {
|
||||||
background-color: #398AAC;
|
background-color: #398AAC;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul#individual-personInPosition {
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#individual-personInPosition li {
|
||||||
|
line-height: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#individual-personInPosition li:last-child {
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
|
@ -245,7 +245,7 @@ h1.vivo-logo a {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
h2 {
|
h2 {
|
||||||
padding: 5px 0 6px 0;
|
padding: 5px 0 3px 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 1.375em;
|
font-size: 1.375em;
|
||||||
color: #064d68;
|
color: #064d68;
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
<#local rangeUri = "" />
|
<#local rangeUri = "" />
|
||||||
</#if>
|
</#if>
|
||||||
<#if statement.dateTimeEnd??>
|
<#if statement.dateTimeEnd??>
|
||||||
<li role="listitem" class="pastPosition">
|
|
||||||
<#include "${template}">
|
|
||||||
<@p.editingLinks "${property.localName}" "${property.name}" statement editable rangeUri/>
|
|
||||||
</li>
|
|
||||||
<#else>
|
<#else>
|
||||||
<li role="listitem" class="currentPosition">
|
<li role="listitem" class="currentPosition">
|
||||||
<#include "${template}">
|
<#include "${template}">
|
||||||
|
@ -29,4 +25,42 @@
|
||||||
</li>
|
</li>
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
|
<#list statements as statement>
|
||||||
|
<#if property.rangeUri?? >
|
||||||
|
<#local rangeUri = property.rangeUri />
|
||||||
|
<#else>
|
||||||
|
<#local rangeUri = "" />
|
||||||
|
</#if>
|
||||||
|
<#if statement.dateTimeEnd??>
|
||||||
|
<li role="listitem" class="pastPosition">
|
||||||
|
<#include "${template}">
|
||||||
|
<@p.editingLinks "${property.localName}" "${property.name}" statement editable rangeUri/>
|
||||||
|
</li>
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
</#macro>
|
</#macro>
|
||||||
|
|
||||||
|
<script language="JavaScript">
|
||||||
|
$('ul#individual-personInPosition').each(function(){
|
||||||
|
|
||||||
|
var LiN = $(this).find('li').length;
|
||||||
|
|
||||||
|
if( LiN > 1) {
|
||||||
|
$('li', this).eq(0).nextAll().hide().addClass('toggleable');
|
||||||
|
$(this).append('<li class="more">More...</li>');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('ul#individual-personInPosition').on('click','.more', function(){
|
||||||
|
if( $(this).hasClass('less') ){
|
||||||
|
$(this).text('More...').removeClass('less');
|
||||||
|
}else{
|
||||||
|
$(this).text('Less...').addClass('less');
|
||||||
|
}
|
||||||
|
|
||||||
|
$(this).siblings('li.toggleable').slideToggle();
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Add table
Reference in a new issue