[personal profile] zvi posting in [community profile] style_system
I'm porting Refried Paper (N.B. [livejournal.com profile] refriedpaper) onto Tabula Rasa via CSS. Refried Tablet has a lot of text that I'm adding via :before {content: "Header:"}.

On the recent entries page of a personal journal, there's an empty span called .poster. On a reading page, an entry page, or a recent entries page for a community journal, this span is not empty, it's the [profile] exampleusername of the person posting the entry.

There's a body.class to differentiate between a recent entries page and a reading page or entry page. Is there any indication whether a journal is a personal journal vs. a community journal?

The way I have the CSS right now, there's a weird extra margin in front of [profile] exampleusername on the recent entries page of a community, and I'd like to get rid of it automagically, if I can.

The CSS is available on pastebin for one month, if you'd like to look at it. This CSS is designed to be used with the default stylesheet.

P.S. Is there a way to make a style publicly viewable? I have my journal using Refried Tablet so people can see it in action, but I actually prefer the modified Transmogrified I had before. I'd love to just give people the address of http://zvi.dreamwidth.org?s2id=82229 or encourage them to preview my style on their own journals, if only I knew how to make that work.

Date: 2009-08-13 08:04 am (UTC)
mmmag: A cotton cloud with drop shaped beads dangling below. (Default)
From: [personal profile] mmmag
That annoyed me too when I was working on my own layout. I ended up just editing the poster function.
function Entry::print_poster {
var Page p = get_page();
if ($p isa FriendsPage or $p isa EntryPage or $p isa ReplyPage) {
print safe "<span class=\"poster entry-poster\">";
$this.poster->print();
if (not $this.poster->equals($this.journal)) {
print $*text_posting_in;
$this.journal->print();
}
print safe "</span>";
}
else {
if (not $this.poster->equals($this.journal)) {
$this.poster->print();
}
}
}


Just using css, you can do .page-recent .journal-type-P .entry-poster {} where P is for personal journal, C is for community and Y is for RSS feed.

Date: 2009-08-13 08:12 am (UTC)
foxfirefey: A fox colored like flame over an ornately framed globe (Default)
From: [personal profile] foxfirefey
Hrm. Adding journal type to the body class would be pretty easy...

Date: 2009-08-13 12:55 pm (UTC)
ninetydegrees: Art: self-portrait (Default)
From: [personal profile] ninetydegrees
Re: P.S.

As far as I know, you can only make a style viewable by giving people the s2id number as you've done there. The LJ FAQ explains that, for security reasons we aren't allowed to preview your style on our own journals using the s2id number. However, I think Paid users may be able to use it on their own journal if you make your layer public (by adding layerinfo is_public = 1; to your layer). I can't remember how it works exactly. I think we need to create a style using the number of your layer.

You don't have to use your style for people to be able to see it. That's what the s2id number is for. Create a style for your modified Transmo and create a style for Refried Paper. Use the Transmo style and link us to the s2id view for the RF one.

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 7th, 2025 12:21 am
Powered by Dreamwidth Studios