diff --git a/sass/_normalize.scss b/sass/_normalize.scss new file mode 100644 index 00000000..1822e8e6 --- /dev/null +++ b/sass/_normalize.scss @@ -0,0 +1,215 @@ +html { + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} + +body { + margin: 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; +} + +a:active, +a:hover { + outline: 0; +} + +abbr[title] { + border-bottom: 1px dotted; +} + +b, +strong { + font-weight: bold; +} + +dfn { + font-style: italic; +} + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +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 { + margin: 1em 40px; +} + +hr { + box-sizing: content-box; + height: 0; +} + +pre { + overflow: auto; +} + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +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-appearance: textfield; + box-sizing: content-box; +} + +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; +} diff --git a/sass/_reset.scss b/sass/_reset.scss deleted file mode 100644 index b1217b8d..00000000 --- a/sass/_reset.scss +++ /dev/null @@ -1,73 +0,0 @@ -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/ */ - box-sizing: border-box; /* Apply a natural box layout model to the document; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ -} -*, -*: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: $color__background-body; /* Fallback for when there is no custom background color defined. */ -} -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; -} diff --git a/sass/elements/_elements.scss b/sass/elements/_elements.scss index 992181fa..51b7d596 100644 --- a/sass/elements/_elements.scss +++ b/sass/elements/_elements.scss @@ -1,3 +1,22 @@ +*, +*: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: $color__background-body; /* Fallback for when there is no custom background color defined. */ +} + +blockquote:before, blockquote:after, +q:before, q:after { + content: ""; +} + +blockquote, q { + quotes: "" ""; +} + hr { background-color: $color__background-hr; border: 0; @@ -12,8 +31,4 @@ img { max-width: 100%; /* Adhere to container width. */ } -figure { - margin: 0; -} - @import "tables"; \ No newline at end of file diff --git a/sass/elements/_tables.scss b/sass/elements/_tables.scss index 98a77468..14af567a 100644 --- a/sass/elements/_tables.scss +++ b/sass/elements/_tables.scss @@ -1,8 +1,4 @@ table { margin: 0 0 1.5em; width: 100%; -} - -th { - font-weight: bold; } \ No newline at end of file diff --git a/sass/forms/_buttons.scss b/sass/forms/_buttons.scss index b7be6a2c..aea53946 100644 --- a/sass/forms/_buttons.scss +++ b/sass/forms/_buttons.scss @@ -8,9 +8,7 @@ input[type="submit"] { background: $color__background-button; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, .8); - 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 */ - @include font-size(1.2); + @include font-size(0.75); line-height: 1; padding: .6em 1em .4em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); diff --git a/sass/forms/_fields.scss b/sass/forms/_fields.scss index ffe86d19..62e3015e 100644 --- a/sass/forms/_fields.scss +++ b/sass/forms/_fields.scss @@ -1,23 +1,3 @@ -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 */ - 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"], @@ -47,8 +27,6 @@ input[type="search"] { } 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: 100%; } \ No newline at end of file diff --git a/sass/forms/_forms.scss b/sass/forms/_forms.scss index c28b0604..8008a558 100644 --- a/sass/forms/_forms.scss +++ b/sass/forms/_forms.scss @@ -1,12 +1,3 @@ -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 */ -} - @import "buttons"; @import "fields"; \ No newline at end of file diff --git a/sass/media/_media.scss b/sass/media/_media.scss index ee112027..7b48472f 100644 --- a/sass/media/_media.scss +++ b/sass/media/_media.scss @@ -1,13 +1,13 @@ -.page-content img.wp-smiley, -.entry-content img.wp-smiley, -.comment-content img.wp-smiley { +.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 */ +/* Make sure embeds and iframes fit their containers. */ embed, iframe, object { diff --git a/sass/mixins/_mixins-master.scss b/sass/mixins/_mixins-master.scss index 60fe1853..4f5d26a0 100644 --- a/sass/mixins/_mixins-master.scss +++ b/sass/mixins/_mixins-master.scss @@ -1,6 +1,6 @@ // Rem output with px fallback -@mixin font-size($sizeValue: 1.6) { - font-size: ($sizeValue * 10) + px; +@mixin font-size($sizeValue: 1) { + font-size: ($sizeValue * 16) + px; font-size: $sizeValue + rem; } diff --git a/sass/modules/_accessibility.scss b/sass/modules/_accessibility.scss index 35b095f5..214a40d5 100644 --- a/sass/modules/_accessibility.scss +++ b/sass/modules/_accessibility.scss @@ -1,4 +1,4 @@ -/* Text meant only for screen readers */ +/* Text meant only for screen readers. */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; @@ -15,7 +15,7 @@ clip: auto !important; color: $color__text-screen; display: block; - @include font-size(1.4); + @include font-size(0.875); font-weight: bold; height: auto; left: 5px; @@ -24,6 +24,6 @@ text-decoration: none; top: 5px; width: auto; - z-index: 100000; /* Above WP toolbar */ + z-index: 100000; /* Above WP toolbar. */ } } \ No newline at end of file diff --git a/sass/modules/_infinite-scroll.scss b/sass/modules/_infinite-scroll.scss index bad2243b..caa15fdd 100644 --- a/sass/modules/_infinite-scroll.scss +++ b/sass/modules/_infinite-scroll.scss @@ -1,10 +1,10 @@ /* 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) */ +.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 */ +/* 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; } \ No newline at end of file diff --git a/sass/navigation/_links.scss b/sass/navigation/_links.scss index 61b29511..eade43f6 100644 --- a/sass/navigation/_links.scss +++ b/sass/navigation/_links.scss @@ -9,4 +9,11 @@ a { &:active { color: $color__link-hover; } + &:focus { + outline: thin dotted; + } + &:hover, + &:active { + outline: 0; + } } \ No newline at end of file diff --git a/sass/navigation/_menus.scss b/sass/navigation/_menus.scss index cc61da95..155bedee 100644 --- a/sass/navigation/_menus.scss +++ b/sass/navigation/_menus.scss @@ -61,7 +61,7 @@ } } -/* Small menu */ +/* Small menu. */ .menu-toggle { display: none; } diff --git a/sass/site/secondary/_widgets.scss b/sass/site/secondary/_widgets.scss index 4166ad05..e464a286 100644 --- a/sass/site/secondary/_widgets.scss +++ b/sass/site/secondary/_widgets.scss @@ -1,13 +1,13 @@ .widget { margin: 0 0 1.5em; - /* Make sure select elements fit in widgets */ + /* Make sure select elements fit in widgets. */ select { max-width: 100%; } } -/* Search widget */ +/* Search widget. */ .widget_search .search-submit { display: none; } \ No newline at end of file diff --git a/sass/style.scss b/sass/style.scss index f5ce83d7..9f301dbd 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -15,16 +15,14 @@ Use it to make something cool, have fun, and share what you've learned with othe _s is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc. -Resetting and rebuilding styles have been helped along thanks to the fine work of -Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html -along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ -and Blueprint http://www.blueprintcss.org/ +Normalizing styles have been helped along thanks to the fine work of +Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- -1.0 Reset +1.0 Normalize 2.0 Typography 3.0 Elements 4.0 Forms @@ -48,9 +46,9 @@ and Blueprint http://www.blueprintcss.org/ @import "mixins/mixins-master"; /*-------------------------------------------------------------- -1.0 Reset +1.0 Normalize --------------------------------------------------------------*/ -@import "reset"; +@import "normalize"; /*-------------------------------------------------------------- 2.0 Typography diff --git a/sass/typography/_copy.scss b/sass/typography/_copy.scss index 115614ba..a0120382 100644 --- a/sass/typography/_copy.scss +++ b/sass/typography/_copy.scss @@ -21,7 +21,7 @@ address { pre { background: $color__background-pre; font-family: $font__pre; - @include font-size(1.5); + @include font-size(0.9375); line-height: $font__line-height-pre; margin-bottom: 1.6em; max-width: 100%; @@ -30,8 +30,8 @@ pre { } code, kbd, tt, var { - @include font-size(1.5); font-family: $font__code; + @include font-size(0.9375); } abbr, acronym { @@ -44,23 +44,6 @@ mark, ins { 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%; } diff --git a/sass/typography/_typography.scss b/sass/typography/_typography.scss index 01a1bad1..c6d9cea3 100644 --- a/sass/typography/_typography.scss +++ b/sass/typography/_typography.scss @@ -5,7 +5,7 @@ select, textarea { color: $color__text-main; font-family: $font__main; - @include font-size(1.6); + @include font-size(1); line-height: $font__line-height-body; } diff --git a/style.css b/style.css index 1a066876..1f447eb1 100644 --- a/style.css +++ b/style.css @@ -15,16 +15,14 @@ Use it to make something cool, have fun, and share what you've learned with othe _s is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc. -Resetting and rebuilding styles have been helped along thanks to the fine work of -Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html -along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ -and Blueprint http://www.blueprintcss.org/ +Normalizing styles have been helped along thanks to the fine work of +Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ */ /*-------------------------------------------------------------- >>> TABLE OF CONTENTS: ---------------------------------------------------------------- -1.0 Reset +1.0 Normalize 2.0 Typography 3.0 Elements 4.0 Forms @@ -46,42 +44,16 @@ and Blueprint http://www.blueprintcss.org/ --------------------------------------------------------------*/ /*-------------------------------------------------------------- -1.0 Reset +1.0 Normalize --------------------------------------------------------------*/ -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/ */ - box-sizing: border-box; /* Apply a natural box layout model to the document; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ -} -*, -*: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; + font-family: sans-serif; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; } body { - background: #fff; /* Fallback for when there is no custom background color defined. */ + margin: 0; } article, @@ -92,52 +64,204 @@ figure, footer, header, main, +menu, nav, -section { +section, +summary { display: block; } -ol, -ul { - list-style: none; +audio, +canvas, +progress, +video { + display: inline-block; + vertical-align: baseline; } -table { /* tables still need 'cellspacing="0"' in the markup */ - border-collapse: separate; - border-spacing: 0; +audio:not([controls]) { + display: none; + height: 0; } -caption, -th, -td { - font-weight: normal; - text-align: left; -} -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; +[hidden], +template { + display: none; } -blockquote, -q { - quotes: "" ""; +a { + background-color: transparent; } -a:focus { - outline: thin dotted; -} - -a:hover, -a:active { +a:active, +a:hover { outline: 0; } -a img { +abbr[title] { + border-bottom: 1px dotted; +} + +b, +strong { + font-weight: bold; +} + +dfn { + font-style: italic; +} + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +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 { + margin: 1em 40px; +} + +hr { + box-sizing: content-box; + height: 0; +} + +pre { + overflow: auto; +} + +code, +kbd, +pre, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +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-appearance: textfield; + box-sizing: content-box; +} + +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; +} + /*-------------------------------------------------------------- 2.0 Typography --------------------------------------------------------------*/ @@ -147,9 +271,8 @@ input, select, textarea { color: #404040; - font-family: sans-serif; font-size: 16px; - font-size: 1.6rem; + font-size: 1rem; line-height: 1.5; } @@ -190,7 +313,7 @@ pre { background: #eee; font-family: "Courier 10 Pitch", Courier, monospace; font-size: 15px; - font-size: 1.5rem; + font-size: 0.9375rem; line-height: 1.6; margin-bottom: 1.6em; max-width: 100%; @@ -204,7 +327,7 @@ tt, var { font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; font-size: 15px; - font-size: 1.5rem; + font-size: 0.9375rem; } abbr, @@ -219,23 +342,6 @@ ins { 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%; } @@ -247,6 +353,28 @@ big { /*-------------------------------------------------------------- 3.0 Elements --------------------------------------------------------------*/ +*, +*: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: #fff; /* Fallback for when there is no custom background color defined. */ +} + +blockquote:before, +blockquote:after, +q:before, +q:after { + content: ""; +} + +blockquote, +q { + quotes: "" ""; +} + hr { background-color: #ccc; border: 0; @@ -286,31 +414,14 @@ img { max-width: 100%; /* Adhere to container width. */ } -figure { - margin: 0; -} - table { margin: 0 0 1.5em; width: 100%; } -th { - font-weight: bold; -} - /*-------------------------------------------------------------- 4.0 Forms --------------------------------------------------------------*/ -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 */ -} - button, input[type="button"], input[type="reset"], @@ -321,10 +432,8 @@ input[type="submit"] { background: #e6e6e6; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, .8); - 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; + font-size: 0.75rem; line-height: 1; padding: .6em 1em .4em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); @@ -350,20 +459,6 @@ input[type="submit"]:active { 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 */ - box-sizing: content-box; -} - -input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ - -webkit-appearance: none; -} - input[type="text"], input[type="email"], input[type="url"], @@ -393,9 +488,7 @@ input[type="search"] { } 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: 100%; } @@ -419,6 +512,15 @@ a:active { color: midnightblue; } +a:focus { + outline: thin dotted; +} + +a:hover, +a:active { + outline: 0; +} + /*-------------------------------------------------------------- 5.2 Menus --------------------------------------------------------------*/ @@ -489,7 +591,7 @@ a:active { .main-navigation .current_page_ancestor > a { } -/* Small menu */ +/* Small menu. */ .menu-toggle { display: none; } @@ -530,7 +632,7 @@ a:active { /*-------------------------------------------------------------- 6.0 Accessibility --------------------------------------------------------------*/ -/* Text meant only for screen readers */ +/* Text meant only for screen readers. */ .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; @@ -549,7 +651,7 @@ a:active { color: #21759b; display: block; font-size: 14px; - font-size: 1.4rem; + font-size: 0.875rem; font-weight: bold; height: auto; left: 5px; @@ -558,7 +660,7 @@ a:active { text-decoration: none; top: 5px; width: auto; - z-index: 100000; /* Above WP toolbar */ + z-index: 100000; /* Above WP toolbar. */ } /*-------------------------------------------------------------- @@ -617,12 +719,12 @@ a:active { margin: 0 0 1.5em; } -/* Make sure select elements fit in widgets */ +/* Make sure select elements fit in widgets. */ .widget select { max-width: 100%; } -/* Search widget */ +/* Search widget. */ .widget_search .search-submit { display: none; } @@ -685,12 +787,12 @@ a:active { 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) */ +.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 */ +/* 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; } @@ -698,16 +800,16 @@ a:active { /*-------------------------------------------------------------- 12.0 Media --------------------------------------------------------------*/ -.page-content img.wp-smiley, -.entry-content img.wp-smiley, -.comment-content img.wp-smiley { +.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 */ +/* Make sure embeds and iframes fit their containers. */ embed, iframe, object {