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
101f06b5
Commit
101f06b5
authored
Oct 05, 2012
by
Max Hurl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dabapps styling to html api
parent
bdbf9887
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
24 deletions
+119
-24
docs/static/css/default.css
+1
-1
rest_framework/static/rest_framework/css/default.css
+107
-19
rest_framework/static/rest_framework/img/grid.png
+0
-0
rest_framework/templates/rest_framework/base.html
+11
-4
No files found.
docs/static/css/default.css
View file @
101f06b5
...
...
@@ -222,11 +222,11 @@ html, body {
padding-bottom
:
70px
;
}
footer
,
.push
{
height
:
60px
;
/* .push must be the same height as .footer */
}
footer
p
{
text-align
:
center
;
color
:
gray
;
...
...
rest_framework/static/rest_framework/css/default.css
View file @
101f06b5
body
{
padding-top
:
0
;
padding-bottom
:
1em
;
}
/* The navbar is fixed at >= 980px wide, so add padding to the body to prevent
content running up underneath it. */
@media
(
min-width
:
980px
)
{
body
{
padding-top
:
60px
;
}
}
h1
{
font-weight
:
500
;
...
...
@@ -22,14 +13,6 @@ h2, h3 {
.resource-description
,
.response-info
{
margin-bottom
:
2em
;
}
#footer
{
border-top
:
1px
solid
#eee
;
margin-top
:
2em
;
padding-top
:
1em
;
text-align
:
right
;
}
.version
:before
{
content
:
"v"
;
opacity
:
0.6
;
...
...
@@ -68,4 +51,110 @@ pre {
.page-header
{
border-bottom
:
none
;
padding-bottom
:
0px
;
}
\ No newline at end of file
}
/*=== dabapps bootstrap styles ====*/
html
{
width
:
100%
;
background
:
none
;
}
body
,
.navbar
.navbar-inner
.container-fluid
{
max-width
:
1150px
;
margin
:
0
auto
;
}
body
{
background
:
url("../img/grid.png")
repeat-x
;
background-attachment
:
fixed
;
}
#content
{
margin
:
40px
0
0
0
;
}
/* custom navigation styles */
.wrapper
.navbar
{
width
:
100%
;
position
:
absolute
;
left
:
0
;
}
.navbar
.navbar-inner
{
background
:
#2C2C2C
;
color
:
white
;
border
:
none
;
border-top
:
5px
solid
#A30000
;
border-radius
:
0px
;
}
.navbar
.navbar-inner
.nav
li
,
.navbar
.navbar-inner
.nav
li
a
,
.navbar
.navbar-inner
.brand
{
color
:
white
;
}
.nav-list
>
.active
>
a
,
.nav-list
>
.active
>
a
:hover
{
background
:
#2c2c2c
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
,
.navbar
.navbar-inner
.dropdown-menu
li
{
color
:
#A30000
;
}
.navbar
.navbar-inner
.dropdown-menu
li
a
:hover
{
background
:
#eeeeee
;
color
:
#c20000
;
}
/* custom general page styles */
.hero-unit
h2
,
.hero-unit
h1
{
color
:
#A30000
;
}
body
a
,
body
a
{
color
:
#A30000
;
}
body
a
:hover
{
color
:
#c20000
;
}
#content
a
span
{
text-decoration
:
underline
;
}
/* sticky footer and footer */
html
,
body
{
height
:
100%
;
}
.wrapper
{
min-height
:
100%
;
height
:
auto
!important
;
height
:
100%
;
margin
:
0
auto
-60px
;
}
#footer
,
#push
{
height
:
60px
;
/* .push must be the same height as .footer */
}
#footer
{
text-align
:
right
;
}
#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
;
}
rest_framework/static/rest_framework/img/grid.png
0 → 100644
View file @
101f06b5
1.42 KB
rest_framework/templates/rest_framework/base.html
View file @
101f06b5
...
...
@@ -25,10 +25,12 @@
<body
class=
"{% block bodyclass %}{% endblock %} container"
>
<div
class=
"wrapper"
>
{% block navbar %}
<div
class=
"navbar
navbar-fixed-top
{% block bootstrap_navbar_variant %}navbar-inverse{% endblock %}"
>
<div
class=
"navbar {% block bootstrap_navbar_variant %}navbar-inverse{% endblock %}"
>
<div
class=
"navbar-inner"
>
<div
class=
"container"
>
<div
class=
"container
-fluid
"
>
<span
class=
"brand"
href=
"/"
>
{% block branding %}
<a
href=
'http://django-rest-framework.org'
>
Django REST framework
<span
class=
"version"
>
{{ version }}
</span></a>
{% endblock %}
</span>
...
...
@@ -118,6 +120,7 @@
{% endfor %}
</div>
{{ content|urlize_quoted_links }}
</pre>
{% endautoescape %}
</div>
</div>
{% if response.status_code != 403 %}
...
...
@@ -181,14 +184,18 @@
</div>
<!-- END Content -->
<div
id=
"push"
></div>
</div>
</div>
<!-- ./wrapper -->
{% block footer %}
<div
id=
"footer"
>
<a
class=
"powered-by"
href=
'http://django-rest-framework.org'
>
Django REST framework
</a>
<span
class=
"version"
>
{{ version }}
</span>
</div>
{% endblock %}
</div>
{% block script %}
<script
src=
"{% get_static_prefix %}rest_framework/js/jquery-1.8.1-min.js"
></script>
<script
src=
"{% get_static_prefix %}rest_framework/js/bootstrap.min.js"
></script>
...
...
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