Skip to content

Commit

Permalink
Added a 5px margin top to read only elements, so they line up better …
Browse files Browse the repository at this point in the history
…with labels (which have a 5px margin top to account for vertical centering with input fields)
  • Loading branch information
cheesegrits committed Dec 23, 2016
1 parent 1963cd9 commit ae73774
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_fabrik/models/element.php
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ public function preRenderElement($data, $repeatCounter = 0)
$v = $this->getROElement($data, $repeatCounter);
//$v = $v == '' ? ' ' : $v;

return '<div id="' . $htmlId . '">' . $v . '</div>';
return '<div class="fabrikElementReadOnly" id="' . $htmlId . '">' . $v . '</div>';
}
}

Expand Down
5 changes: 5 additions & 0 deletions media/com_fabrik/css/fabrik.css
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,11 @@ td.repeat-reduce ul.fabrikRepeatData li {
/************ Misc. Workarounds *************************/
/*********************************************************/

/** add a top margin for read only elements **/
.fabrikElementReadOnly {
margin-top: 5px;
}

/** Workaround for Gantry's date class stomping on our date element class **/
.fabrikGroup ul li.date {
font-weight: normal;
Expand Down

0 comments on commit ae73774

Please sign in to comment.