NIHVIVO-1073 Markup and stylesheet cleanup.

This commit is contained in:
nac26 2011-01-18 11:48:04 +00:00
parent 8b6a8fc6c4
commit 02b1ef29a7
2 changed files with 27 additions and 30 deletions

View file

@ -129,7 +129,7 @@ ul#find-filters a{
#network-stats p{ #network-stats p{
padding: 15px 15px 15px 175px; padding: 15px 15px 15px 175px;
font-size: .875em; font-size: .875em;
line-height: 1.5em; line-height: 1.5;
color: #5e6363; color: #5e6363;
} }
/* RESEARCHERS ------> */ /* RESEARCHERS ------> */
@ -151,7 +151,7 @@ ul#find-filters a{
} }
#researchers p{ #researchers p{
padding: 17px 15px 15px 175px; padding: 17px 15px 15px 175px;
line-height: 1.5em; line-height: 1.5;
} }
#researchers-slider{ #researchers-slider{
clear: both; clear: both;
@ -243,6 +243,7 @@ ul#alpha-browse-childClass{
float: left; float: left;
width: 620px; width: 620px;
padding-left: 10px; padding-left: 10px;
list-style: none;
} }
ul#alpha-browse-childClass li{ ul#alpha-browse-childClass li{
float: left; float: left;
@ -262,7 +263,7 @@ ul#alpha-browse-childClass a{
/* BROWSE INDIVIDUALS------> */ /* BROWSE INDIVIDUALS------> */
#individuals-in-childClass{ #individuals-in-childClass{
float: right; float: right;
width: 45%; width: 68%;
padding-bottom: 30px; padding-bottom: 30px;
margin-bottom: 30px; margin-bottom: 30px;
margin-right: 17px; margin-right: 17px;
@ -273,33 +274,30 @@ ul#alpha-browse-childClass a{
#individuals-in-childClass ul{ #individuals-in-childClass ul{
list-style: none; list-style: none;
} }
#individuals-in-childClass li.individual-foaf-person, #individuals-in-childClass li{
#individuals-in-childClass li.individual{ width: 90%;
width: 39%; padding: 20px 0;
padding-bottom: 30px;
padding-top: 20px;
margin-left: 30px; margin-left: 30px;
margin-right: 30px; margin-right: 30px;
overflow: hidden; overflow: hidden;
} }
#individuals-in-childClass li.individual-foaf-person img, #individuals-in-childClass li img{
#individuals-in-childClass li.individual img{
float: left; float: left;
margin-bottom: 10px; margin-right: 20px;
} }
#individuals-in-childClass li.individual-foaf-person h1, #individuals-in-childClass li h1{
#individuals-in-childClass li.individual h1{ padding: 0;
line-height: 1.2;
font-weight: bold; font-weight: bold;
padding: 30px 0 10px 110px;
line-height: 1.2em;
} }
#individuals-in-childClass li.individual h1.no-thumb{ #individuals-in-childClass li h1.thumb{
padding: 0 0 10px 0; padding-top: 30px;
line-height: 1.2em;
} }
#individuals-in-childClass p{ #individuals-in-childClass span.title{
padding-left: 110px; display: block;
line-height: 1.2em; margin: 0.3em 0 0 0;
font-size: 0.8em;
line-height: 1;
} }
#individuals-in-childClass span.org{ #individuals-in-childClass span.org{
display: block; display: block;

View file

@ -79,15 +79,14 @@ var browseByVClass = {
// Build the content of each list item, piecing together each component // Build the content of each list item, piecing together each component
listItem = '<li class="individual" role="listitem" role="navigation">'; listItem = '<li class="individual" role="listitem" role="navigation">';
if ( typeof results.individuals[i].thumbUrl !== "undefined" ) { if ( typeof results.individuals[i].thumbUrl !== "undefined" ) {
listItem += '<img src="'+ image +'" width="90" height="90" alt="'+ label +'" />'; listItem += '<img src="'+ image +'" width="90" height="90" alt="'+ label +'" /><h1 class="thumb">';
listItem += '<h1><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
} else { } else {
listItem += '<h1 class="no-thumb"><a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>'; listItem += '<h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
} }
listItem += '<a href="'+ profileUrl +'" title="View the profile page for '+ label +'">'+ label +'</a></h1>';
// Include the moniker only if it's not empty and not equal to the VClass name
if ( moniker != vclassName && moniker != "" ) { if ( moniker != vclassName && moniker != "" ) {
listItem += '<p>'+ moniker +'</p>'; listItem += '<span class="title">'+ moniker +'</span>';
} }
listItem += '</li>'; listItem += '</li>';
browseByVClass.individualsInVClass.append(listItem); browseByVClass.individualsInVClass.append(listItem);