/*----------------------------------------------------------------------------------- other elements, anything else there -----------------------------------------------------------------------------------*/ /* use 'firstline' to fix the margin problem. -----------------------------------------------------------------------------------*/ .content .whitestyle { /* for all texts elements in '.content', h1, h2, h3, h4. */ color: #ffffff; } .content .firstline { /* for all texts elements in '.content', h1, h2, h3, h4, p etc. */ margin: .5em 0 0 0; } .firstline { /* for all texts elements in anywhere, h1, h2, h3, h4, p etc. */ margin: 0; } /* for blogtimes plugin -----------------------------------------------------------------------------------*/ .blogtimes { height: 65px; width: 460px; padding: 20px 0 20px 0; background: #cc0000 url(http://sparanoid.com/blog/wp-content/blogtimes.png) no-repeat center; } /* blocks are for download links. -----------------------------------------------------------------------------------*/ .block { margin: 1em 0 1em 0; padding: 0; background-color: #696974; border-top: 1px solid #484850; border-bottom: 1px solid #484850; } .block ul { margin: 1em 0; } .block li { margin: 0; list-style: none; list-style-image: none; /* this is for ie's eyes */ } .block p { margin: 0; padding: 0 16px 0 16px; } /* for search hilite plugin. -----------------------------------------------------------------------------------*/ .hilite, .hilite1, .hilite2, .hilite3 { color: #ccff00; background-color: #000000; } /* codeblocks are for long code sections. -----------------------------------------------------------------------------------*/ .codeblock { width: 400px; /* for ie6, fix the width to enable the scroll bar */ padding: 5px 5px 20px 5px; color: #85bb00; font: 12px Consolas, Courier New, Courier, Fixedsys; /* Consolas is a default font for Windows Vista */ line-height: 16px; background: #000000; display: block; overflow: auto; overflow-y:hidden; /* text-overflow: ellipsis; for IE only! */ white-space: nowrap; /* scrollbar-highlight-color: #484850; scrollbar-face-color: #484850; scrollbar-arrow-color: #adadb4; scrollbar-shadow-color: #000000; */ } .codeblock em { /* this is a code in red color */ color: #ff3366; font-style: normal; } .noscroll { padding: 5px; /* instead of 'padding: 5px 5px 20px 5px;' in .codeblock, if the code is not so long, then use: class="codeblock noscroll" */ } /* i have to use div tag instead of a code tag when there're more than one paragraph of codes, coz wordpress converses paragraphs automatically that breaks the code section. and the following lines fix the color problem in the code tag within the .codeblock class: */ .codeblock code { color: #85bb00; }