/* Theme Name: Barista Theme URI: http://ninjablume.com/themes/barista Author: Benjamin Lu Author URI: http://ninjablume.com Description: Barista is a simple and yet easy to navigate with multiple navigation menu as well as multiple sidebars included! License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: custom-colors, custom-header, custom-background, custom-menu, editor-style, featured-images, fixed-layout, one-column, right-sidebar, sticky-post, translation-ready, threaded-comments, two-columns Version: 1.8 Text Domain: barista */ /******************************************************************************* 1.0 - Normalize Reset *******************************************************************************/ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /** * Remove default margin. */ body { margin: 0; } /* HTML5 display definitions ========================================================================== */ /** * Correct `block` display not defined for any HTML5 element in IE 8/9. * Correct `block` display not defined for `details` or `summary` in IE 10/11 * and Firefox. * Correct `block` display not defined for `main` in IE 11. */ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } /** * 1. Correct `inline-block` display not defined in IE 8/9. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } /** * Prevent modern browsers from displaying `audio` without controls. * Remove excess height in iOS 5 devices. */ audio:not([controls]) { display: none; height: 0; } /** * Address `[hidden]` styling not present in IE 8/9/10. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */ [hidden], template { display: none; } /* Links ========================================================================== */ /** * Remove the gray background color from active links in IE 10. */ a { background-color: transparent; } /** * Improve readability when focused and also mouse hovered in all browsers. */ a:active, a:hover { outline: 0; } /* Text-level semantics ========================================================================== */ /** * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { border-bottom: 1px dotted; } /** * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, strong { font-weight: bold; } /** * Address styling not present in Safari and Chrome. */ dfn { font-style: italic; } /** * Address variable `h1` font-size and margin within `section` and `article` * contexts in Firefox 4+, Safari, and Chrome. */ h1 { font-size: 2em; margin: 0.67em 0; } /** * Address styling not present in IE 8/9. */ mark { background: #ff0; color: #000; } /** * Address inconsistent and variable font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } /* Embedded content ========================================================================== */ /** * Remove border when inside `a` element in IE 8/9/10. */ img { border: 0; } /** * Correct overflow not hidden in IE 9/10/11. */ svg:not(:root) { overflow: hidden; } /* Grouping content ========================================================================== */ /** * Address margin not present in IE 8/9 and Safari. */ figure { margin: 1em 40px; } /** * Address differences between Firefox and other browsers. */ hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } /** * Contain overflow in all browsers. */ pre { overflow: auto; } /** * Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } /* Forms ========================================================================== */ /** * Known limitation: by default, Chrome and Safari on OS X allow very limited * styling of `select`, unless a `border` property is set. */ /** * 1. Correct color not being inherited. * Known issue: affects color of disabled elements. * 2. Correct font properties not being inherited. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */ button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ } /** * Address `overflow` set to `hidden` in IE 8/9/10/11. */ button { overflow: visible; } /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select` style inheritance in Firefox. */ button, select { text-transform: none; } /** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * and `video` controls. * 2. Correct inability to style clickable `input` types in iOS. * 3. Improve usability and consistency of cursor style between image-type * `input` and others. */ button, html input[type="button"], /* 1 */ input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ } /** * Re-set default cursor for disabled elements. */ button[disabled], html input[disabled] { cursor: default; } /** * Remove inner padding and border in Firefox 4+. */ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ input { line-height: normal; } /** * It's recommended that you don't attempt to style these elements. * Firefox's implementation doesn't respect box-sizing, padding, or width. * * 1. Address box sizing set to `content-box` in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Fix the cursor style for Chrome's increment/decrement buttons. For certain * `font-size` values of the `input`, it causes the cursor style of the * decrement button to change from `default` to `text`. */ input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome * (include `-moz` to future-proof). */ input[type="search"] { -webkit-appearance: textfield; /* 1 */ -moz-box-sizing: content-box; -webkit-box-sizing: content-box; /* 2 */ box-sizing: content-box; } /** * Remove inner padding and search cancel button in Safari and Chrome on OS X. * Safari (but not Chrome) clips the cancel button when the search input has * padding (and `textfield` appearance). */ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * Define consistent border, margin, and padding. */ fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } /** * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ legend { border: 0; /* 1 */ padding: 0; /* 2 */ } /** * Remove default vertical scrollbar in IE 8/9/10/11. */ textarea { overflow: auto; } /** * Don't inherit the `font-weight` (applied by a rule above). * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */ optgroup { font-weight: bold; } /* Tables ========================================================================== */ /** * Remove most spacing between table cells. */ table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /******************************************************************************* 2.0 - Micro Clearfix Hack *******************************************************************************/ /** * For modern browsers * 1. The space content is one way to avoid an Opera bug when the * contenteditable attribute is included anywhere else in the document. * Otherwise it causes space to appear at the top and bottom of elements * that are clearfixed. * 2. The use of `table` rather than `block` is only necessary if using * `:before` to contain the top-margins of child elements. */ .cf:before, .cf:after { content: " "; /* 1 */ display: table; /* 2 */ } .cf:after { clear: both; } /** * For IE 6/7 only * Include this rule to trigger hasLayout and contain floats. */ .cf { *zoom: 1; } /******************************************************************************* 3.0 - General Layout *******************************************************************************/ body { background: #E6E3D4; font-family: 'Ubuntu', sans-serif; font-size: 14px; } a { color: #0088D0; text-decoration: none; } a:hover { color: #666666; } #container { background: #FFF; border: 1px solid #000; border-radius: 10px 10px; box-shadow: 0 0 10px 0; margin: 25px auto 5px auto; width: 960px; } /******************************************************************************* 4.0 - Header *******************************************************************************/ .site-header { background: url(images/header-image.jpg); border-radius: 10px 10px 0 0; height: 200px; } .header-image { border-radius: 10px 10px 0 0; height: 200px; } .site-branding { color: #FFF; margin: 0 10px; padding: 20px 10px; position: absolute; text-align: center; max-width: 900px; } .site-title, .site-description { font-weight: normal; margin: 0; padding: 0; } .site-title a { color: #FFF; } /******************************************************************************* 5 5.0 - Navigation Menu *******************************************************************************/ .primary-navigation { background: #D5973C; border-bottom: 4px solid #916A31; float: left; display: block; position: relative; width: 100%; } .primary-navigation ul { list-style: none; margin: 0; padding-left: 0; } .primary-navigation li { float: left; position: relative; } .primary-navigation a { color: #FFFFFF; display: block; line-height: 1.3em; padding: 0.5em 1em; text-decoration: none; } .primary-navigation ul ul { background: #916A31; display: none; float: left; position: absolute; left: 0; padding: 0; z-index: 99999; } .primary-navigation ul ul ul { left: 100%; top: 0; } .primary-navigation ul ul a { width: 200px; } .primary-navigation ul ul li { } .primary-navigation li:hover > a { color: #FFFFFF; background: #916A31; } .primary-navigation ul ul :hover > a { } .primary-navigation ul ul a:hover { background: #D5973C; } .primary-navigation ul li:hover > ul { display: block; } .primary-navigation .current_page_item > a, .primary-navigation .current-menu-item > a, .primary-navigation .current_page_item > a:hover, .primary-navigation .current-menu-item > a:hover { background: #c0c0c0; color: #FFF; } .primary-navigation .current_page_ancestor { background: #c0c0c0; color: #FFFFFF; } .primary-navigation ul ul .current_page_parent, .primary-navigation .current_page_parent .current_page_item > a { background: #c0c0c0; color: #FFFFFF; } .menu-social { float: right; list-style: none; text-decoration: none; } .menu-social ul li { display: inline-block; position: relative; } .menu-social li a:before { color: #FFF; content: '\f0c0'; font-family: 'fontawesome'; font-size: 16px; display: inline-block; vertical-align: top; } .menu-social li a[href*="facebook.com"]::before { content: '\f09a'; } .menu-social li a[href*="twitter.com"]::before { content: '\f099'; } .menu-social li a[href*="dribbble.com"]::before { content: '\f17d'; } .menu-social li a[href*="plus.google.com"]::before { content: '\f0d5'; } .menu-social li a[href*="pinterest.com"]::before { content: '\f0d2'; } .menu-social li a[href*="github.com"]::before { content: '\f09b'; } .menu-social li a[href*="tumblr.com"]::before { content: '\f173'; } .menu-social li a[href*="youtube.com"]::before { content: '\f167'; } .menu-social li a[href*="flickr.com"]::before { content: '\f16e'; } .menu-social li a[href*="vimeo.com"]::before { content: '\f194'; } .menu-social li a[href*="instagram.com"]::before { content: '\f16d'; } .menu-social li a[href*="linkedin.com"]::before { content: '\f0e1'; } .menu-social .screen-reader-text { display: none; } input[type = "search"] { box-sizing: border-box; width: 100%; } .search-box-wrapper { display: none; width: 100%; z-index: 2; } .search-box { background: #916A31; } .search-box span.screen-reader-text { display: none; } .search-box .search-field { background: #FFF; float: right; margin: 8px 8px; padding: 5px; width: 250px; } .search-box .search-submit { display: none; } .search-toggle { color: #FFF; cursor: pointer; float: right; padding: 7.5px; text-align: center; width: 20px; } .search-toggle:hover, .search-toggle.active { background: #916A31; } .search-toggle .screen-reader-text { display: none; } /******************************************************************************* * 6.0 - Alignment and Images *******************************************************************************/ img { height: auto; max-width: 100%; } img.alignleft { float: left; margin-bottom: 5px; margin-right: 10px; } img.alignright { float: right; margin-bottom: 5px; margin-left: 10px; } .wp-caption { height: auto; max-width: 100%; } .wp-caption.alignleft { background: #CCC; float: left; margin-right: 10px; padding-left: 10px; padding-top: 10px; } .wp-caption.aligncenter { background: #CCC; padding-left: 10px; padding-top: 10px; } .wp-caption.alignright { background: #CCC; float: right; margin-left: 10px; padding-left: 10px; padding-top: 10px; } .wp-caption.alignnone { background: #CCC; max-width: 96.5%; padding-left: 10px; padding-right: 10px; padding-top: 10px; } .wp-caption.alignnone img { height: auto; max-width: 100%; } p.wp-caption-text { padding-top: 0; padding-bottom: 5px; margin-top: 0; text-align: center; width: 100%; } .sticky { } .screen-reader-text { } .gallery-caption { } /******************************************************************************* * 7.0 - Navigation Menu *******************************************************************************/ .site-content { float: left; margin: 10px 10px 30px 10px; padding-bottom: 10px; width: 650px; } .site-content-full { clear: both; padding: 10px 10px 0 10px; } .site-content-full span.screen-reader-text, .site-content-full input.search-submit { display: none; } .site-content-full input.search-field { padding: 5px; width: 250px; } .entry-title { font-size: 20px; font-weight: normal; margin: 0; padding: 0; } .post-small-thumbnail img { float: left; margin-right: 10px; } .metadta-posted-in { display: block; } .read-more { margin: 0 0 0 5px; } .content-search { border: 1px solid #000; clear: both; padding: 10px 0; text-align: center; } /******************************************************************************* * 7.0 - Sidebar Menu *******************************************************************************/ .site-sidebar { float: right; margin: 10px 10px 0 10px; width: 260px; } .widget { margin: 0 0 30px 0; } .widget ul, .widget ol { list-style-type: none; margin: 0; padding: 0; } .widget li { margin: 10px 0 0 0; } .widget li li { margin-left: 18px; } .widget select { padding: 5px 5px; max-width: 100%; } .widget-title { font-size: 20px; font-weight: normal; margin: 0; padding: 0; } #wp-calendar { background: #ebebeb; border: 1px solid #cccccc; margin: 0; margin-bottom: 20px; text-align: center; width: 100%; } #wp-calendar caption { font-weight: bold; margin: 5px 0; text-align: center; } #wp-calendar #today { background: #cccccc; } #wp-calendar th, td { padding: 6px 0; } .widget_archive li:before, .widget_categories li:before { font-family: 'fontawesome'; margin-right: 10px; } .widget_archive li:before, .widget_categories li:before { content: '\f187' } /******************************************************************************* 8.0 - Pagination *******************************************************************************/ .post-navigation { margin-bottom: 20px; width: 600px; } .paging-navigation ul { margin: 0; text-align: center; } .paging-navigation li { display: inline; } a.page-numbers, span.page-numbers { padding: 0 5px; color: #0195C5; } a:hover.page-numbers { color: #999999; } .paging-navigation .current { font-weight: bold; color: #000; } /******************************************************************************* 9.0 - Comments *******************************************************************************/ .comments-title { border-bottom: 1px solid #CCCCCC; font-size: 20px; margin-bottom: 5px; } .comment-list { margin: 0; padding: 0; } .comment-body { margin-bottom: 20px; padding: 10px; border-bottom: 1px solid #CCCCCC; } .comments-area > ol { list-style-type: none; } .comment-author .avatar { float: left; display: block; margin-right: 10px; } .comment-author .fn { font-size: 16px; margin: 0; padding: 0; } .comment-meta { font-size: 14px; } .comments-area p { margin-top: 20px; } .reply { font-size: 12px; margin-bottom: 20px; } .comment-list ol { margin-top: 20px; margin-left: 20px; } ol.children { list-style-type: none; } .content-meta { margin-left: 70px; } .comment-navigation { border-top: 1px solid #999; border-bottom: 1px solid #999; } .comment-navigation i { padding: 10px; } .comment-previous { float: left; } .comment-next { float: right; } .bypostauthor > .comment-body { background: #F0F0F0; border-bottom: none; padding: 10px; position: relative; } .comment-reply-title { border-top: 1px dotted #CCCCCC; font-size: 20px; margin: 0; margin-top: 10px; padding: 0; padding-top: 10px; } .comment-form label { display: block; } .required { color: #FF0000; font-size: 10px; } .comment-awaiting-moderation { background: #84BD68; font-size: 12px; padding: 3px 4px; } .form-allowed-tags { font-size: 13px; width: 600px; } .form-submit .submit { -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow:inset 0px 1px 0px 0px #ffffff; background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9)); background:-moz-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%); background:-webkit-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%); background:-o-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%); background:-ms-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%); background:linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9',GradientType=0); background-color:#f9f9f9; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; border:1px solid #dcdcdc; display:inline-block; cursor:pointer; color:#666666; font-size:14px; font-weight:bold; padding:6px 24px; text-decoration:none; text-shadow:0px 1px 0px #ffffff; } .form-submit .submit:hover { background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9)); background:-moz-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%); background:-webkit-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%); background:-o-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%); background:-ms-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%); background:linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9',GradientType=0); background-color:#e9e9e9; } #respond textarea#comment{ height: 200px; width: 600px; } .site-footer { margin: 10px auto 20px auto; text-align: center; width: 960px; }