Skip to content

Commit c4f38dc

Browse files
author
Emmanouil Konstantinidis
committed
Style website
1 parent 49f1cea commit c4f38dc

File tree

3 files changed

+35
-14
lines changed

3 files changed

+35
-14
lines changed

drfdocs/static/css/style.css

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
1+
/* @group Misc */
2+
13
body {
24
background-color: #FEFEFE;
35
}
46

5-
h1, h2, h3, h4 {
6-
text-align: center;
7-
}
8-
97
.jumbotron {
108
margin: 50px 0 40px;
119
text-align: center;
1210
}
1311

12+
/* @end Misc */
13+
14+
15+
/* @group Endpoint */
16+
17+
.endpoint {
18+
padding: 5px 20px;
19+
margin: 20px 0;
20+
background-color: #ecf0f1;
21+
}
22+
23+
.endpoint .title {
24+
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
25+
}
26+
27+
/* @end Endpoint */
28+
29+
30+
31+
/* @group Footer */
32+
1433
.footer {
1534
text-align: center;
1635
padding: 20px;
@@ -25,3 +44,5 @@ h1, h2, h3, h4 {
2544
margin: 0 10px;
2645
font-size: 22px;
2746
}
47+
48+
/* @end Footer */

drfdocs/templates/drfdocs/base.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<title>DRF Docs</title>
1111

1212
<!-- Bootstrap -->
13-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
13+
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
1414
<!-- Flatly -->
15-
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.4/flatly/bootstrap.min.css" rel="stylesheet">
15+
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css" rel="stylesheet">
1616
<!-- Font Awesome -->
17-
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
17+
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
1818
<!-- Custom Style -->
1919
<link href="{% static "css/style.css" %}" rel="stylesheet">
2020
</head>
@@ -29,12 +29,12 @@ <h3>Documentation for Web APIs made with <a href="http://www.django-rest-framewo
2929
{% block content %}{% endblock %}
3030

3131
<div class="footer">
32-
<div class="links">
33-
<a href="http://www.iamemmanouil.com"><i class="fa fa-link"></i></a>
34-
<a href="http://www.github.com/ekonstantinidis"><i class="fa fa-github"></i></a>
35-
<a href="http://www.twitter.com/iamemmanouil"><i class="fa fa-twitter"></i></a>
36-
</div>
37-
Copyright © 2015 Emmanouil Konstantinidis.
32+
<div class="links">
33+
<a href="http://www.iamemmanouil.com"><i class="fa fa-link"></i></a>
34+
<a href="http://www.github.com/ekonstantinidis"><i class="fa fa-github"></i></a>
35+
<a href="http://www.twitter.com/iamemmanouil"><i class="fa fa-twitter"></i></a>
36+
</div>
37+
Copyright © 2015 Emmanouil Konstantinidis.
3838
</div>
3939
</div>
4040
</body>

drfdocs/templates/drfdocs/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block content %}
44
{% for endpoint in endpoints %}
55
<div class="endpoint">
6-
<pre>{{ endpoint.regex }}</pre>
6+
<h3 class="title">{{ endpoint.regex }}</h3>
77
<p>{{ endpoint.view_name }}</p>
88
</div>
99
{% endfor %}

0 commit comments

Comments
 (0)