[Search] Positioning fixed

Fixed the search results so that they
now display correctly, with overflow
hidden, and no unusual positioning.
Also changed font size to 0.8em.
This commit is contained in:
shale 2015-07-22 13:38:57 -07:00
parent 3ae681c79c
commit dcd4006017
3 changed files with 33 additions and 20 deletions

View File

@ -275,16 +275,24 @@ ul.tree {
span.search-holder .searchbar {
width: 100%;
margin-top: 20px; }
/* line 44, ../sass/search/_search.scss */
span.search-holder .results .searchbar-item .label .title-label {
position: relative;
left: 20px;
top: -17px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
/* line 58, ../sass/search/_search.scss */
/* line 32, ../sass/search/_search.scss */
span.search-holder .results {
margin-top: 10px; }
/* line 35, ../sass/search/_search.scss */
span.search-holder .results .search-result-item {
margin-bottom: 5px; }
/* line 45, ../sass/search/_search.scss */
span.search-holder .results .search-result-item .label .title-label {
display: inline-block;
position: absolute;
width: auto;
left: 20px;
right: 0;
font-size: .8em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
/* line 63, ../sass/search/_search.scss */
span.search-holder .load-more-button {
width: 100%;
margin-top: 20px; }
margin-top: 5px; }

View File

@ -22,7 +22,7 @@
span.search-holder {
$iconwidth: 20px;
$iconheight: 17px;
//$iconheight: 17px;
.searchbar {
width: 100%;
@ -30,9 +30,10 @@ span.search-holder {
}
.results {
margin-top: 10px;
.searchbar-item {
//margin-top: 5px;
.search-result-item {
margin-bottom: 5px;
.label {
@ -42,11 +43,15 @@ span.search-holder {
}
.title-label {
position: relative;
left: $iconwidth;
top: -$iconheight;
display: inline-block;
position: absolute;
width: auto;
left: $iconwidth;
right: 0;
font-size: .8em;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -57,6 +62,6 @@ span.search-holder {
.load-more-button {
width: 100%;
margin-top: 20px;
margin-top: 5px;
}
}

View File

@ -20,7 +20,7 @@
at runtime from the About dialog for additional information.
-->
<div class="searchbar-item">
<div class="search-result-item">
<mct-representation
key="'label'"
mct-object="domainObject"