Оформление currents в Flexible Square

May 04, 2007 17:48

Помогите, пожалуйста.
Никак не могу разобраться. Хотела оформить карренты так, чтобы текст
обтекал картинку справа. И тэги вместе с ними. Но почему-то у меня это не
выходит..(



Тэги пишутся выше и абсолютно отдельно.
Подскажите, что делать. Смотреть в nochka_kot

S2
платный

Коды слоя:
layerinfo "type" = "user";
layerinfo "name" = "Auto-generated Customizations";
set sidebar_fgcolor = "#ffffff";
set text_nosubject = "�";
set text_view_archive = "Архив ∞";
set outer_table_bgcolor = "#ffffff";
set text_meta_mood = "";
set header_footer_link_hover = "#ffffff";
set link_hover_color = "#ffffff";
set text_post_comment = "Мягкими лапами";
set text_sidebar_blurb = "meow";
set entrytitle_bgcolor = "#ffffff";
set show_calendar = false;
set text_edit = "Изм.";
set text_meta_music = "";
set page_bgcolor = "#ffffff";
set content_bgcolor = "#ffffff";
set text_read_comments = "# по голой спине // # по голой спине // # по голой спине";
set subject_fgcolor = "#ffffff";
set header_footer_fgcolor = "#ffffff";
set text_meta_location = "";
set header_footer_link_color = "#ffffff";
set text_skiplinks_forward = "Позже ↻";
set text_view_userinfo = "Профайл �";
set text_post_comment_friends = "Мягкими лапами";
set text_read_comments_friends = "# по голой спине // # по голой спине // # по голой спине";
set link_color = "#ffffff";
set page_background_repeat = "no-repeat";
set sidebar_link_color = "#ffffff";
set page_background_position = "top left";
set text_previous_entry = "←";
set text_untrack = "Антрэк";
set text_memories = "Меморис";
set header_footer_bgcolor = "#ffffff";
set entry_bgcolor = "#ffffff";
set text_edit_tags = "Тэг";
set border_color = "#ffffff";
set text_skiplinks_back = "Раньше ↺";
set sidebar_link_hover = "#ffffff";
set text_next_entry = "→";
set text_view_friends = "Френды ☂";
set text_view_recent = "Записи";
set sidebar_header_bgcolor = "#ffffff";
set entry_fgcolor = "#ffffff";
set sidebar_blurb = "Stylesheet by ";
set sidebar_position = "left";
set show_tags = true;
set text_track = "Трэк";
set page_fgcolor = "#ffffff";
set date_fgcolor = "#ffffff";
set custom_css = "body {
background-color: #444444;
background-image:url(http://img.photobucket.com/albums/v72/panthersgem/ref/bfbg.png);
background-repeat: repeat-x;
background position: top left;
color: #585858;
margin-top: 0px;
}

a, a:link, a:visited, a:active {
color: #858585;
text-decoration: none;
}

a:hover, a:hover b, a:hover strong {
color: #C0C0C0;
text-decoration: none;
border-bottom: 1px #DBDBDB solid;
}

strong, b {
color: #686868;
font-weight: bold;
}

blockquote {
margin: 8px;
padding: 8px;
background: #F6F7F8;
color: #808080;
line-height: 15px;
font-family: \"Trebuchet ms\", arial, verdana, sans-serif;
font-size: 7,5pt;
text-align: justify;
border: 1px solid #EAEAEA;
}

code, kbd, pre, tt {
font-family: monospace;
}

#content {
width: 870px;
background-color: #ffffff;
padding: 0px;
border-width: 0px;
margin-top: 155px;
}

#sidebar {
float: left;
width: 175px;
background-color: #ffffff;
margin-left: 3px;
padding-right: 1px;
margin-top: 1px;
border-width: 0px;
border: 0px;
}

#maincontent {
float: right;
width: 688px;
margin: 0;
padding-top: 5px;
border: none;
background-color: transparent;
}

#header {
width: auto;
padding-top: 5px;
padding-bottom: 0px;
line-height: 14px;
background-color: #1E1E1E;
font-family: verdana, arial, sans-serif;
font-size: 7,5pt;
font-weight: normal;
text-transform: lowercase;
letter-spacing: -1px;
color: #9C9C9C;
text-align: right;
border-width: 0px;
}

#footer {
clear: both;
width: auto;
padding: 3px;
text-align: center;
background-color: transparent;
border: none;
}

