-
Notifications
You must be signed in to change notification settings - Fork 185
S2 CSS: Entry ids and classes
The following are found inside of div.entry within the #primary section of the page. These all occur on the Reading, Recent, Entry, and Day pages unless otherwise noted.
This, along with its nested div.inner, wraps around the entire entry and all of its classes.
The below are all classes that are associated with the .entry-wrapper.
Note: entries on Entry pages are always .entry-wrapper-odd. Other views will alternate between the two.
.entry-wrapper-odd.entry-wrapper-even
Indicates the security level of a post.
.security-public.security-custom.security-protected.security-private
.restrictions-18.restrictions-NSFW.restrictions-none
-
.journal-type-P-- post from a personal journal -
.journal-type-C-- posts from a community -
.journal-type-Y-- post from a feed account -
.poster-$USER-- indicates the specific poster -
.journal-$JOURNAL-- indicates the journal posted in, ie a community
-
.has-userpic-- This post has a user icon associated with it. -
.no-userpic-- This post doesn't have a user icon associated with it.
A div separator that is before the main .entry class, with nothing in it.
This class is inside .entry-wrapper and has its own div.inner.
- Affects: All of a single entry: subject, text, date, mood/music, readlinks, icon, user/community name on readlist view
A div separator that is after the main .entry class, with nothing in it.
- Affects: Heading for each entry
-
Other information: Contains the entry subject matter (
h3.entry-title) as well as the date/time stamp and classes for showing access filters (eg. the lock icon) and adult content filters (eg. the NSFW warning)
- Affects: Subject line
-
Other information: Subjects are shown as links, so the text of the subject line is technically found inside
h3.entry.title aunless the subject itself contains a link; then only that link is printed as a link.
- Affects: The date stamp on an entry
-
Other information: Within
span.dateare several a elements, for each of year/month/day.
- Affects: The time of day (eg. "06:53pm") that a post is made
-
Other information: This is found inside
div.datetime.
- Affects: The body of an entry; what the person posted, with the userpic and poster.
-
Other information: This div has a nested
div.inner.
- Affects: Userpics
- Other information: Found within entries, comments and the Profile module. It be can printed even when there is no userpic so be careful with this one. You may want to add parent selectors first such as .has-userpic or .module-userprofile or target the image itself with .userpic img.
This is also associated with span.entry-poster, to separate it from another span.poster in comments, which is associated with span.comment-poster. This span contains a span.ljuser as well.
- Affects: The contents of the entry.
Contains a series of spans with the following classes:
.metadata-label.metadata-item.metadata-label-location.metadata-item-location.metadata-label-mood.metadata-item-mood.metadata-label-music.metadata-item-music
- Affects: Tags and other metadata, management links, and interaction links.
-
Other information: This div has a nested
div.inner.
- Affects: The div containing the tags on a post, including any "Tags:" heading
- Other information: The tags themselves are within a unordered list inside this div.
This is the text that goes before the tag list, ie "Tags:".
This list contains all of the tag links.
Note: This category is done a little bit differently on entry pages.
- Affects: The links/buttons which allow you to manage an entry, eg. edit/tag/memories/email/track
- Other information What falls in this category rather than in entry-interaction-links, I hear you ask. Well, these buttons/links seem to send you away from the entry's page, while the interaction links all link to the entry's page.
-
li.link-- General class for all of them -
li.mem_add-- For adding to the memories -
li.tell_friend-- For telling a friend -
li.watch_commands-- For the tracking system NOTE: MIGHT CHANGE TO TRACK COMMENTS -
li.edit_entry-- For editing the entry -
li.edit_tags-- For editing the entry's tags
Note: This category is done a little bit differently on entry pages.
- Affects: The list of links for each entry that read Link/N comments/leave a comment
- Other information The text of these links can be changed by the journal owner through "Customize styles", so beware that they may be longer/shorter than you think.
-
li.entry-permalink-- The "Link" link; does not appear(?) if there are comments. -
li.entry-readlink-- The "N comments" link, where N is a number; may be customised by the user to say something else. Don't make assumptions about the length of the text. Does not appear if there are no comments. -
li.entry-postlink-- Link for commenting, change toli.entry-commentlinksuggested; May be customised by the user to say something else. Don't make assumptions about the length of the text. Does not appear if comments are disallowed.
Home • Index • Source Code • Report a Bug • Support
Copyright © 2009–2026 Dreamwidth Studios, LLC. Wiki content is licensed under CC BY 4.0 unless otherwise noted.
For Users
For Volunteers
For Developers