diff options
Diffstat (limited to 'src/static/rest_framework/docs/css')
| -rw-r--r-- | src/static/rest_framework/docs/css/base.css | 359 | ||||
| -rw-r--r-- | src/static/rest_framework/docs/css/highlight.css | 125 | ||||
| -rw-r--r-- | src/static/rest_framework/docs/css/jquery.json-view.min.css | 11 |
3 files changed, 495 insertions, 0 deletions
diff --git a/src/static/rest_framework/docs/css/base.css b/src/static/rest_framework/docs/css/base.css new file mode 100644 index 0000000..0be2baf --- /dev/null +++ b/src/static/rest_framework/docs/css/base.css @@ -0,0 +1,359 @@ +h1 { + font-size: 45px; +} + +.intro-code { + margin-top: 20px; +} + +pre.highlight code * { + white-space: nowrap; // this sets all children inside to nowrap +} + +pre.highlight { + overflow-x: auto; // this sets the scrolling in x +} + +pre.highlight code { + white-space: pre; // forces <code> to respect <pre> formatting +} + +.main-container { + padding-left: 30px; + padding-right: 30px; +} + +.btn:focus, +.btn:focus:active { + outline: none; +} + +.sidebar { + overflow: auto; + font-family: verdana, sans-serif; + font-size: 12px; + font-weight: 200; + background-color: #2e353d; + position: fixed; + top: 0px; + width: 225px; + height: 100%; + color: #FFF; +} + +.sidebar .brand { + background-color: #23282e; + display: block; + text-align: center; + padding: 25px 0; + margin-top: 0; + margin-bottom: 0; +} + +.sidebar .brand a { + color: #FFF; +} + +.sidebar .brand a:hover, +.sidebar .brand a:active, +.sidebar .brand a:focus { + text-decoration: none; +} + +.sidebar .toggle-btn { + display: none; +} + +.sidebar .menu-list { + width: inherit; +} + +.sidebar .menu-list ul, +.sidebar .menu-list li { + background: #2e353d; + list-style: none; + padding: 0px; + margin: 0px; + line-height: 35px; + cursor: pointer; +} + +.sidebar .menu-list ul :not(collapsed) .arrow:before, +.sidebar .menu-list li :not(collapsed) .arrow:before { + font-family: FontAwesome; + content: "\f078"; + display: inline-block; + padding-left: 10px; + padding-right: 10px; + vertical-align: middle; + float: right; +} + +.sidebar .menu-list ul .active, +.sidebar .menu-list li .active { + border-left: 3px solid #d19b3d; + background-color: #4f5b69; +} + +.sidebar .menu-list ul .sub-menu li.active, +.sidebar .menu-list li .sub-menu li.active { + color: #d19b3d; +} + +.sidebar .menu-list ul .sub-menu li.active a, +.sidebar .menu-list li .sub-menu li.active a { + color: #d19b3d; +} + +.sidebar .menu-list ul .sub-menu li, +.sidebar .menu-list li .sub-menu li { + background-color: #181c20; + border: none; + border-bottom: 1px solid #23282e; + margin-left: 0px; + line-height: 1.4; + padding-top: 10px; + padding-bottom: 10px; + padding-right: 10px; + padding-left: 25px; +} + +.sidebar .menu-list ul .sub-menu li:hover, +.sidebar .menu-list li .sub-menu li:hover { + background-color: #020203; +} + + +.sidebar .menu-list ul .sub-menu li a, +.sidebar .menu-list li .sub-menu li a { + display: block; +} + +.sidebar .menu-list ul .sub-menu li a:before, +.sidebar .menu-list li .sub-menu li a:before { + font-family: FontAwesome; + font-size: 14px; + font-weight: bold; + content: "\f105"; + display: inline; + vertical-align: middle; + padding-left: 0; + padding-right: 7px; + margin-left: -12px; +} + +.sidebar .menu-list li { + padding-left: 0px; + border-left: 3px solid #2e353d; + border-bottom: 1px solid #23282e; +} + +.sidebar .menu-list li a { + text-decoration: none; + color: white; +} + +.sidebar .menu-list li a i { + padding-left: 10px; + width: 20px; + padding-right: 20px; +} + +.sidebar .menu-list li:hover { + border-left: 3px solid #d19b3d; + background-color: #4f5b69; + -webkit-transition: all 1s ease; + -moz-transition: all 1s ease; + -o-transition: all 1s ease; + -ms-transition: all 1s ease; + transition: all 1s ease; +} + +.sidebar #menu-content { + padding-bottom: 70px; +} + +body { + margin: 0px; + padding: 0px; +} + +.coredocs-section-title { + margin-top: 20px; + padding-bottom: 10px; + border-bottom: 1px solid lightgrey; +} + +.coredocs-link-title a, +.coredocs-section-title a { + display: none; +} + +.coredocs-link-title a, +.coredocs-section-title a { + text-decoration: none; +} + +.coredocs-link-title:hover a, +.coredocs-section-title:hover a { + display: inline; + font-size: 20px; +} + +.coredocs-section-title:last-child { + margin-top: 0; +} + + +/* @group Language Switcher */ + +.sidebar .menu-list.menu-list-bottom { + margin-bottom: 0; + position: fixed; + width: inherit; + bottom: 0; + left: 0; + right: 0; + border-top: 1px solid #23282e; +} + +.sidebar .menu-list-bottom li span { + float: right; + margin-right: 20px; + color: #d19b3d; +} + +/* @end Language Switcher */ + + +/* @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; +} + +.code-samples pre { + margin-top: 20px; +} + +/* @end Docs Content */ + + +@media (max-width: 767px) { + .main-container { + padding-left: 15px; + padding-right: 15px; + } + + .sidebar { + position: relative; + width: 100%; + margin-bottom: 10px; + overflow: visible; + } + + .sidebar .toggle-btn { + display: block; + cursor: pointer; + position: absolute; + right: 10px; + top: 10px; + z-index: 10 !important; + padding: 3px; + width: 40px; + text-align: center; + } + + .sidebar .menu-list.menu-list-bottom { + position: static; + } + + .sidebar .brand { + margin-top: 0; + margin-bottom: 0; + + text-align: left !important; + font-size: 22px; + padding: 0; + padding-left: 20px; + line-height: 50px !important; + } +} + +@media (min-width: 767px) { + .sidebar .menu-list .menu-content { + display: block; + } + #main { + width:calc(100% - 225px); + float: right; + } +} + +@media (min-width: 992px) { + .modal-lg { + width: 980px; + } +} + +.api-modal .modal-title .fa { + color: #93c54b; +} + +.api-modal .modal-body .request-awaiting { + padding: 35px 10px; + color: #7F8177; + text-align: center; +} + +.api-modal .modal-body .meta { + margin-bottom: 20px; +} + +.api-modal .modal-body .meta .label { + vertical-align: middle; + font-size: 14px; + font-weight: normal; +} + +.api-modal .modal-body .meta code { + vertical-align: middle; + 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; +} + +.highlight { + background-color: #f7f7f9 +} + +.checkbox label.control-label { + font-weight: bold +} + +@media (min-width: 768px) { + .navbar-nav.navbar-right:last-child { + margin-right: 0 !important; + } +} diff --git a/src/static/rest_framework/docs/css/highlight.css b/src/static/rest_framework/docs/css/highlight.css new file mode 100644 index 0000000..0375453 --- /dev/null +++ b/src/static/rest_framework/docs/css/highlight.css @@ -0,0 +1,125 @@ +/* +This is the GitHub theme for highlight.js + +github.com style (c) Vasily Polovnyov <vast@whiteants.net> + +*/ + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + color: #333; + -webkit-text-size-adjust: none; +} + +.hljs-comment, +.diff .hljs-header, +.hljs-javadoc { + color: #998; + font-style: italic; +} + +.hljs-keyword, +.css .rule .hljs-keyword, +.hljs-winutils, +.nginx .hljs-title, +.hljs-subst, +.hljs-request, +.hljs-status { + color: #333; + font-weight: bold; +} + +.hljs-number, +.hljs-hexcolor, +.ruby .hljs-constant { + color: #008080; +} + +.hljs-string, +.hljs-tag .hljs-value, +.hljs-phpdoc, +.hljs-dartdoc, +.tex .hljs-formula { + color: #d14; +} + +.hljs-title, +.hljs-id, +.scss .hljs-preprocessor { + color: #900; + font-weight: bold; +} + +.hljs-list .hljs-keyword, +.hljs-subst { + font-weight: normal; +} + +.hljs-class .hljs-title, +.hljs-type, +.vhdl .hljs-literal, +.tex .hljs-command { + color: #458; + font-weight: bold; +} + +.hljs-tag, +.hljs-tag .hljs-title, +.hljs-rule .hljs-property, +.django .hljs-tag .hljs-keyword { + color: #000080; + font-weight: normal; +} + +.hljs-attribute, +.hljs-variable, +.lisp .hljs-body, +.hljs-name { + color: #008080; +} + +.hljs-regexp { + color: #009926; +} + +.hljs-symbol, +.ruby .hljs-symbol .hljs-string, +.lisp .hljs-keyword, +.clojure .hljs-keyword, +.scheme .hljs-keyword, +.tex .hljs-special, +.hljs-prompt { + color: #990073; +} + +.hljs-built_in { + color: #0086b3; +} + +.hljs-preprocessor, +.hljs-pragma, +.hljs-pi, +.hljs-doctype, +.hljs-shebang, +.hljs-cdata { + color: #999; + font-weight: bold; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.diff .hljs-change { + background: #0086b3; +} + +.hljs-chunk { + color: #aaa; +} diff --git a/src/static/rest_framework/docs/css/jquery.json-view.min.css b/src/static/rest_framework/docs/css/jquery.json-view.min.css new file mode 100644 index 0000000..a075681 --- /dev/null +++ b/src/static/rest_framework/docs/css/jquery.json-view.min.css @@ -0,0 +1,11 @@ +.json-view{position:relative} +.json-view .collapser{width:20px;height:18px;display:block;position:absolute;left:-1.7em;top:-.2em;z-index:5;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYGBgOADE%2F3Hgw0DM4IRHgSsDFOzFInmMAQnY49ONzZRjDFiADT7dMLALiE8y4AGW6LoBAgwAuIkf%2F%2FB7O9sAAAAASUVORK5CYII%3D);background-repeat:no-repeat;background-position:center center;opacity:.5;cursor:pointer} +.json-view .collapsed{-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-khtml-transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)} +.json-view .bl{display:block;padding-left:20px;margin-left:-20px;position:relative} +.json-view{font-family:monospace} +.json-view ul{list-style-type:none;padding-left:2em;border-left:1px dotted;margin:.3em} +.json-view ul li{position:relative} +.json-view .comments,.json-view .dots{display:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;user-select:none} +.json-view .comments{padding-left:.8em;font-style:italic;color:#888} +.json-view .bool,.json-view .null,.json-view .num,.json-view .undef{font-weight:700;color:#1A01CC} +.json-view .str{color:#800}
\ No newline at end of file |
