/* Theme Name: BW Theme URI: http://wordpress.org/themes/bw Author: Hadi Author URI: Tags: black, white, red, green, blue, yellow, dark, light, right-sidebar, two-columns, custom-colors, custom-background, custom-header, custom-menu, featured-images, sticky-post, custom-menu, post-formats Description: Simple WordPress theme with black and white color. Background color and header image can be change. 5 color shemes; red, green, blue, yellow and rainbow color scheme. Support 6 post formats. Version: 1.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html */ /* =Reset -------------------------------------------------------------- */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend { border: 0; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0; padding: 0; vertical-align: baseline; } table, caption, tbody, tfoot, thead, tr, th, td { border: 1px solid gray; } .entry-content th { background-color:white; color:black; text-align:center; } html { font-size: 62.5%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } article, aside, details, figcaption, figure, footer, header, nav, section { display: block; over-flow:auto; } ol, ul { list-style: none; } table { /* tables still need 'cellspacing="0"' in the markup */ border-collapse: separate; border-spacing: 0; } caption, th, td { font-weight: normal; text-align: left; } blockquote:before, blockquote:after, q:before, q:after { } blockquote, q { background: url(images/quote.jpg) no-repeat; font-style: italic; padding:0px 5px 5px 20px; } a:focus { outline: thin dotted; } a:hover, a:active { outline: 0; } a img { border: 0; } pre, code p {white-space: pre-wrap; word-wrap: break-word;} /* =Global ----------------------------------------------- */ body, button, input, select, textarea { /* color: #404040; */ font-family: sans-serif; font-size: 16px; font-size: 1.6rem; line-height: 1.5; } /* Headings */ h1,h2,h3,h4,h5,h6 { clear: both; } h1 {font-size: 28px;} h2 {font-size: 25px;} h3 {font-size: 23px;} h4 {font-size: 21px;} h5 {font-size: 19px;} h6 {font-size: 18px;} h1,h2,h3,h4,h5,h6 { font-family: Book Antiqua; font-weight: bold; } hr { background-color: #ccc; border: 0; height: 1px; margin-bottom: 1.5em; } /* Text elements */ p { margin-bottom: 1em; } ul, ol { margin: 0 0 1.5em 3em; } ul { list-style: disc; } ol { list-style: decimal; } li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; } dt { font-weight: bold; } dd { margin: 0 1.5em 1.5em; } b, strong { font-weight: bold; } dfn, cite, em, i { font-style: italic; } blockquote { margin: 0 1.5em; } address { margin: 0 0 1.5em; } pre { background: #666; color: #ddd; font-family: "Courier 10 Pitch", Courier, monospace; font-size: 15px; font-size: 1.5rem; line-height: 1.6; margin-bottom: 1.6em; padding: 1.6em; overflow: auto; max-width: 100%; } code, kbd, tt, var { font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; } abbr, acronym { border-bottom: 1px dotted #666666; cursor: help; } mark { background: #fff9c0; text-decoration: none; } ins { background-color:#999; color: #000; padding:0 2px; } code { background-color: #666; color: #ddd; } address { font-style: italic; } sup,sub { font-size: 75%; height: 0; line-height: 0; position: relative; vertical-align: baseline; } sup { bottom: 1ex; } sub { top: .5ex; } small { font-size: 75%; } big { font-size: 125%; } figure { margin: 0; } table { margin: 0 0 1.5em; width: 100%; } th { font-weight: bold; } img { height: auto; max-width: 100%; } img.avatar { border:2px solid gray; border-radius: 5px; padding: 3px; margin: 0 3px; } img.attachment-post-thumbnail { margin:5px 0 5px 5px; border:1px solid gray; border-radius:5px 0 0 0; } button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; } button, input { line-height: normal; } button, html input[type="button"], input[type="reset"], input[type="submit"] { border: 1px solid #cccccc; border-color: #cccccc #cccccc #bbbbbb #cccccc; border-radius: 3px; background: #e6e6e6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, .8); cursor: pointer; -webkit-appearance: button; font-size: 12px; font-size: 1.2rem; line-height: 1; padding: .6em 1em .4em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); } button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { border-color: #cccccc #bbbbbb #aaaaaa #bbbbbb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02); } button:focus, html input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, button:active, html input[type="button"]:active, input[type="reset"]:active, input[type="submit"]:active { border-color: #aaaaaa #bbbbbb #bbbbbb #bbbbbb; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15); } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="search"] { -webkit-appearance: textfield; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea { color: #666666; border: 1px solid #cccccc; border-radius: 3px; } input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus { color: #111111; } input[type="text"], input[type="email"], input[type="password"], input[type="search"] { padding: 3px; } textarea { overflow: auto; padding-left: 3px; vertical-align: top; width: 98%; } /* Links */ a { text-decoration:none; } a:visited { text-decoration:none; } a:hover, a:focus, a:active { text-decoration:underline; } /* Alignment */ .alignleft { display: inline; float: left; margin-right: 1.5em; } .alignright { display: inline; float: right; margin-left: 1.5em; } .aligncenter { clear: both; display: block; margin: 0 auto; } /* Text meant only for screen readers */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; } .screen-reader-text:hover, .screen-reader-text:active, .screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; } /* Clearing */ .clear:before, .clear:after, [class*="content"]:before, [class*="content"]:after, [class*="site"]:before, [class*="site"]:after { content: ''; display: table; } .clear:after, [class*="content"]:after, [class*="site"]:after { clear: both; } body { width:1100px; margin:10px auto; } #main { margin:10px auto; } #primary, #container { float:left; width:69%; } #content { margin: 10px; } #secondary { float:right; width:30%; } #show { float:none; width:100%; } article { -moz- hyphens: auto; hyphens: auto; overflow:auto; } .site-branding { width:90%; margin:0 auto; } .site-title a { font-size:36px; text-decoration:none; text-transform:uppercase; } .site-description { font-size:24px; line-height:120%; padding-bottom:5px; } .site-title a, .site-description { font-family:Lucida Sans Unicode; } .site-footer { text-align: center; } /* =Menu ----------------------------------------------- */ .main-navigation { clear: both; display: block; float: left; background-color:black; padding:10px 20px; border:5px solid #ffffff; } .main-navigation ul { list-style: none; margin: 0; padding-left: 0; } .main-navigation li { float: left; position: relative; } .main-navigation a { display: block; text-decoration: none; color:#ffffff; margin:2px 10px; padding:5px; } .main-navigation a:hover { background-color:#ffffff; color:black; } .main-navigation ul ul { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); display: none; float: left; position: absolute; top: 2.3em; left: 0; z-index: 99999; color:#ffffff; background-color:#000000; } .main-navigation ul ul ul { left: 100%; top: 0; } .main-navigation ul ul a { width: 200px; } .main-navigation ul li:hover > ul { display: block; } /* Small menu */ .menu-toggle { display: none; cursor: pointer; } @media screen and (max-width: 600px) { html {font-size: 55%;} h1,h2,h3,h4,h5,h6 {margin-bottom: 1px;} p {margin-bottom: 1em;} body {width: 100%;} #primary, #container, #secondary {float: none; width: 95%; margin: 0 auto;} .widget, .widget ul {margin: 0;} .widget ul li {display: inline-block; margin-right:10px;} .widget .menu ul li, .widget .menu ul {display: inline; margin: 5px; } .menu-toggle, .main-navigation.toggled .nav-menu {display: none; margin: 0 auto;} .screen-reader-text {position: relative;} .main-navigation {width: 175px !important; float: none !important; top: 0 !important; left: 0 !important; z-index: 0 !important; margin: 0 auto; text-align: center; } .main-navigation ul {list-style: none; margin: 0; padding-left: 0;} .main-navigation li {float: none; position: relative;} .main-navigation a {display: block; text-decoration: none; color:#ffffff; margin:2px 10px; padding:5px;} .main-navigation a:hover {background-color:#ffffff; color:black;} .main-navigation ul ul {box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); display: block; float: none; position: static; top: 2.3em; left: 0; z-index: 0; color:#ffffff; background-color:#000000;} .main-navigation ul ul ul { left: 0; top: 0;} .main-navigation ul ul a {width: auto;} .main-navigation ul li:hover > ul {display: block;} } /* =Content ----------------------------------------------- */ .sticky h3 a { color: yellow; } header.page-header { color: #fff; text-shadow: 2px 2px #000; } h2.post-type { padding:10px; font-size:20px; } h3.sticky { font-size: 100%; float:right; padding:3px; margin-right:10px; border-radius:20px; } h3.entry-meta { font-family: arial; font-size: inherit; font-weight: normal; } article.format-link .entry-content a { font-family:"Times New Roman",Georgia,Serif; font-size:24px; } .hentry { margin: 0 0 1.5em; border-radius: 10px 10px 0 0; } .byline, .updated { display: none; } .entry-title { padding:10px; border-radius:10px 10px 0 0; } .entry-title:hover { padding:10px; } .entry-title { font-size:175%; font-family:Palatino Linotype; font-weight:bold; } .entry-title a{ display:block; text-decoration:none; } .entry-title a:hover{ text-decoration:none; } .entry-content, .entry-summary { padding:10px; } .single .byline, .group-blog .byline { display: inline; } h1.page-title { font-size:24px; padding-left: 10px; } .page-content, .entry-content .entry-summary { margin: 1.5em 0 0; } .page-links { clear: both; margin: 0 0 1.5em; } .entry-meta { padding:10px 0 10px 10px; } .error-404 { padding:5px; } /* =Asides ----------------------------------------------- */ .blog .format-aside .entry-title, .archive .format-aside .entry-title { display: none; } aside, aside .wp-caption-text { padding:10px; } aside a, aside a:visited { color:#ff0000; } aside a:hover { color:#000000; } /* =Media ----------------------------------------------- */ .page-content img.wp-smiley, .entry-content img.wp-smiley, .comment-content img.wp-smiley { border: none; margin-bottom: 0; margin-top: 0; padding: 0; } .wp-caption { border: 2px solid #ccc; margin-bottom: 1.5em; max-width: 100%; } .wp-caption img[class*="wp-image-"] { display: block; margin: 1.2% auto 0; max-width: 98%; } .wp-caption-text { text-align: center; } .wp-caption .wp-caption-text { margin: 0.8075em 0; } .site-content .gallery { margin-bottom: 1.5em; } .gallery-caption { text-decoration:italic; text-align:center; margin:0; } .site-content .gallery a img { border: none; height: auto; max-width: 90%; } .entry-attachment { text-align:center; } .entry-attachment img { width:100%; } .gallery-item { margin:1px; background-color:white; color:black; } .site-content .gallery-columns-4 .gallery-item { max-width:24%; font-size:95%; } .site-content .gallery-columns-5 .gallery-item { max-width:19%; font-size:90%; } .site-content .gallery-columns-6 .gallery-item { max-width:15.75%; font-size:87%; } .site-content .gallery-columns-7 .gallery-item { max-width:13.5%; font-size:82%; } .site-content .gallery-columns-8 .gallery-item { max-width:12%; font-size:75%; } .site-content .gallery-columns-9 .gallery-item { max-width:10.5%; font-size:70%; } /* Make sure embeds and iframes fit their containers */ embed, iframe, object { max-width: 100%; } #gallery-1 .gallery-caption { margin:1px; } /* =Navigation ----------------------------------------------- */ .site-content [class*="navigation"] { margin: 0 0 1.5em; overflow: hidden; } [class*="navigation"] .nav-previous { float: left; background-color:black; } [class*="navigation"] .nav-next { float: right; background-color:black; text-align: right; } .site-content [class*="navigation"] a, .site-content [class*="navigation"] a:visited, .site-content [class*="navigation"] a:hover, .navigation a, .navigation a:visited, .navigation a:hover { padding: 3px; } nav#image-navigation { margin:10px; } .next-image { float: right; width: 50%; } .navigation { background-color:black; } /* =Comments ----------------------------------------------- */ .comment-content a { word-wrap: normal; } .bypostauthor { padding: 10px 0 0 5px; margin-bottom: 10px; } .bypostauthor p { color:#aaf; } .the-author { display: block; padding-bottom: 3px; } span.author-vcard { font-size: 22px; font-style: italic; } #primary p.the-author { margin: 5px 0; display: block; padding: 5px; } #primary p.author-bio { font-size: 16px; background: #666; padding: 3px; } .comments-area { background-color:#333; color:white; padding:3px 5px; } .comments-title { color:white; } #respond { color:#ccc; padding: 0 0 1px 5px; } textarea#comment { width:90%; margin:5px auto; } .comment-body { color:#eee; background-color:#333; border-bottom: 1px solid #aaa; } .comment-body a, .comment-form a { color: #cca; } ol.comment-list { padding-top: 10px; } /* =Widgets ----------------------------------------------- */ .widget { margin: 0 0 1.5em; overflow:auto; } .widget-title { padding:10px; border-radius:10px 10px 0 0; } .widget-title { font-size:160%; font-family:Palatino Linotype; font-weight:bold; } .widget select { max-width: 95%; } .widget ul { list-style: none; margin: 0.5em 0 0 0; } .widget .menu ul li, .widget .menu ul { display:inline; list-style:none; } .widget_search .search-submit { display: none; } table#wp-calendar td, table#wp-calendar th { border:1px solid #ccc; text-align:center; } /* =Infinite Scroll ----------------------------------------------- */ .infinite-scroll .paging-navigation, .infinite-scroll.neverending .site-footer { display: none; } .infinity-end.neverending .site-footer { display: block; }