From b5faea410bfad741d15217b0f66324967ca1f8ae Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Sat, 17 May 2008 16:40:32 +0000 Subject: [PATCH] ywidget: added footer and small optical changes git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4818 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/ui/css/ywidget.css | 38 +++++++++++++++++++++++----------- htroot/yacy/ui/ywidget.html | 23 ++++++++++++-------- 2 files changed, 40 insertions(+), 21 deletions(-) diff --git a/htroot/yacy/ui/css/ywidget.css b/htroot/yacy/ui/css/ywidget.css index 6199d6c43..6954507e4 100644 --- a/htroot/yacy/ui/css/ywidget.css +++ b/htroot/yacy/ui/css/ywidget.css @@ -2,7 +2,7 @@ font-family: Helvetica,Arial,sans-serif; width: 250px; } - .ywidget div { + .ywidget div.items { background-color: white; margin-bottom : 10px; border: none; @@ -10,38 +10,49 @@ padding: 10px; border: 1px solid black; text-decoration: none; - font-size: 11px; + font-size: 0.7em; height: 200px; overflow:hidden; } - .ywidget h3 { + .ywidget div.nav { display:block; - padding:5px 15px; + padding:3px 12px; + margin-top: 0px; + margin-bottom: 0px; + background: url(../img/box250f.png) no-repeat; + background-position: bottom; + border-bottom: 1px solid #FFFFFF; + border-top: 1px solid #999; + text-align: right; + } + .ywidget div.head { + display:block; + padding:3px 12px; margin-top: 0; margin-bottom: 0px; background: url(../img/box250.png) no-repeat; + background-position: top; border-top: 1px solid #FFFFFF; - border-bottom: 1px solid #999; + border-bottom: 1px solid #999; + white-space: nowrap; + text-overflow:ellipsis; + overflow:hidden; } - .ywidget h3 a { + .ywidget .head a { cursor:pointer; text-decoration: none; font-weight: bold; - font-size: 14px; + font-size: 0.8em; color: black; - height: 50px; - overflow:hidden; } .ywidget p.desc { font-style:italic; - font-size: 0.9em; color: #808080; line-height: 1.0em; margin-bottom:-0.5em; } .ywidget h4 { margin-bottom: -0.6em; - font-size: 1.0em; line-height: 0.5em text-decoration: none; } @@ -50,8 +61,11 @@ text-decoration: none; } .ywidget p.date { - font-size: 0.9em; line-height: 1.0em; margin-bottom:0.8em; color:#20A020; + } + .ywidget img { + padding: 2px 2px 2px 2px; + vertical-align: middle; } \ No newline at end of file diff --git a/htroot/yacy/ui/ywidget.html b/htroot/yacy/ui/ywidget.html index 5511e0425..a23a1e638 100644 --- a/htroot/yacy/ui/ywidget.html +++ b/htroot/yacy/ui/ywidget.html @@ -17,13 +17,14 @@ jQuery(function() { jQuery.getFeed({ url: '/yacysearch.rss' + $.query.toString(), success: function(feed) { - jQuery('#result').prepend('

' - + '' + + 'rss' + + ' ' + feed.title - + '' - + '

'); + + '' + + ''); var html = ''; for(var i = 0; i < feed.items.length; i++) { var item = feed.items[i]; @@ -45,20 +46,24 @@ jQuery(function() { }); $('#items').serialScroll({ items:'h4', - duration:700, - force:true, + duration:900, + cycle: true, + force: true, axis:'y', lazy:true, - interval:3000, + interval:2000, step:1 - }); + }); });
-
+
+