Skip to content

Commit 9adf991

Browse files
committed
add css for docs
1 parent 24914f8 commit 9adf991

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

plugins/restapi/doc/doc.php

+26
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,32 @@ public function output()
6161
public function header()
6262
{
6363
return '
64+
65+
<style type="text/css">
66+
.param-required {
67+
background-color: #DD5600;
68+
}
69+
.param-optional {
70+
background-color: #669533;
71+
}
72+
.restapi-datatype {
73+
background-color: #999;
74+
}
75+
76+
.restapi-param, .restapi-datatype {
77+
border-radius: 3px;
78+
display: inline-block;
79+
padding: 2px 4px;
80+
font-size: 11.844px;
81+
font-weight: bold;
82+
line-height: 14px;
83+
color: #FFF;
84+
vertical-align: baseline;
85+
white-space: nowrap;
86+
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
87+
}
88+
89+
</style>
6490
6591
<header class="jumbotron subhead" id="overview">
6692
<div class="row">

0 commit comments

Comments
 (0)