Updated 2k11 to v1.0.4.
This commit is contained in:
parent
38b3bb9c08
commit
ce92a306a2
@ -1,4 +1,4 @@
|
||||
Name: 2k11
|
||||
Author: Matthias Mees, Veit Lehmann
|
||||
Date: 2012-01-01
|
||||
Date: 2012-01-06
|
||||
Require Serendipity: 1.6
|
||||
|
@ -9,55 +9,23 @@ jQuery(document).ready(function($) {
|
||||
// placeholder polyfill
|
||||
$('input, textarea').placeholder();
|
||||
// Assign WAI-ARIA roles
|
||||
AccessifyHTML5({
|
||||
header: '#banner',
|
||||
footer: '#colophon'
|
||||
});
|
||||
AccessifyHTML5({header:'#banner',footer:'#colophon'});
|
||||
// Cloned primary navigation for small screen
|
||||
var $select = $('<select/>');
|
||||
$('#primary-nav li').each(function(){var $el=$(this);if($el.find('span').length){$('<option/>',{'selected':'selected','value':'','text':$el.text()}).appendTo($select);}else{$('<option/>',{'value':$el.find('a').attr('href'),'text':$el.text()}).appendTo($select);}});
|
||||
if($select.children().size()>0){$select.appendTo('#primary-nav').change(function(){window.location=$(this).find('option:selected').val();});}
|
||||
// Replace entrypaging icons
|
||||
$('.serendipity_entrypaging_left .epicon').text('←');
|
||||
$('.serendipity_entrypaging_right .epicon').text('→');
|
||||
// Disable trackback + short url links
|
||||
$('#trackback_url>a,.short-url').click(function() {
|
||||
var linkMsg = $(this).attr('title');
|
||||
alert(linkMsg);
|
||||
return false;
|
||||
});
|
||||
$('#trackback_url>a,.short-url').click(function(){var linkMsg=$(this).attr('title');alert(linkMsg);return false;});
|
||||
// Comment reply
|
||||
$('.comment_reply').click(function() {
|
||||
var commentId = $(this).attr('id').replace(/serendipity_reply_/g,"");
|
||||
$('#serendipity_replyTo').val(commentId);
|
||||
});
|
||||
$('.comment_reply').click(function(){var commentId=$(this).attr('id').replace(/serendipity_reply_/g,"");$('#serendipity_replyTo').val(commentId);});
|
||||
// Confirm comment deletion
|
||||
$('.comment_source_ownerlink').click(function() {
|
||||
var deleteMsg = $(this).attr('title');
|
||||
return confirm(deleteMsg);
|
||||
});
|
||||
$('.comment_source_ownerlink').click(function(){var deleteMsg=$(this).attr('title');return confirm(deleteMsg);});
|
||||
// Move preview comment in the DOM to fix comment preview
|
||||
$('#c').insertAfter('#feedback');
|
||||
// Hide reply-to form element
|
||||
$('.comment_reply').click(function() {
|
||||
$('#reply-to-comment').remove();
|
||||
var replyToPlaceholder = '<p id="reply-to-comment">' + $('#reply-to-hint').text() + ' ' + $('#serendipity_replyTo :selected').text() + '</p>';
|
||||
$('#serendipity_replyTo').after(replyToPlaceholder);
|
||||
});
|
||||
$('#reply-to-hint, #serendipity_replyTo').addClass('visuallyhidden');
|
||||
// Cloned primary navigation for small screen
|
||||
var $select = $('<select/>');
|
||||
$('#primary-nav li').each(function() {
|
||||
var $el = $(this);
|
||||
if ($el.find('span').length) {
|
||||
$('<option/>', {
|
||||
'selected': 'selected',
|
||||
'value' : '',
|
||||
'text' : $el.text()
|
||||
}).appendTo($select);
|
||||
} else {
|
||||
$('<option/>', {
|
||||
'value' : $el.find('a').attr('href'),
|
||||
'text' : $el.text()
|
||||
}).appendTo($select);
|
||||
}
|
||||
});
|
||||
if($select.children().size() > 0) {
|
||||
$select.appendTo('#primary-nav').change(function() {
|
||||
window.location = $(this).find('option:selected').val();
|
||||
});
|
||||
}
|
||||
$('.comment_reply').click(function(){$('#reply-to-comment').remove();var replyToPlaceholder='<p id="reply-to-comment">'+$('#reply-to-hint').text()+' '+$('#serendipity_replyTo :selected').text()+'</p>';$('#serendipity_replyTo').after(replyToPlaceholder);});
|
||||
$('#reply-to-hint,#serendipity_replyTo').addClass('visuallyhidden');
|
||||
});
|
||||
|
@ -118,9 +118,11 @@ button { padding: 4px; }
|
||||
|
||||
img,
|
||||
audio, video,
|
||||
embed, object { max-width: 100%; }
|
||||
embed, object,
|
||||
.content iframe { max-width: 100%; }
|
||||
|
||||
img, video { height: auto; }
|
||||
img, video,
|
||||
.content iframe { height: auto; }
|
||||
|
||||
q { quotes: '“' '”' '‘' '’'; }
|
||||
:lang(de) q { quotes: '„' '“' '‚' '‘'; }
|
||||
@ -401,9 +403,9 @@ fieldset,
|
||||
|
||||
.serendipity_entry,
|
||||
.serendipity_staticpage,
|
||||
.sidebar_plugin,
|
||||
.archives,
|
||||
.freetag_cloud { margin: 0 1em 2em; }
|
||||
.sidebar_plugin, .archives,
|
||||
.freetag_cloud,
|
||||
.serendipity_entrypaging { margin: 0 1em 2em; }
|
||||
|
||||
.serendipity_search,
|
||||
.staticpage_results,
|
||||
@ -711,6 +713,14 @@ pre .geshi {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.serendipity_entrypaging>.epicon { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||
|
||||
.serendipity_entrypaging_left,
|
||||
.serendipity_entrypaging_right { display: block; }
|
||||
|
||||
.serendipity_entrypaging_left { text-align: left; }
|
||||
.serendipity_entrypaging_right { text-align: right; }
|
||||
|
||||
/* Helper classes */
|
||||
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
||||
|
||||
@ -787,6 +797,20 @@ pre .geshi {
|
||||
.arch_even { margin: 0 0 0 2%; }
|
||||
|
||||
.archives_date { min-width: 7em; }
|
||||
|
||||
.serendipity_entrypaging_left,
|
||||
.serendipity_entrypaging_right {
|
||||
display: inline;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.ie7 .serendipity_entrypaging_left,
|
||||
.ie7 .serendipity_entrypaging_right { width: 49.9%; }
|
||||
|
||||
.serendipity_entrypaging { overflow: hidden; }
|
||||
|
||||
.serendipity_entrypaging_left { float: left; }
|
||||
.serendipity_entrypaging_right { float: right; }
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@ -904,7 +928,8 @@ pre .geshi {
|
||||
|
||||
.serendipity_search,
|
||||
.staticpage_results,
|
||||
.nocontent { margin: 0 2em 1em; }
|
||||
.nocontent,
|
||||
.serendipity_entrypaging { margin: 0 2em 1em; }
|
||||
|
||||
.serendipity_entry { margin: 0 2em 3em; }
|
||||
|
||||
@ -938,6 +963,7 @@ pre .geshi {
|
||||
#sidebar_left, #sidebar_right,
|
||||
#colophon, audio, video,
|
||||
.serendipity_entry>footer,
|
||||
.serendipity_entrypaging,
|
||||
.serendipity_pagination,
|
||||
#trackback_url, .manage_comments,
|
||||
.serendipity_comment>details,
|
||||
|
Loading…
x
Reference in New Issue
Block a user