Skip to content

Commit f27bbf5

Browse files
author
Emmanouil Konstantinidis
committed
Style elements
1 parent 3b37a1d commit f27bbf5

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

rest_framework_docs/static/rest_framework_docs/css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rest_framework_docs/static/rest_framework_docs/js/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ $( document ).ready(function() {
9898
var label = field.name.replace('_', ' ');
9999
$('#fields').append("" +
100100
'<div class="form-group">' +
101-
'<label for="field' + field.name + '">' + label + '</label>' +
101+
'<label for="field' + field.name + '" class="col-sm-4 control-label">' + label + '</label>' +
102+
'<div class="col-sm-8">' +
102103
'<input type="text" class="form-control input-sm" id="field' + field.name + '" placeholder="' + field.type + '">' +
104+
'</div>' +
103105
'</div>' +
104106
"");
105107
});

rest_framework_docs/static/rest_framework_docs/less/style.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ body {
170170
margin-top: 0;
171171
}
172172

173+
.control-label {
174+
padding-top: 7px;
175+
}
176+
173177
.request {
174178

175179
.section-title {

rest_framework_docs/templates/rest_framework_docs/home.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,23 @@ <h4 class="modal-title">Live API Endpoints</h4>
9999
<div class="row">
100100
<div class="col-md-6 request">
101101
<h3>Request</h3>
102-
<form id="requestForm">
102+
<form class="form-horizontal" id="requestForm">
103103
<div class="form-group">
104-
<label for="urlInput">Endpoint</label>
105-
<input type="text" class="form-control input-sm" id="urlInput" placeholder="Url">
104+
<label for="urlInput" class="col-sm-4 control-label">Endpoint</label>
105+
<div class="col-sm-8">
106+
<input type="text" class="form-control input-sm" id="urlInput" placeholder="Url">
107+
</div>
106108
</div>
107109

110+
<h5 class="section-title"><span>Method</span></h5>
108111
<div class="btn-group methods" id="methods" role="group"></div>
109112

110113
<h5 class="section-title"><span>Headers</span></h5>
111114
<div class="form-group">
112-
<label for="exampleInputPassword1">Authorization</label>
113-
<input type="text" class="form-control input-sm" id="exampleInputPassword1" placeholder="Token">
115+
<label for="exampleInputPassword1" class="col-sm-4 control-label">Authorization</label>
116+
<div class="col-sm-8">
117+
<input type="text" class="form-control input-sm" id="exampleInputPassword1" placeholder="Token">
118+
</div>
114119
</div>
115120

116121
<h5 class="section-title"><span>Data</span></h5>

0 commit comments

Comments
 (0)