diff --git a/rest_framework/static/rest_framework/docs/css/base.css b/rest_framework/static/rest_framework/docs/css/base.css index 7f172b41e..a8e98a37b 100644 --- a/rest_framework/static/rest_framework/docs/css/base.css +++ b/rest_framework/static/rest_framework/docs/css/base.css @@ -192,6 +192,14 @@ body { border-bottom: 1px solid lightgrey; } +.coredocs-section span { + display: none; +} + +.coredocs-section:hover span { + display: inline; +} + .coredocs-section:last-child { margin-top: 0; } @@ -242,6 +250,18 @@ body { /* @group Docs Content */ +.docs-content .meta .label { + vertical-align: middle; + font-size: 14px; + font-weight: normal; +} + +.docs-content .meta code { + vertical-align: middle; + padding: .2em .6em .3em; + font-size: 14px; +} + .docs-content .btn { font-size: inherit; } diff --git a/rest_framework/templates/rest_framework/docs/document.html b/rest_framework/templates/rest_framework/docs/document.html index 1824e5bfa..9461ffd8f 100644 --- a/rest_framework/templates/rest_framework/docs/document.html +++ b/rest_framework/templates/rest_framework/docs/document.html @@ -1,7 +1,7 @@ {% load rest_framework %} {% for section_key, section in document.data.items %} -

{{ section_key }}

+

{{ section_key }} #

{% for link_key, link in section.links.items %} {% include "rest_framework/docs/link.html" %} {% endfor %} diff --git a/rest_framework/templates/rest_framework/docs/link.html b/rest_framework/templates/rest_framework/docs/link.html index 6de23dcaf..51d35a65e 100644 --- a/rest_framework/templates/rest_framework/docs/link.html +++ b/rest_framework/templates/rest_framework/docs/link.html @@ -5,9 +5,10 @@ -

- {{ link.action|upper }} {{ link.url }} -

+
+ {{ link.action|upper }} + {{ link.url }} +

{% render_markdown link.description %}