Skip to content
Snippets Groups Projects
Commit cecae66e authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Switched grid view to responsive rows, including tablet styling.

parent 1d687f93
Branches
Tags
No related merge requests found
...@@ -60,6 +60,10 @@ div.xml.collapsed > div { display:none;margin-left:2px } ...@@ -60,6 +60,10 @@ div.xml.collapsed > div { display:none;margin-left:2px }
width:auto; width:auto;
} }
.result .right {float:right} .result .right {float:right}
.grid[id^=result] {
float:left;
width:25%;
}
} }
@media (max-width: 600px) { @media (max-width: 600px) {
.result .left,.result .middle,.result .right { .result .left,.result .middle,.result .right {
......
<table class="table table-bordered"> <div class="row">
<tr> <? $i = 0; foreach ($this->results->getResults() as $current): ?>
<? $i = 0; foreach ($this->results->getResults() as $current): ?> <div id="result<?=$i++ ?>" class="span3 grid">
<td id="result<?=$i++ ?>" width="25%"> <?=$this->record($current)->getSearchResult('grid')?>
<?=$this->record($current)->getSearchResult('grid')?> </div>
</td> <?=($i%4==0)?'</div><div class="row">':''?>
<?=($i%4==0)?'</tr><tr>':''?> <? endforeach; ?>
<? endforeach; ?> </div>
</tr>
</table>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment