More S5 tweaks: incremental builds for definition-lists and some CSS tweaks.

This commit is contained in:
Jacques Distler 2007-03-04 02:01:36 -06:00
parent 6f81cb1207
commit aed5c10c70
3 changed files with 15 additions and 3 deletions

View file

@ -38,7 +38,7 @@ div#footer {font-size: 0.5em; font-weight: bold; padding: 1em 0;}
#footer h2 {font-style: italic;} #footer h2 {font-style: italic;}
div.long {font-size: 0.75em;} div.long {font-size: 0.75em;}
.slide h1 {position: absolute; top: 0em; left:5em; z-index: 1; .slide h1 {position: absolute; top: 0em; left:0em; z-index: 1;
margin: auto; padding: 0.3em 0 0 50px; white-space: nowrap; margin: auto; padding: 0.3em 0 0 50px; white-space: nowrap;
font: bold 150%/1em Helvetica, sans-serif; text-transform: capitalize; font: bold 150%/1em Helvetica, sans-serif; text-transform: capitalize;
color: #CCC; background: #050;} color: #CCC; background: #050;}
@ -75,6 +75,8 @@ html>body .external {border-bottom: none;}
img.incremental {visibility: hidden;} img.incremental {visibility: hidden;}
.slide .current {color: #B02;} .slide .current {color: #B02;}
p.flushtop {margin-top:0px}
/* diagnostics /* diagnostics
li:after {content: " [" attr(class) "]"; color: #F88;} li:after {content: " [" attr(class) "]"; color: #F88;}

View file

@ -544,7 +544,7 @@ function getIncrementals(obj) {
for (var i = 0; i < children.length; i++) { for (var i = 0; i < children.length; i++) {
var child = children[i]; var child = children[i];
if (hasClass(child, 'incremental')) { if (hasClass(child, 'incremental')) {
if (child.nodeName == 'ol' || child.nodeName == 'ul') { if (child.nodeName == 'ol' || child.nodeName == 'ul' || child.nodeName == 'dl') {
removeClass(child, 'incremental'); removeClass(child, 'incremental');
for (var j = 0; j < child.childNodes.length; j++) { for (var j = 0; j < child.childNodes.length; j++) {
if (child.childNodes[j].nodeType == 1) { if (child.childNodes[j].nodeType == 1) {
@ -557,7 +557,7 @@ function getIncrementals(obj) {
} }
} }
if (hasClass(child, 'show-first')) { if (hasClass(child, 'show-first')) {
if (child.nodeName == 'ol' || child.nodeName == 'ul') { if (child.nodeName == 'ol' || child.nodeName == 'ul' || child.nodeName == 'dl') {
removeClass(child, 'show-first'); removeClass(child, 'show-first');
if (child.childNodes[isGe].nodeType == 1) { if (child.childNodes[isGe].nodeType == 1) {
removeClass(child.childNodes[isGe], 'incremental'); removeClass(child.childNodes[isGe], 'incremental');

View file

@ -379,3 +379,13 @@ math { white-space: nowrap }
.maruku-eq-number {float:right} .maruku-eq-number {float:right}
.blockquotesource {margin-left:1em;} .blockquotesource {margin-left:1em;}
fieldset.search {display:inline; border:none;padding:0;margin:0;top:5px;position:relative;} fieldset.search {display:inline; border:none;padding:0;margin:0;top:5px;position:relative;}
span.keyboard {
background: #CCC;
color: #000;
border: outset 2px;
font-family:verdana, arial, sans-serif;
font-size: .7em;
margin-left:5px;
padding:1px 2px;
}