Skip to content
Browse files

no inline styles

  • Loading branch information...
1 parent 973437f commit 7520cc7cdc3647e735940e7332469caa97406413 Benjamin Golub committed Aug 24, 2010
Showing with 44 additions and 12 deletions.
  1. +34 −2 static/css/base.css
  2. +2 −2 templates/archive.html
  3. +1 −1 templates/base.html
  4. +2 −2 templates/modules/entry-small.html
  5. +3 −3 templates/modules/entry.html
  6. +2 −2 templates/tag.html
View
36 static/css/base.css
@@ -87,12 +87,13 @@ a:hover {
}
.entry {
- margin-bottom: 10px;
+ margin-bottom: 30px;
}
.entry .date,
.entry .tags,
-.entry .comments {
+.entry .comments,
+.entry .admin {
margin-top: 5px;
}
@@ -171,3 +172,34 @@ pre {
.navigation {
margin-top: 30px;
}
+
+.archive,
+.tag {
+ list-style: none;
+ padding: 0;
+}
+
+.archive li,
+.tag li {
+ margin-bottom: 5px;
+}
+
+.tos {
+ color: gray;
+ font-size: 8pt;
+}
+
+.entrysmall .date {
+ color: gray;
+ font-size: 10pt;
+}
+
+.entry .facebook {
+ float: right;
+ height: 18px;
+}
+
+.entry .facebook iframe {
+ border: none;
+ overflow: hidden;
+}
View
4 templates/archive.html
@@ -9,9 +9,9 @@
{% block content %}
<h2>{{ _("Archive") }}</h2>
- <ul style="list-style: none; padding: 0;">
+ <ul class="archive">
{% for entry in entries %}
- <li style="margin-bottom: 5px;">
+ <li>
{{ modules.EntrySmall(entry, show_date=True) }}
</li>
{% end %}
View
2 templates/base.html
@@ -56,7 +56,7 @@
</ul>
</div>
{{ modules.RecentEntries() }}
- <div class="box" style="color: gray; font-size: 8pt;">
+ <div class="box tos">
The opinions expressed on this site are mine and do not
necessarily represent those of my
<a href="http://www.facebook.com/">employer</a>. You won't find any
View
4 templates/modules/entry-small.html
@@ -1,9 +1,9 @@
-<div>
+<div class="entrysmall">
<div>
<a href="/{{ entry.slug }}">{{ escape(entry.title) }}</a>
</div>
{% if show_date %}
- <div style="color: gray; font-size: 10pt;">
+ <div class="date">
{{ locale.format_date(entry.published, full_format=True, shorter=True) }}
</div>
{% end %}
View
6 templates/modules/entry.html
@@ -1,8 +1,8 @@
<div class="entry">
<h1><a href="/e/{{ entry.slug }}">{{ escape(entry.title) }}</a></h1>
{% if show_share %}
- <div style="float: right; height: 18px;">
- <iframe src="http://www.facebook.com/plugins/like.php?href={{ url_escape('http://' + request.host + '/' + entry.slug) }}&amp;show_faces=false" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; float:right;"></iframe>
+ <div class="facebook">
+ <iframe src="http://www.facebook.com/plugins/like.php?href={{ url_escape('http://' + request.host + '/' + entry.slug) }}&amp;show_faces=false" scrolling="no" frameborder="0" allowTransparency="true" ></iframe>
</div>
{% end %}
<div class="date">
@@ -15,7 +15,7 @@
</div>
{% end %}
{% if current_user and current_user.administrator %}
- <div style="margin-top: 5px;">
+ <div class="admin">
<a href="/compose?key={{ str(entry.key()) }}">{{ _("Edit") }}</a>
<a href="/delete?key={{ str(entry.key()) }}">{{ _("Delete") }}</a>
<a href="/hide?key={{ str(entry.key()) }}">{{ _("Hide") }}</a>
View
4 templates/tag.html
@@ -8,9 +8,9 @@
{% block content %}
<h2>{{ escape(tag) }}</h2>
- <ul style="list-style: none; padding: 0;">
+ <ul class="tag">
{% for entry in entries %}
- <li style="margin-bottom: 5px;">
+ <li>
{{ modules.EntrySmall(entry, show_date=True) }}
</li>
{% end %}

0 comments on commit 7520cc7

Please sign in to comment.
Something went wrong with that request. Please try again.