Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added block_level class to save some CSS performance pennies.

  • Loading branch information...
commit 6ed7073d0c9b49ef8e9f73a35992e8175d695643 1 parent 75faf3c
@yellowled authored
View
2  comments_by_author.tpl
@@ -6,7 +6,7 @@
</article>
{/foreach}
{if $footer_info or $footer_prev_page or $footer_next_page}
- <nav class="serendipity_pagination comments_by_author_pagination">
+ <nav class="serendipity_pagination block_level comments_by_author_pagination">
<ul class="clearfix">
{if $footer_info}
<li class="info"><span>{$footer_info}</span></li>
View
8 entries.tpl
@@ -5,14 +5,14 @@
<header class="clearfix">
<h2><a href="{$entry.link}">{$entry.title}</a></h2>
- <span class="serendipity_byline"><span class="single_user">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} </span><time datetime="{$entry.timestamp|@serendipity_html5time}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time>{if $entry.is_entry_owner and not $is_preview} | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>{/if}</span>
+ <span class="serendipity_byline block_level"><span class="single_user">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} </span><time datetime="{$entry.timestamp|@serendipity_html5time}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time>{if $entry.is_entry_owner and not $is_preview} | <a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a>{/if}</span>
</header>
<div class="clearfix content serendipity_entry_body">
{if $entry.categories}{foreach from=$entry.categories item="entry_category"}{if $entry_category.category_icon}<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}"></a>{/if}{/foreach}{/if}
{$entry.body}
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
- <a class="read_more" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a>
+ <a class="read_more block_level" href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a>
{/if}
</div>
{if $entry.is_extended}
@@ -78,7 +78,7 @@
<section id="trackbacks" class="serendipity_comments serendipity_section_trackbacks">
<h3>{$CONST.TRACKBACKS}</h3>
- <div id="trackback_url"><a rel="nofollow" href="{$entry.link_trackback}" title="{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape}">{$CONST.TRACKBACK_SPECIFIC}</a></div>
+ <div id="trackback_url" class="block_level"><a rel="nofollow" href="{$entry.link_trackback}" title="{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape}">{$CONST.TRACKBACK_SPECIFIC}</a></div>
{serendipity_printTrackbacks entry=$entry.id}
</section>
@@ -131,7 +131,7 @@
{/if}
{/foreach}
{if $footer_info or $footer_prev_page or $footer_next_page}
- <nav class="serendipity_pagination">
+ <nav class="serendipity_pagination block_level">
<h2 class="visuallyhidden">{$CONST.TWOK11_PAG_TITLE}</h2>
<ul class="clearfix">
View
2  entries_summary.tpl
@@ -6,7 +6,7 @@
{foreach from=$entries item="sentries"}
{foreach from=$sentries.entries item="entry"}
<li><a href="{$entry.link}">{$entry.title}</a>
- <span class="serendipity_byline"><span class="single_user">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} </span><time datetime="{$entry.timestamp|@serendipity_html5time}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time></span>
+ <span class="serendipity_byline block_level"><span class="single_user">{$CONST.POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} </span><time datetime="{$entry.timestamp|@serendipity_html5time}" pubdate>{$entry.timestamp|@formatTime:$template_option.date_format}</time></span>
</li>
{/foreach}
{/foreach}
View
2  plugin_commentsearch_searchresults.tpl
@@ -3,7 +3,7 @@
{if $comment_results}
<ul class="plainList">
{foreach from=$comment_results item="result"}
- <li><span>{if $result.type == 'TRACKBACK'}<a href="{$result.url|@escape}">{else}<b>{/if}{$result.author|@escape}{if $result.type == 'TRACKBACK'}</a>{else}</b>{/if} {$CONST.IN} <a href="{$result.permalink|@escape}">{$result.title|@escape}</a> {$CONST.ON} <time datetime="{$result.ctimestamp|@serendipity_html5time}">{$result.ctimestamp|@formatTime:$template_option.date_format}</time>:</span>
+ <li><span class="block_level">{if $result.type == 'TRACKBACK'}<a href="{$result.url|@escape}">{else}<b>{/if}{$result.author|@escape}{if $result.type == 'TRACKBACK'}</a>{else}</b>{/if} {$CONST.IN} <a href="{$result.permalink|@escape}">{$result.title|@escape}</a> {$CONST.ON} <time datetime="{$result.ctimestamp|@serendipity_html5time}">{$result.ctimestamp|@formatTime:$template_option.date_format}</time>:</span>
{$result.comment|@strip_tags|@truncate:200:" ... "}
</li>
{/foreach}
View
2  plugin_staticpage_searchresults.tpl
@@ -3,7 +3,7 @@
{if $staticpage_results}
<ul class="plainList">
{foreach from=$staticpage_results item="result"}
- <li><span><a href="{$result.permalink|@escape}" title="{$result.pagetitle|@escape}">{$result.headline}</a> ({$result.realname})</span>
+ <li><span class="block_level"><a href="{$result.permalink|@escape}" title="{$result.pagetitle|@escape}">{$result.headline}</a> ({$result.realname})</span>
{$result.content|@strip_tags|@strip|@truncate:200:" ... "}</li>
{/foreach}
</ul>
View
9 style.css
@@ -296,21 +296,16 @@ caption, th, prev,
margin: 0 auto;
}
+.block_level,
fieldset,
.no-js #primary-nav ul,
-.archives_summary .serendipity_byline,
.form_field label,
.form_tarea label,
.podcastdownload,
#primary-nav select,
-.read_more, .trackback_url,
-.serendipity_byline,
-.serendipity_pagination,
.serendipity_comment_captcha .captcha,
.serendipity_comment_captcha label,
-.serendipity_freeTag,
-.staticpage_results li>span,
-.comment_results li>span { display: block; }
+.serendipity_freeTag { display: block; }
#primary-nav select {
margin: .5em 1em;
Please sign in to comment.
Something went wrong with that request. Please try again.