date position + currents images + header

Aug 01, 2011 12:54

username: marlenem
account type: paid

Hi everyone!

I have 3 problems I'm unable to solve. I hope that somebody will be able to help me.
I'm using the layout Kemuri by velvetb0x, but I made a few changes in the codes. I'm providing the full edited codes under the cut.

1) The dates are positioned above the usericons. There should be a gap between them but in random cases (I didn't find the logic in it), that gap disappears. It causes bigger problem on my friends page [screencap] How can I fix that?

2) Is there a way to put tiny icons in front of the tags and the custom groups? I put a tinyicon in the .ljtag section in a way that should work, but it doesn't show up. I use a theme layer for the currents section though, so that may screw things up, because it shows up in the original codes. Also, are the any codes for the custom group? [screencap]

3) It's a minor problem, but you see the header has a transparent background image. Somehow, there appear to be gaps on both the left and the right side though. It looks a bit funny, because it's not straightly cut off as like the header was too short to cover the whole screen. Only a small part of it is missing... [screencap, for my unability to explain this properly] How can I stretch the images so the gaps disappear?

Thanks for any help!



CSS:
/* Kemuri
layout by cielo_gris.livejournal.com
credit http://community.livejournal.com/velvetb0x */

/* ------------------------------- */

body
{
background-color:#e0dace;
background-image: url("http://i232.photobucket.com/albums/ee132/pinkubanana/kamelight_02.png");
background-position: top left;
background-repeat: repeat;
background-attachment: fixed;
text-align: justify;
padding: 0;
}

::-moz-selection
{background: #000000;
color: #FFFFFF; }

.title, .subtitle {
display:none;}

/*----------- content&entries -----------*/

#content {
font-size:10px;
margin: 60px 0 0;
min-height:220px;
padding:0;
}

.subcontent {
background-image: url('http://i232.photobucket.com/albums/ee132/pinkubanana/kamelight_bg2.png');
background-color: transparent;
color:#777777;
margin:20px 0 0;
padding:15px 0 0;
width:630px;
}

#maincontent {
color:#fcf0f2;
font-family:'Lucida Grande','Lucida Sans Unicode',arial;
font-size:11px;
margin:35px auto 0;
margin-top: 100px;
margin-left: 355px;
padding:0;
text-align:left;
width:750px;}

.clear
{height: 20px;}

