aboutsummaryrefslogtreecommitdiffstats
path: root/docs/static/css/drf-styles.css
diff options
context:
space:
mode:
authorTom Christie2012-09-07 15:25:58 -0700
committerTom Christie2012-09-07 15:25:58 -0700
commit8f119a8c34c1ebb3cf82152aa7900d316f64c0d8 (patch)
tree66b91abceb1d13adfa4100ce7a9eeafab1c8b428 /docs/static/css/drf-styles.css
parent80c50bfd2d8680d4836ccf0f3594518622dfec02 (diff)
parentf95f96aba7c7f1ea26af09b9e768d5c8997bac98 (diff)
downloaddjango-rest-framework-8f119a8c34c1ebb3cf82152aa7900d316f64c0d8.tar.bz2
Merge pull request #253 from droptype/rf2-docfixes
Fixes for the documentation styles
Diffstat (limited to 'docs/static/css/drf-styles.css')
-rw-r--r--docs/static/css/drf-styles.css82
1 files changed, 82 insertions, 0 deletions
diff --git a/docs/static/css/drf-styles.css b/docs/static/css/drf-styles.css
new file mode 100644
index 00000000..fcc60532
--- /dev/null
+++ b/docs/static/css/drf-styles.css
@@ -0,0 +1,82 @@
+/* Set the body padding-top when above 980px to push the content down from
+ below the navbar, which is fixed at >980px screen widths. */
+@media (min-width: 980px) {
+ body {
+ padding-top: 71px;
+ }
+}
+
+body {
+ padding-bottom: 40px;
+}
+
+
+
+/* Preserve the spacing of the navbar across different screen sizes. */
+.navbar-inner {
+ padding: 5px 0;
+}
+
+@media (max-width: 979px) {
+ .navbar .brand {
+ margin-left: 0;
+ padding-left: 0;
+ }
+ .navbar-inner .container-fluid {
+ padding-left: 15px;
+ }
+}
+
+
+.nav-list li.main {
+ font-weight: bold;
+}
+
+
+
+/* Set the table of contents to static so it flows back into the content when
+ viewed on tablets and smaller. */
+@media (max-width: 767px) {
+ #table-of-contents {
+ position: static;
+ }
+}
+
+/* When the page is in two-column layout, give the main content some room
+ to breath on the left. */
+@media (min-width: 768px) {
+ #main-content {
+ padding-left: 1em;
+ }
+}
+
+
+blockquote {
+ font-family: Georgia, serif;
+ font-size: 18px;
+ font-style: italic;
+ margin: 0.25em 0;
+ padding: 0.25em 40px;
+ line-height: 1.45;
+ position: relative;
+ color: #383838;
+ border-left: none;
+}
+
+ blockquote:before {
+ display: block;
+ content: "\201C";
+ font-size: 80px;
+ position: absolute;
+ left: -10px;
+ top: -20px;
+ color: #7a7a7a;
+}
+
+ blockquote p:last-child {
+ color: #999999;
+ font-size: 14px;
+ display: block;
+ margin-top: 5px;
+}
+