Skip to content

Commit 0134ff5

Browse files
Sean MolenaarSean Molenaar
Sean Molenaar
authored and
Sean Molenaar
committed
More style fixes
1 parent 306401a commit 0134ff5

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

src/PHPDraft/Model/DataStructureElement.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ function __toString()
142142

143143
if (empty($this->value))
144144
{
145-
$value = '<s class="pull-right">no example</s>';
145+
$value = '<s class="example-value pull-right">no example</s>';
146146
}
147147
else if (self::class === get_class($this->value))
148148
{
149149
$value = '<div class="sub-struct">'.$this->value.'</div>';
150150
}
151151
else{
152-
$value = '<span class="pull-right">Example: ' . $this->value . '</span>';
152+
$value = '<span class="example-value pull-right">Example: ' . $this->value . '</span>';
153153
}
154154

155155
$return =

src/PHPDraft/Out/HTML/default.php

-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ class="panel panel-default <?= $transition->get_method(); ?>">
127127
<span class="base-url"><?= $this->base_data['HOST']; ?></span>
128128
<em><?= $transition->build_url(); ?></em>
129129
<?php endif; ?>
130-
<em><?= $transition->get_curl_command($this->base_data['HOST']); ?></em>
131-
132-
133130

134131
<h4 class="request">Request
135132
<a class="btn-xs pull-right" role="button" data-toggle="collapse"

src/PHPDraft/Out/HTML/index.css

+15-6
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,19 @@ body .col-md-10 h2:first-of-type {
102102
margin-left: 100px;
103103
}
104104

105-
a .curl-icon {
106-
background-size: 20px 20px;
107-
height: 20px;
108-
width: 20px;
109-
display: inline-block;
110-
background: url('https://curl.haxx.se/logo/curl-symbol.png') left center;
105+
.row dl.dl-horizontal dd a.code,
106+
.row dl.dl-horizontal dd code{
107+
margin-right: 5px;
108+
}
109+
110+
.example-value{
111+
color: rgba(0,0,0,0.4);
112+
}
113+
114+
a.code {
115+
padding: 2px 4px;
116+
font-size: 90%;
117+
background-color: #f9f2f4;
118+
border-radius: 4px;
119+
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
111120
}

0 commit comments

Comments
 (0)