Skip to content

Commit

Permalink
fix alignment of 'directory' contents
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Apr 7, 2010
1 parent 4fd0f9f commit adb6824
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
13 changes: 11 additions & 2 deletions default.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 5 additions & 6 deletions index.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit adb6824

Please sign in to comment.