/* Theme Name: Bluesand Theme URI: http://www.nnekaudoh.com/bluesand/ Author: graysea Author URI: http://www.nnekaudoh.com/ Description: Bluesand is a responsive blog theme that features the ability to change background & link colors, upload a logo, disable sidebar or change sidebar location, and add CSS. Also, display a featured post/image at the top of home, category, and tag pages by adding a Custom Field. Version: 1.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blue, one-column, two-columns, right-sidebar, left-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready Text Domain: bluesand */ /** * Table of Contents: * * 1.0 - Reset * 2.0 - General * 3.0 - Header * 4.0 - Pages & Posts * 5.0 - Widgets General * 6.0 - Sidebar * 7.0 - Footer * 8.0 - Forms & Tables * 9.0 - Archives & Search * 10.0 - Comment Area * 11.0 - Images, Galleries, & Screen Reader * 12.0 - Media Queries ========================================================== */ /** * 1.0 CSS 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 General ======================================================== */ html { max-width: 1200px; margin: 0 auto; } body { background: rgb(245, 245, 220); background: rgba(245, 245, 220, 0.5); font-family: Montserrat, "Bookman Old Style", sans serif; line-height: 1.5; margin-top: 0; padding: 0; } a:link, a:visited { color: #2c6287; } a:active { color: red; } a:hover { color: #75544c !important; } img { display: block; height: auto; max-width: 100%; padding: 0; } .featured-img { margin-bottom: 10px; } .container { background: white; border: 7px double beige; margin: 0 auto; width: 90%; } .inner-box { margin: 0 auto -12.291px; width: 90%; } .content-container { margin-top: 20px; } .sticky .genericon-pinned { position: relative; top: 4px; } iframe, embed { max-width: 100%; } /** * 3.0 Header * * Header styles, including featured post. ======================================================== */ .site-logo img { margin: 15px auto; } .main-header h1, .main-header p { text-align: center; } .main-header h1 { margin: 0; padding-top: 10px; text-transform: uppercase; } .main-header .site-title { text-decoration: none; } .site-desc { margin-bottom: 0; margin-top: 0; padding-bottom: 16px; } .menu-icon { margin-bottom: 15px; text-align: center; } .menu-icon .genericon-menu { cursor: pointer; color: rgb(0, 0, 0); color: rgba(0, 0, 0, 0.9); font-size: 2.2em; } .header-menu { border: 2px solid beige; list-style: none; margin-bottom: 25px; padding: 0; text-transform: uppercase; width: 100%; } .header-menu a { letter-spacing: 0.02em; font-weight: bold; } .header-menu .sub-menu { list-style: none; margin: 0; padding: 0; } .header-menu li { margin: 15px; } .header-menu > li:first-child { padding-top: 0px; } .header-menu .header-search-form { margin-top: -5px; padding-bottom: 15px; } /*Featured Post*/ .featured-post { margin: 0; position: relative; } .featured-box { margin-bottom: 10px; position: relative; width: 100%; } .featured-box a:link, .featured-box a:visited { color: black; } .featured-box span { position: absolute; top: 5px; right: 0; background: white; color: #2c6287; font-size: 0.6em; font-weight: bold; padding: 1px; text-transform: uppercase; } .featured-post figcaption { position: absolute; top: 40%; left: 0; background: white; opacity: 0.7; text-align: center; text-decoration: none; white-space: normal; width: 100%; } .featured-post .title { font-size: 0.8em; margin-top: 0; margin-bottom: 0; } .featured-post p { display: none; margin-top: 0; margin-bottom: 0; } .featured-post .title, .featured-post p { margin: 0 auto; width: 98%; } /** * 4.0 Pages & Posts * * Pages: content-none.php, content-page.php, 404.php, full-width.php ==================================================================*/ /*PAGES*/ .page-title { font-weight: normal; margin: 0; } .page-template-full-width .page-title { text-align: center; } .page-links { font-weight: bold; } .page-links a { padding: 0 1px; text-decoration: none; } .page-links .nonactive { padding: 0 1px; } .page-template-full-width .content-container { width: 100%; } /*POSTS*/ .post { border-bottom: 2px solid beige; margin-bottom: 25px; padding-bottom: 25px; } .post-title { font-weight: normal; line-height: 1.25; margin: 0; padding-top: 0; word-wrap: break-word; } .post-title a { text-decoration: none; } .post-title a:link, .post-title a:visited { color: black; } .post-title a:hover { color: #2c6287; } .single .post-title { font-weight: normal; } .post-meta { color: #666 !important; /*don't change if user changes Link Color in Customizer*/ text-transform: uppercase; } .post-meta a { color: #666 !important; /*don't change if user changes Link Color in Customizer*/ text-decoration: none; } .post-pages { margin-bottom: 20px; text-transform: uppercase; } .post-pages { font-weight: bold; } .post-pages a { padding: 0 1px; text-decoration: none; } .post-pages .nonactive { padding: 0 1px; } .posts-links { margin-top: -25px; } .older-posts-link a, .newer-posts-link a { font-weight: bold; letter-spacing: 0.01em; text-decoration: none; text-transform: uppercase; } .older-posts-link { float: left; margin-bottom: 0; } .newer-posts-link { float: right; } .category-links, .tag-links { clear: both; margin: 0; } .category-links a, .tag-links a { font-weight: bold; letter-spacing: 0.01em; text-decoration: none; text-transform: uppercase; } .tag-links { margin-top: 10px; } .post-nav { margin-top: -25px; } /*clearfix*/ .post-nav:before, .post-nav:after, .posts-links:before, .posts-links:after { content: " "; display: table; } .post-nav:after, .posts-links:after { clear: both; } .prev-post-link { float: left; } .next-post-link { float: right; text-align: right; } .prev-post-link, .next-post-link { margin-top: 0; margin-bottom: 0; text-transform: uppercase; width: 50%; } .prev-post-link a, .next-post-link a { font-weight: bold; text-decoration: none; } .single-attachment .post-nav { margin-top: 25px; } .page-content .search-form { margin-bottom: 100px; } /** * 5.0 Widgets General * * For sidebar and footer widgets ========================================================= */ .widgettitle { font-size: 1em; margin-top: 0; margin-bottom: 0; text-transform: uppercase; text-decoration: underline; } .sidebar-widgets li:first-child .widgettitle { margin-top: -1px; } .widget a { text-decoration: none; } .widget a:hover { text-decoration: underline; } .widget li { padding-top: 3px; } .textwidget { padding-top: 3px; } .textwidget p:first-child { margin-top: 0; } .textwidget ul { list-style: inside; } .textwidget > ul { padding-left: 0px; } .textwidget > ol { padding-left: 18px; } /*Calendar*/ #wp-calendar caption { padding-top: 3px; text-align: left; } #wp-calendar th, #wp-calendar td { padding: 5px; } /*RSS*/ .widget_rss li { margin-bottom: 10px; } .rss-date { display: block; } /** * 6.0 Sidebar ======================================================== */ .sidebar-container { border-top: 2px solid beige; margin-top: 0; padding-top: 8px; text-align: left; } .sidebar-container ul { list-style: none; } .sidebar-widgets { padding-left: 0; } .sidebar-widgets .widget { margin-bottom: 20px; } .sidebar-widgets ul { margin: 0; padding: 0; } .sidebar-widgets .children, .sidebar-widgets .sub-menu { padding-left: 20px; } /** * 7.0 Footer ======================================================== */ .main-footer ul { list-style: none; margin: 0; } .footer-widgets { border-top: 2px solid beige; padding-top: 20px; padding-left: 0; } .footer-widgets .widget { margin-bottom: 15px; } .footer-widgets .widget > ul { padding-left: 0; } .footer-widgets .children, .footer-widgets .sub-menu { padding-left: 20px; } .footer-widgets .menu { padding-left: 0; } .credits { border-top: 1px solid beige; clear: both; font-size: 0.87em; margin-bottom: 15px; padding-top: 5px; text-transform: uppercase; } .credits a { text-decoration: none; } .credits a span { color: black; } .credits span { font-size: 0.6em; } /** * 8.0 Forms & Tables ======================================================== */ input[type="submit"], input[type="reset"] { background: white; border: 2px solid beige; box-shadow: 1px 1px 3px #888; text-transform: uppercase; } input, textarea, fieldset, .search-field { max-width: 100%; } legend { font-weight: bold; padding: 5px; text-transform: uppercase; } table { border: 1px solid beige; } td, th { padding: 10px; } tr:nth-child(even) { background: beige; } /*SEARCH*/ .search-submit { margin-top: 3px; padding: 0 2px; } .sidebar-widgets .search-field { margin-top: 5px; } /** * 9.0 Archives & Search * * For date, category, and tag archives, plus search page ======================================================= */ .archive-header, .search-title { margin-bottom: 8px; text-align: left; } .archive-title, .search-title { font-size: 1.1em; font-weight: normal; text-transform: uppercase; } .search-title { margin-top: 2px; } .archive-title, .archive-header p { margin: 0; } .search-results .type-page { border-bottom: 2px solid beige; margin-bottom: 25px; padding-bottom: 20px; } .home .featured-img, .blog .featured-img, .archive .featured-img { margin-top: 35px; } .archive .has-post-thumbnail:nth-child(2) .featured-img, .home .has-post-thumbnail:first-child .featured-img, .blog .has-post-thumbnail:first-child .featured-img { margin-top: 11px; } /** * 10.0 Comment Area ======================================================= */ .comments-title { border-bottom: 2px solid beige; display: inline-block; font-weight: normal; } .comments-container { list-style: none; margin: 0; padding: 0; } .comments-container a { text-decoration: none; } .comments-container .comment-body { margin-bottom: 20px; } .vcard .avatar { float: left; } .comment-metadata a { text-decoration: none; } .vcard span { display: none; } .vcard b, .comment-metadata a { margin-left: 15px; } .comment-metadata { margin-top: 10px; } .comment-content, .reply { margin-left: 67px; } .bypostauthor { } .comments-nav { border-top: 2px solid beige; } .comments-nav a { font-weight: bold; text-decoration: none; text-transform: uppercase; } .comments-container .children { list-style-type: none; } .comment-metadata, .fn { margin-left: 50px; } .comment-form label { display: block; } .comment-form textarea { padding-right: 0; min-width: 90%; } .form-submit .submit { width: 10px; } .form-allowed-tags { max-width: 90%; } .comment-form input[type="submit"] { font-weight: bold; height: 40px; margin-bottom: 15px; padding-left: 0; padding-right: 0; text-transform: uppercase; width: 183px; } /** * 11.0 Images, Galleries, & Screen Reader ======================================================= */ .gallery-item { box-sizing: border-box; padding-right: 10px; } .gallery-icon img { margin: 0 auto; } .gallery-caption { font-size: 0.95em; } .wp-caption { margin: 0; max-width: 100%; } .wp-caption-text { text-align: center; } .aligncenter, wp-caption.aligncenter { margin: 8px auto; } .alignleft, .wp-caption.alignleft { float: left; margin: 8px 20px 20px 0; } .alignright, .wp-caption.alignright { float: right; margin: 8px 0 20px 20px; } /* Text meant only for screen readers. */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; } .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-size: 0.875rem; 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. */ } /** * 12.0 Media Queries ======================================================= */ @media (min-width: 318px) { .featured-post .title { font-size: 1.4em; } .featured-box span { font-size: 1em; padding: 5px; } } @media (min-width: 445px) { /*COMMENTS*/ .comments-nav-next { float: right; } .comment-respond { clear: both; } .comments-nav br { display: none; } } @media (min-width: 545px) { .featured-post figcaption { top: auto; bottom: 0; } .featured-post p { display: block; } .featured-post .title { font-size: 1.5em; } .credits .bull-two { display: none; } .credits .theme { float: right; } } @media (min-width: 781px) { /*HEADER*/ .menu-icon { display: none; } .main-header nav { display: block !important; } .header-menu { border: 0; border-top: 2px solid beige; border-bottom: 2px solid beige; margin-bottom: 0; margin-top: 0; text-align: center; } .header-menu a { border-bottom: 0; letter-spacing: 0.02em; text-decoration: none; } .header-menu > li:first-child { padding-top: 0; } .header-menu li { margin: 0; } .header-menu > li { display: inline-block; position: relative; margin: 10px; } .header-menu .sub-menu { position: absolute; top: 100%; left: -10px; background: white; border: 1px solid beige; border-top: 0; display: none; text-align: left; width: 191px; z-index: 10; } .header-menu .sub-menu li { padding: 0 0 10px 10px; } .header-menu .sub-menu li:first-child { margin-top: 10px; } .header-menu .sub-menu > li { position: relative; } .header-menu .sub-menu ul { left: 100%; top: -10px; } .header-menu li:hover > .sub-menu { display: block; } .header-menu .sub-menu li:hover > a { text-decoration: underline; } .header-menu .header-search-form { display: none; } /*CONTENT*/ .post:first-child { margin-top: -5.4px; } .single-post .featured-img { margin-top: 11px; } .page .featured-img, .home.page-template-default .has-post-thumbnail .featured-img { margin-top: 5px; } .page .page-title { margin-top: -9px; } .page-template-full-width .featured-img, .page-template-full-width .content-container, .home.page-template-full-width .has-post-thumbnail .featured-img { margin-top: 0; } .page-template-full-width .page-title { margin-top: 12px; } .content-container, .inner-box, .sidebar-container, .container { box-sizing: border-box; } .content-container { float: left; margin-top: 15px; width: 70%; } .single-attachment .content-container { margin-top: 15px; } .older-posts-link { margin-bottom: 20px; } /*SIDEBAR*/ .sidebar-container { border-top: 0; margin-top: 16px; padding-top: 0; float: left; width: 30%; } .single-attachment .sidebar-container { margin-top: 20px; } .sidebar-widgets { padding-left: 40px; } .sidebar-widgets { margin-top: 0; } .error404 .sidebar-container, .search-no-results .sidebar-container { margin-top: 22px; } /*FOOTER*/ .main-footer { clear: both; } .footer-widgets > li { display:inline-block; margin-right: 16px; vertical-align: top; width: 30%; } /*CALENDAR*/ #wp-calendar th, #wp-calendar td { padding: 2.5px; } } @media (min-width: 900px) { #wp-calendar th, #wp-calendar td { padding: 5px; } }