Skip to content

Commit abaf20c

Browse files
author
Emmanouil Konstantinidis
committed
Clean up
1 parent e65b64a commit abaf20c

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ $( document ).ready(function() {
8484
$('#methods').append("<button type='button' class='" + methodClass + "'>" + method + "</button>");
8585
});
8686

87+
// Make the first method active
8788
$('#methods').children(".btn").first().addClass( 'active' );
8889

8990
$("#methods .method").on('click', function (evt) {
91+
// Remove 'active' from all methods
9092
$("#methods .method").removeClass( 'active' );
93+
// Add 'active' to the clicked button
9194
$(this).addClass( 'active' );
9295
});
9396

rest_framework_docs/static/rest_framework_docs/less/style.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ body {
195195
}
196196

197197
.response {
198+
.status-code {
199+
font-weight: 300;
200+
}
201+
198202
.status-text {
199203
text-transform: capitalize;
200204
}

rest_framework_docs/templates/rest_framework_docs/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h5>Data</h5>
125125

126126
</div>
127127
<div class="col-md-6 response">
128-
<h3>Response <span id="responseStatusCode" class="label pull-right"></span></h3>
128+
<h3>Response <span id="responseStatusCode" class="label status-code pull-right"></span></h3>
129129
<div><strong>Status Text</strong>: <span class="status-text" id="responseStatusText"></span></div>
130130
<pre><code id="responseData"></code></pre>
131131
</div>

0 commit comments

Comments
 (0)