diff options
| author | Alec Perkins | 2012-09-07 13:05:44 -0400 |
|---|---|---|
| committer | Alec Perkins | 2012-09-07 13:05:44 -0400 |
| commit | 6d7d70c1c052c2ad42ea8bef7cd56760c8041592 (patch) | |
| tree | 565e655d9a7bb7d1536e91e88103354eca561144 /docs/static/css | |
| parent | 17654a8b546e6bb44bef1fbb67c788f7c5c70a41 (diff) | |
| download | django-rest-framework-6d7d70c1c052c2ad42ea8bef7cd56760c8041592.tar.bz2 | |
[docs] Move styles to own file. Fix table-of-contents positioning when viewed on <767px screens.
The fixed positioning of the ToC needs to be overridden with static, so that the ToC falls back into the flow of content and is sized correctly. Also, this prevents the actual page content from riding up behind the ToC and being obscured.
Diffstat (limited to 'docs/static/css')
| -rw-r--r-- | docs/static/css/drf-styles.css | 46 |
1 files changed, 46 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..25b6f8d2 --- /dev/null +++ b/docs/static/css/drf-styles.css @@ -0,0 +1,46 @@ +body { + padding-top: 60px; + padding-bottom: 40px; +} + +/* 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; + } +} + +.nav-list li.main { + font-weight: bold; +} + +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; +} + |
