Skip to content

Commit 306401a

Browse files
Sean MolenaarSean Molenaar
Sean Molenaar
authored and
Sean Molenaar
committed
Style fixes
1 parent cfccd75 commit 306401a

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/PHPDraft/Model/DataStructureElement.php

+12-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,18 @@ function __toString()
140140
$type = (!in_array($this->type, $this->defaults)) ?
141141
'<a class="code" href="#object-' . $this->type . '">' . $this->type . '</a>' : '<code>'.$this->type.'</code>';
142142

143-
$value = (empty($this->value)) ?
144-
'<s class="pull-right">no example</s>' : '<blockquote>Example: ' . $this->value . '</blockquote>' ;
143+
if (empty($this->value))
144+
{
145+
$value = '<s class="pull-right">no example</s>';
146+
}
147+
else if (self::class === get_class($this->value))
148+
{
149+
$value = '<div class="sub-struct">'.$this->value.'</div>';
150+
}
151+
else{
152+
$value = '<span class="pull-right">Example: ' . $this->value . '</span>';
153+
}
154+
145155
$return =
146156
'<dt>' .
147157
'<span>' . $this->key . "</span>" .

src/PHPDraft/Out/HTML/index.css

+2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ body .col-md-10 h2:first-of-type {
9595

9696
.row dl.dl-horizontal dt {
9797
width: 80px;
98+
line-height: 30px;
9899
}
99100
.row dl.dl-horizontal dd {
101+
line-height: 30px;
100102
margin-left: 100px;
101103
}
102104

File renamed without changes.

0 commit comments

Comments
 (0)