![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
I'm porting Refried Paper (N.B.
refriedpaper) onto Tabula Rasa via CSS. Refried Tablet has a lot of text that I'm adding via
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
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
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.
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-community.gif)
: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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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.
no subject
Date: 2009-08-13 08:04 am (UTC)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.no subject
Date: 2009-08-13 08:24 am (UTC)Thanks kindly!
no subject
Date: 2009-08-13 08:12 am (UTC)no subject
Date: 2009-08-13 08:24 am (UTC)no subject
Date: 2009-08-13 12:55 pm (UTC)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.