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
b88046eb
Commit
b88046eb
authored
Aug 29, 2014
by
Carlton Gibson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1788 from cezar77/fix-1719
Browsable API cleanups. Fixes #1719
parents
2536b93c
53808892
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
39 deletions
+46
-39
rest_framework/static/rest_framework/css/bootstrap-tweaks.css
+44
-37
rest_framework/static/rest_framework/css/default.css
+2
-2
rest_framework/templates/rest_framework/base.html
+0
-0
No files found.
rest_framework/static/rest_framework/css/bootstrap-tweaks.css
View file @
b88046eb
...
@@ -6,7 +6,6 @@ a single block in the template.
...
@@ -6,7 +6,6 @@ a single block in the template.
*/
*/
.form-actions
{
.form-actions
{
background
:
transparent
;
background
:
transparent
;
border-top-color
:
transparent
;
border-top-color
:
transparent
;
...
@@ -14,7 +13,7 @@ a single block in the template.
...
@@ -14,7 +13,7 @@ a single block in the template.
}
}
.navbar-inverse
.brand
a
{
.navbar-inverse
.brand
a
{
color
:
#
999
;
color
:
#999
999
;
}
}
.navbar-inverse
.brand
:hover
a
{
.navbar-inverse
.brand
:hover
a
{
color
:
white
;
color
:
white
;
...
@@ -22,14 +21,15 @@ a single block in the template.
...
@@ -22,14 +21,15 @@ a single block in the template.
}
}
/* custom navigation styles */
/* custom navigation styles */
.
wrapper
.navbar
{
.
navbar
{
width
:
100%
;
width
:
100%
;
position
:
absolute
;
position
:
fixed
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
z-index
:
3
;
}
}
.navbar
.navbar-inner
{
.navbar
.navbar-inner
{
background
:
#2C2C2C
;
background
:
#2C2C2C
;
color
:
white
;
color
:
white
;
border
:
none
;
border
:
none
;
...
@@ -37,25 +37,26 @@ a single block in the template.
...
@@ -37,25 +37,26 @@ a single block in the template.
border-radius
:
0px
;
border-radius
:
0px
;
}
}
.navbar
.navbar-inner
.nav
li
,
.navbar
.navbar-inner
.nav
li
a
,
.navbar
.navbar-inner
.brand
:hover
{
.navbar
.navbar-inner
.nav
li
,
.navbar
.navbar-inner
.nav
li
a
,
.navbar
.navbar-inner
.brand
:hover
{
color
:
white
;
color
:
white
;
}
}
.nav-list
>
.active
>
a
,
.nav-list
>
.active
>
a
:hover
{
.nav-list
>
.active
>
a
,
.nav-list
>
.active
>
a
:hover
{
background
:
#2
c2c2c
;
background
:
#2
C2C2C
;
}
}
.navbar
.navbar-inner
.dropdown-menu
li
a
,
.navbar
.navbar-inner
.dropdown-menu
li
{
.navbar
.navbar-inner
.dropdown-menu
li
a
,
.navbar
.navbar-inner
.dropdown-menu
li
{
color
:
#A30000
;
color
:
#A30000
;
}
}
.navbar
.navbar-inner
.dropdown-menu
li
a
:hover
{
background
:
#eeeeee
;
.navbar
.navbar-inner
.dropdown-menu
li
a
:hover
{
color
:
#c20000
;
background
:
#EEEEEE
;
color
:
#C20000
;
}
}
/*=== dabapps bootstrap styles ====*/
/*=== dabapps bootstrap styles ====*/
html
{
html
{
width
:
100%
;
width
:
100%
;
background
:
none
;
background
:
none
;
}
}
...
@@ -65,24 +66,28 @@ body, .navbar .navbar-inner .container-fluid {
...
@@ -65,24 +66,28 @@ body, .navbar .navbar-inner .container-fluid {
margin
:
0
auto
;
margin
:
0
auto
;
}
}
body
{
body
{
background
:
url("../img/grid.png")
repeat-x
;
background
:
url("../img/grid.png")
repeat-x
;
background-attachment
:
fixed
;
background-attachment
:
fixed
;
}
}
#content
{
#content
{
margin
:
0
;
margin
:
0
;
padding-bottom
:
60px
;
}
}
/* sticky footer and footer */
/* sticky footer and footer */
html
,
body
{
html
,
body
{
height
:
100%
;
height
:
100%
;
}
}
.wrapper
{
.wrapper
{
position
:
relative
;
top
:
0
;
left
:
0
;
padding-top
:
60px
;
margin
:
-60px
0
;
min-height
:
100%
;
min-height
:
100%
;
height
:
auto
!important
;
height
:
100%
;
margin
:
0
auto
-60px
;
}
}
.form-switcher
{
.form-switcher
{
...
@@ -105,7 +110,7 @@ html, body {
...
@@ -105,7 +110,7 @@ html, body {
}
}
.well
form
.help-block
{
.well
form
.help-block
{
color
:
#
999
;
color
:
#999
999
;
}
}
.nav-tabs
{
.nav-tabs
{
...
@@ -121,39 +126,41 @@ html, body {
...
@@ -121,39 +126,41 @@ html, body {
}
}
.nav-tabs
>
.active
>
a
{
.nav-tabs
>
.active
>
a
{
background
:
#f5f5f
5
;
background
:
#F5F5F
5
;
}
}
.nav-tabs
>
.active
>
a
:hover
{
.nav-tabs
>
.active
>
a
:hover
{
background
:
#f5f5f
5
;
background
:
#F5F5F
5
;
}
}
.tabbable.first-tab-active
.tab-content
.tabbable.first-tab-active
.tab-content
{
{
border-top-right-radius
:
0
;
border-top-right-radius
:
0
;
}
}
#footer
,
#push
{
footer
{
height
:
60px
;
/* .push must be the same height as .footer */
position
:
absolute
;
}
bottom
:
0
;
left
:
0
;
#footer
{
clear
:
both
;
text-align
:
right
;
z-index
:
10
;
height
:
60px
;
width
:
95%
;
margin
:
0
2.5%
;
}
}
#
footer
p
{
footer
p
{
text-align
:
center
;
text-align
:
center
;
color
:
gray
;
color
:
gray
;
border-top
:
1px
solid
#DDD
;
border-top
:
1px
solid
#DDD
DDD
;
padding-top
:
10px
;
padding-top
:
10px
;
}
}
#
footer
a
{
footer
a
{
color
:
gray
;
color
:
gray
!important
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
#
footer
a
:hover
{
footer
a
:hover
{
color
:
gray
;
color
:
gray
;
}
}
...
@@ -164,19 +171,19 @@ html, body {
...
@@ -164,19 +171,19 @@ html, body {
}
}
/* custom general page styles */
/* custom general page styles */
.hero-unit
h
2
,
.hero-unit
h1
{
.hero-unit
h
1
,
.hero-unit
h2
{
color
:
#A30000
;
color
:
#A30000
;
}
}
body
a
,
body
a
{
body
a
{
color
:
#A30000
;
color
:
#A30000
;
}
}
body
a
:hover
{
body
a
:hover
{
color
:
#c20000
;
color
:
#c20000
;
}
}
#content
a
span
{
#content
a
span
{
text-decoration
:
underline
;
text-decoration
:
underline
;
}
}
...
...
rest_framework/static/rest_framework/css/default.css
View file @
b88046eb
...
@@ -33,7 +33,7 @@ h2, h3 {
...
@@ -33,7 +33,7 @@ h2, h3 {
}
}
ul
.breadcrumb
{
ul
.breadcrumb
{
margin
:
58
px
0
0
0
;
margin
:
80
px
0
0
0
;
}
}
form
select
,
form
input
,
form
textarea
{
form
select
,
form
input
,
form
textarea
{
...
@@ -43,6 +43,7 @@ form select, form input, form textarea {
...
@@ -43,6 +43,7 @@ form select, form input, form textarea {
form
select
[
multiple
]
{
form
select
[
multiple
]
{
height
:
150px
;
height
:
150px
;
}
}
/* To allow tooltips to work on disabled elements */
/* To allow tooltips to work on disabled elements */
.disabled-tooltip-shield
{
.disabled-tooltip-shield
{
position
:
absolute
;
position
:
absolute
;
...
@@ -68,4 +69,3 @@ pre {
...
@@ -68,4 +69,3 @@ pre {
padding-bottom
:
0px
;
padding-bottom
:
0px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
rest_framework/templates/rest_framework/base.html
View file @
b88046eb
This diff is collapsed.
Click to expand it.
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