Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix alignment of 'directory' contents

  • Loading branch information...
commit adb6824c3163d244d325ed9857d72ca3ab7ac04d 1 parent 4fd0f9f
Dave Reisner authored
Showing with 16 additions and 8 deletions.
  1. +11 −2 default.css
  2. +5 −6 index.textile
13 default.css
View
@@ -51,11 +51,20 @@ ul.posts {
}
ul.posts li {
list-style-type: none;
+ clear: both;
}
-ul.posts span {
- color: #444;
+
+ul.posts span.count {
+ width: 8ex;
+ text-align: right
+}
+
+ul.posts span.dirlist {
font-family: Monaco, "Courier New", monospace;
font-size: 100%;
+ float: left;
+ display: block;
+ color: #444;
}
h1 {
11 index.textile
View
@@ -16,18 +16,17 @@ layout: skel
!/img/logo_home.png!
</div>
- <div style="margin-left:80px">
- <div style="padding:40px"></div>
+ <div style="margin-left:80px"> <!-- div-outer -->
<ul class="posts">
- <span>$ ls /etc | more</span>
+ <li><span class="dirlist">$ ls /etc | more</span></li>
{% for post in site.posts limit:5 %}
- <li><span>-rwxr-x-r-x root root {{ post.content | number_of_words }} {{ post.date | date_to_string }} <a href="{{ post.url }}">{{ post.title }}</a></span></li>
+ <li><span class="dirlist">-rwxr-x-r-x root root</span><span class="dirlist count">{{ post.content | number_of_words }}&nbsp;</span><span class="dirlist"> {{ post.date | date_to_string }} <a href="{{ post.url }}">{{ post.title }}</a></span></li>
{% endfor %}
- <span><a href="/articles.html">----more----</a></span>
+ <li><span class="dirlist"><a href="/articles.html">----more----</a></span></li>
</ul>
- </div>
+ </div> <!-- /div-outer -->
<div id="ft"></div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.