Skip to content

Commit

Permalink
More 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 306401a commit 0134ff5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/PHPDraft/Model/DataStructureElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ function __toString()

if (empty($this->value))
{
$value = '<s class="pull-right">no example</s>';
$value = '<s class="example-value 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>';
$value = '<span class="example-value pull-right">Example: ' . $this->value . '</span>';
}

$return =
Expand Down
3 changes: 0 additions & 3 deletions src/PHPDraft/Out/HTML/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ class="panel panel-default <?= $transition->get_method(); ?>">
<span class="base-url"><?= $this->base_data['HOST']; ?></span>
<em><?= $transition->build_url(); ?></em>
<?php endif; ?>
<em><?= $transition->get_curl_command($this->base_data['HOST']); ?></em>



<h4 class="request">Request
<a class="btn-xs pull-right" role="button" data-toggle="collapse"
Expand Down
21 changes: 15 additions & 6 deletions src/PHPDraft/Out/HTML/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,19 @@ body .col-md-10 h2:first-of-type {
margin-left: 100px;
}

a .curl-icon {
background-size: 20px 20px;
height: 20px;
width: 20px;
display: inline-block;
background: url('https://curl.haxx.se/logo/curl-symbol.png') left center;
.row dl.dl-horizontal dd a.code,
.row dl.dl-horizontal dd code{
margin-right: 5px;
}

.example-value{
color: rgba(0,0,0,0.4);
}

a.code {
padding: 2px 4px;
font-size: 90%;
background-color: #f9f2f4;
border-radius: 4px;
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
}

0 comments on commit 0134ff5

Please sign in to comment.