/* Theme Name: bakes Theme URI: http://webcrafty.me Author: Erika Saadi Author URI: http://esaadi.com/folio Description: Bakes is a free cooking and recipe blog theme for wordpress. Version: 1.0 License: GNU General Public License v2.0 License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: pink, two-columns, responsive-layout, sticky-post, translation-ready, full-width-template, featured-images, custom-header Resetting and rebuilding styles: Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ Blueprint http://www.blueprintcss.org/ */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- 1.0 Reset 2.0 Typography 3.0 Elements 4.0 Inputs and buttons 5.0 Navigation 5.1 Links 5.2 Menus 6.0 Accessibility 7.0 Alignments 8.0 Clearings 9.0 Widgets 10.0 Content 10.1 Posts and pages 10.2 Asides 10.3 Comments 11.0 Infinite scroll 12.0 Media --------------------------------------------------------------*/ /*-------------------------------------------------------------- 1.0 - 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, table, caption, tbody, tfoot, thead, tr, th, td { border: 0; font-family: inherit; font-size: 100%; font-style: inherit; font-weight: inherit; margin: 0; outline: 0; padding: 0; vertical-align: baseline; } html { font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */ overflow-y: scroll; /* Keeps page centered in all browsers regardless of content height */ -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */ -ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */ } *, *:before, *:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ -webkit-box-sizing: border-box; /* Not needed for modern webkit but still used by Blackberry Browser 7.0; see http://caniuse.com/#search=box-sizing */ -moz-box-sizing: border-box; /* Still needed for Firefox 28; see http://caniuse.com/#search=box-sizing */ box-sizing: border-box; } body { background: #f0ede7; } article, aside, details, figcaption, figure, footer, header, main, nav, section { display: block; } 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 { content: ""; } blockquote, q { quotes: "" ""; } a:focus { outline: thin dotted; } a:hover, a:active { outline: 0; } a img { border: 0; } /*-------------------------------------------------------------- 2.0 Typography --------------------------------------------------------------*/ body, button, input, select, textarea { color: #343852; font-family: 'Open Sans', sans-serif; font-size: 16px; font-size: 1.6rem; line-height: 1.5; } h1, h2, h3, h4, h5, h6 { clear: both; } h1, h2 {font-family: 'Lily Script One', cursive;} h1 {font-size: 2em;} h2 {font-size: 1.5em;} h3 {font-size: 1.5em;} h4 {font-size: 1em;} h5 {font-size: .8em;} h6 {font-size: .6em;} .site-title { font-size: 8em; margin-bottom: -12px; } .site-title a { color:#fa5d68 !important; text-shadow: 1px 1px 0px #fdd3ca; font-weight: bold;} b, strong { font-weight: bold; } dfn, cite, em, i { font-style: italic; } blockquote { margin: 0 1.5em; border-left: 2px solid #fa5d68; padding-left: 10px; font-style: italic; } address { margin: 0 0 1.5em; font-style: italic; } pre { background: #eee; font-family: "Courier 10 Pitch", Courier, monospace; font-size: 15px; font-size: 1.5rem; line-height: 1.6; margin-bottom: 1.6em; max-width: 100%; overflow: auto; padding: 1.6em; } code, kbd, tt, var { font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; } abbr, acronym { border-bottom: 1px dotted #666; cursor: help; } mark, ins { background: #fa5d68; color:#fff; text-decoration: none; } 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%; } /*-------------------------------------------------------------- 3.0 Elements --------------------------------------------------------------*/ hr { background-color: #ccc; border: 0; height: 1px; margin-bottom: 1.5em; } 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; } figure { margin: 0; } table { margin: 0 0 1.5em; width: 100%; border: 1px solid #f0ede7 } th, td { padding: 8px; border-right: 1px solid #f0ede7; } th { font-weight: bold; color: #fa5d68; } th:hover {color: #fff;} td { border-top: 1px solid #f0ede7;} td:last-child, th:last-child {border-right: 0;} thead tr {background: #fa5d68;} tr:nth-child(even) {background: #f0ede7} tr:hover { background: #6d9190; color: #fff; } tr:hover a {color: #fff;} tr:hover a:hover {color: #f0ede7;} /*-------------------------------------------------------------- 4.0 Inputs and buttons --------------------------------------------------------------*/ button, input, select, textarea { font-size: 100%; /* Corrects font size not being inherited in all browsers */ margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ vertical-align: baseline; /* Improves appearance and consistency in all browsers */ *vertical-align: middle; /* Improves appearance and consistency in all browsers */ } button, input[type="button"], input[type="reset"], input[type="submit"] { border: none; background: #6d9190; color: #ffffff; cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */ -webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */ font-size: 12px; font-size: 1.2rem; padding: 0.6em 2em; } button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { background: #fa5d68; color: #ffffff; } button:focus, input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, button:active, input[type="button"]:active, input[type="reset"]:active, input[type="submit"]:active { border-color: #aaa #bbb #bbb #bbb; 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"] { padding: 0; /* Addresses excess padding in IE8/9 */ } input[type="search"] { -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */ -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */ -moz-box-sizing: content-box; box-sizing: content-box; } input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ border: 0; padding: 0; } input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea { color: #666; border: 1px solid #ccc; border-radius: 3px; } input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus { color: #111; } input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"] { padding: 3px; } textarea { overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */ padding-left: 3px; vertical-align: top; /* Improves readability and alignment in all browsers */ width: 98%; } select { color: #666; border: 1px solid #ccc; border-radius: 3px; box-sizing: content-box; padding: 3px; } /*-------------------------------------------------------------- 5.0 Navigation --------------------------------------------------------------*/ .site-branding { text-align: center; } .main-navigation-wrap { clear: both; width: 100%; background: rgba(255, 255, 255, .8); margin:25px 0; padding: 10px 0; } .main-navigation-wrap:after{ content: " "; clear: both; display: table;} /*-------------------------------------------------------------- 5.1 Links --------------------------------------------------------------*/ a { text-decoration: none; color: #fa5d68; } a:visited { color: #fa5d68; } a:hover, a:focus, a:active { color: #6d9190; } .more-link, .nav-previous a, .nav-next a, .page-links a { background:#6d9190; color: #fff !important; padding: 10px 15px; display: inline-block; } .edit-link {display: block; clear: both;} .comments-link {float: right;} .cat-links {float: left;} .tags-links {clear:both; display:block;} /*-------------------------------------------------------------- 5.2 Menus --------------------------------------------------------------*/ .main-navigation { margin: 0 auto; } .main-navigation ul { list-style: none; margin: 0; float: left; } .main-navigation li { display: inline-block; margin-right: 5px; position: relative; } .main-navigation li:last-child {margin-right: 0;} .main-navigation a { display: block; text-decoration: none; background: #fff; padding: 15px; } .main-navigation ul ul { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); display: none; float: left; left: 0; position: absolute; top: 3em; z-index: 99999; } .main-navigation ul ul ul { left: 100%; top: 0; } .main-navigation ul ul a { width: 200px; } .main-navigation ul ul li { } .main-navigation li:hover > a { } .main-navigation ul ul :hover > a { } .main-navigation ul ul a:hover { } .main-navigation ul li:hover > ul { display: block; } .main-navigation .current_page_item a, .main-navigation .current-menu-item a { background: #fa5d68; color: #fff; } .main-navigation a:hover { background: #6d9190; color: #fff; } .main-navigation .search-form { float: right;} .main-navigation .search-form input { padding: 14px 5px; border-radius: 0;} .main-navigation .search-form input[type="submit"] {padding: 19px 5px 15px 5px;} /* Small menu */ .menu-toggle { cursor: pointer; display: none; } @media screen and (max-width: 768px) { .menu-toggle, .main-navigation.toggled .nav-menu { display: block; float:none; text-align: center; } .main-navigation ul { display: none; } .main-navigation li {display: block;} .main-navigation .search-form { display: none; } } .site-main .comment-navigation, .site-main .paging-navigation, .site-main .post-navigation { margin: 0 0 1.5em; overflow: hidden; } .comment-navigation .nav-previous, .paging-navigation .nav-previous, .post-navigation .nav-previous { float: left; width: 50%; } .comment-navigation .nav-next, .paging-navigation .nav-next, .post-navigation .nav-next { float: right; text-align: right; width: 50%; } /*-------------------------------------------------------------- 6.0 Accessibility --------------------------------------------------------------*/ /* 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; /* Above WP toolbar */ } /*-------------------------------------------------------------- 7.0 Alignments --------------------------------------------------------------*/ .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; } .alignnone, .alignnone img {width: 100%; height: auto;} .five-sixths, .four-sixths, .one-fourth, .one-half, .one-sixth, .one-third, .three-fourths, .three-sixths, .two-fourths, .two-sixths, .two-thirds { float: left; margin-left: 2.564102564102564%; } .one-half, .three-sixths, .two-fourths { width: 48.717948717948715%; } .one-third, .two-sixths { width: 31.623931623931625%; } .four-sixths, .two-thirds { width: 65.81196581196582%; } .one-fourth { width: 23.076923076923077%; } .three-fourths { width: 74.35897435897436%; } .one-sixth { width: 14.52991452991453%; } .five-sixths { width: 82.90598290598291%; } .first { clear: both; margin-left: 0; } /*-------------------------------------------------------------- 8.0 Clearings --------------------------------------------------------------*/ .clear:before, .clear:after, .entry-content:before, .entry-content:after, .comment-content:before, .comment-content:after, .site-header:before, .site-header:after, .site-content:before, .site-content:after, .site-footer:before, .site-footer:after { content: ''; display: table; } .clear:after, .entry-content:after, .comment-content:after, .site-header:after, .site-content:after, .site-footer:after { clear: both; } /*-------------------------------------------------------------- 9.0 Widgets --------------------------------------------------------------*/ .widget { margin: 0 0 1.5em; } /* Make sure select elements fit in widgets */ .widget select { max-width: 100%; } /* Search widget */ .widget_search .search-submit { display: none; } .widget-area .widget { background: rgba(255, 255, 255, .8); } .widget .textwidget p {padding: 15px;} .widget h1 {padding: 15px 15px 0 15px;} /* Widget lists */ .widget ul { list-style-type: none; margin-left: 0; padding: 15px; } .widget li { border-bottom: 1px solid #6d9190; padding: 5px 0; } .widget form { padding: 15px; } /*Recipe cards*/ .bakes-recipe-label { } .bakes-recipe-input textarea{ width: 500px; height: 150px; } /*Recipe cards post*/ .entry-recipe{ background: #f0ede7; margin: 10px auto; box-sizing: border-box; border-radius: 10px; border: 1px solid #6d9190; } .entry-recipe h2 { padding: 15px 15px 10px 15px; background-color: #6d9190; color: #fff; box-sizing: border-box; border-top-left-radius: 8px; border-top-right-radius: 8px; margin-bottom: 15px;} .entry-recipe p { padding: 3px; font-size: 12px; margin: auto 15px; border-bottom: 1px solid #ccc; line-height: 22px; } .entry-recipe ul, .entry-recipe ol { line-height: 22px; font-size: 12px; margin-left: 0; } .entry-recipe li { border-bottom: 1px solid #ccc; line-height: 24px; margin: auto 15px; margin-left: 40px; }​ .entry-recipe li { border-bottom:1px solid #ccc;} .entry-recipe span { background: #d6d3cc; display: inline-block; padding: 2px 8px; border-radius: 5px; margin-right: 10px; } .entry-recipe span i {color: #fa5d68;} .recipe-instructions { margin-top: 30px; } /*-------------------------------------------------------------- 10.0 Content --------------------------------------------------------------*/ .site-content, .main-navigation, .footer-content { width: 1200px; word-wrap: break-word; } .content-area { width: 900px; float: left;} .full-content-area { width: 100%; clear: both;} .widget-area { width: 250px; float: right;} .site-content, .footer-content {margin: 0 auto;} .content-area, .widget-area {display: inline-block;} .site-footer aside { background: rgba(255, 255, 255, .8); padding: 10px; display: inline-block; margin-right: 20px; } .site-footer { background: #6d9190; padding: 15px 0; } .site-info {text-align: center; font-size: 12px;} .site-info a {color: #ffffff;} /* left-sidebar */ .left-sidebar .content-area { float: right; } .left-sidebar .widget-area { float: left; } /*-------------------------------------------------------------- 10.1 Posts and pages --------------------------------------------------------------*/ .sticky { box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; border:10px solid #fa5d68; } .hentry { margin: 0 0 1.5em; } .byline, .updated { display: none; } .single .byline, .group-blog .byline { display: inline; } .entry-summary { margin: 1.5em 0 0; } .page-links { clear: both; margin: 0 0 1.5em; } .page-content {background: #fff; padding: 15px; margin-bottom: 15px;} .post { background: #fff;} .entry-header, footer.entry-meta {padding: 20px;} .entry-content {padding: 0 20px;} footer.entry-meta { padding: 20px 20px 20px; border-top: 1px solid #eee; color: #888; font-size: 12px; } .entry-title, .entry-meta {} .entry-thumbnail img {width: 100% !important; height: auto !important;} /*-------------------------------------------------------------- 10.2 Asides --------------------------------------------------------------*/ .blog .format-aside .entry-title, .archive .format-aside .entry-title { display: none; } /*-------------------------------------------------------------- 10.3 Comments --------------------------------------------------------------*/ .comment-content a { word-wrap: break-word; } .bypostauthor { } .comments-area ol { list-style: none; margin: 0; } .comment-list li { background: #fff; padding: 15px; margin: 15px 0; } .children article {border-top: 5px double #f0ede7; padding-top:15px;} /*-------------------------------------------------------------- 11.0 Infinite scroll --------------------------------------------------------------*/ /* Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */ .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ display: none; } /* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ .infinity-end.neverending .site-footer { display: block; } /*-------------------------------------------------------------- 12.0 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: 1px 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-main .gallery { margin-bottom: 1.5em; } .gallery-caption { } .site-main .gallery a img { border: none; height: auto; max-width: 90%; } .site-main .gallery dd { margin: 0; } .site-main .gallery-columns-4 .gallery-item { } .site-main .gallery-columns-4 .gallery-item img { } /* Make sure embeds and iframes fit their containers */ embed, iframe, object { max-width: 100%; } /* #Media Queries ================================================== */ /* Smaller than standard 960 (devices and browsers) */ @media only screen and (max-width: 1024px) { .site-content, .main-navigation, .footer-content { width: 900px; } .content-area {width: 600px;} .widget-area {width: 250px; margin-left: 30px;} } /* Tablet Portrait size to standard 960 (devices and browsers) */ @media only screen and (min-width: 769px) and (max-width: 959px) { .site-content, .main-navigation, .footer-content { width: 100%; padding: 0 10px; } .content-area, .widget-area {width: 100%; clear: both;} input[type="search"] {width: 150px;} .main-navigation .search-form {clear: both !important; text-align: center !important; float:none;} } /* All Mobile Sizes (devices and browser) */ @media only screen and (max-width: 768px) { .site-content, .main-navigation, .footer-content { width: 100%; padding: 0 10px; } .content-area, .widget-area {width: 100%; clear: both;} input[type="search"] {width: 150px;} } /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ @media only screen and (min-width: 480px) and (max-width: 767px) { .site-content, .main-navigation, .footer-content { width: 100%; padding: 0 10px; } .content-area, .widget-area {width: 100%; clear: both;} .site-footer aside { width: 100%; clear: both; display: block; } } /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ @media only screen and (max-width: 479px) { .site-content, .main-navigation, .footer-content { width: 100%; padding: 0 10px; } .content-area, .widget-area {width: 100%; clear: both;} .site-title {font-size: 7em;} .site-footer aside { width: 100%; clear: both; display: block; } }