.entry {
padding: 0px;
margin-left: 22px;
margin-right: 20px;
background-color: transparent;
color: #444444;
line-height: 12pt;
font-family: verdana, arial, sans-serif;
font-size: 7,5pt;
text-align: justify;
border-width: 0px;
}

.defaultuserpic img {
display: none;
}

.userpic {
padding: 5px;
background-color: #ffffff;
border-style: solid;
border-width: 1px;
border-color: #E5E5E5;
margin-bottom: 0px;
}

.userpicfriends {
padding: 5px;
background-color: #ffffff !important;
border-style: solid;
border-width: 1px;
border-color: #E5E5E5;
font-family: verdana, arial, sans-serif;
font-size: 7pt;
}

.userpiccomment {
padding: 5px;
background-color: #ffffff;
border-style: solid;
border-width: 1px;
border-color: #E5E5E5;
}

.userpicfriends a font {
color: #444444;
font-family: verdana, arial, sans-serif;
font-size: 7pt;
}

.date {
color: #686868;
background-color: transparent;
border-width: 0px;
font-family: tahoma, arial, verdana, sans-serif;
font-size: 7,5pt;
text-transform: lowercase;
}

.datesubjectcomment {
color: #686868;
background-color: transparent;
border-width: 0px;
font-family: tahoma, verdana, sans-serif;
font-size: 7,5pt;
border-bottom: 1px #e5e5e5 solid;
border-right: 0px;
border-left: 0px;
border-top: 0px;
margin-left: 10px;
}

.subject {
color: #C0C0C0;
font-weight: normal;
background-color: transparent;
border: none;
font-family: garamond, arial, sans-serif;
font-size: 22pt;
text-transform: lowercase;
font-style: italic;
}

.datesubject {
background-color: transparent;
border-width: 0px;
}

.ljuser img {
width: 0px;
height: 0px;
background-image: url(http://img.photobucket.com/albums/v72/panthersgem/ref/pp2r.gif);
background-repeat: no-repeat;
padding: 5px;
}

div#header a, div#header a:link, div#header a:visited, div#header a:active {
padding: 9px;
font-family: verdana, arial, sans-serif;
font-size: 7,5pt;
font-weight: normal;
text-transform: lowercase;
letter-spacing: -1px;
color: #444444;
text-align: center;
background-color: transparent;
}

div#header a:hover {
padding: 9px;
color: #C0C0C0;
background-color: transparent;
border-bottom: 0px;
}

div#footer a, div#footer a:link, div#footer a:visited, div#footer a:active {
color: #686868;
font-weight: normal;
}

div#footer a:hover {
color: #C0C0C0;
text-decoration: none;
border-bottom: 1px #DBDBDB solid;
}

.title, .subtitle {
display: none;
}

ul.navheader {
padding: 9px;
background-color: #DDDDDD;
border-width: 0px;
}

ul.navheader li {
padding: 0px;
background-color: #DDDDDD;
border-width: 0px;
}

