From b00abf7e329de95791f1e50e39a2eba37ba73f10 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Tue, 8 Mar 2011 16:51:14 +0100 Subject: [PATCH] reworked items template --- view/theme/duepuntozero/style.css | 48 +++++++++++++++++++++++++++---- view/wall_item.tpl | 11 ++++--- view/wallwall_item.tpl | 12 ++++---- 3 files changed, 56 insertions(+), 15 deletions(-) diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index bfe524b01..2c271218a 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -833,10 +833,14 @@ input#dfrn-url { .wall-item-info { display: block; float: left; - width:150px; + width:110px; + margin-right:10px; +} +.comment .wall-item-info { + width: 70px; } .wallwall .wall-item-info { - width: 300px; + width: 170px; } @@ -846,8 +850,13 @@ input#dfrn-url { margin-bottom: 10px; width: 100px; } -.wallwall .wall-item-photo-wrapper { +/*.wallwall .wall-item-photo-wrapper { float: left; +}*/ +.wallwall .wwfrom { + left: 75px; + position: absolute; + top: 0; } .wallwall .wall-item-photo-end { @@ -855,9 +864,13 @@ input#dfrn-url { } .wall-item-arrowphoto-wrapper { - margin-top: 40px; + /*margin-top: 40px; margin-right: 20px; - float: left; + float: left;*/ + position: absolute; + left: 70px; + top: 70px; + z-index: 100; } .wall-item-wrapper { /*float: left; @@ -868,16 +881,39 @@ input#dfrn-url { .wall-item-lock { /*height: 20px;*/ /*margin-top: 10px;*/ - left: 135px; + left: 105px; position: absolute; top: 1px; } +.comment .wall-item-lock { + left: 65px; +} .wall-item-ago { color: #888888; font-size: 0.8em; } +.wall-item-location { + overflow: hidden; + /* add ellipsis on text overflow */ + /* this work on safari, opera, ie, chrome. */ + /* firefox users have to wait support or we */ + /* can use a jquery plugin http://bit.ly/zJskg */ + text-overflow: ellipsis; + -o-text-overflow: ellipsis; + white-space: nowrap; + width: 100%; +} + +.wall-item-like-buttons { + float: left; + margin-right: 10px; + padding-right: 10px; + border-right: 2px solid #fff; +} + + .wall-item-like-buttons img { cursor: pointer; } diff --git a/view/wall_item.tpl b/view/wall_item.tpl index 1cad41118..5cae6b142 100644 --- a/view/wall_item.tpl +++ b/view/wall_item.tpl @@ -8,18 +8,21 @@
$lock - $name -
$ago
-
$location
- $vote +
$location
+
+ $name +
$ago
+ +
$title
$body
+ $vote $plink $drop
diff --git a/view/wallwall_item.tpl b/view/wallwall_item.tpl index 6e61ce4f0..256320a46 100644 --- a/view/wallwall_item.tpl +++ b/view/wallwall_item.tpl @@ -1,30 +1,32 @@
-
+
$wall
-
+
$lock - $name $to $owner_name $vwall
-
$ago
$location
- $vote
+
+ $name $to $owner_name $vwall
+
$ago
+
$title
$body
+ $vote $plink $drop