.entry {
color: #777777;
font-family:'Lucida Grande','Lucida Sans Unicode',arial;
font-size:11px;
line-height:1.2;
text-align:justify;
border-bottom:1px dashed #cbc4b7;}

.entry_text {
margin-bottom:10px;
min-height:100px;
padding:10px 0;
padding: 5px 20px 0;
}

.datesubject {
margin:0;
padding:0 10px 15px;
text-align:left !important;
}

.subject a, .subject a:hover {
color:#777777!important;
font-family:georgia,sans-serif !important;
font-size:14pt !important;
letter-spacing: -1px;
position:relative;
text-transform:lowercase;
text-shadow:1px 2px 2px #e9bfc7;}

.subject {
color:#FFFFFF;
line-height:1;
margin:0;
padding:0px 0px 5px !important;
text-align:left;}

.date {
background-color:#f9ebed;
color:#AAAAAA;
float:right;
font-family:small fonts,sans-serif;
font-size:8px;
margin:-15px -155px 0;
padding:9px;
text-align:center;
text-transform:uppercase;
width:102px;
border:1px dashed #cbc4b7;
}

.entry ul li
{
padding-left: 5px;
margin-left: 15px;
}

.entry ol li
{
padding-left: 5px;
margin-left: 15px;
}

.ljtags {
background:url("http://i232.photobucket.com/albums/ee132/pinkubanana/pixelart/tags.png") no-repeat scroll 0 50% transparent;
color:#BBBBBB;
margin-bottom:-35px;
margin-top:50px;
padding:4px 0 4px 28px;
position:relative;
text-align:left;
text-transform:lowercase;}

div.ljtags a {font-weight: normal}

.currents div { display: block; }

.currents {padding: 0 20px;
border-left:10px solid #f4e6d9;
margin-left: 20px;
margin-right: 20px;
background-image: url(http://i53.tinypic.com/j79aig.jpg);}

.currents strong, .currentmood strong, .currentmusic .currentlocation, .ljtags strong { display:none;
}

.currentmusic {padding: 0px 5px 0px 25px;
background: transparent url(http://i232.photobucket.com/albums/ee132/pinkubanana/pixelart/music-2.png) no-repeat scroll 0% 50%; }

.currentmood {padding: 0px 5px 0px 23px; background: transparent url(http://i232.photobucket.com/albums/ee132/pinkubanana/pixelart/mood.png) no-repeat scroll 0% 50%;}

.currentlocation {padding: 0px 5px 0px 41px; background: transparent url(http://i232.photobucket.com/albums/ee132/pinkubanana/pixelart/location-1.png) no-repeat scroll 0% 50%; margin-left: 0px;}

.ljtags a, .ljtags a:link, .ljtags a:visited {
color: #afb9aa;
text-transform: lowercase;}

ul.ljtaglist {background-color:#ffffff; width: 600px; padding:5px; list-style:none; margin:0 0 0 auto;}

img a{border:0!important;}

/*--------------- links ---------------*/

a, a:link, a:visited {
color:#e4999a;
font-family:georgia,arial;
font-size:10px;
font-style:normal;
font-weight:normal;
padding:0 0 1px;
text-decoration:none;
}

a:hover
{
color:#d08687;
font-size:10px;
font-style:normal;
font-weight:normal;
padding:0 0 1px;
text-decoration:none;
cursor:;
-webkit-transition: 0.4s ease-in;
}

/*--------------- sidebar ---------------*/

#sidebar {
background: url("http://i53.tinypic.com/j79aig.jpg") repeat scroll 0 0 transparent;
color:#555555;
font-family:georgia;
font-size:10px;
font-weight:normal;
height:32px;
letter-spacing:0.8px;
line-height:1.2;
overflow:hidden;
padding:0;
position:fixed;
right:10px;
text-align:center;
text-transform:lowercase;
top:35px;
width:100%;
z-index:200;}

#sidebar:hover {
color: ;}

.sbarbody2 {
margin:0;
padding:0;}

.sbarbody {
margin:0;
padding:0;}

ul.sbarlist{display:none!important;
margin: 0px;
padding: 0px;
list-style-type: none;
text-align: right;
}

li.sbaritem {
list-style-type:none;
margin-top:2px;
text-align:right;
}

li.sbaritem:hover{
border-right:0;}

li.sbaritem a {
border-right:2px solid #dddddd;
color:#666666;
display:block;
font-family:georgia;
font-size:10px;
font-weight:lighter;
margin-right:2px;
padding:0 5px;
text-transform:lowercase;
letter-spacing: 2px;}

li.sbaritem a:hover {color:#AAAAAA;}

li.sbaritem:hover { }

li.sbartitle {
display:none;
}

li.sbartitle:hover {
color:#EEEEEE;
cursor: default;}

#sidebar_linklist {
list-style-type:none;
padding-top:2px;
text-align:left;
text-transform:lowercase;

}
#sidebar_tags li.sbartitle {display:none;}
#sidebar_calendar, #sidebar_tags {display:none;}

#sidebar_summary, #sidebar_calendar, #sidebar_tags, h2 { display:none!important; }

/*--------------- header ---------------*/

#header {
background: url("http://i53.tinypic.com/j79aig.jpg") repeat scroll 0 0 transparent;
padding: 0;
position:fixed;
text-align:center;
text-transform:lowercase;
top:0;
width:100%;
height:35px;
z-index:100;}

ul.navheader {
list-style:none outside none;
padding:0 10px;
z-index:100;
}

ul.navheader:hover {}

ul.navheader li {
display:inline;
list-style-type:none;
margin:0;}

.headerimage
{
background-image:url();
background-repeat: no-repeat;
position: relative;
width: 0px;
height: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
}

div#header a, div#header a:link, div#header a:visited {
color:#777777;
font-family:georgia,arial;
font-size:20px;
padding:0 6px;
}

div#header a:hover {
padding:0px 6px;
color:#DDDDDD;
}

div#header li.view {
color:#555555;
font-family: georgia,arial;
font-size: 20px;
padding: 0px 6px;
}

/*--------------- footer ---------------*/

#footer {
margin:0 auto;
padding:5px;
text-align:left;
text-transform:lowercase;
width:750px;
}

ul.navfooter{
margin:0 auto;
padding:0;}

ul.navfooter a {}

ul.navfooter li + li a {
color:#aaaaaa!important; }

div#footer a, div#footer a:link {
color:#888888;
font-family:arial;
font-size:17pt;
text-transform:lowercase;
margin-left:400px;
}

div#footer a:hover {
color:#666666;
}

ul.navfooter li {
list-style:none outside none;
margin:0;
padding:0;
display:inline; }

ul.navfooter li + li {
list-style:none outside none;
margin:0;
padding:0;
display:inline; }

#footer .viewing { display:none; }

/*------------ userpics ------------*/

.userpic {
background-color:transparent !important;
float:right;
margin:25px -145px 0 0;
position:relative;
z-index:10;
}

.userpicfriends {
background-color:transparent !important;
color:#dddddd;
float: right;
margin: 25px -145px 0 0;
position:relative;
text-align:right;
z-index:10;}

.userpic img, .userpicfriends img, .userpic img:hover, .userpicfriends img:hover {
background-color:#f9ebed;
border:1px dashed #cbc4b7;
height:100px;
padding:10px;
width:100px;}

.userpicfriends a font, .userpicfriends a
{font-family:arial;
color: #999999;
font-size: 9px;
}

.userpicfriends a:hover font, .userpicfriends a:hover
{color: #BBBBBB;
font-size: 9px;
background-color:transparent!important;}

span.ljuser a {
color:#555555;
font-size:11px;
font-weight:lighter !important;
text-transform:lowercase;}

span.ljuser a:hover {color:#999999;}

/*------------ default userpic ------------*/

.defaultuserpic, .defaultuserpic img{
display:none;}

/*------------ misc ------------*/

div.ContextualPopup .Content {
padding: 10px;
margin: 4px 59px 4px 4px;
background:#FFFFFF!important;
font-size: 10px;
color:#999999;
font-family:arial;
border: 1px solid #EEEEEE;
font-weight:none;
}

div.ContextualPopup div.Inner {
position: relative;
top: -2px;
left: -2px;
background-color:transparent!important;
color: #999999!important;
border:0;
}

div.ContextualPopup div.Inner a:link, div.ContextualPopup div.Inner a:visited {
text-decoration: none !important;
font-weight: none;
color:#AAAAAA!important;
}

div.ContextualPopup div.Inner a:hover {color:#888888!important; background-color:transparent;}

div.ContextualPopup .Relation {font-family:arial;
font-size:17px;
letter-spacing:-1.4px;
font-weight:bold;
text-transform:uppercase; }

div.ContextualPopup .Userpic img {
border:8px solid #DDDDDD;
margin:0 -10px 0 0}

.w-cs {
display: none; }

/*------------ calendars ------------*/

ul.year { color:#888888; font-size:12px; font-family: georgia, sans-serif; text-align: center; padding: 20px; margin: 0 auto;}

ul.year li {display: inline;}

table.yeartable {background-color: #FFFFFF; padding: 5px; margin: 0; width: 100%;}

table.yeartable td.yeardate, table.yeartable td.yearday { border:1px solid #CCCCCC; color:#888888;}

table.yeartable td.yearday { background-color: #eeeeee; text-align: center; color:#AAAAAA;}

td.yearmonth {border-style: none;}

/*---------- other ----------*/

strong, em {color:#555555;}

blockquote, code {
background-color:;
border: 1px dashed #cbc4b7;
color:#888888;
font-size:10px;
line-height:11px;
margin:0 auto;
padding:15px;
width:55%;
}

/*------------ comments ------------*/

.comments {
color:#EEEEEE;
font-size:14px;
letter-spacing:-0.1em;
padding:5px 0px;
text-align:center;
width:auto;
}

div.comments a, div.comments a:link, div.comments a:visited {
color:#BBBBBB;
color:#777777!important;
font-family:georgia,sans-serif !important;
font-size:12pt !important;
letter-spacing:0;
line-height:1;
margin:0;
padding:2px 5px; }

div.comments a:hover
{
color:#888888;
padding:2px 5px;
}

/*------------ comment pages ------------*/

.userpiccomment
{
position: relative;
float: left;
padding: 0px;
margin-right: 10px;
text-align: center;
border: 10px solid #E9E7E3;
height:70px;
width:70px;
background:;
font-family: arial, sans-serif;
font-size: 9px;
z-index: 15;
}

.box {
background:none repeat scroll 0 0 transparent;
clear:left;
color:#B5B3AE;
margin:0;
padding:5px 0;
width:650px;
}

input
{
background-color: #FFFDF7;
color: #666666;
border-style: solid;
border-width: 1px;
border-color: #CCCAC6;
}

textarea
{
background:#FFFDF7;
color: #6666666;
font-family: arial;
font-size: 13px;
border:1px solid #CCCAC6;
letter-spacing:0px;
}

.reply
{
position: relative;
margin: 20px 30px 10px 30px;
padding: 25px 10px 10px 10px;
text-align: left;
font-size: 10px;
line-height: 125%;
background-color: #FFFFFF;
color: #444444;
}

.replytosubject
{font-weight: bold;}

.commentreply
{color:#444444;
font-size:12px;
padding:8px 0;
position:relative;
}

.commentbox {
background-color:#FFFDF7;
border-bottom:1px dashed #CCCCCC;
color:#CCCCCC;
font-size:9px;
margin:10px 0;
padding:10px;
}

.datesubjectcomment a:link, .datesubjectcomment a:visited
{ color: #555555;
}

.commentboxpartial
{
border-color:;
border-width: 0px;
border-style: solid;
padding: 10px;
margin: 10px;
background-color: #FFFFFF;
}

.commentinfo
{
background-color: #FFFFFF;
margin-top: 0px;
width: 100%;
}

.skiplinks
{ margin:0;
border:0;
color:#C9C7C1;
font-size:11px;
padding:8px;
text-align:center;
}

li.viewing {display:none; visibility:hidden; font-size:0px;}

/*------------ tiny icons ------------*/

img[src*="icon_protected.gif"], img[src*="icon_private.gif"], img[src*="icon_groups.gif"], .ljuser img[src*="syndicated.gif"], .ljuser img[src*="newsinfo.gif"], .ljuser img[src*="partnercomm.gif"], .ljuser img[src*="sponcomm.gif"], img[src*="userinfo.gif"], img[src*="talk/none.gif"], img[src*="help.gif"] {height: 0px; width: 0px;background: transparent none no-repeat scroll 0 0; }

.subject img {vertical-align: middle !important;}
img[src*="icon_protected.gif"]{ background-image:url(http://img20.imageshack.us/img20/1182/183o.png);
padding:0 0 11px 12px !important;}
img[src*="icon_private.gif"]{ background-image:url(http://img20.imageshack.us/img20/1182/183o.png); padding:0 0 11px 12px !important;}
img[src*="icon_groups.gif"]{ background-image:url(http://img20.imageshack.us/img20/1182/183o.png); padding:0 0 11px 12px !important; }

.ljuser img { width: 0; height: 0; background: transparent url(http://i37.tinypic.com/20h4ea.jpg) no-repeat 0 0; padding: 10px 10px 0 0px !important; vertical-align: baseline !important;}
.ljuser img[src*="userinfo.gif"] { background: transparent url(http://i37.tinypic.com/20h4ea.jpg) no-repeat center left !important; padding: 10px 10px 0 0px !important; }
.ljuser img[src*="community.gif"] { background:transparent url(http://i33.tinypic.com/2lvbolf.jpg) no-repeat scroll 0 0 !important;
padding: 10px 10px 0 0 !important; }

img[src="http://l-stat.livejournal.com/img/btn_track.gif"] {
background:transparent url(http://img190.imageshack.us/img190/4688/041.png) repeat scroll 0 0; height: 0; padding: 0 0 16px 16px !important; width:0; }

img[src="http://l-stat.livejournal.com/img/btn_freeze.gif"] {
background:transparent url(http://img35.imageshack.us/img35/1876/091s.png) repeat scroll 0 0; height: 0; padding: 0 0 16px 16px !important; width:0; }

img[src="http://l-stat.livejournal.com/img/btn_del.gif"] {
background:transparent url(http://img25.imageshack.us/img25/1674/101hec.png) repeat scroll 0 0; height: 0; padding: 0 0 16px 16px !important; width:0; }

img[src="http://l-stat.livejournal.com/img/btn_scr.gif"] {
background:transparent url(http://img37.imageshack.us/img37/2053/150qlp.png) repeat scroll 0 0; height: 0; padding: 0 0 16px 16px !important; width:0; }

Theme layer:
layerinfo "type" = "theme";
layerinfo "name" = "";

set text_meta_mood = "Mood:";
set text_meta_music = "Music:";
set text_meta_location = "Location:";
set text_tags = "Tags:";

set tags_aware = true;

function Entry::print_metadata()
{
# ---------------------------------------------------- CUSTOMIZATION ---------------------------------------------------- #

var string tags_sep = " - "; # text for tags separator, ", " for "tag, tag, tag"

var string show_tags_link = "none"; # set to "edit" if you want the tags label to act as an 'edit tags' link
# set to "page" if you want the tags label to link to the poster's tag page
# set to "manage" to link to the Tags Management page
# set to "none" to delinkify the tags label completely

var bool show_loc_link = false; # set to true to display the Google Map link

var bool show_groups_link = true; # set to true to display the custom friends group link

var bool show_music_link = true; # set to false to hide the last.fm link to the artist/song pages

var bool print_table = true; # set to false to display the mood icon inline with the mood text (default FS style)

var string alignment = "left"; # set the side of the mood icon (left or right of the currents) - only if printed in table

# set the order in which you want mood, music, location, tags, security and custom friends group to appear
# any metadata you want to hide journalwide, delete from this list
var string[] metaorder = ["mood", "music", "location", "groups", "tags"];

# optional:
# put in the URLs to the pics you want to use instead of the currents' text labels
# if you leave it blank, the text label will be used instead
var string{} metapics = { "MOOD" => "",
"MUSIC" => "",
"LOCATION" => "",
"TAGS" => "http://i232.photobucket.com/albums/ee132/pinkubanana/pixelart/tags.png",
"GROUPS" => "" };

# ---------------------------------------------------- CUSTOMIZATION END ---------------------------------------------------- #

var string currents = """
"""; # here all metadata will be added to print currents container

var Link edit_tags = $this->get_link("edit_tags"); # helper var to see if remote user can edit tags

if ((size $.metadata > 0) or ((size $.tags > 0) and $*tags_aware)) {

# display mood and moodicon?
var bool display_mood = false;
foreach var string moodtest ($metaorder) {
if ($moodtest == "mood") { $display_mood = true; }
}

# table and mood icon
if (defined $.mood_icon and $display_mood and $print_table) {
$currents = ($alignment == "left") ?
$currents + """
$.metadata{""" :
$currents + """
""";
}

# step through metadata in the order the user wants
foreach var string k ($metaorder) {

var string text; # the actual value of the metadata
var string label; # the label of the metadata as set in the wizard or set-statements

# handling tags metadata
if ($k == "tags" and (size $.tags > 0) and $*tags_aware) {

# label as image or text
$label = clean_url($metapics{$k}) != "" ? """$*text_tags""" : $*text_tags;

# optional linkage around tags label
if ($show_tags_link == "edit" and $edit_tags.url != "") { # Edit Tags Page link
$label = """""" + $label + """""";
}
elseif ($show_tags_link == "page") { # Visible Tags Page link
$label = """base_url() + """/tag/ ">""" + $label + """""";
}
elseif ($show_tags_link == "manage" and viewer_is_owner()) { # Tags Management Page link
$label = """tag_manage_url() + """ ">""" + $label + """""";
}

# build tag list
var bool addsep = false;
foreach var Tag t ($.tags) {
if ($addsep) {
$text = $text + $tags_sep + """""";
}
else {
$text = $text + """""";
$addsep = true;
}
}
} #end tags

# handling all other metadata
elseif ($k != "tags" and $k != "" and $.metadata{$k} != "") {

# metadata value
$text = $.metadata{$k};

# label as image or text
$label = clean_url($metapics{$k}) != "" ? "\""" : lang_metadata_title($k);

# strip location/music/groups link
if ((not ($show_loc_link) and ($k == "location"))
or (not ($show_music_link) and ($k == "music"))
or (not ($show_groups_link) and ($k == "groups"))) {
$text = striphtml($text);
}

# inline mood image
if (not ($print_table) and $k == "mood" and defined $.mood_icon) {
$text = """$.metadata{""" + $text;
}

} #end metadata

# skipping empty metadata
else { continue; }

# assemble the individual currents
$currents = $currents + """
$label $text
""";

} # end foreach

# table and mood icon
if ($display_mood and defined $.mood_icon and $print_table) {
$currents = ($alignment == "left") ?
$currents + """
""" :
$currents + """
$.metadata{
""";
}

# close currents container and print
println $currents + """
""";
}
}

date, header and footer, entries

Previous post Next post
Up