.currentlocation {
padding-left: 17px;
font-family: \"Verdana\", sans-serif;
font-size: 7,5pt;
text-transform: lowercase;
color: #c0c0c0;
background-image: url(http://i9.photobucket.com/albums/a54/nochka_kot/design/loc.jpg);
background-position: left;
background-repeat: no-repeat;
}

.currentmood {
padding-left: 17px;
font-family: \"Verdana\", sans-serif;
font-size: 7,5pt;
text-transform: lowercase;
color: #c0c0c0;
background-image: url(http://pics.livejournal.com/nochka_kot/pic/0000w462);
background-position: left;
background-repeat: no-repeat;
}

img.currentmood {align: left;}

.currentmusic {
padding-left: 17px;
height:16px;
font-family: \"Verdana\", sans-serif;
font-size: 7,5pt;
text-transform: lowercase;
color: #c0c0c0;
background-image: url(http://pics.livejournal.com/nochka_kot/pic/0000xx8t);
background-position: left;
background-repeat: no-repeat;
}

.ljtags {
padding-left: 17px;
font-family: verdana, arial, sans-serif;
font-size: 7,5pt;
color: #c0c0c0;
font-weight: bold;
text-transform: lowercase;
background-image: url(http://pics.livejournal.com/nochka_kot/pic/0000y6bp);
background-position: left;
background-repeat: no-repeat;}

.ljtags a:link, .ljtags a:visited, .ljtags a:active {
color: #c0c0c0;
font-weight: normal;
text-transform: lowercase;
}

.ljtags a:hover {
color: #000000;
text-decoration: none;
border-bottom: 1px #686868 solid;
font-weight: normal;
text-transform: lowercase;
}

.currentlocation a:link, .ljtags a:visited, .ljtags a:active {
color: #c0c0c0;
font-weight: normal;
text-transform: lowercase;
}

.currentlocation a:hover {
color: #000000;
text-decoration: none;
border-bottom: 1px #686868 solid;
font-weight: normal;
text-transform: lowercase;
}

.currents {
color: #c0c0c0;
background-color: transparent;
border-bottom: dashed 1px #c0c0c0;
border-top: dashed 1px #c0c0c0;
padding-bottom: 5px;
padding-top: 5px;
font-family: verdana, arial, sans-serif;
font-size: 7,5pt;
text-transform: lowercase;
}
.comments {
text-transform: lowercase;
font-family: verdana, arial sans-serif;
font-size: 11pt;
letter-spacing: -1px;
color: #686868;
font-weight: normal;
text-align: right;
background-color: transparent;
border: none;
}

div.comments a, div.comments a:link, div.comments a:visited, div.comments a:active {
color: #686868;
}

div.comments a:hover {
color: #C0C0C0;
}

div#sidebar a:link, div#sidebar a:visited, div#sidebar a:active {
color: #686868;
}

div#sidebar a:hover {
color: #C1C1C1;
}

li.sbaritem {
padding-left: 9px;
border-width: 0px;
background-color: transparent;
}

li.sbaritem a, li.sbaritem a:link, li.sbaritem a:visited, li.sbaritem a:active {
font-family: verdana, arial, sans-serif;
font-size: 8pt;
color: #686868;
line-height: 24px;
text-transform: lowercase;
border: none;
border-bottom: 1px #8F8F8F dotted;
display: block;
letter-spacing: -1px;
}

li.sbaritem a:hover, a:hover visited, a:hover b {
color: #C1C1C1;
text-decoration: none;
background-color: transparent;
border-bottom: 1px #C1C1C1 dotted;
}

li.sbartitle {
background-color: transparent;
border-bottom: solid #C2C0C0 1px;
border-right: none;
border-left: none;
border-top: none;
padding: 4px;
margin-left: 5px;
font-family: verdana, arial, sans-serif;
text-transform: lowercase;
font-size: 11pt;
text-align: left;
color: #686868;
letter-spacing: -1px;
font-weight: normal;
}

.sbarbody {
background-color: transparent;
border-width: 0px;
padding: 0px;
}

.sbarbody2 {
background-color: transparent;
border-width: 0px;
padding-top: 0px;
padding-left: 9px;
font-family: verdana, arial, sans-serif;
font-size: 7,5pt;
line-height: 11pt;
color: #636363;
}

table.calendar {
margin-right: auto;
margin-left: auto;
}

.sbarcalendar {
background-color: #ffffff;
border-style: solid;
border-width: 1px;
border-color: #EFEFEF;
text-align: center;
font-family: Tahoma;
color: #000000;
font-size: 10px;
padding: 4px;
}

.sbarcalendarposts {
background-color: #ffffff;
border-style: solid;
border-width: 1px;
border-color: #686868;
text-align: center;
font-family: Tahoma;
font-size: 10px;
padding: 4px;
color: #000000;
}

ul.sbarlist {
background-color: transparent;
border-width: 0px;
}

ul.navfooter {
background-color: transparent;
border-width: 0px;
}

ul.navfooter li {
color: #686868;
background-color: transparent;
border-width: 0px;
font-family: tahoma, arial, verdana, sans-serif;
font-size: 7,5pt;
letter-spacing: 0px;
border-width: 0px;
}

.separator {
background-color: transparent;
border-width: 0px;
}

.clear {
background-color: transparent;
border-width: 0px;
}

.commentbox, .commenttext, textarea {
background-color: #ffffff;
color: #585858;
border: 1px #e5e5e5 solid;
font-face: verdana, sans-serif;
font-size: 8pt;
}

.commentreply {
color: #585858;
font-face: verdana, sans-serif;
font-size: 7,5pt;
line-height: 12pt;
}

.box {
border-width: 0px;
background-color: #ffffff;
font-family: verdana, sans-serif;
font-size: 7,5pt;
font-weight: normal;
color: #585858;
margin-left: 15px;
line-height: 13pt;
}

input {
background-color: #ffffff;
border: 1px #e5e5e5 solid;
color: #686868;
font-size: 8pt;
font-face: verdana, sans-serif;
line-height: 13pt;
}

.commentboxpartial {
background-color: #ffffff;
color: #585858;
border: 1px #e5e5e5 solid;
margin-left: 30px;
font-size: 7,5pt;
font-family: verdana, sans-serif;
color: #686868;
}
";
set comments_link_hover = "#ffffff";
function Entry::print_metadata() {
var string tags_header = "tags:"; # text for tags header, "Current Tags"
var string tags_joiner = " "; # text for tags joiner, ":"
var string tags_sep = ", "; # text for tags separator, ", "
var bool show_edit_tags_link = false; # set to true if you want edit tags link as tags header

var string currents_open = """


"""; # html for opening of currents container
var string currents_close = """
"""; # html for closing of currents container

var bool loc_after_mood = false; # set to true to print location after mood
var bool vanilla_loc = false; # set to true to delinkify location

# if you need data specific to the meta to be in these strings you'll have to set those individually down further
# one example is provided with meta_label_open
var string meta_label_open = ""; # html for opening of metadata label
var string meta_label_close = """ """; # html for closing of metadata label
var string meta_val_open = ""; # html for opening of metadata value
var string meta_val_close = """
"""; # html for closing of metadata value

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))){
if($.metadata{"mood"} == "" and $loc_after_mood) {
# if we're printing loc after mood but we have no mood, set loc_after_mood to false
$loc_after_mood = false;
}
var string currents = ""; # make var for printing
$currents = $currents_open; # add opening of currents container

if(defined $.mood_icon) {
var Image i = $.mood_icon;
$currents = $currents + """
$.metadata{""";
}

foreach var string k ($.metadata){ # step thru metadata
var string text = $k; # set text to key
var string val = $.metadata{$k}; # get val
if ($k == "mood"){ # if mood, set text to mood property
$text = """feeling:""";
}
elseif ($k == "music") { # if music, set text to music property
$text = """hearing:""";
} elseif ($k == "location") { # if location, set text to loc variable
$text = """located:""";
if($vanilla_loc) { # if vanilla loc, striphtml() it
$val = striphtml($val);
}
}
if(not ($k == "location" and $loc_after_mood)) {
# if we're doing loc right now and printing loc after mood, skip it
# if we're doing loc right now and we're not printing loc after mood, print it now
# if we're not doing loc right now, print this piece of meta

# in this layout, each piece of meta gets its own class
$meta_label_open = """
""";

# add the meta
$currents = $currents + """$meta_label_open$text$meta_label_close$meta_val_open$val$meta_val_close""";
}

if($k == "mood" and $loc_after_mood) {
# if we just now did the mood and we're printing loc after mood, print the loc
$k = "location"; # set meta key to "location"
$text = $*text_meta_location; # set text to loc variable
$val = $.metadata{$k}; # get val

# if we have a loc, do stuff
if($val != "") {

# if vanilla loc, striphtml() it
if($vanilla_loc) {
$val = striphtml($val);
}

# in this layout, each piece of meta gets its own class
$meta_label_open = """
""";

# add the meta
$currents = $currents + """$meta_label_open$text$meta_label_close$meta_val_open$val$meta_val_close""";
}
}
}
if ((size $.tags > 0) and $*tags_aware) {
var string k = "tags"; # set key to "tags"

# in this layout, each piece of meta gets its own class
$meta_label_open = """
""";

var int tcount = 0; # set counter for tags
if($edit_tags.url != "" and $show_edit_tags_link) { # if remote user can edit tags, let's give them a link
$tags_header = """$tags_header""";
}

# add text, open val container
$currents = $currents + """$meta_label_open$tags_header$tags_joiner$meta_label_close$meta_val_open""";

# build tag list
foreach var Tag t ($.tags) {
$currents = $currents + """""";
$tcount++;

# if we haven't hit the last tag, add a separator
if ($tcount != size $.tags) { $currents = $currents + $tags_sep; }
}

# close val container
$currents = $currents + $meta_val_close;
}

if(defined $.mood_icon) {
$currents = $currents + """
""";
}

# close currents container
$currents = $currents + $currents_close;

# print currents
println "$currents";
}
}

s2, стиль: flexible squares, пост: mood | music

Read comments 15
Previous post Next post
Up