/*-------------------------------------------------------------- # Normalize --------------------------------------------------------------*/ html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { margin: 0; padding: 0; } article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { @include em("margin", 15, 20); } hr { box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; @include em("font-size", 16); } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /*-------------------------------------------------------------- # Typography --------------------------------------------------------------*/ body, button, input, select, textarea { font-family: $body-font; font-size: 18px; @include em('font-size', $default-font-size); line-height: 1.8; } h1, h2, h3, h4, h5, h6 { font-family: $heading-font; font-weight: 400; line-height: 1.2; } h1 { @include em("font-size", 40); @include em("margin", 20, 0); } h2 { @include em("font-size", 24); @include em("margin", 15, 0); } h3 { @include em("font-size", 20); @include em("margin", 15, 0); } h4 { @include em("font-size", 18); @include em("margin", 15, 0); } h5 { @include em("font-size", 16); @include em("margin", 10, 0); } h6 { @include em("font-size", 14); @include em("margin", 10, 0); } p { @include em("margin", 0, 0, 20, 0); } dfn, cite, em, i { font-style: italic; } blockquote { @include em("margin", 0, 25); } address { @include em("margin", 0, 0, 25, 0); } pre { background: #eee; font-family: "Courier 10 Pitch", Courier, monospace; @include em("font-size", 14); max-width: 100%; overflow: auto; @include em("margin", 0, 0, 25, 0); @include em("padding", 20); } code, kbd, tt, var { font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; @include em("font-size", 16); } abbr, acronym { border-bottom: 1px dotted #666; cursor: help; } mark, ins { background: none; text-decoration: none; } big { font-size: 125%; } /*-------------------------------------------------------------- # Elements --------------------------------------------------------------*/ html { box-sizing: border-box; } *, *:before, *:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */ box-sizing: inherit; } body { background: $body-bg-color; } blockquote:before, blockquote:after, q:before, q:after { content: ""; } blockquote, q { quotes: "" ""; } hr { background-color: #ccc; border: 0; height: 1px; @include em("margin-bottom", 25); } ul, ol { @include em("margin", 0, 0, 20, 30); } ul { list-style: disc; } ol { list-style: decimal; } li > ul, li > ol { margin-bottom: 0; @include em("margin-left", 25); } dt { font-weight: bold; } dd { @include em("margin",0, 25, 25px); } img { height: auto; /* Make sure images are scaled correctly. */ max-width: 100%; /* Adhere to container width. */ } figure { margin: 1em 0; /* Extra wide images within figure tags don't overflow the content area. */ } table { @include em("margin",0, 0, 25px); width: 100%; } /*-------------------------------------------------------------- # Forms --------------------------------------------------------------*/ button, input[type="button"], input[type="reset"], input[type="submit"] { @include default-button(); } input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"] { @include default-input() } textarea { @include default-textarea(); } select { border: 1px solid #eeeeee; } input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="range"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="week"]:focus, input[type="time"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="color"]:focus, textarea:focus { color: $default-color; } textarea { width: 100%; } /*-------------------------------------------------------------- ## Links --------------------------------------------------------------*/ a { color: $link-color; text-decoration: none; &:focus, &:hover { outline: none; text-decoration: none; } } /*-------------------------------------------------------------- # Accessibility --------------------------------------------------------------*/ /* Text meant only for screen readers. */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */ } .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. */ } /* Do not show the outline on the skip link target. */ #content[tabindex="-1"]:focus { outline: 0; } /*-------------------------------------------------------------- # Clearings --------------------------------------------------------------*/ .clearfix { @include clearfix(); } /*-------------------------------------------------------------- # Infinite scroll --------------------------------------------------------------*/ /* Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .posts-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; } /*-------------------------------------------------------------- # Media --------------------------------------------------------------*/ .page-content .wp-smiley, .entry-content .wp-smiley, .comment-content .wp-smiley { border: none; margin-bottom: 0; margin-top: 0; padding: 0; } /* Make sure embeds and iframes fit their containers. */ embed, iframe, object { max-width: 100%; } /*-------------------------------------------------------------- # Alignment --------------------------------------------------------------*/ .alignnone { @include em("margin", 5, 20, 20, 0); } .aligncenter, div.aligncenter { display: block; @include em("margin", 5, auto); } .alignright { float:right; @include em("margin", 5, 0, 20, 20); } .alignleft { float: left; @include em("margin", 5, 20, 20, 0); } a img.alignright { float: right; @include em("margin", 5, 0, 20, 20); } a img.alignnone { @include em("margin", 5, 20, 20, 0); } a img.alignleft { float: left; @include em("margin", 5, 20, 20, 0); } a img.aligncenter { display: block; margin-left: auto; margin-right: auto; } /*-------------------------------------------------------------- # Captions --------------------------------------------------------------*/ .wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; /* Image does not overflow the content area */ padding: 5px 3px 10px; text-align: center; } .wp-caption.alignnone { @include em("margin", 5, 20, 20, 0); } .wp-caption.alignleft { @include em("margin", 5, 20, 20, 0); } .wp-caption.alignright { @include em("margin", 5, 0, 20, 20); } .wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; } .wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; } .wp-caption-text { text-align: center; } .wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; } /*-------------------------------------------------------------- ## Galleries --------------------------------------------------------------*/ .gallery { @include em("margin-bottom", 24); } .gallery-item { display: inline-block; text-align: center; vertical-align: top; width: 100%; } .gallery-columns-2 .gallery-item { max-width: 50%; } .gallery-columns-3 .gallery-item { max-width: 33.33%; } .gallery-columns-4 .gallery-item { max-width: 25%; } .gallery-columns-5 .gallery-item { max-width: 20%; } .gallery-columns-6 .gallery-item { max-width: 16.66%; } .gallery-columns-7 .gallery-item { max-width: 14.28%; } .gallery-columns-8 .gallery-item { max-width: 12.5%; } .gallery-columns-9 .gallery-item { max-width: 11.11%; } .gallery-caption { display: block; }