From 56b30d65936ea8d6bf4b782a2c73181899fbce9a Mon Sep 17 00:00:00 2001 From: michitux Date: Fri, 13 Apr 2007 23:14:12 +0000 Subject: [PATCH] * fixed a bug in ie: class-names for image-snippets were set, but had no influence on ie, they have to be set with className = * fixed a bug in safari (hopefully, sorry that I removed the old fix, the divs): yacy-logo is now above the fieldset, the fieldset clears and has a margin-left set * fixed a bug with the dls: for example in ViewProfile.html the dt's (the terms/keys) had not the same height as the dd's, so the dt's were not in the same row with the coresponding dd's towards the bottom * moved my new css-classes to the right place in base.css git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3572 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/env/base.css | 39 ++++++++++++++++++++++----------------- htroot/js/yacysearch.js | 8 ++++---- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/htroot/env/base.css b/htroot/env/base.css index 3e50cde97..d0a2daa82 100644 --- a/htroot/env/base.css +++ b/htroot/env/base.css @@ -201,20 +201,6 @@ tt, *.tt { float: left; } -.thumblink { - display:block; - width: 96px; - height: 96px; - margin: 2px; - line-height: 96px; - text-align: center; - overflow: hidden; -} - -.thumblink img { - vertical-align: bottom; -} - .hides .hoverShow { display: none; } @@ -323,7 +309,7 @@ form.search.small p.yacylogo { /* The logo in yacysearch.html */ display:block; float:left; padding:0; - margin:5px; + margin: 0 5px 5px; width:70px; } @@ -445,6 +431,16 @@ ul.SubMenu a.MenuItemLink{ margin-top:0; } +a.thumblink { + display:block; + width: 96px; + height: 96px; + margin: 2px; + line-height: 96px; + text-align: center; + overflow: hidden; +} + /*---------- */ @@ -508,14 +504,14 @@ li.menugroup { dl.pairs dd { padding:0.2em 0.5em; - margin:2px 0 2px 18.3em; + margin:0 0 2px 18.3em; } form dt, dl.pairs dt { float:left; clear:left; width:17em; - margin:0 2px 0.5em 2px; + margin:0 0 2px; padding:0.2em 0.5em; text-align:right; } @@ -561,6 +557,11 @@ fieldset.yacysearch { form.PeerControl fieldset { /* on Status.html */ text-align:right; } + +form.search.small fieldset { + clear:left; + margin-left:85px; +} /*---------- */ @@ -570,6 +571,10 @@ img.bookmarkIcon, img.deleteIcon, img.recommendIcon { width: 11px; } +.thumblink img { + vertical-align: bottom; +} + /* site specific ------------------------------------*/ body#Blacklist fieldset.editList { diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index 625bd53cf..d339faa7c 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -131,7 +131,7 @@ function handleMediaState(req) { col2.appendChild(linkanchor); var row = document.createElement("tr"); - row.setAttribute("class", "TableCellDark"); + row.className = "TableCellDark"; row.appendChild(col1); row.appendChild(col2); @@ -171,7 +171,7 @@ function handleImageState(req) { var imganchor = document.createElement("a"); imganchor.setAttribute("href", href); - imganchor.setAttribute("class", "thumblink") + imganchor.className = "thumblink"; imganchor.appendChild(img); var nameanchor = document.createElement("a"); @@ -180,11 +180,11 @@ function handleImageState(req) { var textcontainer = document.createElement("div"); - textcontainer.setAttribute("class", "TableCellDark"); + textcontainer.className = "TableCellDark"; textcontainer.appendChild(nameanchor); var thumbcontainer = document.createElement("div"); - thumbcontainer.setAttribute("class", "thumbcontainer"); + thumbcontainer.className = "thumbcontainer"; thumbcontainer.appendChild(imganchor); thumbcontainer.appendChild(textcontainer); div.appendChild(thumbcontainer);