More valid.

This commit is contained in:
Niels Serup
2011-08-11 03:37:52 +02:00
parent 806ecf0439
commit 0660079cef
13 changed files with 67 additions and 41 deletions

View File

@@ -45,24 +45,15 @@ set_min_height = function() {
contentdiv.style.minHeight = h + 'px';
};
set_logo_width = function() {
var ws;
ws = get_window_size();
ww = ws[1];
logodiv.style.width = ww + 'px';
};
adjust_sizes = function() {
if (!is_screen_media())
return;
set_min_height();
set_logo_width();
};
window.addEventListener('load', function(event){
menudiv = document.getElementById('menu');
contentdiv = document.getElementById('content');
metadiv = document.getElementById('metadata');
logodiv = document.getElementById('logo');
adjust_sizes();
}, false);

View File

@@ -111,7 +111,7 @@ h4 {
}
h5 {
margin-top: 5px 0 1px 0;
margin: 5px 0 1px 0;
font-size: 16px;
font-weight: bold;
}
@@ -243,7 +243,7 @@ ul > * > ul, ol > * > ul {
}
ul > * * > ul, ol > * * > ul {
list-style-type: disc; ! important
list-style-type: disc !important;
}
ol {
@@ -259,7 +259,7 @@ ol > * > ol, ul > * > ol {
}
ol > * * > ol, ul > * * > ol {
list-style-type: decimal; ! important
list-style-type: decimal !important;
}
@@ -269,7 +269,7 @@ dd {
margin-left: 20px;
}
dl > dl {
dl dl {
margin-left: 21px;
padding-left: 5px;
border-left: 4px solid #000;
@@ -348,15 +348,15 @@ caption {
}
.center-align, .center-align > * {
text-align: center; ! important
text-align: center !important;
}
.right-align, .right-align > * {
text-align: right; ! important
text-align: right !important;
}
.left-align, .left-align > * {
text-align: left; ! important
text-align: left !important;
}
.center-float {
@@ -389,27 +389,27 @@ div.left-float, img.left-float, video.left-float, audio.left-float {
}
.noclear, div.caption.noclear {
clear: none; ! important
clear: none !important;
}
.huge, .huge * {
font-size: 25px; ! important
font-size: 25px !important;
}
.large, .large * {
font-size: 18px; ! important
font-size: 18px !important;
}
.medium, .medium * {
font-size: 14px; ! important
font-size: 14px !important;
}
.small, .small * {
font-size: 11px; ! important
font-size: 11px !important;
}
.tiny, .tiny * {
font-size: 9px; ! important
font-size: 9px !important;
}
@@ -434,7 +434,7 @@ div.left-float, img.left-float, video.left-float, audio.left-float {
.linenos {
border-width: 0 1px 0 0;
border-style: solid;
border-size: black;
border-color: black;
vertical-align: top;
}

View File

@@ -99,6 +99,9 @@ ul#menulinks {
" url('/static/metanohi-logo.png') no-repeat center;\n"@*/
}
#body.full #logo {
}
.highlighttable .code {
width: 600px;

View File

@@ -32,19 +32,20 @@ if page.is_dynamic:
<link href='/atom.xml' type='application/atom+xml' rel='alternate'
title='metanohi atom feed' />
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
<meta name='DCTERMS.title' content='<!--@eval page.title@-->' />
<meta name='DCTERMS.description' content='<!--@eval page.summary@-->' />
<meta name='DCTERMS.title' content=<!--@eval repr(page.title)@--> />
<meta name='DCTERMS.creator' content='Niels Serup' />
<!-- <meta name='DCTERMS.format' content='application/xhtml+xml' />-->
<!--@exec
if page.summary:
print("<meta name='DCTERMS.description' content={} />".format(repr(page.summary)))
if page.created_rfc3339:
print(" <meta name='DCTERMS.created' content='{}' />".format(page.created_rfc3339))
if page.modified_rfc3339:
print(" <meta name='DCTERMS.modified' content='{}' />".format(page.modified_rfc3339))
@-->
<meta name='DCTERMS.language' content='<!--@eval page.language@-->' />
<meta name='DCTERMS.language' content=<!--@eval repr(page.language)@--> />
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
<meta name='DCTERMS.isVersionOf' content='<!--@eval page.core_url@-->' />
<meta name='DCTERMS.isVersionOf' content=<!--@eval repr(page.core_url)@--> />
<meta name='DCTERMS.audience' content='software developers' />
<meta name='DCTERMS.audience' content='hackers' />
<meta name='DCTERMS.audience' content='individuals' />
@@ -72,7 +73,7 @@ if page.licenses:
<!--@eval run_macros(page.head)@-->
</head>
<body>
<a id='minilogo' href='/'></a>
<div><a id='minilogo' href='/'></a></div>
<div id='menu'>
<ul id='menulinks'>
<!--@prexec