diff --git a/rest_framework/static/rest_framework/docs/css/base.css b/rest_framework/static/rest_framework/docs/css/base.css index 3afb273ce..c1acaadc7 100644 --- a/rest_framework/static/rest_framework/docs/css/base.css +++ b/rest_framework/static/rest_framework/docs/css/base.css @@ -3,6 +3,11 @@ padding-right: 30px; } +.btn:focus, +.btn:focus:active { + outline: none; +} + .sidebar { overflow: auto; font-family: verdana; @@ -163,46 +168,19 @@ body { /* @group Language Switcher */ -.sidebar .language-switcher { - text-align: center; - margin-top: 20px; - margin-bottom: 20px; - +.sidebar .menu-list.menu-list-bottom { + margin-bottom: 0; position: absolute; bottom: 0; left: 0; right: 0; + border-top: 1px solid #23282e; } -.sidebar .language-switcher h6 { - margin-bottom: 15px; -} - -.sidebar .language-switcher .btn { - padding: 3px 7px; -} - -.sidebar .language-switcher .dropdown-menu { - margin-bottom: 5px; - border: 0; - border-radius: 0; - min-width: 130px; -} - -.sidebar .language-switcher .dropdown-menu > li > a { - padding: 3px 10px; -} - -.sidebar .language-switcher .dropdown-menu > .active > a, -.sidebar .language-switcher .dropdown-menu > .active > a:hover, -.sidebar .language-switcher .dropdown-menu > .active > a:focus { - background-color: #17759c; -} - -.sidebar .language-switcher .dropdown-menu > li > a, -.sidebar .language-switcher .dropdown-menu > li > a:hover, -.sidebar .language-switcher .dropdown-menu > li > a:focus { - background-color: #23282e; +.sidebar .menu-list-bottom li span { + float: right; + margin-right: 20px; + color: #d19b3d; } /* @end Language Switcher */ @@ -258,24 +236,10 @@ body { text-align: center; } - .sidebar .language-switcher { - text-align: center; - margin-top: 10px; - margin-bottom: 10px; + .sidebar .menu-list.menu-list-bottom { position: static; } - .sidebar .language-switcher .btn .caret { - margin-left: 0; - border-bottom: 0; - border-top: 4px dashed; - } - - .sidebar .language-switcher .dropup .dropdown-menu { - top: 30px; - bottom: inherit; - } - .sidebar .brand { margin-top: 0; margin-bottom: 0; @@ -308,10 +272,9 @@ body { color: #93c54b; } -.api-modal .modal-body .request-info { - background-color: #f8f5f0; +.api-modal .modal-body .request-awaiting { text-align: center; - padding: 5px 10px; + padding: 35px 10px; } .api-modal .modal-body .meta { @@ -329,3 +292,13 @@ body { padding: .2em .6em .3em; font-size: 14px; } + +.api-modal .modal-content .toggle-view { + text-align: right; + float: right; +} + +.api-modal .modal-content .response .well { + margin: 0; + max-height: 550px; +} diff --git a/rest_framework/templates/rest_framework/docs/index.html b/rest_framework/templates/rest_framework/docs/index.html index eab6ef86f..ec30999f6 100644 --- a/rest_framework/templates/rest_framework/docs/index.html +++ b/rest_framework/templates/rest_framework/docs/index.html @@ -41,6 +41,14 @@ diff --git a/rest_framework/templates/rest_framework/docs/interact.html b/rest_framework/templates/rest_framework/docs/interact.html index 373dca0f3..c56c5bbad 100644 --- a/rest_framework/templates/rest_framework/docs/interact.html +++ b/rest_framework/templates/rest_framework/docs/interact.html @@ -5,8 +5,15 @@ diff --git a/rest_framework/templates/rest_framework/docs/sidebar.html b/rest_framework/templates/rest_framework/docs/sidebar.html index 313ae7cb4..cda8080f6 100644 --- a/rest_framework/templates/rest_framework/docs/sidebar.html +++ b/rest_framework/templates/rest_framework/docs/sidebar.html @@ -16,18 +16,19 @@ {% endfor %} -
-
Choose Language
-
- -
-
+ + +