Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Molenaar authored and Sean Molenaar committed Aug 23, 2016
1 parent cfccd75 commit 306401a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/PHPDraft/Model/DataStructureElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,18 @@ function __toString()
$type = (!in_array($this->type, $this->defaults)) ?
'<a class="code" href="#object-' . $this->type . '">' . $this->type . '</a>' : '<code>'.$this->type.'</code>';

$value = (empty($this->value)) ?
'<s class="pull-right">no example</s>' : '<blockquote>Example: ' . $this->value . '</blockquote>' ;
if (empty($this->value))
{
$value = '<s class="pull-right">no example</s>';
}
else if (self::class === get_class($this->value))
{
$value = '<div class="sub-struct">'.$this->value.'</div>';
}
else{
$value = '<span class="pull-right">Example: ' . $this->value . '</span>';
}

$return =
'<dt>' .
'<span>' . $this->key . "</span>" .
Expand Down
2 changes: 2 additions & 0 deletions src/PHPDraft/Out/HTML/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ body .col-md-10 h2:first-of-type {

.row dl.dl-horizontal dt {
width: 80px;
line-height: 30px;
}
.row dl.dl-horizontal dd {
line-height: 30px;
margin-left: 100px;
}

Expand Down
File renamed without changes.

0 comments on commit 306401a

Please sign in to comment.