/* Theme Name: Bricks Theme URI: http://www.hostinjapan.com/free-stuff/bricks-theme Author URI: http://www.anthonyglover.com/ Description: Bricks is a responsive HTML5 theme based on the Reviere framwork with animated brickwork style article stacking. Featuring a responsive design, SEO optimization, cutting edge HMTL5 / CSS3 features and backward compatability scripts. Brick width can be set on the post editing admin page. Version: 1.0.0 Tags: black, gray, dark, two-columns, one-column, flexible-width, threaded-comments, microformats, featured-images, theme-options, photoblogging, full-width-template, right-sidebar Author: hostinjapan Author URI: http://www.anthonyglover.com License: MIT License License URI: http://www.opensource.org/licenses/mit-license.php */ /* Bricks is built on top of the excellent Reverie framework from Themefortress http://themefortress.com/reverie/ and also includes parts of ZURB's Foundation. */ /* -------------------------------------------------- Table of Contents ----------------------------------------------------- :: Customized Adjustments of Foundation for WordPress :: Styling Basic WordPress Outputs :: Customize Foundation Style Pagination for WP-Pagenavi :: Your Customized Style */ /* --------------------------------------------------- Customized Adjustments of Foundation for WordPress --------------------------------------------------- */ /* Auto Height for Images for Responsive Design */ img { height: auto; } li { } /* ZURB Navi for Foundation */ dl.nav { display: block; width: auto; height: 27px; margin: 0 0 18px; } dl.nav dt, dl.nav dd { float: left; display: inline; } dl.nav dt { color: #999; font-weight: normal; } dl.nav dd a { text-decoration: none; margin-left: 6px; padding: 5px 12px; -webkit-border-radius: 12px; -moz-border-radius: 12px; } dl.nav dd a:hover { background: #eee; } dl.nav dd.current-menu-item a, dl.nav dd.current-post-ancestor a, dl.nav dd.current-menu-parent a, dl.nav dd.current-post-parent a { background: #2A85E8; color: #fff; } /* Foundation-specific presentation CSS by ZURB */ body { padding-bottom: 60px; } div.reverie-header { margin: 0 0 30px 0; padding: 20px 0 0 0; } div.reverie-header h1 { margin-bottom: 0; padding: 0; } div.reverie-header h1 a { color: #181818; } div.reverie-header h1 a:hover { color: #181818; } div.reverie-header .subheader { margin-bottom: 9px; } div.highlight { margin-bottom: 12px; } img.beta { position: absolute; top: 0px; right: 0px; } /* ----------------------------------------- Styling Basic WordPress Outputs ----------------------------------------- */ /* Resizing the Blog Post */ .post-box p { line-height: 21px!important; } .post-box { font-size: 14px; line-height: 20px!important; } .post-box h1 { font-weight: bold; font-size: 30px; line-height: 1; margin-bottom: 2px; font-family: 'Yanone Kaffeesatz', sans-serif;} .post-box h2 { font-weight: bold; font-size: 26px; line-height: 1; margin-bottom: 2px; font-family: 'Yanone Kaffeesatz', sans-serif;} .post-box h3 { font-size: 22px; } .post-box h4 { font-size: 18px; } /* Add Divider for Listed Posts */ .divider { height:1px; border:dotted 1px #999; } /* Add Align Class for Images */ img.alignright { float: right; margin: 0 0 18px 18px; } img.alignleft { float: left; margin: 0 18px 18px 0; } /* Add HTML5 Caption Class for Images */ figure.figure { background: #EEE; margin: 0 0 18px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block; } figure.figure figcaption { display: block; padding: 8px 10px; font-size: 13px; line-height: 18px; color: #555; } figure.alignright.figure { float: right; margin: 0 0 18px 18px; } figure.alignleft.figure { float: left; margin: 0 18px 18px 0; } /* Sidebar Adjustment */ .sidebar-section { padding-bottom: 10px; padding-top: 20px; font-size: 1.3rem; font-weight: normal; } .sidebar-box ul li{ margin-left:10px; } /* Footer Nav */ .footer-section { padding-bottom: 10px; padding-top: 20px; font-size: 1.3rem; font-weight: normal; } .footer-nav li { display: block; float: right; padding-left: 3%; margin-bottom: 0; } .reverie-header .subheader{ font-family: 'Yanone Kaffeesatz', sans-serif; font-weight:lighter; } #crumbs{ margin:5px 0 15px 10px; } #crumbs a{ color:#c0c0c0; } #crumbs a:hover{ color:#2A85E8; } .post-box h1.pagetitle{ color:#fff; margin:0 0 15px 10px; } .wp-caption{ color:#333; } .wp-caption-text{ color:#333; } .sticky{ color:#333; } .gallery-caption{ color:#333; } .bypostauthor{ color:#333; } .aligncenter{ text-align:center; } /* ------------------------------------------------------- Customize Foundation Style Pagination for WP-Pagenavi ---------------------------------------------------- */ div.wp-pagenavi { display: block; height: 24px; margin-left: -5px; color: #555; } div.wp-pagenavi a, div.wp-pagenavi span { float: left; display: block; padding: 6px 7px 4px; height: 24px; color: #555; font-size: 15px; margin-left: 5px; } div.wp-pagenavi span.pages { padding-left: 0; } div.wp-pagenavi .current, div.wp-pagenavi a:hover { border-bottom: solid 2px #00a6fc; color: #141414; } div.wp-pagenavi span.unavailable:hover { border-bottom: none; } /* Base styles */ body{ background:#000000; background:url(images/bg.png); background-position:center; background-repeat:repeat-y; } .bottom_of_page{ padding:10px 0; } .bevel1{ width:100%; height:2px; background:url(images/bevel1.png); } .bevel2{ width:100%; height:2px; background:url(images/bevel2.png); } .background_med{ background:url(images/bg_med.png); background-position:center; background-repeat:repeat-y; } .background_dark{ background:url(images/bg_dark.png); background-position:center; background-repeat:repeat-y; } .post-previous, .post-next{ } .post-previous{ float:left; } .post-next{ float:right; } .post-previous a, .post-next a{ display:block; font-family: 'Yanone Kaffeesatz', sans-serif; text-transform:uppercase; color:#fff; padding-left:45px; background:url(images/older_posts.png); background-position:left top; background-repeat:no-repeat; height:14px; line-height:14px; font-size:20px; font-weight:bold; width:100px; } .post-next a{ background:url(images/newer_posts.png); background-position:right top; background-repeat:no-repeat; padding-right:45px; padding-left:0; text-align:right; } .post-next a:hover{ background-position:right bottom; color:#2A85E8; } .post-previous a:hover{ background-position:left bottom; color:#2A85E8; } .top_search{ float:right; } .top_search .searchform .input-text{ width:180px; box-shadow:inset 1px 1px 4px #222; border-radius:10px; background:none; background-color:#333; border:1px solid #111; padding:5px; background-position:0 10px; background-repeat:no-repeat; color:#CCC; float:left; line-height:16px; } .top_search form label{ display:none; } .top_search .searchsubmit{ float:left; line-height:16px; margin-left:-25px; text-indent:-9999px; padding:0; height:20px; width:20px; background:none; background:url(images/search.png); background-repeat:no-repeat; border:none; -webkit-box-shadow:none; -moz-box-shadow:none; box-shadow:none; cursor:pointer; } .single .post-box, .page .post-box, .error404 .post-box{ background: #f2f2f2; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YyZjJmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmMmYyZjIiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(left, #f2f2f2 0%, #ffffff 51%, #f2f2f2 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%,#f2f2f2), color-stop(51%,#ffffff), color-stop(100%,#f2f2f2)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, #f2f2f2 0%,#ffffff 51%,#f2f2f2 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, #f2f2f2 0%,#ffffff 51%,#f2f2f2 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, #f2f2f2 0%,#ffffff 51%,#f2f2f2 100%); /* IE10+ */ background: linear-gradient(left, #f2f2f2 0%,#ffffff 51%,#f2f2f2 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#f2f2f2',GradientType=1 ); /* IE6-8 */ padding:15px; box-shadow:2px 2px 5px #111; } .single .sidebar-box, .page .sidebar-box, .error404 .sidebar-box{ background: #e5e5e5; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U1ZTVlNSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2YyZjJmMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNWU1ZTUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(left, #e5e5e5 0%, #f2f2f2 51%, #e5e5e5 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%,#e5e5e5), color-stop(51%,#f2f2f2), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, #e5e5e5 0%,#f2f2f2 51%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, #e5e5e5 0%,#f2f2f2 51%,#e5e5e5 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, #e5e5e5 0%,#f2f2f2 51%,#e5e5e5 100%); /* IE10+ */ background: linear-gradient(left, #e5e5e5 0%,#f2f2f2 51%,#e5e5e5 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#e5e5e5',GradientType=1 ); /* IE6-8 */ padding:0 15px 15px 15px; margin-bottom:20px; box-shadow:2px 2px 5px #111; } .error404 h1, .single .post-box h1, .single .post-box h2, .single .post-box h3, .single .post-box h4, .single .post-box h5, .single .post-box h6{ color:#333; } .page .post-box h1, .page .post-box h2, .page .post-box h3, .page .post-box h4, .page .post-box h5, .page .post-box h6{ color:#333; } .single .sidebar-box h1, .single .sidebar-box h2, .single .sidebar-box h3, .single .sidebar-box h4, .single .sidebar-box h5, .single .sidebar-box h6{ color:#333; font-family:'Yanone Kaffeesatz', sans-serif; } .page .sidebar-box h1, .page .sidebar-box h2, .page .sidebar-box h3, .page .sidebar-box h4, .page .sidebar-box h5, .page .sidebar-box h6{ color:#333; font-family:'Yanone Kaffeesatz', sans-serif; } .sidebar-box h6{ font-size:24px; margin-bottom:1em; } .sidebar-section{ border-bottom:dotted 1px #999; } .sidebar-section a{ color:#333; } .single .post-box header, .page .post-box header{ margin-bottom:20px; } /* ==|== Set Fonts ===================================================== ========================================================================== */ .sf-menu, cat_container, .post-multi .date, .post-multi .vcard{ font-family: 'Yanone Kaffeesatz', sans-serif; } /* ==|== Masonry styles ===================================================== ========================================================================== */ .masonry, .masonry .masonry-brick { -webkit-transition-duration: 0.7s; -moz-transition-duration: 0.7s; -o-transition-duration: 0.7s; transition-duration: 0.7s; } .masonry { -webkit-transition-property: height, width; -moz-transition-property: height, width; -o-transition-property: height, width; transition-property: height, width; } .masonry .masonry-brick { -webkit-transition-property: left, right, top; -moz-transition-property: left, right, top; -o-transition-property: left, right, top; transition-property: left, right, top; } .grid_1, .grid_2, .grid_3, .grid_4 { display: inline; float: left; margin-left: 10px; margin-right: 10px; margin-bottom:20px; } .push_1, .pull_1, .push_2, .pull_2, .push_3, .pull_3 { position: relative; } .clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; } /* =Grid >> Children (Alpha ~ First, Omega ~ Last) --------------------------------------------------------------------------------*/ .alpha {margin-left: 0;} .omega {margin-right: 0;} /* =Grid >> 4 Columns --------------------------------------------------------------------------------*/ .post-box .grid_1 {width: 225px;} .post-box .grid_2 {width: 470px;} .post-box .grid_3 {width: 715px;} .post-box .grid_4 {width: 960px;} .post-multi{ background:#fff; box-shadow:2px 2px 8px 2px #222; -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; transition: all 1s; } .post-multi:hover{ box-shadow:0px 0px 15px 1px #64C4FF !important; box-shadow:2px 2px 8px 2px #222; -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; transition: all 1s; } .post-multi:hover .cat_container, .post-multi:hover .date{ opacity:0; } .noimage:hover .cat_container, .noimage:hover .date{ opacity:1; } .post-multi .padder{ padding:5px; } div.cat_container{ height:30px; margin:0; position:absolute; min-width:230px; top:160px; left:-6px; -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; transition: all 1s; } .cat_container .tagstart{ display:block; width:6px; height:30px; background:url(images/tagstart.png) no-repeat; float:left; } .cat_container p.category{ font-size:12px; font-weight:bold; text-shadow:1px 1px #444; text-transform:uppercase; color:#fff; background:url(images/tagmid.png) repeat-x; height:20px; margin:0; padding:0 15px 0 15px; float:left; } .cat_container .tagend{ background:url(images/tagend.png); width:13px; height:20px; padding:0; margin:0; display:block; float:left; margin-right:-17px; } .post-multi .entry-content{ padding-top:5px; border-top:1px dotted #c0c0c0; color:#333; clear:both; } .post-multi .entry-content p{ line-height:1.5em; font-size:12px; padding:0 10px; } /* META STYLING */ .post-multi .vcard, .post-multi .vcard a, .post-multi .tags{ color:#333; text-transform:uppercase; font-weight:bold; } .post-multi .date{ font-size:45px; font-weight:bold; text-shadow:1px 1px #444; text-transform:uppercase; color:#fff; position:absolute; left:9px; top:10px; line-height:32px; -webkit-transition: all 1s; -moz-transition: all 1s; -ms-transition: all 1s; -o-transition: all 1s; transition: all 1s; } .post-multi .date .stylemonth{ text-align:center; } .post-multi .date .styleday{ font-size:30px; text-align:center; } .post-box .noimage .date{ position:relative; float:left; top:0; left:0; margin:5px 10px 10px 0; color:#444; text-shadow:none; } .post-box .noimage .cat_container{ position:relative; float:left; margin-left:-11px; top:0; left:0; } .post-box .noimage vcard{ margin-bottom:25px; } p.vcard{ margin-bottom:10px; } /*------------------------------- Top Menu ---------------------------------------- */ /*** ESSENTIAL STYLES ***/ .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; } .sf-menu { line-height: 1.0; } .sf-menu ul { position: absolute; top: -999em; width: 10em; /* left offset of submenus need to match (see below) */ } .sf-menu ul li { width: 100%; } .sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu li { float: left; position: relative; } .sf-menu a { display: block; position: relative; } .sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; top: 30px; /* match top ul list item height */ z-index: 99; } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 11em; /* match ul width */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 11em; /* match ul width */ top: 0; } /*** SKIN ***/ .sf-menu { float: left; margin-bottom: 2em; } .sf-menu a { color:#fff; font-weight:bold; font-size:22px; text-transform:uppercase; padding:5px 10px; text-decoration:none; tex-shadow:1px 1px #000; } .sf-menu li.current-menu-item a{ color:#2A85E8; } .sf-menu li.current-menu-item ul li a{ color:#fff; } .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ color: #fff; } .sf-menu a:hover{ color:#2A85E8; } .sf-menu a:hover{ color:#2A85E8; } .sf-menu li { } .sf-menu li ul{ background:rgba(0, 0, 0, 0.4); padding-top:5px; } .sf-menu li ul li a{ font-size:18px; } .sf-menu li li { } .sf-menu li li li { } .sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { outline: 0; } /*** arrows **/ .sf-menu a.sf-with-ul { min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ } .sf-sub-indicator { position: absolute; display: block; right: .75em; top: 1.05em; /* IE6 only */ width: 10px; height: 10px; text-indent: -999em; overflow: hidden; } a > .sf-sub-indicator { /* give all except IE6 the correct values */ top: .8em; background-position: 0 -100px; /* use translucent arrow for modern browsers*/ } /* apply hovers to modern browsers */ a:focus > .sf-sub-indicator, a:hover > .sf-sub-indicator, a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfHover > a > .sf-sub-indicator { background-position: -10px -100px; /* arrow hovers for modern browsers*/ } /* point right for anchors in subs */ .sf-menu ul .sf-sub-indicator { background-position: -10px 0; } .sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } /* apply hovers to modern browsers */ .sf-menu ul a:focus > .sf-sub-indicator, .sf-menu ul a:hover > .sf-sub-indicator, .sf-menu ul a:active > .sf-sub-indicator, .sf-menu ul li:hover > a > .sf-sub-indicator, .sf-menu ul li.sfHover > a > .sf-sub-indicator { background-position: -10px 0; /* arrow hovers for modern browsers*/ } /*** shadows for all but IE6 ***/ .sf-shadow ul { background: url('../images/shadow.png') no-repeat bottom right; padding: 0 8px 9px 0; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; } .sf-shadow ul.sf-shadow-off { background: transparent; } /* footer menu */ .background_med ul li{ margin:10px 0 0 0; padding:10px; float:left; } .background_med ul li a{ color:#fff; } .background_med a:hover{ color:#2A85E8 !important; } .background_med li ul{ display:none; margin:0; padding:0; float:left; } /* Comment styles */ ol.commentlist{ list-style:none; margin:0; } ol.commentlist li{ margin-bottom:15px; padding-bottom:10px; border-bottom:1px dotted silver; } ol.commentlist li.depth-2{ margin-left:40px; } ol.commentlist li.depth-3{ margin-left:60px; } ol.commentlist li.depth-4{ margin-left:80px; } .grav_image{ float:left; margin-right:20px; } .comment_body{ margin-left:80px; } .comment-reply-link{ float:right; display:block; padding:5px 10px; background:#E4E4E4; border:1px solid #999; color:#333; }