Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
bdbf9887
Commit
bdbf9887
authored
Oct 05, 2012
by
Max Hurl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added sticky footer to docs
parent
2a89cb4f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
56 deletions
+63
-56
docs/static/css/default.css
+42
-33
docs/template.html
+21
-23
No files found.
docs/static/css/default.css
View file @
bdbf9887
/* 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
;
}
pre
{
font-size
:
12px
;
}
...
...
@@ -61,28 +51,9 @@ a.github:hover {
text-decoration
:
none
;
}
/* Footer */
/*
.footer p {
text-align: center;
color: gray;
border-top: 1px solid #DDD;
padding-top: 10px;
}
.footer a {
color: gray;
font-weight: bold;
}
.footer a:hover {
color: gray;
}
*/
/* */
body
hr
{
border-top
:
1px
dotted
#A30000
border-top
:
1px
dotted
#A30000
;
}
/* Force TOC text to not overrun */
...
...
@@ -100,7 +71,7 @@ pre {
/* Preserve the spacing of the navbar across different screen sizes. */
.navbar-inner
{
padding
:
5px
0
;
/*padding: 5px 0;*/
}
@media
(
max-width
:
979px
)
{
...
...
@@ -194,8 +165,9 @@ body{
color
:
white
;
}
.nav-list
>
.active
>
a
,
.nav-list
>
.active
>
a
:hover
{
background
:
#2c2c2c
;
.nav-list
>
.active
>
a
,
.navbar
.navbar-inner
.nav
li
a
:hover
{
background
:
#212121
;
color
:
white
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
,
.navbar
.navbar-inner
.dropdown-menu
li
{
...
...
@@ -233,3 +205,40 @@ body a:hover{
}
}
/* sticky footer and footer */
html
,
body
{
height
:
100%
;
}
.wrapper
{
min-height
:
100%
;
height
:
auto
!important
;
height
:
100%
;
margin
:
0
auto
-60px
;
}
.body-content
{
padding-top
:
70px
;
padding-bottom
:
70px
;
}
footer
,
.push
{
height
:
60px
;
/* .push must be the same height as .footer */
}
footer
p
{
text-align
:
center
;
color
:
gray
;
border-top
:
1px
solid
#DDD
;
padding-top
:
10px
;
}
footer
a
{
color
:
gray
;
font-weight
:
bold
;
}
footer
a
:hover
{
color
:
gray
;
}
docs/template.html
View file @
bdbf9887
...
...
@@ -19,6 +19,8 @@
<![endif]-->
<body
onload=
"prettyPrint()"
class=
"{{ page_id }}-page"
>
<div
class=
"wrapper"
>
<div
class=
"navbar navbar-inverse navbar-fixed-top"
>
<div
class=
"navbar-inner"
>
<div
class=
"container-fluid"
>
...
...
@@ -90,35 +92,31 @@
</div>
</div>
<div
id=
"wrap"
>
<div
class=
"container-fluid"
>
<div
class=
"row-fluid"
>
<div
class=
"body-content"
>
<div
class=
"container-fluid"
>
<div
class=
"row-fluid"
>
<div
class=
"span3"
>
<div
id=
"table-of-contents"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
{{ toc }}
</ul>
<div
class=
"span3"
>
<div
id=
"table-of-contents"
>
<ul
class=
"nav nav-list side-nav well sidebar-nav-fixed"
>
{{ toc }}
</ul>
</div>
</div>
</div>
<div
id=
"main-content"
class=
"span9"
>
{{ content }}
</div>
<!--/span-->
</div>
<!--/row-->
</div>
<!--/.fluid-container-->
<div
id=
"main-content"
class=
"span9"
>
{{ content }}
</div>
<!--/span-->
</div>
<!--/row-->
</div>
<!--/.fluid-container-->
</div>
<!--/.body content-->
<div
id=
"push"
></div>
</div
>
</div>
<!--/.wrapper --
>
<!--
<div class="row footer">
<div class="span12">
<p>Sponsored by <a href="http://dabapps.com/">Dab Apps</a>.</a></p>
</div>
</div>
-->
<footer
class=
"span12"
>
<p>
Sponsored by
<a
href=
"http://dabapps.com/"
>
Dab Apps
</a>
.
</a></p>
</footer>
<!-- Le javascript
================================================== -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment