Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor visual fixes

  • Loading branch information...
commit 737497615384ca755f9d3038ecbf448e8b3466c2 1 parent 6bf80e7
@exhuma authored
View
21 mypi/static/style.css
@@ -3,8 +3,13 @@ BODY{
padding: 0;
}
+BODY>*{
+ max-width: 800px;
+ margin: auto;
+}
+
BODY>H1:first-child {
- margin: 0;
+ margin: 0 auto 1em auto;
padding: 0.2em 1em;
font-family: 'Fondamento', sans-serif;
color: #ffa;
@@ -88,21 +93,27 @@ DIV.package DIV.author {
border-bottom: 1px solid black;
}
-#file_list {
+.file-list {
border: 1px solid black;
}
-#file_list{
+.file-list{
border-spacing: 0;
}
-#file_list TH, #file_list TD {
+.file-list TH, .file-list TD {
padding: 0.2em 1em;
white-space: nowrap;
}
-#file_list TH{
+.file-list TH{
text-align: left;
background: #eee;
border-bottom: 1px solid black;
}
+
+
+.release-meta{
+ margin-top: 2em;
+ margin-bottom: 0.2em;
+}
View
2  mypi/templates/master.html
@@ -11,7 +11,7 @@
<body>
<h1><a href="{{url_for('index')}}">MyPi</a></h1>
- <div id="content">{% block content %}{% endblock %}</div>
+ {% block content %}{% endblock %}
</body>
</html>
View
19 mypi/templates/package.html
@@ -3,8 +3,9 @@
{% block content %}
<h1>{{package.name}}</h1>
-<a href="#description">Description</a> &nbsp; | &nbsp; <a href="#releases">Releases</a>
-<br />
+<div id="nav">
+ <a href="#description">Description</a> &nbsp; | &nbsp; <a href="#releases">Releases</a>
+</div>
{% if package.description %}
<div id="description">{{package.description}}</div>
@@ -14,12 +15,14 @@
<h2 id="releases">Releases</h2>
{% for rel in package.releases %}
-<strong>Version</strong> {{ rel.version }}<br />
-<strong>Platform</strong> {{ rel.platform }}<br />
-<strong>License</strong> {{ rel.license }}<br />
-<strong>Author</strong> {{ rel.author.full_name }}<br />
-<strong>Date</strong> {{ rel.updated }}<br />
-<table id="file_list">
+<div class="release-meta">
+ <strong>Version</strong> {{ rel.version }}<br />
+ <strong>Platform</strong> {{ rel.platform }}<br />
+ <strong>License</strong> {{ rel.license }}<br />
+ <strong>Author</strong> {{ rel.author.full_name }}<br />
+ <strong>Date</strong> {{ rel.updated }}<br />
+</div>
+<table class="file-list">
<thead>
<th>File</th>
<th>Type</th>
Please sign in to comment.
Something went wrong with that request. Please try again.