Standard CSS styles og hvordan de bliver brugt i WordPress
/* WP WYSIWYG Editor Styles */
/* Margin for images in the content area */
.entry-content img {
margin: 0 0 1.5em 0;
}
/* Left-aligned text and images */
.alignleft, img.alignleft {
margin-right: 1.5em;
display: inline;
float: left;
}
/* Right-aligned text and images */
.alignright, img.alignright {
margin-left: 1.5em;
display: inline;
float: right;
}
/* Center-aligned text and images */
.aligncenter, img.aligncenter {
margin-right: auto;
margin-left: auto;
display: block;
clear: both;
}
/* Styling for image captions */
.wp-caption {
margin-bottom: 1.5em;
text-align: center;
padding-top: 5px;
}
/* Remove border and padding from image captions */
.wp-caption img {
border: 0 none;
padding: 0;
margin: 0;
}
/* Styling for the text in image captions */
.wp-caption p.wp-caption-text {
line-height: 1.5;
font-size: 10px;
margin: 0;
}
/* Styling for smilies */
.wp-smiley {
margin: 0 !important;
max-height: 1em;
}
/* Styling for left-aligned blockquotes */
blockquote.left {
margin-right: 20px;
text-align: right;
margin-left: 0;
width: 33%;
float: left;
}
/* Styling for right-aligned blockquotes */
blockquote.right {
margin-left: 20px;
text-align: left;
margin-right: 0;
width: 33%;
float: right;
}
/* ... (continue with other styles) */
/* WP CSS - Miscellaneous Styles */
/* Styling for category links */
li.categories {}
li.cat-item {}
li.cat-item-{id} {}
li.current-cat {}
li.current-cat-parent {}
ul.children {}
/* Styling for blogroll links */
.linkcat {}
.blogroll {}
/* Styling for read-more links */
.more-link {}
/* WP CSS - Page Listings */
/* Styling for page navigation */
.pagenav {}
.page_item {}
.page-item-{id} {}
.current_page_item {}
.current_page_parent {}
.current_page_ancestor {}
/* ... (continue with other styles) */
/* WP CSS - Default WordPress Widgets */
/* Styling for default widget container */
.widget {}
/* Styling for links widget */
.widget_links {}
.widget_links ul {}
.widget_links ul li {}
.widget_links ul li a {}
/* Styling for meta widget */
.widget_meta {}
.widget_meta ul {}
.widget_meta ul li {}
.widget_meta ul li a {}
/* Styling for pages widget */
.widget_pages {}
.widget_pages ul {}
.widget_pages ul li {}
.widget_pages ul li a {}
/* Styling for recent-posts widget */
.widget_recent_entries {}
.widget_recent_entries ul {}
.widget_recent_entries ul li {}
.widget_recent_entries ul li a {}
/* Styling for archives widget */
.widget_archive {}
.widget_archive ul {}
.widget_archive ul li {}
.widget_archive ul li a {}
.widget_archive select {}
.widget_archive option {}
/* Styling for tag-cloud widget */
.widget_tag_cloud {}
.widget_tag_cloud a {}
/* ... (continue with other styles) */
/* WP CSS - Comment Styles */
/* Styling for comment replies */
.commentlist .reply {}
.commentlist .reply a {}
/* Styling for comment alternates (odd and even) */
.commentlist .alt {}
.commentlist .odd {}
.commentlist .even {}
.commentlist .thread-alt {}
.commentlist .thread-odd {}
.commentlist .thread-even {}
.commentlist li ul.children .alt {}
.commentlist li ul.children .odd {}
.commentlist li ul.children .even {}
/* Styling for comment author information */
.commentlist .vcard {}
.commentlist .vcard cite.fn {}
.commentlist .vcard span.says {}
.commentlist .vcard img.photo {}
.commentlist .vcard img.avatar {}
.commentlist .vcard cite.fn a.url {}
/* Styling for comment metadata */
.commentlist .comment-meta {}
.commentlist .comment-meta a {}
.commentlist .commentmetadata {}
.commentlist .commentmetadata a {}
/* ... (continue with other styles) */
/* WP CSS - body_class() */
/* Styling for right-to-left language */
.rtl {}
/* Styling for home page */
.home {}
/* Styling for blog page */
.blog {}
/* Styling for archive pages */
.archive {}
/* Styling for date-based archives */
.date {}
/* Styling for search results page */
.search {}
/* Styling for paged content */
.paged {}
/* Styling for attachments */
.attachment {}
/* Styling for 404 error page */
.error404 {}
/* Styling for single post/page by ID */
.single postid-(id) {}
/* Styling for attachments by ID */
.attachmentid-(id) {}
/* Styling for attachments by MIME type */
.attachment-(mime-type) {}
/* Styling for author archives */
.author {}
/* Styling for author archives by user nicename */
.author-(user_nicename) {}
/* Styling for category archives */
.category {}
/* Styling for category archives by slug */
.category-(slug) {}
/* Styling for tag archives */
.tag {}
/* Styling for tag archives by slug */
.tag-(slug) {}
/* Styling for parent pages */
.page-parent {}
/* Styling for child pages with parent page ID */
.page-child parent-pageid-(id) {}
/* Styling for pages with specific templates */
.page-template page-template-(template file name) {}
/* Styling for search results pages */
.search-results {}
/* Styling for search no-results page */
.search-no-results {}
/* Styling for logged-in users */
.logged-in {}
/* Styling for paged content */
.paged-(page number) {}
/* Styling for single paged content by page number */
.single-paged-(page number) {}
/* Styling for paged content by page number */
.page-paged-(page number) {}
/* Styling for category archives by page number */
.category-paged-(page number) {}
/* Styling for tag archives by page number */
.tag-paged-(page number) {}
/* Styling for date archives by page number */
.date-paged-(page number) {}
/* Styling for author archives by page number */
.author-paged-(page number) {}
/* Styling for search results by page number */
.search-paged-(page number) {}
/* ... (continue with other styles) */
/* WP CSS - post_class() */
/* Styling for post by ID */
.post-id {}
/* Styling for posts */
.post {}
/* Styling for pages */
.page {}
/* Styling for attachments */
.attachment {}
/* Styling for sticky posts */
.sticky {}
/* Styling for hentry (semantic markup for blog posts) */
.hentry {}
/* Styling for posts in "misc" category */
.category-misc {}
/* Styling for posts in "example" category */
.category-example {}
/* Styling for posts with "news" tag */
.tag-news {}
/* Styling for posts with "wordpress" tag */
.tag-wordpress {}
/* Styling for posts with "markup" tag */
.tag-markup {}