diff --git a/404.php b/404.php index afb2153..89b3aeb 100644 --- a/404.php +++ b/404.php @@ -21,7 +21,12 @@ - + + ' . sprintf( __( 'Try looking in the monthly archives.', 'decode' ) ) . '

'; + the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$archive_content" ); + ?> +

@@ -39,13 +44,6 @@
- ' . sprintf( __( 'Try looking in the monthly archives.', 'decode' ) ) . '

'; - the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$archive_content" ); - ?> - - - diff --git a/content.php b/content.php index 88f1c74..c565579 100644 --- a/content.php +++ b/content.php @@ -89,6 +89,11 @@

+ +
+

+
+
@@ -96,6 +101,9 @@
' ); ?> + +

+ diff --git a/css/editor-style.css b/css/editor-style.css new file mode 100644 index 0000000..c78dc0a --- /dev/null +++ b/css/editor-style.css @@ -0,0 +1,52 @@ +body#tinymce.wp-editor { + font-family: Arial, Helvetica, sans-serif; + margin: 2.5%; + background: #FFFFFF; + color: #000000; +} + +body#tinymce.wp-editor a { + -webkit-transition: color 0.25s ease-out; + transition: color 0.25s ease-out; + text-decoration: underline; + color: #009BCD; +} + +body#tinymce.wp-editor a:hover { + color: #007EA6; +} + +h1 { + font-size: 2em; +} + +h2 { + font-size: 1.75em; +} + +h3 { + font-size: 1.5em; +} + +h4 { + font-size: 1.375em; +} + +h5 { + font-size: 1.25em; +} + +h6 { + font-size: 1.125em; +} + +img { + margin: 2.5% auto; +} + +blockquote { + margin: 1% 0; + padding: 0 0 0 2.55%; + border-left: 1px solid #009BCD; + font-style: italic; +} \ No newline at end of file diff --git a/css/editor-style.min.css b/css/editor-style.min.css new file mode 100644 index 0000000..903c7da --- /dev/null +++ b/css/editor-style.min.css @@ -0,0 +1 @@ +body#tinymce.wp-editor{font-family:Arial,Helvetica,sans-serif;margin:2.5%;background:#FFF;color:#000}body#tinymce.wp-editor a{-webkit-transition:color .25s ease-out;transition:color .25s ease-out;text-decoration:underline;color:#009BCD}body#tinymce.wp-editor a:hover{color:#007EA6}h1{font-size:2em}h2{font-size:1.75em}h3{font-size:1.5em}h4{font-size:1.375em}h5{font-size:1.25em}h6{font-size:1.125em}img{margin:2.5% auto}blockquote{margin:1% 0;padding:0 0 0 2.55%;border-left:1px solid #009BCD;font-style:italic} \ No newline at end of file diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..0242df2 --- /dev/null +++ b/css/style.css @@ -0,0 +1,2027 @@ +/* +Theme Name: Decode +Theme URI: http://ScottHSmith.com/projects/decode/ +Author: Scott Smith +Author URI: http://ScottHSmith.com/ +Description: A minimal, modern theme, designed to be mobile first and fully responsive, Decode features the ability to change all the colors in the theme and an elegant sidebar conveniently accessed by tapping on the menu icon. The sidebar can fit all of your widgets and its position can be customized. You can also choose to keep the sidebar always visible on larger screens for an elegent two-column experience. You can even disable the sidebar and comment links if you choose. Decode supports link posts, where the title can be hyperlinked. Decode includes custom social icons in the header that you can easily link to your choice of 30 different social profiles from Twitter, and App.net, to Pinterest and LinkedIn, you will be sure to find support for the network you want alongside a bevy of customizations to make your site unique. Lastly, Decode is also built alongside a companion plugin that adds a sleek reply tool that lets readers send you a reply about the post using Twitter or App.net. More info here +Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, editor-style, featured-images, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, white, yellow, dark, light +Version: 2.8.3 +Text Domain: decode +License: GNU General Public License +License URI: license.txt + +This theme, like WordPress, is licensed under the GPL. +Use it to make something cool, have fun, and share what you've learned with others. +*/ + +/* =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 { + -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; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +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; +} + +/* =Global +----------------------------------------------- */ + +body, +button, +select, +textarea { + color: #444444; + font: 300 110%/1.5 "Oxygen", "Helvetica Neue", "Arial", sans-serif; +} + +body { + background: #E3E5E7; + text-align: left; + margin: 0; + -webkit-overflow-scrolling: touch; +} + +/* Headings */ + +h1, +h2, +h3, +h4, +h5, +h6 { + clear: both; +} + +hr { + background-color: #ccc; + border: 0; + height: 1px; + margin-bottom: 1.5em; +} + +/* Text elements */ + +p { + 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; +} + +b, +strong { + font-weight: bold; +} + +dfn, +cite, +em, +i { + font-style: italic; +} + +blockquote { + margin: 0 1.5em; +} + +address { + margin: 0 0 1.5em; +} + +pre { + background: #eee; + font-family: "Courier 10 Pitch", Courier, monospace; + line-height: 1.6; + margin-bottom: 1.6em; + padding: 1.6em; + overflow: auto; + max-width: 100%; +} + +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: #fff9c0; + 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%; +} + +figure { + margin: 0; +} + +table { + margin: 0 0 1.5em; + width: 100%; +} + +th { + font-weight: bold; +} + +/* Micro Clearfix */ + +.cf:before, +.cf:after { + content: ""; + display: table; +} + +.cf:after { + clear: both; +} + +.cf { + zoom: 1; +} + +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 { + line-height: normal; + /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */ +} + +button, +input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-transition: border 0.25s ease-out, color 0.25s ease-out; + transition: border 0.25s ease-out, color 0.25s ease-out; + border: 1px solid #C0C0C0; + border-radius: 3px; + background: transparent; + color: #009BCD; + 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 */ + height: 2.15em; + padding: 0 0.7em; +} + +.no-touch button:hover, +.no-touch input[type="button"]:hover, +.no-touch input[type="reset"]:hover, +.no-touch input[type="submit"]:hover { + border: 1px solid #009BCD; +} + +.no-touch button:focus, +.no-touch input[type="button"]:focus, +.no-touch input[type="reset"]:focus, +.no-touch input[type="submit"]:focus, +.no-touch button:active, +.no-touch input[type="button"]:active, +.no-touch input[type="reset"]:active, +.no-touch input[type="submit"]:active { + border-color: #007EA6; + color: #007EA6; +} + +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 */ +} + +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="password"], +input[type="search"], +input[type="tel"], +input[type="url"], +textarea { + -webkit-transition: border 0.25s ease-out, color 0.25s ease-out, background 0.25s ease-out; + transition: border 0.25s ease-out, color 0.25s ease-out, background 0.25s ease-out; + color: #C0C0C0; + height: 2.15em; + padding: 0.3em; + border: 1px solid #C0C0C0; + border-radius: 3px; + background: rgba(255,255,255,0); + -webkit-appearance: none; + width: 60%; +} + +.no-touch input[type="text"]:hover, +.no-touch input[type="email"]:hover, +.no-touch input[type="password"]:hover, +.no-touch input[type="search"]:hover, +.no-touch input[type="tel"]:hover, +.no-touch input[type="url"]:hover, +.no-touch textarea:hover { + color: #A6A6A6; + border-color: #A6A6A6; + background: rgba(255,255,255,0.35); +} + +.no-touch input[type="text"]:focus, +.touch input[type="text"]:focus, +.no-touch input[type="email"]:focus, +.touch input[type="email"]:focus, +.no-touch input[type="password"]:focus, +.touch input[type="password"]:focus, +.no-touch input[type="search"]:focus, +.touch input[type="search"]:focus, +.no-touch input[type="tel"]:focus, +.touch input[type="tel"]:focus, +.no-touch input[type="url"]:focus, +.touch input[type="url"]:focus, +.no-touch textarea:focus, +.touch textarea:focus { + color: #444444; + outline: none; + background: rgba(255,255,255,1); + border-color: #009BCD; +} + +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%; +} + +/* Links */ + +a { + -webkit-transition: color 0.4s ease-in-out, border-bottom 0.4s ease-in-out; + transition: color 0.4s ease-in-out, border-bottom 0.4s ease-in-out; + color: #009BCD; + text-decoration: none; + border-bottom: 0 solid rgba(69, 69, 69, 0); +} + +.no-touch a:hover { + color: #009BCD; +} + +.no-touch a:active { + color: #007EA6; +} + +.no-touch .entry-content a:hover, +.no-touch .entry-meta a:hover, +.no-touch .author-site a:hover { + border-bottom: 1px solid #009BCD; +} + +.no-touch .entry-content a:active, +.no-touch .entry-meta a:active, +.no-touch .author-site a:active { + border-bottom: 1px solid #007EA6; +} + +/* Alignment */ + +.entry-content .alignleft { + display: inline; + float: left; + margin-right: 2.5%; +} + +.entry-content .alignright { + display: inline; + float: right; + margin-left: 2.5%; +} + +.entry-content .aligncenter { + clear: both; + display: block; + margin: 0 auto; +} + +/* 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; + -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + 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 */ +} + +/* Clearing */ + +.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; +} + +/* Make sure embeds and iframes fit their containers */ + +embed, +iframe, +object { + max-width: 100%; +} + +.size-auto, +.size-full, +.size-large, +.size-medium, +.size-thumbnail { + max-width: 100%; + height: auto; +} + +/* =Media +----------------------------------------------- */ + +.site-branding img, +.site-content img, +.site-footer img, +.sidebar img, +img.size-full, +.comment-content img, +.widget img { + max-width: 100%; + /* Fluid images for posts, comments, and widgets */ + height: auto; +} + +.entry-content img, +img[class*="align"], +img[class*="wp-image-"] { + height: auto; + /* Make sure images with WordPress-added height and width attributes are scaled correctly */ +} + +.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; +} + + + +.site-main .gallery a img { + border: none; + height: auto; + max-width: 90%; +} + +.site-main .gallery dd { + margin: 0; +} + + + + + +/* Make sure embeds and iframes fit their containers */ + +embed, +iframe, +object { + max-width: 100%; +} + +/* =Header +----------------------------------------------- */ + +.site-header { + width: 100%; + border-bottom: 1px solid #009BCD; + margin: 3.5% auto 0; +} + +.site-branding { + text-align: center; +} + +.site-logo { + -webkit-transition: opacity 0.5s ease-out; + transition: opacity 0.5s ease-out; + margin: 0 auto 2%; + max-height: 8.5em; + width: auto; + opacity: 1; + -webkit-user-drag: none; + user-drag: none; +} + +.no-touch .site-logo:hover { + opacity: 0.75; +} + +.no-touch .site-logo:active { + opacity: 0.85; +} + +.site-title { + margin: 0 0 0.5%; + line-height: 1; + text-align: center; + word-wrap: break-word; +} + +.site-title a { + -webkit-transition: text-shadow 0.5s; + transition: text-shadow 0.5s; + font-size: 1.95em; + text-decoration: none; + color: #444444; + border-bottom: none; +} + +.no-touch .site-title a:hover { + color: #444444; + text-shadow: 0px 0px 6px rgba(75,75,75,0.5); +} + +.no-touch .site-title a:active { + color: #444444; + text-shadow: 0px -2px 12px rgba(75,75,75,0.85); +} + +.page-header { + text-align: center; + margin: 0 auto 7.5%; +} + +.page-title { + text-align: center; + font-size: 1.65em; + padding: 1.5%; + border-bottom: 1px solid #009BCD; + display: inline-block; +} + +.site-description { + text-align: center; + margin-bottom: 0.75%; +} + +.sociallinks { + display: block; + margin: 2.5% auto 0; + margin: 1% 0; +} + +.sociallinks ul { + list-style: none; + text-align: center; + margin: 0 auto; +} + +.sociallink svg, +.sociallink img { + height: 2em; + width: 2em; + margin: 0 0.5%; +} + +.sociallink.desktop { + display: none; +} + +.sociallink { + -webkit-transition: opacity 0.4s ease-out; + transition: opacity 0.4s ease-out; + border: none; +} + +.no-touch .sociallink:hover { + opacity: 0.6; +} + +.no-touch .sociallink:active { + opacity: 0.8; +} + +/* =Menu +----------------------------------------------- */ + +.main-navigation { + clear: both; + width: 100%; + text-align: center; + margin: 2.5% auto 1.5%; +} + +.main-navigation ul { + list-style: none; + margin: 0 auto; + padding-left: 0; +} + +.main-navigation li { + display: inline-block; + margin: 0 0.5em; + position: relative; +} + +.main-navigation li:first-child { + margin-left: 0; +} + +.main-navigation li:last-child { + margin-right: 0; +} + +.main-navigation a { + -webkit-transition: color 0.25s ease-out; + transition: color 0.25s ease-out; + display: block; + text-decoration: none; + color: #444444; +} + +.no-touch .main-navigation a:hover { + color: #009BCD; +} + +.no-touch .main-navigation a:active { + color: #007EA6; +} + +.main-navigation ul ul { + -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); + display: none; + float: left; + position: absolute; + top: 1.25em; + left: 0; + z-index: 2; + background: #E3E5E7; +} + +.main-navigation ul ul ul { + left: 100%; + top: 0; +} + +.main-navigation ul ul a { + width: 12em; +} + + + + + + + + + +.main-navigation ul li:hover > ul { + display: block; +} + +.main-navigation ul ul:hover { + display: block; +} + +.main-navigation .current_page_item > a, +.main-navigation .current-menu-item > a { + color: #222222; +} + +.menu li.current_page_item > a, +.main-navigation li.current-menu-item > a { + position: relative; +} + +.menu li.current_page_item > a:hover, +.main-navigation li.current-menu-item > a:hover { + -webkit-animation: shake 0.25s ease 0.25s; + animation: shake 0.25s ease 0.25s; + color: #000000; +} + +@-webkit-keyframes shake { + 0%, 54%, 90% { + right: -7px; + } + + 18%, 72% { + right: 7px; + } + + 100% { + right: 0px; + } +} + +@keyframes shake { + 0%, 54%, 90% { + right: -7px; + } + + 18%, 72% { + right: 7px; + } + + 100% { + right: 0px; + } +} + +/* =Content +----------------------------------------------- */ + +.site-main, +.site-footer { + width: 92.5%; + margin: 0 auto; +} + +.site-footer { + margin-bottom: 3.5%; +} + + + +.hentry { + margin: 0 0 1.5em; +} + +.byline { + display: none; +} + +.single .byline, +.group-blog .byline { + display: inline; +} + +.page-content, +.entry-content, +.entry-summary { + margin: 0 0 2.5%; + word-wrap: break-word; +} + +.page-links { + clear: both; + margin: 0 0 1.5em; +} + +.entry-header { + margin: 5% auto 3.5%; + text-align: center; +} + +article.page .entry-header { + font-size: 1.25em; + margin: 2.5% auto 5%; +} + +body.single-attachment .entry-header { + padding-top: 5%; + margin-top: 0; +} + +a .attachment-post-thumbnail { + -webkit-transition: opacity 0.25s ease-out; + transition: opacity 0.25s ease-out; + opacity: 1; +} + +.no-touch a .attachment-post-thumbnail:hover { + opacity: 0.8; +} + +.no-touch a .attachment-post-thumbnail:active { + opacity: 0.9; +} + +.entry-title { + color: #444444; + text-decoration: none; + text-align: center; + word-wrap: break-word; + font-size: 1.5em; + line-height: 1.25; + width: 90%; + margin: 0 auto; +} + +.entry-title a { + color: #444444; +} + +article.post { + width: 100%; + margin: 5% auto 10%; + line-height: 1.65; +} + +.entry-content h1 { + font-size: 2em; +} + +.entry-content h2 { + font-size: 1.75em; +} + +.entry-content h3 { + font-size: 1.5em; +} + +.entry-content h4 { + font-size: 1.375em; +} + +.entry-content h5 { + font-size: 1.25em; +} + +.entry-content h6 { + font-size: 1.125em; +} + +.entry-content img { + margin: 2.5% auto; +} + +.entry-content .video-player img { + margin: 0; +} + +body.single-attachment .entry-content .attachment { + text-align: center; +} + +body.single-attachment .entry-meta { + margin-top: 1.5%; +} + +.post blockquote, +.page blockquote { + margin: 1.5% 0; + padding: 0 0 0 5%; + border-left: 1px solid #009BCD; + font-style: italic; +} + +.read-more { + color: #444444; +} + +.entry-meta { + clear: both; +} + +.post .entry-meta { + width: 90%; + padding-bottom: 0.5%; + border-bottom: 1px solid #009BCD; + margin: 0 auto; +} + +.post .entry-meta.above-content { + width: auto; + display: inline-block; + padding: 0 2.5% 1%; + margin: 0 auto 1.5%; +} + +.entry-meta .date, +.tags, +.categories { + font-size: 0.8em; + clear: both; + margin: 1.5% 0; + color: #808080; +} + +.entry-meta .date { + margin-bottom: 0; +} + +.entry-meta .date a { + -webkit-transition: color 0.25s ease-out; + transition: color 0.25s ease-out; + color: #808080; +} + +.no-touch .entry-meta .date a:hover { + color: #009BCD; +} + +.no-touch .entry-meta .date a:active { + color: #007EA6; +} + +.no-touch .post .entry-meta .date a:hover, +.post .entry-meta .date a:active { + margin-top: 3.5%; + border-bottom: none; +} + +.theme-info, +.site-colophon { + font-size: 0.8em; + text-align: center; +} + +.no-touch .theme-info a:hover, +.no-touch .site-colophon a:hover { + border-bottom: 1px solid #009BCD; +} + +.no-touch .theme-info a:active, +.no-touch .site-colophon a:active { + border-bottom: 1px solid #007EA6; +} + +/* =Sidebar +----------------------------------------------- */ + +.SidebarLink { + -webkit-transition: opacity 0.25s ease-out; + transition: opacity 0.25s ease-out; + position: relative; + margin-bottom: 2.5%; + cursor: pointer; + display: inline-block; + height: 1.5em; + opacity: 1; +} + +.no-touch .SidebarLink:hover { + opacity: 0.65; +} + +.no-touch .SidebarLink:active { + opacity: 0.85; +} + +.SidebarLink svg { + width: 1.5em; + height: 1.5em; +} + +.SidebarLink img { + width: 1.75em; + height: 1.5em; +} + +.SidebarLink.left { + left: 5%; +} + +.SidebarLink.right { + right: 5%; + float: right; +} + +.SidebarTop { + background: #E3E5E7; + width: 100%; + margin-bottom: 7.5%; + border-bottom: 1px solid #009BCD; + cursor: pointer; +} + +.no-touch .SidebarTop { + position: sticky; + top: 0; +} + +.admin-bar .sidebar { + top: 32px; +} + +@media screen and (max-width:782px) { + .admin-bar .sidebar { + top: 46px; + } +} + +.SidebarClose { + -webkit-transition: opacity 0.25s ease-out; + transition: opacity 0.25s ease-out; + padding: 3.5%; + display: block; + opacity: 1; + height: 1.4em; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} + +.no-touch .SidebarTop:hover .SidebarClose { + opacity: 0.65; +} + +.no-touch .SidebarTop:hover .SidebarClose:active { + opacity: 0.85; +} + +.SidebarClose svg, +.SidebarClose img { + height: 1.4em; + width: 1.4em; +} + +.sidebar { + -webkit-transition: -webkit-transform 0.35s ease-out; + transition: transform 0.35s ease-out; + top: 0; + width: 95%; + font-size: 0.95em; + background: #E3E5E7; + position: fixed; + height: 100%; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + z-index: 5; +} + +.sidebar.left { + -webkit-transform: translateX(-110%); + -ms-transform: translateX(-110%); + transform: translateX(-110%); + left: 0; + -webkit-box-shadow: 1px 0px 15px rgba(0,0,0,0.5); + box-shadow: 1px 0px 15px rgba(0,0,0,0.5); +} + +.sidebar.right { + -webkit-transform: translateX(110%); + -ms-transform: translateX(110%); + transform: translateX(110%); + right: 0; + -webkit-box-shadow: -1px 0px 15px rgba(0,0,0,0.5); + box-shadow: -1px 0px 15px rgba(0,0,0,0.5); +} + +.SidebarContent { + margin: 0 5%; +} + +.sidebar.left.visible, +.sidebar.right.visible { + -webkit-transform: translateX(0%); + -ms-transform: translateX(0%); + transform: translateX(0%); +} + +.no-csstransforms .sidebar.left { + left: -100%; +} + +.no-csstransforms .sidebar.left.visible, +.no-csstransforms .sidebar.constant.left { + left: 0; +} + +.no-csstransforms .sidebar.right { + right: -100%; +} + +.no-csstransforms .sidebar.right.visible, +.no-csstransforms .sidebar.constant.right { + right: 0; +} + +/* =Links +----------------------------------------------- */ + +.format-link .entry-title a { + text-decoration: underline; + color: #444444; +} + +.no-touch .format-link .entry-title a:hover { + color: #009BCD; + border-bottom: none; +} + +.no-touch .format-link .entry-title a:active { + color: #007EA6; + border-bottom: none; +} + +.link-title-arrow { + padding: 0 0.25em; +} + +/* =Quotes +----------------------------------------------- */ + +.blog .format-quote .entry-content, +.single .format-quote .entry-content, +.archive .format-quote .entry-content { + margin-top: 3%; + font-size: 2em; + line-height: 1.5; +} + +.format-quote blockquote { + padding-left: 0; + border-left: none; +} + +.format-quote p:before { + content: '\201C'; + font-size: 1.3em; +} + +.format-quote p:after { + content: '\201D'; + font-size: 1.3em; +} + +.format-quote .entry-meta .date:before, +.format-quote .reply .replytrigger:before, +.format-quote .entry-meta .date:after, +.format-quote .reply .replytrigger:after { + content: ""; +} + +/* =Asides +----------------------------------------------- */ + +.blog .format-aside .entry-header, +.archive .format-aside .entry-header { + display: none; +} + +.format-aside .entry-content { + font-style: italic; +} + +/* =Audio +----------------------------------------------- */ + +.mejs-container { + max-width: 100% !important; + /* The WP audio player (before 3.6) has a hardcoded width of 400px, which is BS. The player in WordPress 3.6 and up doesn't need this. */ +} + +/* =Explore Page +----------------------------------------------- */ + +.explore-page { + margin: 5% auto 0; +} + +.post-lists { + margin: 1.5%; +} + +.explore-page .search-form { + text-align: center; +} + +.explore-page .widget h1 { + color: #444; + font-size: 1.15em; + border-bottom: 1px solid #009BCD; + padding-bottom: 1%; +} + +.explore-page .widget:not(.search) { + -webkit-transition: -webkit-box-shadow 0.35s ease-out; + transition: box-shadow 0.35s ease-out; + width: 90%; + padding: 2.5% 5%; + margin: 0 auto 5%; + font-size: 1em; + -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,0.3); + box-shadow: 0px 1px 4px rgba(0,0,0,0.3); +} + +.explore-page .widget:not(.search):hover { + -webkit-box-shadow: 0px 2px 5px rgba(0,0,0,0.4); + box-shadow: 0px 2px 5px rgba(0,0,0,0.4); +} + +.explore-page .widget.archives ul, +.explore-page .widget.categories > ul { + height: 15em; + margin: 0; + overflow: scroll; + -webkit-overflow-scrolling: touch; +} + +.explore-page .widget.search { + margin-bottom: 7.5%; +} + +.explore-page .widget.recent-posts ul { + list-style: none; + margin: 0; +} + +/* =Navigation +----------------------------------------------- */ + +.post-navigation, +.paging-navigation, +.image-navigation { + margin: 2.5%; + overflow: hidden; +} + +.nav-next, +.nav-previous { + word-wrap: break-word; +} + +.nav-previous, +.nav-links a[rel="prev"] { + float: left; + text-align: left; + width: 50%; +} + +.nav-next, +.nav-links a[rel="next"] { + float: right; + text-align: right; + width: 50%; +} + +.nav-links a { + -webkit-transition: padding 0.25s ease-out, color 0.25s ease-out; + transition: padding 0.25s ease-out, color 0.25s ease-out; + padding: 0; + display: block; +} + +.no-touch .nav-links a:hover { + padding: 0 2.5%; +} + +/* =Comments +----------------------------------------------- */ + +.comments-area { + margin: 3.5% auto 5%; +} + +.comment, +.comment-body { + margin: 2.5% 0; + padding-bottom: 2.5%; + border-bottom: 1px solid #C0C0C0; +} + +.comment:last-child, +.comment-body:last-child { + padding-bottom: 0; + border-bottom: none; +} + +.comment-content a { + word-wrap: break-word; +} + +.comment-author.vcard img { + margin: 0; + border-radius: 100%; +} + +.comment-metadata a { + -webkit-transition: color 0.25s ease-out; + transition: color 0.25s ease-out; + color: #808080; + font-size: 0.8em; + margin-right: 1.5%; +} + +.no-touch .comment-metadata a:hover { + color: #009BCD; +} + +.no-touch .comment-metadata a:active { + color: #007EA6; +} + +li.comment { + list-style: none; +} + + + +#respond { + margin-top: 7.5%; +} + +.form-allowed-tags { + display: none; + font-size: 0.9em; +} + +/* =Search +----------------------------------------------- */ + +.search-form { + margin-bottom: 2.5%; +} + +.search-entry, +.search-entry .entry-title { + -webkit-transition: color 0.25s ease-out; + transition: color 0.25s ease-out; + color: #444444; + display: block; +} + +.search-entry .entry-title { + font-size: 1.25em; + margin-bottom: 0.5em; +} + +.no-touch .search-entry:hover, +.no-touch .search-entry:hover .entry-title { + color: #009BCD; +} + +.no-touch .search-entry:active, +.no-touch .search-entry:active .entry-title { + color: #007EA6; +} + +.search .site-main .search-form { + margin-top: 2.5%; +} + +.search .page-header input[type="search"] { + color: #808080; + border-top-color: transparent; + border-right-color: transparent; + border-left-color: transparent; + border-radius: 0; + font-size: 1.25em; +} + +.no-touch .search .page-header input[type="search"]:hover { + border-color: #A6A6A6; + border-radius: 3px; +} + +.search .page-header input[type="search"]:focus { + color: #444444; + border-color: #009BCD; + border-radius: 3px; +} + +.search .page-header .search-submit { + font-size: 1.25em; + border-color: transparent; + padding: 0 1em; +} + +.search .post, +.search .page { + margin-bottom: 10%; +} + +.search-highlight { + background: rgba(255,255,0,0.25); +} + +.search footer { + width: 90%; + border-bottom: 1px solid #009BCD; + margin: 0 auto; +} + +/* =Author Section +----------------------------------------------- */ + +.author-section { + -webkit-transition: -webkit-box-shadow 0.35s ease-out; + transition: box-shadow 0.35s ease-out; + -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.3); + box-shadow: 0 1px 4px rgba(0,0,0,0.3); + padding: 3.5%; + margin: 0 auto 3.5%; + text-align: left; +} + +.author-section:hover { + -webkit-box-shadow: 0px 2px 5px rgba(0,0,0,0.4); + box-shadow: 0px 2px 5px rgba(0,0,0,0.4); +} + +.author-image { + width: 25%; + max-width: 125px; + float: left; +} + +.author-image img { + -webkit-transition: -webkit-box-shadow 0.35s ease-out, opacity 0.35s ease-out; + transition: box-shadow 0.35s ease-out, opacity 0.35s ease-out; + border-radius: 50%; + display: block; + -webkit-box-shadow: 0 0 5px rgba(0,0,0,0); + box-shadow: 0 0 5px rgba(0,0,0,0); + opacity: 1; +} + +.no-touch .author-image img:hover { + -webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.5); + box-shadow: 0 2px 5px rgba(0,0,0,0.5); + opacity: 1; +} + +.no-touch .author-image img:active { + -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.4); + box-shadow: 0 1px 4px rgba(0,0,0,0.4); + opacity: 0.85; +} + +.author-text { + width: 65%; + float: left; + margin-left: 5%; +} + +.author-name { + font-size: 1.4em; +} + +.author-name a { + color: #444; +} + +.author-site, +.author-bio { + font-size: 0.9em; +} + +/* Author page styles */ + +.author .author-section { + width: 90%; + max-width: 15em; + padding: 2.5%; + margin: 7.5% auto 0; + text-align: center; + font-size: 1.1em; +} + +.author .author-image { + width: 33%; + max-width: 175px; + float: none; + margin: 0 auto; +} + +.author .author-text { + width: 95%; + float: none; + margin: 0 auto; +} + +/* =Widgets +----------------------------------------------- */ + +.widget { + margin: 0 0 1.5em; +} + +/* Make sure select elements fit in widgets */ + +.widget select { + max-width: 100%; +} + +/* Search widget */ + +.widget_search .submit { + display: none; +} + +/* =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; +} + +/* =Tablets +----------------------------------------------- */ + +@media only screen and (min-width: 35em) { + .site-header, + .site-main, + .site-footer, + .sidebar-style-constant .site-header, + .sidebar-style-constant .site-main, + .sidebar-style-constant .site-footer { + width: 82.5%; + } + + .SidebarLink { + position: fixed; + height: 1.75em; + width: 1.75em; + top: 2.5%; + } + + .admin-bar .SidebarLink { + top: 7.5%; + } + + .SidebarLink svg { + width: 1.75em; + height: 1.75em; + } + + .SidebarLink img { + width: 2em; + height: 1.75em; + } + + .SidebarLink.left { + left: 2.5%; + } + + .SidebarLink.right { + right: 2.5%; + } + + .sidebar { + width: 55%; + } +} + +/* =Desktop +----------------------------------------------- */ + +@media only screen and (min-width: 50em) { + .site-header, + .site-main, + .site-footer { + width: 80%; + } + + .site.sidebar-style-constant { + margin: 0 auto; + width: 67%; + height: 100%; + position: fixed; + overflow-y: scroll; + -webkit-overflow-scrolling: touch; + } + + .site.sidebar-style-left { + right: 0; + } + + .site.sidebar-style-right { + left: 0; + } + + .site-scroll { + margin: 3.5% 2.5% 0; + } + + .site-scroll .site-header { + margin-top: 0; + } + + .sidebar-style-constant .site-header, + .sidebar-style-constant .site-main, + .sidebar-style-constant .site-footer { + width: 100%; + max-width: 45em; + } + + .page-header { + margin: 0 auto 5%; + } + + .site-title a { + font-size: 2.8em; + } + + .no-touch .site-description a:hover { + border-bottom: 1px solid #009BCD; + } + + .no-touch .site-description a:active { + color: #007EA6; + border-bottom: 1px solid #007EA6; + } + + .author .author-section { + width: 75%; + max-width: 100%; + font-size: 1.25em; + margin-top: 3.5%; + } + + .sociallinks { + margin: 1.5% auto; + } + + .sociallink.mobile { + display: none; + } + + .sociallink.desktop { + display: inline; + } + + .sociallink svg, + .sociallink img { + height: 2.5em; + width: 2.5em; + margin: 0 1%; + } + + .main-navigation li { + margin: 0 1.5%; + } + + .SidebarLink { + top: 5%; + } + + .sidebar-style-constant .SidebarLink { + display: none; + } + + .sidebar.constant .SidebarTop { + display: none; + } + + .sidebar { + width: 33%; + } + + .sidebar.constant .SidebarContent { + margin-top: 5%; + } + + .sidebar.constant { + -webkit-transform: translateX(0%); + -ms-transform: translateX(0%); + transform: translateX(0%); + -webkit-box-shadow: none; + box-shadow: none; + } + + .sidebar.constant.left { + border-right: 1px solid #009BCD; + } + + .sidebar.constant.right { + border-left: 1px solid #009BCD; + } + + .no-csstransforms .sidebar.left { + left: -40%; + } + + .no-csstransforms .sidebar.right { + right: -40%; + } + + .SidebarClose { + padding: 2.5%; + } + + .entry-title { + font-size: 2em; + width: 80%; + } + + article.post { + margin: 2.5% auto 5%; + } + + .entry-content h1 { + font-size: 2.5em; + } + + .entry-content h2 { + font-size: 2.125em; + } + + .entry-content h3 { + font-size: 1.75em; + } + + .entry-content h4 { + font-size: 1.375em; + } + + .entry-content h5 { + font-size: 1.25em; + } + + .entry-content h6 { + font-size: 1.125em; + } + + .post .entry-meta, + .search footer { + width: 85%; + } + + .search .post, + .search .page { + margin-bottom: 5%; + } + + .explore-page .widget.search { + margin-bottom: 3.5%; + } + + .blog .format-quote .entry-content, + .single .format-quote .entry-content, + .archive .format-quote .entry-content { + font-size: 2.75em; + } + + .sidebar-style-constant .site-footer { + margin-bottom: 5%; + } +} + +/* =Larger screens +----------------------------------------------- */ + +@media only screen and (min-width: 68.5em) { + .site-title a { + font-size: 3.5em; + } + + .sociallink svg, + .sociallink img { + height: 2.75em; + width: 2.75em; + margin: 0 1%; + } + + .site-header, + .site-main, + .site-footer { + width: 60%; + max-width: 45em; + } + + .site-header { + max-width: 60em; + } + + .site.sidebar-style-constant { + width: 75%; + } + + .page-header { + margin-bottom: 3.5%; + } + + .entry-title { + font-size: 2.25em; + } + + .SidebarLink.left { + left: 7.5%; + } + + .SidebarLink.right { + right: 7.5%; + } + + .sidebar { + width: 25%; + max-width: 30em; + } + + .no-csstransforms .sidebar.left { + left: -30%; + } + + .no-csstransforms .sidebar.right { + right: -30%; + } + + article.post { + margin-bottom: 10%; + } +} + +@media only print { + .SidebarLink, + .sociallinks, + .main-navigation, + .paging-navigation, + .post-navigation, + .comment-respond { + display: none; + } + + .site-header { + padding-bottom: 2.5%; + margin-top: 0; + } +} \ No newline at end of file diff --git a/css/style.min.css b/css/style.min.css new file mode 100644 index 0000000..693e901 --- /dev/null +++ b/css/style.min.css @@ -0,0 +1 @@ +a,abbr,acronym,address,applet,big,blockquote,body,caption,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,iframe,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,ul,var{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,main,nav,section{display:block}table{border-collapse:separate;border-spacing:0}caption,td,th{font-weight:400;text-align:left}blockquote:after,blockquote:before,q:after,q:before{content:""}blockquote,q{quotes:"" ""}a:focus{outline:thin dotted}a:active,a:hover{outline:0}a img{border:0}body,button,select,textarea{color:#444;font:300 110%/1.5 Oxygen,"Helvetica Neue",Arial,sans-serif}body{background:#E3E5E7;text-align:left;margin:0;-webkit-overflow-scrolling:touch}h1,h2,h3,h4,h5,h6{clear:both}hr{background-color:#ccc;border:0;height:1px;margin-bottom:1.5em}p{margin-bottom:1.5em}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}dt{font-weight:700}dd{margin:0 1.5em 1.5em}b,strong{font-weight:700}cite,dfn,em,i{font-style:italic}blockquote{margin:0 1.5em}address{margin:0 0 1.5em}pre{background:#eee;font-family:"Courier 10 Pitch",Courier,monospace;line-height:1.6;margin-bottom:1.6em;padding:1.6em;overflow:auto;max-width:100%}code,kbd,tt,var{font:15px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace}abbr,acronym{border-bottom:1px dotted #666;cursor:help}ins,mark{background:#fff9c0;text-decoration:none}sub,sup{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%}figure{margin:0}table{margin:0 0 1.5em;width:100%}th{font-weight:700}.cf:after,.cf:before{content:"";display:table}.cf:after{clear:both}.cf{zoom:1}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;vertical-align:middle}button,input{line-height:normal}button,input[type=button],input[type=reset],input[type=submit]{-webkit-transition:border .25s ease-out,color .25s ease-out;transition:border .25s ease-out,color .25s ease-out;border:1px solid silver;border-radius:3px;background:0 0;color:#009BCD;cursor:pointer;-webkit-appearance:button;height:2.15em;padding:0 .7em}.no-touch button:hover,.no-touch input[type=button]:hover,.no-touch input[type=reset]:hover,.no-touch input[type=submit]:hover{border:1px solid #009BCD}.no-touch button:active,.no-touch button:focus,.no-touch input[type=button]:active,.no-touch input[type=button]:focus,.no-touch input[type=reset]:active,.no-touch input[type=reset]:focus,.no-touch input[type=submit]:active,.no-touch input[type=submit]:focus{border-color:#007EA6;color:#007EA6}input[type=checkbox],input[type=radio]{padding:0}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=email],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],textarea{-webkit-transition:border .25s ease-out,color .25s ease-out,background .25s ease-out;transition:border .25s ease-out,color .25s ease-out,background .25s ease-out;color:silver;height:2.15em;padding:.3em;border:1px solid silver;border-radius:3px;background:rgba(255,255,255,0);-webkit-appearance:none;width:60%}.no-touch input[type=email]:hover,.no-touch input[type=password]:hover,.no-touch input[type=search]:hover,.no-touch input[type=tel]:hover,.no-touch input[type=text]:hover,.no-touch input[type=url]:hover,.no-touch textarea:hover{color:#A6A6A6;border-color:#A6A6A6;background:rgba(255,255,255,.35)}.no-touch input[type=email]:focus,.no-touch input[type=password]:focus,.no-touch input[type=search]:focus,.no-touch input[type=tel]:focus,.no-touch input[type=text]:focus,.no-touch input[type=url]:focus,.no-touch textarea:focus,.touch input[type=email]:focus,.touch input[type=password]:focus,.touch input[type=search]:focus,.touch input[type=tel]:focus,.touch input[type=text]:focus,.touch input[type=url]:focus,.touch textarea:focus{color:#444;outline:0;background:rgba(255,255,255,1);border-color:#009BCD}textarea{overflow:auto;padding-left:3px;vertical-align:top;width:98%}a{-webkit-transition:color .4s ease-in-out,border-bottom .4s ease-in-out;transition:color .4s ease-in-out,border-bottom .4s ease-in-out;color:#009BCD;text-decoration:none;border-bottom:0 solid rgba(69,69,69,0)}.no-touch a:hover{color:#009BCD}.no-touch a:active{color:#007EA6}.no-touch .author-site a:hover,.no-touch .entry-content a:hover,.no-touch .entry-meta a:hover{border-bottom:1px solid #009BCD}.no-touch .author-site a:active,.no-touch .entry-content a:active,.no-touch .entry-meta a:active{border-bottom:1px solid #007EA6}.entry-content .alignleft{display:inline;float:left;margin-right:2.5%}.entry-content .alignright{display:inline;float:right;margin-left:2.5%}.entry-content .aligncenter{clear:both;display:block;margin:0 auto}.screen-reader-text{clip:rect(1px,1px,1px,1px);position:absolute!important}.screen-reader-text:active,.screen-reader-text:focus,.screen-reader-text:hover{background-color:#f1f1f1;border-radius:3px;-webkit-box-shadow:0 0 2px 2px rgba(0,0,0,.6);box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;color:#21759b;display:block;font-size:14px;font-weight:700;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}.clear:after,.clear:before,.comment-content:after,.comment-content:before,.entry-content:after,.entry-content:before,.site-content:after,.site-content:before,.site-footer:after,.site-footer:before,.site-header:after,.site-header:before{content:'';display:table}.clear:after,.comment-content:after,.entry-content:after,.site-content:after,.site-footer:after,.site-header:after{clear:both}.comment-content img,.sidebar img,.site-branding img,.site-content img,.site-footer img,.size-auto,.size-full,.size-large,.size-medium,.size-thumbnail,.widget img,img.size-full{max-width:100%;height:auto}.entry-content img,img[class*=align],img[class*=wp-image-]{height:auto}.comment-content img.wp-smiley,.entry-content img.wp-smiley,.page-content img.wp-smiley{border:0;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:.8075em 0}.site-main .gallery{margin-bottom:1.5em}.site-main .gallery a img{border:0;height:auto;max-width:90%}.site-main .gallery dd{margin:0}embed,iframe,object{max-width:100%}.site-header{width:100%;border-bottom:1px solid #009BCD;margin:3.5% auto 0}.site-branding{text-align:center}.site-logo{-webkit-transition:opacity .5s ease-out;transition:opacity .5s ease-out;margin:0 auto 2%;max-height:8.5em;width:auto;opacity:1;-webkit-user-drag:none;user-drag:none}.no-touch .site-logo:hover{opacity:.75}.no-touch .site-logo:active{opacity:.85}.site-title{margin:0 0 .5%;line-height:1;text-align:center;word-wrap:break-word}.site-title a{-webkit-transition:text-shadow .5s;transition:text-shadow .5s;font-size:1.95em;text-decoration:none;color:#444;border-bottom:0}.no-touch .site-title a:hover{color:#444;text-shadow:0 0 6px rgba(75,75,75,.5)}.no-touch .site-title a:active{color:#444;text-shadow:0 -2px 12px rgba(75,75,75,.85)}.page-header{text-align:center;margin:0 auto 7.5%}.page-title{text-align:center;font-size:1.65em;padding:1.5%;border-bottom:1px solid #009BCD;display:inline-block}.site-description{text-align:center;margin-bottom:.75%}.sociallinks{display:block;margin:2.5% auto 0;margin:1% 0}.sociallinks ul{list-style:none;text-align:center;margin:0 auto}.sociallink img,.sociallink svg{height:2em;width:2em;margin:0 .5%}.sociallink.desktop{display:none}.sociallink{-webkit-transition:opacity .4s ease-out;transition:opacity .4s ease-out;border:0}.no-touch .sociallink:hover{opacity:.6}.no-touch .sociallink:active{opacity:.8}.main-navigation{clear:both;width:100%;text-align:center;margin:2.5% auto 1.5%}.main-navigation ul{list-style:none;margin:0 auto;padding-left:0}.main-navigation li{display:inline-block;margin:0 .5em;position:relative}.main-navigation li:first-child{margin-left:0}.main-navigation li:last-child{margin-right:0}.main-navigation a{-webkit-transition:color .25s ease-out;transition:color .25s ease-out;display:block;text-decoration:none;color:#444}.no-touch .main-navigation a:hover{color:#009BCD}.no-touch .main-navigation a:active{color:#007EA6}.main-navigation ul ul{-webkit-box-shadow:0 5px 10px rgba(0,0,0,.15);box-shadow:0 5px 10px rgba(0,0,0,.15);display:none;float:left;position:absolute;top:1.25em;left:0;z-index:2;background:#E3E5E7}.main-navigation ul ul ul{left:100%;top:0}.main-navigation ul ul a{width:12em}.main-navigation ul li:hover>ul,.main-navigation ul ul:hover{display:block}.main-navigation .current-menu-item>a,.main-navigation .current_page_item>a{color:#222}.main-navigation li.current-menu-item>a,.menu li.current_page_item>a{position:relative}.main-navigation li.current-menu-item>a:hover,.menu li.current_page_item>a:hover{-webkit-animation:shake .25s ease .25s;animation:shake .25s ease .25s;color:#000}@-webkit-keyframes shake{0%,54%,90%{right:-7px}18%,72%{right:7px}100%{right:0}}@keyframes shake{0%,54%,90%{right:-7px}18%,72%{right:7px}100%{right:0}}.site-footer,.site-main{width:92.5%;margin:0 auto}.site-footer{margin-bottom:3.5%}.hentry{margin:0 0 1.5em}.byline{display:none}.group-blog .byline,.single .byline{display:inline}.entry-content,.entry-summary,.page-content{margin:0 0 2.5%;word-wrap:break-word}.page-links{clear:both;margin:0 0 1.5em}.entry-header{margin:5% auto 3.5%;text-align:center}article.page .entry-header{font-size:1.25em;margin:2.5% auto 5%}body.single-attachment .entry-header{padding-top:5%;margin-top:0}a .attachment-post-thumbnail{-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;opacity:1}.no-touch a .attachment-post-thumbnail:hover{opacity:.8}.no-touch a .attachment-post-thumbnail:active{opacity:.9}.entry-title{color:#444;text-decoration:none;text-align:center;word-wrap:break-word;font-size:1.5em;line-height:1.25;width:90%;margin:0 auto}.entry-title a{color:#444}article.post{width:100%;margin:5% auto 10%;line-height:1.65}.entry-content h1{font-size:2em}.entry-content h2{font-size:1.75em}.entry-content h3{font-size:1.5em}.entry-content h4{font-size:1.375em}.entry-content h5{font-size:1.25em}.entry-content h6{font-size:1.125em}.entry-content img{margin:2.5% auto}.entry-content .video-player img{margin:0}body.single-attachment .entry-content .attachment{text-align:center}body.single-attachment .entry-meta{margin-top:1.5%}.page blockquote,.post blockquote{margin:1.5% 0;padding:0 0 0 5%;border-left:1px solid #009BCD;font-style:italic}.read-more{color:#444}.entry-meta{clear:both}.post .entry-meta{width:90%;padding-bottom:.5%;border-bottom:1px solid #009BCD;margin:0 auto}.post .entry-meta.above-content{width:auto;display:inline-block;padding:0 2.5% 1%;margin:0 auto 1.5%}.categories,.entry-meta .date,.tags{font-size:.8em;clear:both;margin:1.5% 0;color:gray}.entry-meta .date{margin-bottom:0}.entry-meta .date a{-webkit-transition:color .25s ease-out;transition:color .25s ease-out;color:gray}.no-touch .entry-meta .date a:hover{color:#009BCD}.no-touch .entry-meta .date a:active{color:#007EA6}.no-touch .post .entry-meta .date a:hover,.post .entry-meta .date a:active{margin-top:3.5%;border-bottom:0}.site-colophon,.theme-info{font-size:.8em;text-align:center}.no-touch .site-colophon a:hover,.no-touch .theme-info a:hover{border-bottom:1px solid #009BCD}.no-touch .site-colophon a:active,.no-touch .theme-info a:active{border-bottom:1px solid #007EA6}.SidebarLink{-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;position:relative;margin-bottom:2.5%;cursor:pointer;display:inline-block;height:1.5em;opacity:1}.no-touch .SidebarLink:hover{opacity:.65}.no-touch .SidebarLink:active{opacity:.85}.SidebarLink svg{width:1.5em;height:1.5em}.SidebarLink img{width:1.75em;height:1.5em}.SidebarLink.left{left:5%}.SidebarLink.right{right:5%;float:right}.SidebarTop{background:#E3E5E7;width:100%;margin-bottom:7.5%;border-bottom:1px solid #009BCD;cursor:pointer}.no-touch .SidebarTop{position:sticky;top:0}.admin-bar .sidebar{top:32px}@media screen and (max-width:782px){.admin-bar .sidebar{top:46px}}.SidebarClose{-webkit-transition:opacity .25s ease-out;transition:opacity .25s ease-out;padding:3.5%;display:block;opacity:1;height:1.4em;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.no-touch .SidebarTop:hover .SidebarClose{opacity:.65}.no-touch .SidebarTop:hover .SidebarClose:active{opacity:.85}.SidebarClose img,.SidebarClose svg{height:1.4em;width:1.4em}.sidebar{-webkit-transition:-webkit-transform .35s ease-out;transition:transform .35s ease-out;top:0;width:95%;font-size:.95em;background:#E3E5E7;position:fixed;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch;z-index:5}.sidebar.left{-webkit-transform:translateX(-110%);-ms-transform:translateX(-110%);transform:translateX(-110%);left:0;-webkit-box-shadow:1px 0 15px rgba(0,0,0,.5);box-shadow:1px 0 15px rgba(0,0,0,.5)}.sidebar.right{-webkit-transform:translateX(110%);-ms-transform:translateX(110%);transform:translateX(110%);right:0;-webkit-box-shadow:-1px 0 15px rgba(0,0,0,.5);box-shadow:-1px 0 15px rgba(0,0,0,.5)}.SidebarContent{margin:0 5%}.sidebar.left.visible,.sidebar.right.visible{-webkit-transform:translateX(0%);-ms-transform:translateX(0%);transform:translateX(0%)}.no-csstransforms .sidebar.left{left:-100%}.no-csstransforms .sidebar.constant.left,.no-csstransforms .sidebar.left.visible{left:0}.no-csstransforms .sidebar.right{right:-100%}.no-csstransforms .sidebar.constant.right,.no-csstransforms .sidebar.right.visible{right:0}.format-link .entry-title a{text-decoration:underline;color:#444}.no-touch .format-link .entry-title a:hover{color:#009BCD;border-bottom:0}.no-touch .format-link .entry-title a:active{color:#007EA6;border-bottom:0}.link-title-arrow{padding:0 .25em}.archive .format-quote .entry-content,.blog .format-quote .entry-content,.single .format-quote .entry-content{margin-top:3%;font-size:2em;line-height:1.5}.format-quote blockquote{padding-left:0;border-left:0}.format-quote p:before{content:'\201C';font-size:1.3em}.format-quote p:after{content:'\201D';font-size:1.3em}.format-quote .entry-meta .date:after,.format-quote .entry-meta .date:before,.format-quote .reply .replytrigger:after,.format-quote .reply .replytrigger:before{content:""}.archive .format-aside .entry-header,.blog .format-aside .entry-header{display:none}.format-aside .entry-content{font-style:italic}.mejs-container{max-width:100%!important}.explore-page{margin:5% auto 0}.post-lists{margin:1.5%}.explore-page .search-form{text-align:center}.explore-page .widget h1{color:#444;font-size:1.15em;border-bottom:1px solid #009BCD;padding-bottom:1%}.explore-page .widget:not(.search){-webkit-transition:-webkit-box-shadow .35s ease-out;transition:box-shadow .35s ease-out;width:90%;padding:2.5% 5%;margin:0 auto 5%;font-size:1em;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3);box-shadow:0 1px 4px rgba(0,0,0,.3)}.explore-page .widget:not(.search):hover{-webkit-box-shadow:0 2px 5px rgba(0,0,0,.4);box-shadow:0 2px 5px rgba(0,0,0,.4)}.explore-page .widget.archives ul,.explore-page .widget.categories>ul{height:15em;margin:0;overflow:scroll;-webkit-overflow-scrolling:touch}.explore-page .widget.search{margin-bottom:7.5%}.explore-page .widget.recent-posts ul{list-style:none;margin:0}.image-navigation,.paging-navigation,.post-navigation{margin:2.5%;overflow:hidden}.nav-next,.nav-previous{word-wrap:break-word}.nav-links a[rel=prev],.nav-previous{float:left;text-align:left;width:50%}.nav-links a[rel=next],.nav-next{float:right;text-align:right;width:50%}.nav-links a{-webkit-transition:padding .25s ease-out,color .25s ease-out;transition:padding .25s ease-out,color .25s ease-out;padding:0;display:block}.no-touch .nav-links a:hover{padding:0 2.5%}.comments-area{margin:3.5% auto 5%}.comment,.comment-body{margin:2.5% 0;padding-bottom:2.5%;border-bottom:1px solid silver}.comment-body:last-child,.comment:last-child{padding-bottom:0;border-bottom:0}.comment-content a{word-wrap:break-word}.comment-author.vcard img{margin:0;border-radius:100%}.comment-metadata a{-webkit-transition:color .25s ease-out;transition:color .25s ease-out;color:gray;font-size:.8em;margin-right:1.5%}.no-touch .comment-metadata a:hover{color:#009BCD}.no-touch .comment-metadata a:active{color:#007EA6}li.comment{list-style:none}#respond{margin-top:7.5%}.form-allowed-tags{display:none;font-size:.9em}.search-form{margin-bottom:2.5%}.search-entry,.search-entry .entry-title{-webkit-transition:color .25s ease-out;transition:color .25s ease-out;color:#444;display:block}.search-entry .entry-title{font-size:1.25em;margin-bottom:.5em}.no-touch .search-entry:hover,.no-touch .search-entry:hover .entry-title{color:#009BCD}.no-touch .search-entry:active,.no-touch .search-entry:active .entry-title{color:#007EA6}.search .site-main .search-form{margin-top:2.5%}.search .page-header input[type=search]{color:gray;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent;border-radius:0;font-size:1.25em}.no-touch .search .page-header input[type=search]:hover{border-color:#A6A6A6;border-radius:3px}.search .page-header input[type=search]:focus{color:#444;border-color:#009BCD;border-radius:3px}.search .page-header .search-submit{font-size:1.25em;border-color:transparent;padding:0 1em}.search .page,.search .post{margin-bottom:10%}.search-highlight{background:rgba(255,255,0,.25)}.search footer{width:90%;border-bottom:1px solid #009BCD;margin:0 auto}.author-section{-webkit-transition:-webkit-box-shadow .35s ease-out;transition:box-shadow .35s ease-out;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.3);box-shadow:0 1px 4px rgba(0,0,0,.3);padding:3.5%;margin:0 auto 3.5%;text-align:left}.author-section:hover{-webkit-box-shadow:0 2px 5px rgba(0,0,0,.4);box-shadow:0 2px 5px rgba(0,0,0,.4)}.author-image{width:25%;max-width:125px;float:left}.author-image img{-webkit-transition:-webkit-box-shadow .35s ease-out,opacity .35s ease-out;transition:box-shadow .35s ease-out,opacity .35s ease-out;border-radius:50%;display:block;-webkit-box-shadow:0 0 5px rgba(0,0,0,0);box-shadow:0 0 5px rgba(0,0,0,0);opacity:1}.no-touch .author-image img:hover{-webkit-box-shadow:0 2px 5px rgba(0,0,0,.5);box-shadow:0 2px 5px rgba(0,0,0,.5);opacity:1}.no-touch .author-image img:active{-webkit-box-shadow:0 1px 4px rgba(0,0,0,.4);box-shadow:0 1px 4px rgba(0,0,0,.4);opacity:.85}.author-text{width:65%;float:left;margin-left:5%}.author-name{font-size:1.4em}.author-name a{color:#444}.author-bio,.author-site{font-size:.9em}.author .author-section{width:90%;max-width:15em;padding:2.5%;margin:7.5% auto 0;text-align:center;font-size:1.1em}.author .author-image{width:33%;max-width:175px;float:none;margin:0 auto}.author .author-text{width:95%;float:none;margin:0 auto}.widget{margin:0 0 1.5em}.widget select{max-width:100%}.infinite-scroll .paging-navigation,.infinite-scroll.neverending .site-footer,.widget_search .submit{display:none}.infinity-end.neverending .site-footer{display:block}@media only screen and (min-width:35em){.sidebar-style-constant .site-footer,.sidebar-style-constant .site-header,.sidebar-style-constant .site-main,.site-footer,.site-header,.site-main{width:82.5%}.SidebarLink{position:fixed;height:1.75em;width:1.75em;top:2.5%}.admin-bar .SidebarLink{top:7.5%}.SidebarLink svg{width:1.75em;height:1.75em}.SidebarLink img{width:2em;height:1.75em}.SidebarLink.left{left:2.5%}.SidebarLink.right{right:2.5%}.sidebar{width:55%}}@media only screen and (min-width:50em){.site-footer,.site-header,.site-main{width:80%}.site.sidebar-style-constant{margin:0 auto;width:67%;height:100%;position:fixed;overflow-y:scroll;-webkit-overflow-scrolling:touch}.site.sidebar-style-left{right:0}.site.sidebar-style-right{left:0}.site-scroll{margin:3.5% 2.5% 0}.site-scroll .site-header{margin-top:0}.sidebar-style-constant .site-footer,.sidebar-style-constant .site-header,.sidebar-style-constant .site-main{width:100%;max-width:45em}.page-header{margin:0 auto 5%}.site-title a{font-size:2.8em}.no-touch .site-description a:hover{border-bottom:1px solid #009BCD}.no-touch .site-description a:active{color:#007EA6;border-bottom:1px solid #007EA6}.author .author-section{width:75%;max-width:100%;font-size:1.25em;margin-top:3.5%}.sociallinks{margin:1.5% auto}.sociallink.mobile{display:none}.sociallink.desktop{display:inline}.sociallink img,.sociallink svg{height:2.5em;width:2.5em;margin:0 1%}.main-navigation li{margin:0 1.5%}.SidebarLink{top:5%}.sidebar-style-constant .SidebarLink,.sidebar.constant .SidebarTop{display:none}.sidebar{width:33%}.sidebar.constant .SidebarContent{margin-top:5%}.sidebar.constant{-webkit-transform:translateX(0%);-ms-transform:translateX(0%);transform:translateX(0%);-webkit-box-shadow:none;box-shadow:none}.sidebar.constant.left{border-right:1px solid #009BCD}.sidebar.constant.right{border-left:1px solid #009BCD}.no-csstransforms .sidebar.left{left:-40%}.no-csstransforms .sidebar.right{right:-40%}.SidebarClose{padding:2.5%}.entry-title{font-size:2em;width:80%}article.post{margin:2.5% auto 5%}.entry-content h1{font-size:2.5em}.entry-content h2{font-size:2.125em}.entry-content h3{font-size:1.75em}.entry-content h4{font-size:1.375em}.entry-content h5{font-size:1.25em}.entry-content h6{font-size:1.125em}.post .entry-meta,.search footer{width:85%}.search .page,.search .post{margin-bottom:5%}.explore-page .widget.search{margin-bottom:3.5%}.archive .format-quote .entry-content,.blog .format-quote .entry-content,.single .format-quote .entry-content{font-size:2.75em}.sidebar-style-constant .site-footer{margin-bottom:5%}}@media only screen and (min-width:68.5em){.site-title a{font-size:3.5em}.sociallink img,.sociallink svg{height:2.75em;width:2.75em;margin:0 1%}.site-footer,.site-header,.site-main{width:60%;max-width:45em}.site-header{max-width:60em}.site.sidebar-style-constant{width:75%}.page-header{margin-bottom:3.5%}.entry-title{font-size:2.25em}.SidebarLink.left{left:7.5%}.SidebarLink.right{right:7.5%}.sidebar{width:25%;max-width:30em}.no-csstransforms .sidebar.left{left:-30%}.no-csstransforms .sidebar.right{right:-30%}article.post{margin-bottom:10%}}@media only print{.SidebarLink,.comment-respond,.main-navigation,.paging-navigation,.post-navigation,.sociallinks{display:none}.site-header{padding-bottom:2.5%;margin-top:0}} \ No newline at end of file diff --git a/functions.php b/functions.php index 61e4227..691d12f 100644 --- a/functions.php +++ b/functions.php @@ -89,7 +89,7 @@ function decode_widgets_init() { if ( ! function_exists( 'decode_add_editor_styles' ) ) { function decode_add_editor_styles() { - add_editor_style( 'editor-style.css' ); + add_editor_style( 'css/editor-style.min.css' ); } } add_action( 'init', 'decode_add_editor_styles' ); @@ -137,14 +137,18 @@ function decode_search_title_highlight() { function decode_scripts() { - wp_enqueue_style( 'decode-style', get_stylesheet_uri(), array(), "2.8.2" ); + wp_enqueue_style( 'decode-style', get_stylesheet_directory_uri().'/css/style.min.css', array(), "2.8.3" ); wp_enqueue_style( 'decode-font-stylesheet', '//fonts.googleapis.com/css?family=Oxygen&subset=latin-ext' ); - wp_enqueue_script( 'decode-modernizr', get_template_directory_uri() . '/js/modernizr.js', array(), '2.8.1', false ); - - wp_enqueue_script( 'decode-scripts', get_template_directory_uri() . '/js/decode.js', array(), '2.8.1', false ); - + if ( get_theme_mod( 'show_sidebar', true ) == false ) { + wp_enqueue_script( 'decode-scripts', get_template_directory_uri() . '/js/build/decode.min.js', array(), '2.8.3', false ); + } + + if ( get_theme_mod( 'show_sidebar', true ) == true ) { + wp_enqueue_script( 'decode-sidebar', get_template_directory_uri() . '/js/build/decode-with-sidebar.min.js', array('jquery'), '2.8.3', true ); + } + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } @@ -152,11 +156,7 @@ function decode_scripts() { if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'decode-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '2.7.5', true ); } - - if ( get_theme_mod( 'show_sidebar', true ) == true ) { - wp_enqueue_script( 'decode-fastclick', get_template_directory_uri() . '/js/fastclick.js', array(), '2.7.5', true ); - wp_enqueue_script( 'decode-sidebar', get_template_directory_uri() . '/js/sidebar.js', array('jquery'), '2.6', true ); - } + } } add_action( 'wp_enqueue_scripts', 'decode_scripts' ); @@ -175,7 +175,7 @@ function decode_customize_css() background: ; } - body, button, select, textarea, .site-title a, .no-touch .site-title a:hover, .no-touch .site-title a:active, .main-navigation a, .no-touch .main-navigation a:hover, .no-touch .main-navigation a:active, .entry-title, .search-entry, .search-entry .entry-title, .entry-title a, .format-link .entry-title h2 a, .read-more, .author-name a, .explore-page .widget h1, .search .page-header input[type="search"]:focus, .search .page-header input[type="search"]:hover:focus, .decode-reply-tool-plugin .replylink, .decode-reply-tool-plugin .replytrigger { + body, button, select, textarea, .site-title a, .no-touch .site-title a:hover, .no-touch .site-title a:active, .main-navigation a, .no-touch .main-navigation a:hover, .no-touch .main-navigation a:active, .entry-title, .search-entry, .search-entry .entry-title, .entry-title a, .format-link .entry-title h2 a, .read-more, .author-name a, .explore-page .widget h1, .search .page-header input[type="search"]:focus, .decode-reply-tool-plugin .replylink, .decode-reply-tool-plugin .replytrigger { color: ; } @@ -193,7 +193,7 @@ function decode_customize_css() color: ; } - .no-touch button:hover, .no-touch input[type="button"]:hover, .no-touch input[type="reset"]:hover, .no-touch input[type="submit"]:hover, .no-touch .entry-content a:hover, .no-touch .entry-meta a:hover, .no-touch .author-site a:hover, .site-header, .page-title, .post blockquote, .page blockquote, .post .entry-meta, .search footer, .no-touch .theme-info a:hover, .SidebarTop, .sidebar.constant.left, .sidebar.constant.right, .no-touch .site-description a:hover, .explore-page .widget h1, button:focus, .no-touch input[type='text']:focus, .touch input[type='text']:focus, .no-touch input[type='email']:focus, .touch input[type='email']:focus, .no-touch input[type='password']:focus, .touch input[type='password']:focus, .no-touch input[type='search']:focus, .touch input[type='search']:focus, .no-touch input[type="tel"]:focus, .touch input[type="tel"]:focus, .no-touch input[type="url"]:focus, .touch input[type="url"]:focus, .no-touch textarea:focus, .touch textarea:focus, .search .page-header input[type="search"]:focus, .search .page-header input[type="search"]:hover:focus { + .no-touch button:hover, .no-touch input[type="button"]:hover, .no-touch input[type="reset"]:hover, .no-touch input[type="submit"]:hover, .no-touch .entry-content a:hover, .no-touch .entry-meta a:hover, .no-touch .author-site a:hover, .site-header, .page-title, .post blockquote, .page blockquote, .post .entry-meta, .search footer, .no-touch .theme-info a:hover, .SidebarTop, .sidebar.constant.left, .sidebar.constant.right, .no-touch .site-description a:hover, .explore-page .widget h1, button:focus, .no-touch input[type='text']:focus, .touch input[type='text']:focus, .no-touch input[type='email']:focus, .touch input[type='email']:focus, .no-touch input[type='password']:focus, .touch input[type='password']:focus, .no-touch input[type='search']:focus, .touch input[type='search']:focus, .no-touch input[type="tel"]:focus, .touch input[type="tel"]:focus, .no-touch input[type="url"]:focus, .touch input[type="url"]:focus, .no-touch textarea:focus, .touch textarea:focus, .search .page-header input[type="search"]:focus { border-color: ; } @@ -205,7 +205,7 @@ function decode_customize_css() border-color: ; } - .tags, .categories, .entry-meta .date, .entry-meta .date a, .comment-metadata a { + .tags, .categories, .entry-meta .date, .entry-meta .date a, .comment-metadata a, .search .page-header input[type="search"] { color: ; } diff --git a/gruntfile.js b/gruntfile.js new file mode 100644 index 0000000..c70fa1e --- /dev/null +++ b/gruntfile.js @@ -0,0 +1,95 @@ +module.exports = function(grunt) { + + // Configuration + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + + concat: { + dist_decode_basic: { + src: [ + 'js/modernizr.js', + 'js/decode.js', + ], + dest: 'js/build/decode.js', + }, + + dist_decode_with_sidebar: { + src: [ + 'js/modernizr.js', + 'js/decode.js', + 'js/fastclick.js', + 'js/sidebar.js' + ], + dest: 'js/build/decode-with-sidebar.js', + } + }, + + uglify: { + build_decode_basic: { + src: 'js/build/decode.js', + dest: 'js/build/decode.min.js' + }, + build_decode_with_sidebar: { + src: 'js/build/decode-with-sidebar.js', + dest: 'js/build/decode-with-sidebar.min.js' + } + }, + + autoprefixer: { + options: { + browsers: ['> 1%', 'last 2 versions', 'ie 9', 'ie 8', 'ie 7'] + }, + dist: { + expand: true, + flatten: true, + src: ['*.css', '!rtl.css'], + dest: 'css/' + } + }, + + cssmin: { + minify: { + expand: true, + cwd: 'css/', + src: ['*.css', '!*.min.css'], + dest: 'css/', + ext: '.min.css' + } + }, + + watch: { + options: { + livereload: true, + }, + scripts: { + files: ['js/*.js'], + tasks: ['concat', 'uglify'], + options: { + spawn: false, + } + }, + css: { + files: ['style.css'], + tasks: ['autoprefixer', 'cssmin'], + options: { + spawn: false, + } + } + } + }); + + // Plugin List + grunt.loadNpmTasks('grunt-contrib-concat'); + grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-autoprefixer'); + grunt.loadNpmTasks('grunt-contrib-cssmin'); + grunt.loadNpmTasks('grunt-contrib-watch'); + + // Workflows + // $grunt + grunt.registerTask('default', ['concat', 'uglify', 'autoprefixer', 'cssmin']); + + // $grunt dev + grunt.registerTask('dev', ['watch']); + +} \ No newline at end of file diff --git a/header.php b/header.php index 66dee57..e9f049c 100644 --- a/header.php +++ b/header.php @@ -14,8 +14,8 @@ <?php wp_title( '|', true, 'right' ); ?> -'; ?> -'; ?> +'; } ?> +'; } ?> @@ -394,6 +394,30 @@ + + rel="me"> + + Steam + + + + + + + + + + rel="me"> + + Steam + + + + + + + + rel="me"> diff --git a/images/Steam.png b/images/Steam.png new file mode 100644 index 0000000..3b56113 Binary files /dev/null and b/images/Steam.png differ diff --git a/inc/customizer.php b/inc/customizer.php index 852078e..f3c0480 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -336,6 +336,14 @@ public function render_content() { 'default' => '', ) ); + $wp_customize->add_setting( 'steam_username', array( + 'default' => '', + ) ); + + $wp_customize->add_setting( 'steam_group_name', array( + 'default' => '', + ) ); + $wp_customize->add_setting( 'skype_username', array( 'default' => '', ) ); @@ -552,25 +560,39 @@ public function render_content() { 'priority'=> 29, ) ); + $wp_customize->add_control( 'steam_username', array( + 'label' => 'Steam ' . __( 'Username', 'decode' ), + 'section' => 'decode_social_options', + 'type' => 'text', + 'priority'=> 30, + ) ); + + $wp_customize->add_control( 'steam_group_name', array( + 'label' => 'Steam ' . __( 'Group Name', 'decode' ), + 'section' => 'decode_social_options', + 'type' => 'text', + 'priority'=> 31, + ) ); + $wp_customize->add_control( 'skype_username', array( 'label' => 'Skype ' . __( 'Username', 'decode' ), 'section' => 'decode_social_options', 'type' => 'text', - 'priority'=> 30, + 'priority'=> 32, ) ); $wp_customize->add_control( 'show_rss_icon', array( 'label' => __( 'RSS Feed', 'decode' ), 'section' => 'decode_social_options', 'type' => 'checkbox', - 'priority'=> 31, + 'priority'=> 33, ) ); $wp_customize->add_control( 'email_address', array( 'label' => __( 'Email Address', 'decode' ), 'section' => 'decode_social_options', 'type' => 'text', - 'priority'=> 32, + 'priority'=> 34, ) ); @@ -613,6 +635,11 @@ public function render_content() { 'transport' => 'refresh', ) ); + $wp_customize->add_setting( 'show_entry_date_on_excerpts', array( + 'default' => false, + 'transport' => 'refresh', + ) ); + $wp_customize->add_setting( 'show_page_headers', array( 'default' => true, 'transport' => 'refresh', @@ -686,26 +713,33 @@ public function render_content() { 'type' => 'checkbox', 'priority'=> 7, ) ); + + $wp_customize->add_control( 'show_entry_date_on_excerpts', array( + 'label' => __( 'Show entry date for post excepts on the main page', 'decode' ), + 'section' => 'decode_reading_options', + 'type' => 'checkbox', + 'priority'=> 8, + ) ); $wp_customize->add_control( 'link_post_title_arrow', array( 'label' => __( 'Add an arrow before the title of a link post', 'decode' ), 'section' => 'decode_reading_options', 'type' => 'checkbox', - 'priority'=> 8, + 'priority'=> 9, ) ); $wp_customize->add_control( 'show_theme_info', array( 'label' => __( 'Show Theme Info (display a line of text about the theme and its creator at the bottom of pages)', 'decode' ), 'section' => 'decode_reading_options', 'type' => 'checkbox', - 'priority'=> 9, + 'priority'=> 10, ) ); $wp_customize->add_control( new Decode_Customize_Textarea_Control( $wp_customize, 'site_colophon', array( 'label' => __( 'Text (colophon, copyright, credits, etc.) for the footer of the site', 'decode' ), 'section' => 'decode_reading_options', 'settings'=> 'site_colophon', - 'priority'=> 10, + 'priority'=> 11, ) ) ); diff --git a/js/build/decode-with-sidebar.js b/js/build/decode-with-sidebar.js new file mode 100644 index 0000000..e28ff98 --- /dev/null +++ b/js/build/decode-with-sidebar.js @@ -0,0 +1,1580 @@ +/* Modernizr 2.7.1 (Custom Build) | MIT & BSD + * Build: http://modernizr.com/download/#-csstransforms-touch-printshiv-mq-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load + */ +; + + + +window.Modernizr = (function( window, document, undefined ) { + + var version = '2.7.1', + + Modernizr = {}, + + enableClasses = true, + + docElement = document.documentElement, + + mod = 'modernizr', + modElem = document.createElement(mod), + mStyle = modElem.style, + + inputElem , + + + toString = {}.toString, + + prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), + + + + omPrefixes = 'Webkit Moz O ms', + + cssomPrefixes = omPrefixes.split(' '), + + domPrefixes = omPrefixes.toLowerCase().split(' '), + + + tests = {}, + inputs = {}, + attrs = {}, + + classes = [], + + slice = classes.slice, + + featureName, + + + injectElementWithStyles = function( rule, callback, nodes, testnames ) { + + var style, ret, node, docOverflow, + div = document.createElement('div'), + body = document.body, + fakeBody = body || document.createElement('body'); + + if ( parseInt(nodes, 10) ) { + while ( nodes-- ) { + node = document.createElement('div'); + node.id = testnames ? testnames[nodes] : mod + (nodes + 1); + div.appendChild(node); + } + } + + style = ['­',''].join(''); + div.id = mod; + (body ? div : fakeBody).innerHTML += style; + fakeBody.appendChild(div); + if ( !body ) { + fakeBody.style.background = ''; + fakeBody.style.overflow = 'hidden'; + docOverflow = docElement.style.overflow; + docElement.style.overflow = 'hidden'; + docElement.appendChild(fakeBody); + } + + ret = callback(div, rule); + if ( !body ) { + fakeBody.parentNode.removeChild(fakeBody); + docElement.style.overflow = docOverflow; + } else { + div.parentNode.removeChild(div); + } + + return !!ret; + + }, + + testMediaQuery = function( mq ) { + + var matchMedia = window.matchMedia || window.msMatchMedia; + if ( matchMedia ) { + return matchMedia(mq).matches; + } + + var bool; + + injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { + bool = (window.getComputedStyle ? + getComputedStyle(node, null) : + node.currentStyle)['position'] == 'absolute'; + }); + + return bool; + + }, + _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; + + if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { + hasOwnProp = function (object, property) { + return _hasOwnProperty.call(object, property); + }; + } + else { + hasOwnProp = function (object, property) { + return ((property in object) && is(object.constructor.prototype[property], 'undefined')); + }; + } + + + if (!Function.prototype.bind) { + Function.prototype.bind = function bind(that) { + + var target = this; + + if (typeof target != "function") { + throw new TypeError(); + } + + var args = slice.call(arguments, 1), + bound = function () { + + if (this instanceof bound) { + + var F = function(){}; + F.prototype = target.prototype; + var self = new F(); + + var result = target.apply( + self, + args.concat(slice.call(arguments)) + ); + if (Object(result) === result) { + return result; + } + return self; + + } else { + + return target.apply( + that, + args.concat(slice.call(arguments)) + ); + + } + + }; + + return bound; + }; + } + + function setCss( str ) { + mStyle.cssText = str; + } + + function setCssAll( str1, str2 ) { + return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); + } + + function is( obj, type ) { + return typeof obj === type; + } + + function contains( str, substr ) { + return !!~('' + str).indexOf(substr); + } + + function testProps( props, prefixed ) { + for ( var i in props ) { + var prop = props[i]; + if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { + return prefixed == 'pfx' ? prop : true; + } + } + return false; + } + + function testDOMProps( props, obj, elem ) { + for ( var i in props ) { + var item = obj[props[i]]; + if ( item !== undefined) { + + if (elem === false) return props[i]; + + if (is(item, 'function')){ + return item.bind(elem || obj); + } + + return item; + } + } + return false; + } + + function testPropsAll( prop, prefixed, elem ) { + + var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), + props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); + + if(is(prefixed, "string") || is(prefixed, "undefined")) { + return testProps(props, prefixed); + + } else { + props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); + return testDOMProps(props, prefixed, elem); + } + } tests['touch'] = function() { + var bool; + + if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + bool = true; + } else { + injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { + bool = node.offsetTop === 9; + }); + } + + return bool; + }; + + + + tests['csstransforms'] = function() { + return !!testPropsAll('transform'); + }; + + + for ( var feature in tests ) { + if ( hasOwnProp(tests, feature) ) { + featureName = feature.toLowerCase(); + Modernizr[featureName] = tests[feature](); + + classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); + } + } + + + + Modernizr.addTest = function ( feature, test ) { + if ( typeof feature == 'object' ) { + for ( var key in feature ) { + if ( hasOwnProp( feature, key ) ) { + Modernizr.addTest( key, feature[ key ] ); + } + } + } else { + + feature = feature.toLowerCase(); + + if ( Modernizr[feature] !== undefined ) { + return Modernizr; + } + + test = typeof test == 'function' ? test() : test; + + if (typeof enableClasses !== "undefined" && enableClasses) { + docElement.className += ' ' + (test ? '' : 'no-') + feature; + } + Modernizr[feature] = test; + + } + + return Modernizr; + }; + + + setCss(''); + modElem = inputElem = null; + + + Modernizr._version = version; + + Modernizr._prefixes = prefixes; + Modernizr._domPrefixes = domPrefixes; + Modernizr._cssomPrefixes = cssomPrefixes; + + Modernizr.mq = testMediaQuery; + + + Modernizr.testProp = function(prop){ + return testProps([prop]); + }; + + Modernizr.testAllProps = testPropsAll; + + + Modernizr.testStyles = injectElementWithStyles; docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + + + (enableClasses ? ' js ' + classes.join(' ') : ''); + + return Modernizr; + +})(this, this.document); +/** +* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +;(function(window, document) { +/*jshint evil:true */ + /** version */ + var version = '3.7.0'; + + /** Preset options */ + var options = window.html5 || {}; + + /** Used to skip problem elements */ + var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; + + /** Not all elements can be cloned in IE **/ + var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; + + /** Detect whether the browser supports default html5 styles */ + var supportsHtml5Styles; + + /** Name of the expando, to work with multiple documents or to re-shiv one document */ + var expando = '_html5shiv'; + + /** The id for the the documents expando */ + var expanID = 0; + + /** Cached data for each document */ + var expandoData = {}; + + /** Detect whether the browser supports unknown elements */ + var supportsUnknownElements; + + (function() { + try { + var a = document.createElement('a'); + a.innerHTML = ''; + //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles + supportsHtml5Styles = ('hidden' in a); + + supportsUnknownElements = a.childNodes.length == 1 || (function() { + // assign a false positive if unable to shiv + (document.createElement)('a'); + var frag = document.createDocumentFragment(); + return ( + typeof frag.cloneNode == 'undefined' || + typeof frag.createDocumentFragment == 'undefined' || + typeof frag.createElement == 'undefined' + ); + }()); + } catch(e) { + // assign a false positive if detection fails => unable to shiv + supportsHtml5Styles = true; + supportsUnknownElements = true; + } + + }()); + + /*--------------------------------------------------------------------------*/ + + /** + * Creates a style sheet with the given CSS text and adds it to the document. + * @private + * @param {Document} ownerDocument The document. + * @param {String} cssText The CSS text. + * @returns {StyleSheet} The style element. + */ + function addStyleSheet(ownerDocument, cssText) { + var p = ownerDocument.createElement('p'), + parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; + + p.innerHTML = 'x'; + return parent.insertBefore(p.lastChild, parent.firstChild); + } + + /** + * Returns the value of `html5.elements` as an array. + * @private + * @returns {Array} An array of shived element node names. + */ + function getElements() { + var elements = html5.elements; + return typeof elements == 'string' ? elements.split(' ') : elements; + } + + /** + * Returns the data associated to the given document + * @private + * @param {Document} ownerDocument The document. + * @returns {Object} An object of data. + */ + function getExpandoData(ownerDocument) { + var data = expandoData[ownerDocument[expando]]; + if (!data) { + data = {}; + expanID++; + ownerDocument[expando] = expanID; + expandoData[expanID] = data; + } + return data; + } + + /** + * returns a shived element for the given nodeName and document + * @memberOf html5 + * @param {String} nodeName name of the element + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived element. + */ + function createElement(nodeName, ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createElement(nodeName); + } + if (!data) { + data = getExpandoData(ownerDocument); + } + var node; + + if (data.cache[nodeName]) { + node = data.cache[nodeName].cloneNode(); + } else if (saveClones.test(nodeName)) { + node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); + } else { + node = data.createElem(nodeName); + } + + // Avoid adding some elements to fragments in IE < 9 because + // * Attributes like `name` or `type` cannot be set/changed once an element + // is inserted into a document/fragment + // * Link elements with `src` attributes that are inaccessible, as with + // a 403 response, will cause the tab/window to crash + // * Script elements appended to fragments will execute when their `src` + // or `text` property is set + return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; + } + + /** + * returns a shived DocumentFragment for the given document + * @memberOf html5 + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived DocumentFragment. + */ + function createDocumentFragment(ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createDocumentFragment(); + } + data = data || getExpandoData(ownerDocument); + var clone = data.frag.cloneNode(), + i = 0, + elems = getElements(), + l = elems.length; + for(;i+~])(' + getElements().join('|') + ')(?=[[\\s,>+~#.:]|$)', 'gi'), + replacement = '$1' + shivNamespace + '\\:$2'; + + while (index--) { + pair = parts[index] = parts[index].split('}'); + pair[pair.length - 1] = pair[pair.length - 1].replace(reElements, replacement); + parts[index] = pair.join('}'); + } + return parts.join('{'); + } + + /** + * Removes the given wrappers, leaving the original elements. + * @private + * @params {Array} wrappers An array of printable wrappers. + */ + function removeWrappers(wrappers) { + var index = wrappers.length; + while (index--) { + wrappers[index].removeNode(); + } + } + + /*--------------------------------------------------------------------------*/ + + /** + * Shivs the given document for print. + * @memberOf html5 + * @param {Document} ownerDocument The document to shiv. + * @returns {Document} The shived document. + */ + function shivPrint(ownerDocument) { + var shivedSheet, + wrappers, + data = getExpandoData(ownerDocument), + namespaces = ownerDocument.namespaces, + ownerWindow = ownerDocument.parentWindow; + + if (!supportsShivableSheets || ownerDocument.printShived) { + return ownerDocument; + } + if (typeof namespaces[shivNamespace] == 'undefined') { + namespaces.add(shivNamespace); + } + + function removeSheet() { + clearTimeout(data._removeSheetTimer); + if (shivedSheet) { + shivedSheet.removeNode(true); + } + shivedSheet= null; + } + + ownerWindow.attachEvent('onbeforeprint', function() { + + removeSheet(); + + var imports, + length, + sheet, + collection = ownerDocument.styleSheets, + cssText = [], + index = collection.length, + sheets = Array(index); + + // convert styleSheets collection to an array + while (index--) { + sheets[index] = collection[index]; + } + // concat all style sheet CSS text + while ((sheet = sheets.pop())) { + // IE does not enforce a same origin policy for external style sheets... + // but has trouble with some dynamically created stylesheets + if (!sheet.disabled && reMedia.test(sheet.media)) { + + try { + imports = sheet.imports; + length = imports.length; + } catch(er){ + length = 0; + } + + for (index = 0; index < length; index++) { + sheets.push(imports[index]); + } + + try { + cssText.push(sheet.cssText); + } catch(er){} + } + } + + // wrap all HTML5 elements with printable elements and add the shived style sheet + cssText = shivCssText(cssText.reverse().join('')); + wrappers = addWrappers(ownerDocument); + shivedSheet = addStyleSheet(ownerDocument, cssText); + + }); + + ownerWindow.attachEvent('onafterprint', function() { + // remove wrappers, leaving the original elements, and remove the shived style sheet + removeWrappers(wrappers); + clearTimeout(data._removeSheetTimer); + data._removeSheetTimer = setTimeout(removeSheet, 500); + }); + + ownerDocument.printShived = true; + return ownerDocument; + } + + /*--------------------------------------------------------------------------*/ + + // expose API + html5.type += ' print'; + html5.shivPrint = shivPrint; + + // shiv for print + shivPrint(document); + +}(this, document)); +/*yepnope1.5.4|WTFPL*/ +(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f 0; + + +/** + * iOS requires exceptions. + * + * @type boolean + */ +FastClick.prototype.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent); + + +/** + * iOS 4 requires an exception for select elements. + * + * @type boolean + */ +FastClick.prototype.deviceIsIOS4 = FastClick.prototype.deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); + + +/** + * iOS 6.0(+?) requires the target element to be manually derived + * + * @type boolean + */ +FastClick.prototype.deviceIsIOSWithBadTarget = FastClick.prototype.deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent); + + +/** + * Determine whether a given element requires a native click. + * + * @param {EventTarget|Element} target Target DOM element + * @returns {boolean} Returns true if the element needs a native click + */ +FastClick.prototype.needsClick = function(target) { + 'use strict'; + switch (target.nodeName.toLowerCase()) { + + // Don't send a synthetic click to disabled inputs (issue #62) + case 'button': + case 'select': + case 'textarea': + if (target.disabled) { + return true; + } + + break; + case 'input': + + // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) + if ((this.deviceIsIOS && target.type === 'file') || target.disabled) { + return true; + } + + break; + case 'label': + case 'video': + return true; + } + + return (/\bneedsclick\b/).test(target.className); +}; + + +/** + * Determine whether a given element requires a call to focus to simulate click into element. + * + * @param {EventTarget|Element} target Target DOM element + * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. + */ +FastClick.prototype.needsFocus = function(target) { + 'use strict'; + switch (target.nodeName.toLowerCase()) { + case 'textarea': + case 'select': + return true; + case 'input': + switch (target.type) { + case 'button': + case 'checkbox': + case 'file': + case 'image': + case 'radio': + case 'submit': + return false; + } + + // No point in attempting to focus disabled inputs + return !target.disabled && !target.readOnly; + default: + return (/\bneedsfocus\b/).test(target.className); + } +}; + + +/** + * Send a click event to the specified element. + * + * @param {EventTarget|Element} targetElement + * @param {Event} event + */ +FastClick.prototype.sendClick = function(targetElement, event) { + 'use strict'; + var clickEvent, touch; + + // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) + if (document.activeElement && document.activeElement !== targetElement) { + document.activeElement.blur(); + } + + touch = event.changedTouches[0]; + + // Synthesise a click event, with an extra attribute so it can be tracked + clickEvent = document.createEvent('MouseEvents'); + clickEvent.initMouseEvent('click', true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); + clickEvent.forwardedTouchEvent = true; + targetElement.dispatchEvent(clickEvent); +}; + + +/** + * @param {EventTarget|Element} targetElement + */ +FastClick.prototype.focus = function(targetElement) { + 'use strict'; + var length; + + if (this.deviceIsIOS && targetElement.setSelectionRange) { + length = targetElement.value.length; + targetElement.setSelectionRange(length, length); + } else { + targetElement.focus(); + } +}; + + +/** + * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. + * + * @param {EventTarget|Element} targetElement + */ +FastClick.prototype.updateScrollParent = function(targetElement) { + 'use strict'; + var scrollParent, parentElement; + + scrollParent = targetElement.fastClickScrollParent; + + // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the + // target element was moved to another parent. + if (!scrollParent || !scrollParent.contains(targetElement)) { + parentElement = targetElement; + do { + if (parentElement.scrollHeight > parentElement.offsetHeight) { + scrollParent = parentElement; + targetElement.fastClickScrollParent = parentElement; + break; + } + + parentElement = parentElement.parentElement; + } while (parentElement); + } + + // Always update the scroll top tracker if possible. + if (scrollParent) { + scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; + } +}; + + +/** + * @param {EventTarget} targetElement + * @returns {Element|EventTarget} + */ +FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { + 'use strict'; + + // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. + if (eventTarget.nodeType === Node.TEXT_NODE) { + return eventTarget.parentNode; + } + + return eventTarget; +}; + + +/** + * On touch start, record the position and scroll offset. + * + * @param {Event} event + * @returns {boolean} + */ +FastClick.prototype.onTouchStart = function(event) { + 'use strict'; + var targetElement, touch, selection; + + // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). + if (event.targetTouches.length > 1) { + return true; + } + + targetElement = this.getTargetElementFromEventTarget(event.target); + touch = event.targetTouches[0]; + + if (this.deviceIsIOS) { + + // Only trusted events will deselect text on iOS (issue #49) + selection = window.getSelection(); + if (selection.rangeCount && !selection.isCollapsed) { + return true; + } + + if (!this.deviceIsIOS4) { + + // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): + // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched + // with the same identifier as the touch event that previously triggered the click that triggered the alert. + // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an + // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. + if (touch.identifier === this.lastTouchIdentifier) { + event.preventDefault(); + return false; + } + + this.lastTouchIdentifier = touch.identifier; + + // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: + // 1) the user does a fling scroll on the scrollable layer + // 2) the user stops the fling scroll with another tap + // then the event.target of the last 'touchend' event will be the element that was under the user's finger + // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check + // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). + this.updateScrollParent(targetElement); + } + } + + this.trackingClick = true; + this.trackingClickStart = event.timeStamp; + this.targetElement = targetElement; + + this.touchStartX = touch.pageX; + this.touchStartY = touch.pageY; + + // Prevent phantom clicks on fast double-tap (issue #36) + if ((event.timeStamp - this.lastClickTime) < 200) { + event.preventDefault(); + } + + return true; +}; + + +/** + * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. + * + * @param {Event} event + * @returns {boolean} + */ +FastClick.prototype.touchHasMoved = function(event) { + 'use strict'; + var touch = event.changedTouches[0], boundary = this.touchBoundary; + + if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { + return true; + } + + return false; +}; + + +/** + * Update the last position. + * + * @param {Event} event + * @returns {boolean} + */ +FastClick.prototype.onTouchMove = function(event) { + 'use strict'; + if (!this.trackingClick) { + return true; + } + + // If the touch has moved, cancel the click tracking + if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { + this.trackingClick = false; + this.targetElement = null; + } + + return true; +}; + + +/** + * Attempt to find the labelled control for the given label element. + * + * @param {EventTarget|HTMLLabelElement} labelElement + * @returns {Element|null} + */ +FastClick.prototype.findControl = function(labelElement) { + 'use strict'; + + // Fast path for newer browsers supporting the HTML5 control attribute + if (labelElement.control !== undefined) { + return labelElement.control; + } + + // All browsers under test that support touch events also support the HTML5 htmlFor attribute + if (labelElement.htmlFor) { + return document.getElementById(labelElement.htmlFor); + } + + // If no for attribute exists, attempt to retrieve the first labellable descendant element + // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label + return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); +}; + + +/** + * On touch end, determine whether to send a click event at once. + * + * @param {Event} event + * @returns {boolean} + */ +FastClick.prototype.onTouchEnd = function(event) { + 'use strict'; + var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; + + if (!this.trackingClick) { + return true; + } + + // Prevent phantom clicks on fast double-tap (issue #36) + if ((event.timeStamp - this.lastClickTime) < 200) { + this.cancelNextClick = true; + return true; + } + + this.lastClickTime = event.timeStamp; + + trackingClickStart = this.trackingClickStart; + this.trackingClick = false; + this.trackingClickStart = 0; + + // On some iOS devices, the targetElement supplied with the event is invalid if the layer + // is performing a transition or scroll, and has to be re-detected manually. Note that + // for this to function correctly, it must be called *after* the event target is checked! + // See issue #57; also filed as rdar://13048589 . + if (this.deviceIsIOSWithBadTarget) { + touch = event.changedTouches[0]; + + // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null + targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; + targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; + } + + targetTagName = targetElement.tagName.toLowerCase(); + if (targetTagName === 'label') { + forElement = this.findControl(targetElement); + if (forElement) { + this.focus(targetElement); + if (this.deviceIsAndroid) { + return false; + } + + targetElement = forElement; + } + } else if (this.needsFocus(targetElement)) { + + // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. + // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). + if ((event.timeStamp - trackingClickStart) > 100 || (this.deviceIsIOS && window.top !== window && targetTagName === 'input')) { + this.targetElement = null; + return false; + } + + this.focus(targetElement); + + // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. + if (!this.deviceIsIOS4 || targetTagName !== 'select') { + this.targetElement = null; + event.preventDefault(); + } + + return false; + } + + if (this.deviceIsIOS && !this.deviceIsIOS4) { + + // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled + // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). + scrollParent = targetElement.fastClickScrollParent; + if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { + return true; + } + } + + // Prevent the actual click from going though - unless the target node is marked as requiring + // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. + if (!this.needsClick(targetElement)) { + event.preventDefault(); + this.sendClick(targetElement, event); + } + + return false; +}; + + +/** + * On touch cancel, stop tracking the click. + * + * @returns {void} + */ +FastClick.prototype.onTouchCancel = function() { + 'use strict'; + this.trackingClick = false; + this.targetElement = null; +}; + + +/** + * Determine mouse events which should be permitted. + * + * @param {Event} event + * @returns {boolean} + */ +FastClick.prototype.onMouse = function(event) { + 'use strict'; + + // If a target element was never set (because a touch event was never fired) allow the event + if (!this.targetElement) { + return true; + } + + if (event.forwardedTouchEvent) { + return true; + } + + // Programmatically generated events targeting a specific element should be permitted + if (!event.cancelable) { + return true; + } + + // Derive and check the target element to see whether the mouse event needs to be permitted; + // unless explicitly enabled, prevent non-touch click events from triggering actions, + // to prevent ghost/doubleclicks. + if (!this.needsClick(this.targetElement) || this.cancelNextClick) { + + // Prevent any user-added listeners declared on FastClick element from being fired. + if (event.stopImmediatePropagation) { + event.stopImmediatePropagation(); + } else { + + // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) + event.propagationStopped = true; + } + + // Cancel the event + event.stopPropagation(); + event.preventDefault(); + + return false; + } + + // If the mouse event is permitted, return true for the action to go through. + return true; +}; + + +/** + * On actual clicks, determine whether this is a touch-generated click, a click action occurring + * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or + * an actual click which should be permitted. + * + * @param {Event} event + * @returns {boolean} + */ +FastClick.prototype.onClick = function(event) { + 'use strict'; + var permitted; + + // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. + if (this.trackingClick) { + this.targetElement = null; + this.trackingClick = false; + return true; + } + + // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. + if (event.target.type === 'submit' && event.detail === 0) { + return true; + } + + permitted = this.onMouse(event); + + // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. + if (!permitted) { + this.targetElement = null; + } + + // If clicks are permitted, return true for the action to go through. + return permitted; +}; + + +/** + * Remove all FastClick's event listeners. + * + * @returns {void} + */ +FastClick.prototype.destroy = function() { + 'use strict'; + var layer = this.layer; + + if (this.deviceIsAndroid) { + layer.removeEventListener('mouseover', this.onMouse, true); + layer.removeEventListener('mousedown', this.onMouse, true); + layer.removeEventListener('mouseup', this.onMouse, true); + } + + layer.removeEventListener('click', this.onClick, true); + layer.removeEventListener('touchstart', this.onTouchStart, false); + layer.removeEventListener('touchmove', this.onTouchMove, false); + layer.removeEventListener('touchend', this.onTouchEnd, false); + layer.removeEventListener('touchcancel', this.onTouchCancel, false); +}; + + +/** + * Check whether FastClick is needed. + * + * @param {Element} layer The layer to listen on + */ +FastClick.notNeeded = function(layer) { + 'use strict'; + var metaViewport; + + // Devices that don't support touch don't need FastClick + if (typeof window.ontouchstart === 'undefined') { + return true; + } + + if ((/Chrome\/[0-9]+/).test(navigator.userAgent)) { + + // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) + if (FastClick.prototype.deviceIsAndroid) { + metaViewport = document.querySelector('meta[name=viewport]'); + if (metaViewport && metaViewport.content.indexOf('user-scalable=no') !== -1) { + return true; + } + + // Chrome desktop doesn't need FastClick (issue #15) + } else { + return true; + } + } + + // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97) + if (layer.style.msTouchAction === 'none') { + return true; + } + + return false; +}; + + +/** + * Factory method for creating a FastClick object + * + * @param {Element} layer The layer to listen on + */ +FastClick.attach = function(layer) { + 'use strict'; + return new FastClick(layer); +}; + + +if (typeof define !== 'undefined' && define.amd) { + + // AMD. Register as an anonymous module. + define(function() { + 'use strict'; + return FastClick; + }); +} else if (typeof module !== 'undefined' && module.exports) { + module.exports = FastClick.attach; + module.exports.FastClick = FastClick; +} else { + window.FastClick = FastClick; +} + +jQuery(document).ready(function($){ + $(function() { + FastClick.attach(document.body); + }); + $("#sidebar_link, #sidebar_top").click(function(){ + $('#sidebar').toggleClass('visible'); + }); +}); \ No newline at end of file diff --git a/js/build/decode-with-sidebar.min.js b/js/build/decode-with-sidebar.min.js new file mode 100644 index 0000000..70c0d5a --- /dev/null +++ b/js/build/decode-with-sidebar.min.js @@ -0,0 +1 @@ +function FastClick(a){"use strict";var b,c=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=a,!a||!a.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return FastClick.prototype.onClick.apply(c,arguments)},this.onMouse=function(){return FastClick.prototype.onMouse.apply(c,arguments)},this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(c,arguments)},this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(c,arguments)},this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(c,arguments)},this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(c,arguments)},FastClick.notNeeded(a)||(this.deviceIsAndroid&&(a.addEventListener("mouseover",this.onMouse,!0),a.addEventListener("mousedown",this.onMouse,!0),a.addEventListener("mouseup",this.onMouse,!0)),a.addEventListener("click",this.onClick,!0),a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchmove",this.onTouchMove,!1),a.addEventListener("touchend",this.onTouchEnd,!1),a.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(b,c,d){var e=Node.prototype.removeEventListener;"click"===b?e.call(a,b,c.hijacked||c,d):e.call(a,b,c,d)},a.addEventListener=function(b,c,d){var e=Node.prototype.addEventListener;"click"===b?e.call(a,b,c.hijacked||(c.hijacked=function(a){a.propagationStopped||c(a)}),d):e.call(a,b,c,d)}),"function"==typeof a.onclick&&(b=a.onclick,a.addEventListener("click",function(a){b(a)},!1),a.onclick=null))}window.Modernizr=function(a,b,c){function d(a){s.cssText=a}function e(a,b){return typeof a===b}function f(a,b){return!!~(""+a).indexOf(b)}function g(a,b){for(var d in a){var e=a[d];if(!f(e,"-")&&s[e]!==c)return"pfx"==b?e:!0}return!1}function h(a,b,d){for(var f in a){var g=b[a[f]];if(g!==c)return d===!1?a[f]:e(g,"function")?g.bind(d||b):g}return!1}function i(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),f=(a+" "+v.join(d+" ")+d).split(" ");return e(b,"string")||e(b,"undefined")?g(f,b):(f=(a+" "+w.join(d+" ")+d).split(" "),h(f,b,c))}var j,k,l,m="2.7.1",n={},o=!0,p=b.documentElement,q="modernizr",r=b.createElement(q),s=r.style,t=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),u="Webkit Moz O ms",v=u.split(" "),w=u.toLowerCase().split(" "),x={},y=[],z=y.slice,A=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:q+(d+1),j.appendChild(h);return f=["­",'"].join(""),j.id=q,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=p.style.overflow,p.style.overflow="hidden",p.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),p.style.overflow=i),!!g},B=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return A("@media "+b+" { #"+q+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},C={}.hasOwnProperty;l=e(C,"undefined")||e(C.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return C.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=z.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(z.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(z.call(arguments)))};return d}),x.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:A(["@media (",t.join("touch-enabled),("),q,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},x.csstransforms=function(){return!!i("transform")};for(var D in x)l(x,D)&&(k=D.toLowerCase(),n[k]=x[D](),y.push((n[k]?"":"no-")+k));return n.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&n.addTest(d,a[d]);else{if(a=a.toLowerCase(),n[a]!==c)return n;b="function"==typeof b?b():b,"undefined"!=typeof o&&o&&(p.className+=" "+(b?"":"no-")+a),n[a]=b}return n},d(""),r=j=null,n._version=m,n._prefixes=t,n._domPrefixes=w,n._cssomPrefixes=v,n.mq=B,n.testProp=function(a){return g([a])},n.testAllProps=i,n.testStyles=A,p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+y.join(" "):""),n}(this,this.document),function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=x.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=w[a[u]];return b||(b={},v++,a[u]=v,w[v]=b),b}function f(a,c,d){if(c||(c=b),p)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():t.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||s.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),p)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return x.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(x,b.frag)}function i(a){a||(a=b);var d=e(a);return!x.shivCSS||o||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||h(a,d),a}function j(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(k(b)));return g}function k(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(z+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function l(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+z+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function m(a){for(var b=a.length;b--;)a[b].removeNode()}function n(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,f,g=e(a),h=a.namespaces,i=a.parentWindow;return!A||a.printShived?a:("undefined"==typeof h[z]&&h.add(z),i.attachEvent("onbeforeprint",function(){b();for(var e,g,h,i=a.styleSheets,k=[],m=i.length,n=Array(m);m--;)n[m]=i[m];for(;h=n.pop();)if(!h.disabled&&y.test(h.media)){try{e=h.imports,g=e.length}catch(o){g=0}for(m=0;g>m;m++)n.push(e[m]);try{k.push(h.cssText)}catch(o){}}k=l(k.reverse().join("")),f=j(a),d=c(a,k)}),i.attachEvent("onafterprint",function(){m(f),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var o,p,q="3.7.0",r=a.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,t=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",v=0,w={};!function(){try{var a=b.createElement("a");a.innerHTML="",o="hidden"in a,p=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){o=!0,p=!0}}();var x={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:q,shivCSS:r.shivCSS!==!1,supportsUnknownElements:p,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=x,i(b);var y=/^$|\b(?:all|print)\b/,z="html5shiv",A=!p&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();x.type+=" print",x.shivPrint=n,n(b)}(this,document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;g>c;c++)d=a[c].split("="),(b=B[d.shift()])&&(f=b(f,d));for(c=0;e>c;c++)f=z[c](f);return f}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(A[i.url]?i.noexec=!0:A[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),A[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}),g(a,l,b,0,j);else if(Object(a)===a)for(i in h=function(){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c}(),a)a.hasOwnProperty(i)&&(!c&&!--h&&(d(l)?l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}:l[i]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),n()}}(m[i])),g(a[i],l,b,i,j))}else!c&&n()}var h,i,j=!!a.test,k=a.load||a.both,l=a.callback||f,m=l,n=a.complete||f;c(j?a.yep:a.nope,!!k),k&&c(k)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(y(a))for(i=0;i0,FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),FastClick.prototype.needsClick=function(a){"use strict";switch(a.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(a.disabled)return!0;break;case"input":if(this.deviceIsIOS&&"file"===a.type||a.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(a.className)},FastClick.prototype.needsFocus=function(a){"use strict";switch(a.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(a.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!a.disabled&&!a.readOnly;default:return/\bneedsfocus\b/.test(a.className)}},FastClick.prototype.sendClick=function(a,b){"use strict";var c,d;document.activeElement&&document.activeElement!==a&&document.activeElement.blur(),d=b.changedTouches[0],c=document.createEvent("MouseEvents"),c.initMouseEvent("click",!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null),c.forwardedTouchEvent=!0,a.dispatchEvent(c)},FastClick.prototype.focus=function(a){"use strict";var b;this.deviceIsIOS&&a.setSelectionRange?(b=a.value.length,a.setSelectionRange(b,b)):a.focus()},FastClick.prototype.updateScrollParent=function(a){"use strict";var b,c;if(b=a.fastClickScrollParent,!b||!b.contains(a)){c=a;do{if(c.scrollHeight>c.offsetHeight){b=c,a.fastClickScrollParent=c;break}c=c.parentElement}while(c)}b&&(b.fastClickLastScrollTop=b.scrollTop)},FastClick.prototype.getTargetElementFromEventTarget=function(a){"use strict";return a.nodeType===Node.TEXT_NODE?a.parentNode:a},FastClick.prototype.onTouchStart=function(a){"use strict";var b,c,d;if(a.targetTouches.length>1)return!0;if(b=this.getTargetElementFromEventTarget(a.target),c=a.targetTouches[0],this.deviceIsIOS){if(d=window.getSelection(),d.rangeCount&&!d.isCollapsed)return!0;if(!this.deviceIsIOS4){if(c.identifier===this.lastTouchIdentifier)return a.preventDefault(),!1;this.lastTouchIdentifier=c.identifier,this.updateScrollParent(b)}}return this.trackingClick=!0,this.trackingClickStart=a.timeStamp,this.targetElement=b,this.touchStartX=c.pageX,this.touchStartY=c.pageY,a.timeStamp-this.lastClickTime<200&&a.preventDefault(),!0},FastClick.prototype.touchHasMoved=function(a){"use strict";var b=a.changedTouches[0],c=this.touchBoundary;return Math.abs(b.pageX-this.touchStartX)>c||Math.abs(b.pageY-this.touchStartY)>c?!0:!1},FastClick.prototype.onTouchMove=function(a){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(a.target)||this.touchHasMoved(a))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},FastClick.prototype.findControl=function(a){"use strict";return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},FastClick.prototype.onTouchEnd=function(a){"use strict";var b,c,d,e,f,g=this.targetElement;if(!this.trackingClick)return!0;if(a.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.lastClickTime=a.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(f=a.changedTouches[0],g=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||g,g.fastClickScrollParent=this.targetElement.fastClickScrollParent),d=g.tagName.toLowerCase(),"label"===d){if(b=this.findControl(g)){if(this.focus(g),this.deviceIsAndroid)return!1;g=b}}else if(this.needsFocus(g))return a.timeStamp-c>100||this.deviceIsIOS&&window.top!==window&&"input"===d?(this.targetElement=null,!1):(this.focus(g),this.deviceIsIOS4&&"select"===d||(this.targetElement=null,a.preventDefault()),!1);return this.deviceIsIOS&&!this.deviceIsIOS4&&(e=g.fastClickScrollParent,e&&e.fastClickLastScrollTop!==e.scrollTop)?!0:(this.needsClick(g)||(a.preventDefault(),this.sendClick(g,a)),!1)},FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1,this.targetElement=null},FastClick.prototype.onMouse=function(a){"use strict";return this.targetElement?a.forwardedTouchEvent?!0:a.cancelable?!this.needsClick(this.targetElement)||this.cancelNextClick?(a.stopImmediatePropagation?a.stopImmediatePropagation():a.propagationStopped=!0,a.stopPropagation(),a.preventDefault(),!1):!0:!0:!0},FastClick.prototype.onClick=function(a){"use strict";var b;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===a.target.type&&0===a.detail?!0:(b=this.onMouse(a),b||(this.targetElement=null),b)},FastClick.prototype.destroy=function(){"use strict";var a=this.layer;this.deviceIsAndroid&&(a.removeEventListener("mouseover",this.onMouse,!0),a.removeEventListener("mousedown",this.onMouse,!0),a.removeEventListener("mouseup",this.onMouse,!0)),a.removeEventListener("click",this.onClick,!0),a.removeEventListener("touchstart",this.onTouchStart,!1),a.removeEventListener("touchmove",this.onTouchMove,!1),a.removeEventListener("touchend",this.onTouchEnd,!1),a.removeEventListener("touchcancel",this.onTouchCancel,!1)},FastClick.notNeeded=function(a){"use strict";var b;if("undefined"==typeof window.ontouchstart)return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent)){if(!FastClick.prototype.deviceIsAndroid)return!0;if(b=document.querySelector("meta[name=viewport]"),b&&-1!==b.content.indexOf("user-scalable=no"))return!0}return"none"===a.style.msTouchAction?!0:!1},FastClick.attach=function(a){"use strict";return new FastClick(a)},"undefined"!=typeof define&&define.amd?define(function(){"use strict";return FastClick}):"undefined"!=typeof module&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick,jQuery(document).ready(function(a){a(function(){FastClick.attach(document.body)}),a("#sidebar_link, #sidebar_top").click(function(){a("#sidebar").toggleClass("visible")})}); \ No newline at end of file diff --git a/js/build/decode.js b/js/build/decode.js new file mode 100644 index 0000000..fa6c7d9 --- /dev/null +++ b/js/build/decode.js @@ -0,0 +1,810 @@ +/* Modernizr 2.7.1 (Custom Build) | MIT & BSD + * Build: http://modernizr.com/download/#-csstransforms-touch-printshiv-mq-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load + */ +; + + + +window.Modernizr = (function( window, document, undefined ) { + + var version = '2.7.1', + + Modernizr = {}, + + enableClasses = true, + + docElement = document.documentElement, + + mod = 'modernizr', + modElem = document.createElement(mod), + mStyle = modElem.style, + + inputElem , + + + toString = {}.toString, + + prefixes = ' -webkit- -moz- -o- -ms- '.split(' '), + + + + omPrefixes = 'Webkit Moz O ms', + + cssomPrefixes = omPrefixes.split(' '), + + domPrefixes = omPrefixes.toLowerCase().split(' '), + + + tests = {}, + inputs = {}, + attrs = {}, + + classes = [], + + slice = classes.slice, + + featureName, + + + injectElementWithStyles = function( rule, callback, nodes, testnames ) { + + var style, ret, node, docOverflow, + div = document.createElement('div'), + body = document.body, + fakeBody = body || document.createElement('body'); + + if ( parseInt(nodes, 10) ) { + while ( nodes-- ) { + node = document.createElement('div'); + node.id = testnames ? testnames[nodes] : mod + (nodes + 1); + div.appendChild(node); + } + } + + style = ['­',''].join(''); + div.id = mod; + (body ? div : fakeBody).innerHTML += style; + fakeBody.appendChild(div); + if ( !body ) { + fakeBody.style.background = ''; + fakeBody.style.overflow = 'hidden'; + docOverflow = docElement.style.overflow; + docElement.style.overflow = 'hidden'; + docElement.appendChild(fakeBody); + } + + ret = callback(div, rule); + if ( !body ) { + fakeBody.parentNode.removeChild(fakeBody); + docElement.style.overflow = docOverflow; + } else { + div.parentNode.removeChild(div); + } + + return !!ret; + + }, + + testMediaQuery = function( mq ) { + + var matchMedia = window.matchMedia || window.msMatchMedia; + if ( matchMedia ) { + return matchMedia(mq).matches; + } + + var bool; + + injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { + bool = (window.getComputedStyle ? + getComputedStyle(node, null) : + node.currentStyle)['position'] == 'absolute'; + }); + + return bool; + + }, + _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; + + if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { + hasOwnProp = function (object, property) { + return _hasOwnProperty.call(object, property); + }; + } + else { + hasOwnProp = function (object, property) { + return ((property in object) && is(object.constructor.prototype[property], 'undefined')); + }; + } + + + if (!Function.prototype.bind) { + Function.prototype.bind = function bind(that) { + + var target = this; + + if (typeof target != "function") { + throw new TypeError(); + } + + var args = slice.call(arguments, 1), + bound = function () { + + if (this instanceof bound) { + + var F = function(){}; + F.prototype = target.prototype; + var self = new F(); + + var result = target.apply( + self, + args.concat(slice.call(arguments)) + ); + if (Object(result) === result) { + return result; + } + return self; + + } else { + + return target.apply( + that, + args.concat(slice.call(arguments)) + ); + + } + + }; + + return bound; + }; + } + + function setCss( str ) { + mStyle.cssText = str; + } + + function setCssAll( str1, str2 ) { + return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); + } + + function is( obj, type ) { + return typeof obj === type; + } + + function contains( str, substr ) { + return !!~('' + str).indexOf(substr); + } + + function testProps( props, prefixed ) { + for ( var i in props ) { + var prop = props[i]; + if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { + return prefixed == 'pfx' ? prop : true; + } + } + return false; + } + + function testDOMProps( props, obj, elem ) { + for ( var i in props ) { + var item = obj[props[i]]; + if ( item !== undefined) { + + if (elem === false) return props[i]; + + if (is(item, 'function')){ + return item.bind(elem || obj); + } + + return item; + } + } + return false; + } + + function testPropsAll( prop, prefixed, elem ) { + + var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), + props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); + + if(is(prefixed, "string") || is(prefixed, "undefined")) { + return testProps(props, prefixed); + + } else { + props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); + return testDOMProps(props, prefixed, elem); + } + } tests['touch'] = function() { + var bool; + + if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + bool = true; + } else { + injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { + bool = node.offsetTop === 9; + }); + } + + return bool; + }; + + + + tests['csstransforms'] = function() { + return !!testPropsAll('transform'); + }; + + + for ( var feature in tests ) { + if ( hasOwnProp(tests, feature) ) { + featureName = feature.toLowerCase(); + Modernizr[featureName] = tests[feature](); + + classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); + } + } + + + + Modernizr.addTest = function ( feature, test ) { + if ( typeof feature == 'object' ) { + for ( var key in feature ) { + if ( hasOwnProp( feature, key ) ) { + Modernizr.addTest( key, feature[ key ] ); + } + } + } else { + + feature = feature.toLowerCase(); + + if ( Modernizr[feature] !== undefined ) { + return Modernizr; + } + + test = typeof test == 'function' ? test() : test; + + if (typeof enableClasses !== "undefined" && enableClasses) { + docElement.className += ' ' + (test ? '' : 'no-') + feature; + } + Modernizr[feature] = test; + + } + + return Modernizr; + }; + + + setCss(''); + modElem = inputElem = null; + + + Modernizr._version = version; + + Modernizr._prefixes = prefixes; + Modernizr._domPrefixes = domPrefixes; + Modernizr._cssomPrefixes = cssomPrefixes; + + Modernizr.mq = testMediaQuery; + + + Modernizr.testProp = function(prop){ + return testProps([prop]); + }; + + Modernizr.testAllProps = testPropsAll; + + + Modernizr.testStyles = injectElementWithStyles; docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + + + (enableClasses ? ' js ' + classes.join(' ') : ''); + + return Modernizr; + +})(this, this.document); +/** +* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +;(function(window, document) { +/*jshint evil:true */ + /** version */ + var version = '3.7.0'; + + /** Preset options */ + var options = window.html5 || {}; + + /** Used to skip problem elements */ + var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; + + /** Not all elements can be cloned in IE **/ + var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; + + /** Detect whether the browser supports default html5 styles */ + var supportsHtml5Styles; + + /** Name of the expando, to work with multiple documents or to re-shiv one document */ + var expando = '_html5shiv'; + + /** The id for the the documents expando */ + var expanID = 0; + + /** Cached data for each document */ + var expandoData = {}; + + /** Detect whether the browser supports unknown elements */ + var supportsUnknownElements; + + (function() { + try { + var a = document.createElement('a'); + a.innerHTML = ''; + //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles + supportsHtml5Styles = ('hidden' in a); + + supportsUnknownElements = a.childNodes.length == 1 || (function() { + // assign a false positive if unable to shiv + (document.createElement)('a'); + var frag = document.createDocumentFragment(); + return ( + typeof frag.cloneNode == 'undefined' || + typeof frag.createDocumentFragment == 'undefined' || + typeof frag.createElement == 'undefined' + ); + }()); + } catch(e) { + // assign a false positive if detection fails => unable to shiv + supportsHtml5Styles = true; + supportsUnknownElements = true; + } + + }()); + + /*--------------------------------------------------------------------------*/ + + /** + * Creates a style sheet with the given CSS text and adds it to the document. + * @private + * @param {Document} ownerDocument The document. + * @param {String} cssText The CSS text. + * @returns {StyleSheet} The style element. + */ + function addStyleSheet(ownerDocument, cssText) { + var p = ownerDocument.createElement('p'), + parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; + + p.innerHTML = 'x'; + return parent.insertBefore(p.lastChild, parent.firstChild); + } + + /** + * Returns the value of `html5.elements` as an array. + * @private + * @returns {Array} An array of shived element node names. + */ + function getElements() { + var elements = html5.elements; + return typeof elements == 'string' ? elements.split(' ') : elements; + } + + /** + * Returns the data associated to the given document + * @private + * @param {Document} ownerDocument The document. + * @returns {Object} An object of data. + */ + function getExpandoData(ownerDocument) { + var data = expandoData[ownerDocument[expando]]; + if (!data) { + data = {}; + expanID++; + ownerDocument[expando] = expanID; + expandoData[expanID] = data; + } + return data; + } + + /** + * returns a shived element for the given nodeName and document + * @memberOf html5 + * @param {String} nodeName name of the element + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived element. + */ + function createElement(nodeName, ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createElement(nodeName); + } + if (!data) { + data = getExpandoData(ownerDocument); + } + var node; + + if (data.cache[nodeName]) { + node = data.cache[nodeName].cloneNode(); + } else if (saveClones.test(nodeName)) { + node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); + } else { + node = data.createElem(nodeName); + } + + // Avoid adding some elements to fragments in IE < 9 because + // * Attributes like `name` or `type` cannot be set/changed once an element + // is inserted into a document/fragment + // * Link elements with `src` attributes that are inaccessible, as with + // a 403 response, will cause the tab/window to crash + // * Script elements appended to fragments will execute when their `src` + // or `text` property is set + return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; + } + + /** + * returns a shived DocumentFragment for the given document + * @memberOf html5 + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived DocumentFragment. + */ + function createDocumentFragment(ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createDocumentFragment(); + } + data = data || getExpandoData(ownerDocument); + var clone = data.frag.cloneNode(), + i = 0, + elems = getElements(), + l = elems.length; + for(;i+~])(' + getElements().join('|') + ')(?=[[\\s,>+~#.:]|$)', 'gi'), + replacement = '$1' + shivNamespace + '\\:$2'; + + while (index--) { + pair = parts[index] = parts[index].split('}'); + pair[pair.length - 1] = pair[pair.length - 1].replace(reElements, replacement); + parts[index] = pair.join('}'); + } + return parts.join('{'); + } + + /** + * Removes the given wrappers, leaving the original elements. + * @private + * @params {Array} wrappers An array of printable wrappers. + */ + function removeWrappers(wrappers) { + var index = wrappers.length; + while (index--) { + wrappers[index].removeNode(); + } + } + + /*--------------------------------------------------------------------------*/ + + /** + * Shivs the given document for print. + * @memberOf html5 + * @param {Document} ownerDocument The document to shiv. + * @returns {Document} The shived document. + */ + function shivPrint(ownerDocument) { + var shivedSheet, + wrappers, + data = getExpandoData(ownerDocument), + namespaces = ownerDocument.namespaces, + ownerWindow = ownerDocument.parentWindow; + + if (!supportsShivableSheets || ownerDocument.printShived) { + return ownerDocument; + } + if (typeof namespaces[shivNamespace] == 'undefined') { + namespaces.add(shivNamespace); + } + + function removeSheet() { + clearTimeout(data._removeSheetTimer); + if (shivedSheet) { + shivedSheet.removeNode(true); + } + shivedSheet= null; + } + + ownerWindow.attachEvent('onbeforeprint', function() { + + removeSheet(); + + var imports, + length, + sheet, + collection = ownerDocument.styleSheets, + cssText = [], + index = collection.length, + sheets = Array(index); + + // convert styleSheets collection to an array + while (index--) { + sheets[index] = collection[index]; + } + // concat all style sheet CSS text + while ((sheet = sheets.pop())) { + // IE does not enforce a same origin policy for external style sheets... + // but has trouble with some dynamically created stylesheets + if (!sheet.disabled && reMedia.test(sheet.media)) { + + try { + imports = sheet.imports; + length = imports.length; + } catch(er){ + length = 0; + } + + for (index = 0; index < length; index++) { + sheets.push(imports[index]); + } + + try { + cssText.push(sheet.cssText); + } catch(er){} + } + } + + // wrap all HTML5 elements with printable elements and add the shived style sheet + cssText = shivCssText(cssText.reverse().join('')); + wrappers = addWrappers(ownerDocument); + shivedSheet = addStyleSheet(ownerDocument, cssText); + + }); + + ownerWindow.attachEvent('onafterprint', function() { + // remove wrappers, leaving the original elements, and remove the shived style sheet + removeWrappers(wrappers); + clearTimeout(data._removeSheetTimer); + data._removeSheetTimer = setTimeout(removeSheet, 500); + }); + + ownerDocument.printShived = true; + return ownerDocument; + } + + /*--------------------------------------------------------------------------*/ + + // expose API + html5.type += ' print'; + html5.shivPrint = shivPrint; + + // shiv for print + shivPrint(document); + +}(this, document)); +/*yepnope1.5.4|WTFPL*/ +(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f',a,""].join(""),j.id=q,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=p.style.overflow,p.style.overflow="hidden",p.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),p.style.overflow=i),!!g},B=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return A("@media "+b+" { #"+q+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},C={}.hasOwnProperty;l=e(C,"undefined")||e(C.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return C.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=z.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(z.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(z.call(arguments)))};return d}),x.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:A(["@media (",t.join("touch-enabled),("),q,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},x.csstransforms=function(){return!!i("transform")};for(var D in x)l(x,D)&&(k=D.toLowerCase(),n[k]=x[D](),y.push((n[k]?"":"no-")+k));return n.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&n.addTest(d,a[d]);else{if(a=a.toLowerCase(),n[a]!==c)return n;b="function"==typeof b?b():b,"undefined"!=typeof o&&o&&(p.className+=" "+(b?"":"no-")+a),n[a]=b}return n},d(""),r=j=null,n._version=m,n._prefixes=t,n._domPrefixes=w,n._cssomPrefixes=v,n.mq=B,n.testProp=function(a){return g([a])},n.testAllProps=i,n.testStyles=A,p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+y.join(" "):""),n}(this,this.document),function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=x.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=w[a[u]];return b||(b={},v++,a[u]=v,w[v]=b),b}function f(a,c,d){if(c||(c=b),p)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():t.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||s.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),p)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return x.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(x,b.frag)}function i(a){a||(a=b);var d=e(a);return!x.shivCSS||o||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),p||h(a,d),a}function j(a){for(var b,c=a.getElementsByTagName("*"),e=c.length,f=RegExp("^(?:"+d().join("|")+")$","i"),g=[];e--;)b=c[e],f.test(b.nodeName)&&g.push(b.applyElement(k(b)));return g}function k(a){for(var b,c=a.attributes,d=c.length,e=a.ownerDocument.createElement(z+":"+a.nodeName);d--;)b=c[d],b.specified&&e.setAttribute(b.nodeName,b.nodeValue);return e.style.cssText=a.style.cssText,e}function l(a){for(var b,c=a.split("{"),e=c.length,f=RegExp("(^|[\\s,>+~])("+d().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),g="$1"+z+"\\:$2";e--;)b=c[e]=c[e].split("}"),b[b.length-1]=b[b.length-1].replace(f,g),c[e]=b.join("}");return c.join("{")}function m(a){for(var b=a.length;b--;)a[b].removeNode()}function n(a){function b(){clearTimeout(g._removeSheetTimer),d&&d.removeNode(!0),d=null}var d,f,g=e(a),h=a.namespaces,i=a.parentWindow;return!A||a.printShived?a:("undefined"==typeof h[z]&&h.add(z),i.attachEvent("onbeforeprint",function(){b();for(var e,g,h,i=a.styleSheets,k=[],m=i.length,n=Array(m);m--;)n[m]=i[m];for(;h=n.pop();)if(!h.disabled&&y.test(h.media)){try{e=h.imports,g=e.length}catch(o){g=0}for(m=0;g>m;m++)n.push(e[m]);try{k.push(h.cssText)}catch(o){}}k=l(k.reverse().join("")),f=j(a),d=c(a,k)}),i.attachEvent("onafterprint",function(){m(f),clearTimeout(g._removeSheetTimer),g._removeSheetTimer=setTimeout(b,500)}),a.printShived=!0,a)}var o,p,q="3.7.0",r=a.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,t=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",v=0,w={};!function(){try{var a=b.createElement("a");a.innerHTML="",o="hidden"in a,p=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){o=!0,p=!0}}();var x={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:q,shivCSS:r.shivCSS!==!1,supportsUnknownElements:p,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=x,i(b);var y=/^$|\b(?:all|print)\b/,z="html5shiv",A=!p&&function(){var c=b.documentElement;return!("undefined"==typeof b.namespaces||"undefined"==typeof b.parentWindow||"undefined"==typeof c.applyElement||"undefined"==typeof c.removeNode||"undefined"==typeof a.attachEvent)}();x.type+=" print",x.shivPrint=n,n(b)}(this,document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;g>c;c++)d=a[c].split("="),(b=B[d.shift()])&&(f=b(f,d));for(c=0;e>c;c++)f=z[c](f);return f}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(A[i.url]?i.noexec=!0:A[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),A[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}),g(a,l,b,0,j);else if(Object(a)===a)for(i in h=function(){var b,c=0;for(b in a)a.hasOwnProperty(b)&&c++;return c}(),a)a.hasOwnProperty(i)&&(!c&&!--h&&(d(l)?l=function(){var a=[].slice.call(arguments);m.apply(this,a),n()}:l[i]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),n()}}(m[i])),g(a[i],l,b,i,j))}else!c&&n()}var h,i,j=!!a.test,k=a.load||a.both,l=a.callback||f,m=l,n=a.complete||f;c(j?a.yep:a.nope,!!k),k&&c(k)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(y(a))for(i=0;i',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return w("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},y={}.hasOwnProperty,z;!C(y,"undefined")&&!C(y.call,"undefined")?z=function(a,b){return y.call(a,b)}:z=function(a,b){return b in a&&C(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},q.csstransforms=function(){return!!G("transform")};for(var H in q)z(q,H)&&(v=H.toLowerCase(),e[v]=q[H](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)z(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},A(""),i=k=null,e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.mq=x,e.testProp=function(a){return E([a])},e.testAllProps=G,e.testStyles=w,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e+~])("+m().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),f="$1"+u+"\\:$2";while(d--)b=c[d]=c[d].split("}"),b[b.length-1]=b[b.length-1].replace(e,f),c[d]=b.join("}");return c.join("{")}function z(a){var b=a.length;while(b--)a[b].removeNode()}function A(a){function g(){clearTimeout(d._removeSheetTimer),b&&b.removeNode(!0),b=null}var b,c,d=n(a),e=a.namespaces,f=a.parentWindow;return!v||a.printShived?a:(typeof e[u]=="undefined"&&e.add(u),f.attachEvent("onbeforeprint",function(){g();var d,e,f,h=a.styleSheets,i=[],j=h.length,k=Array(j);while(j--)k[j]=h[j];while(f=k.pop())if(!f.disabled&&t.test(f.media)){try{d=f.imports,e=d.length}catch(m){e=0}for(j=0;j",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b);var t=/^$|\b(?:all|print)\b/,u="html5shiv",v=!k&&function(){var c=b.documentElement;return typeof b.namespaces!="undefined"&&typeof b.parentWindow!="undefined"&&typeof c.applyElement!="undefined"&&typeof c.removeNode!="undefined"&&typeof a.attachEvent!="undefined"}();s.type+=" print",s.shivPrint=A,A(b)}(this,document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f', rule, ''].join(''); + div.id = mod; + (body ? div : fakeBody).innerHTML += style; + fakeBody.appendChild(div); + if ( !body ) { + fakeBody.style.background = ''; + fakeBody.style.overflow = 'hidden'; + docOverflow = docElement.style.overflow; + docElement.style.overflow = 'hidden'; + docElement.appendChild(fakeBody); + } + + ret = callback(div, rule); + if ( !body ) { + fakeBody.parentNode.removeChild(fakeBody); + docElement.style.overflow = docOverflow; + } else { + div.parentNode.removeChild(div); + } + + return !!ret; + + }, + + testMediaQuery = function( mq ) { + + var matchMedia = window.matchMedia || window.msMatchMedia; + if ( matchMedia ) { + return matchMedia(mq).matches; + } + + var bool; + + injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) { + bool = (window.getComputedStyle ? + getComputedStyle(node, null) : + node.currentStyle)['position'] == 'absolute'; + }); + + return bool; + + }, + _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp; + + if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) { + hasOwnProp = function (object, property) { + return _hasOwnProperty.call(object, property); + }; + } + else { + hasOwnProp = function (object, property) { + return ((property in object) && is(object.constructor.prototype[property], 'undefined')); + }; + } + + + if (!Function.prototype.bind) { + Function.prototype.bind = function bind(that) { + + var target = this; + + if (typeof target != "function") { + throw new TypeError(); + } + + var args = slice.call(arguments, 1), + bound = function () { + + if (this instanceof bound) { + + var F = function(){}; + F.prototype = target.prototype; + var self = new F(); + + var result = target.apply( + self, + args.concat(slice.call(arguments)) + ); + if (Object(result) === result) { + return result; + } + return self; + + } else { + + return target.apply( + that, + args.concat(slice.call(arguments)) + ); + + } + + }; + + return bound; + }; + } + + function setCss( str ) { + mStyle.cssText = str; + } + + function setCssAll( str1, str2 ) { + return setCss(prefixes.join(str1 + ';') + ( str2 || '' )); + } + + function is( obj, type ) { + return typeof obj === type; + } + + function contains( str, substr ) { + return !!~('' + str).indexOf(substr); + } + + function testProps( props, prefixed ) { + for ( var i in props ) { + var prop = props[i]; + if ( !contains(prop, "-") && mStyle[prop] !== undefined ) { + return prefixed == 'pfx' ? prop : true; + } + } + return false; + } + + function testDOMProps( props, obj, elem ) { + for ( var i in props ) { + var item = obj[props[i]]; + if ( item !== undefined) { + + if (elem === false) return props[i]; + + if (is(item, 'function')){ + return item.bind(elem || obj); + } + + return item; + } + } + return false; + } + + function testPropsAll( prop, prefixed, elem ) { + + var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), + props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); + + if(is(prefixed, "string") || is(prefixed, "undefined")) { + return testProps(props, prefixed); + + } else { + props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' '); + return testDOMProps(props, prefixed, elem); + } + } tests['touch'] = function() { + var bool; + + if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + bool = true; + } else { + injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) { + bool = node.offsetTop === 9; + }); + } + + return bool; + }; + + + + tests['csstransforms'] = function() { + return !!testPropsAll('transform'); + }; + + + for ( var feature in tests ) { + if ( hasOwnProp(tests, feature) ) { + featureName = feature.toLowerCase(); + Modernizr[featureName] = tests[feature](); + + classes.push((Modernizr[featureName] ? '' : 'no-') + featureName); + } + } + + + + Modernizr.addTest = function ( feature, test ) { + if ( typeof feature == 'object' ) { + for ( var key in feature ) { + if ( hasOwnProp( feature, key ) ) { + Modernizr.addTest( key, feature[ key ] ); + } + } + } else { + + feature = feature.toLowerCase(); + + if ( Modernizr[feature] !== undefined ) { + return Modernizr; + } + + test = typeof test == 'function' ? test() : test; + + if (typeof enableClasses !== "undefined" && enableClasses) { + docElement.className += ' ' + (test ? '' : 'no-') + feature; + } + Modernizr[feature] = test; + + } + + return Modernizr; + }; + + + setCss(''); + modElem = inputElem = null; + + + Modernizr._version = version; + + Modernizr._prefixes = prefixes; + Modernizr._domPrefixes = domPrefixes; + Modernizr._cssomPrefixes = cssomPrefixes; + + Modernizr.mq = testMediaQuery; + + + Modernizr.testProp = function(prop){ + return testProps([prop]); + }; + + Modernizr.testAllProps = testPropsAll; + + + Modernizr.testStyles = injectElementWithStyles; docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + + + (enableClasses ? ' js ' + classes.join(' ') : ''); + + return Modernizr; + +})(this, this.document); +/** +* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +;(function(window, document) { +/*jshint evil:true */ + /** version */ + var version = '3.7.0'; + + /** Preset options */ + var options = window.html5 || {}; + + /** Used to skip problem elements */ + var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; + + /** Not all elements can be cloned in IE **/ + var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; + + /** Detect whether the browser supports default html5 styles */ + var supportsHtml5Styles; + + /** Name of the expando, to work with multiple documents or to re-shiv one document */ + var expando = '_html5shiv'; + + /** The id for the the documents expando */ + var expanID = 0; + + /** Cached data for each document */ + var expandoData = {}; + + /** Detect whether the browser supports unknown elements */ + var supportsUnknownElements; + + (function() { + try { + var a = document.createElement('a'); + a.innerHTML = ''; + //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles + supportsHtml5Styles = ('hidden' in a); + + supportsUnknownElements = a.childNodes.length == 1 || (function() { + // assign a false positive if unable to shiv + (document.createElement)('a'); + var frag = document.createDocumentFragment(); + return ( + typeof frag.cloneNode == 'undefined' || + typeof frag.createDocumentFragment == 'undefined' || + typeof frag.createElement == 'undefined' + ); + }()); + } catch(e) { + // assign a false positive if detection fails => unable to shiv + supportsHtml5Styles = true; + supportsUnknownElements = true; + } + + }()); + + /*--------------------------------------------------------------------------*/ + + /** + * Creates a style sheet with the given CSS text and adds it to the document. + * @private + * @param {Document} ownerDocument The document. + * @param {String} cssText The CSS text. + * @returns {StyleSheet} The style element. + */ + function addStyleSheet(ownerDocument, cssText) { + var p = ownerDocument.createElement('p'), + parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; + + p.innerHTML = 'x'; + return parent.insertBefore(p.lastChild, parent.firstChild); + } + + /** + * Returns the value of `html5.elements` as an array. + * @private + * @returns {Array} An array of shived element node names. + */ + function getElements() { + var elements = html5.elements; + return typeof elements == 'string' ? elements.split(' ') : elements; + } + + /** + * Returns the data associated to the given document + * @private + * @param {Document} ownerDocument The document. + * @returns {Object} An object of data. + */ + function getExpandoData(ownerDocument) { + var data = expandoData[ownerDocument[expando]]; + if (!data) { + data = {}; + expanID++; + ownerDocument[expando] = expanID; + expandoData[expanID] = data; + } + return data; + } + + /** + * returns a shived element for the given nodeName and document + * @memberOf html5 + * @param {String} nodeName name of the element + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived element. + */ + function createElement(nodeName, ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createElement(nodeName); + } + if (!data) { + data = getExpandoData(ownerDocument); + } + var node; + + if (data.cache[nodeName]) { + node = data.cache[nodeName].cloneNode(); + } else if (saveClones.test(nodeName)) { + node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); + } else { + node = data.createElem(nodeName); + } + + // Avoid adding some elements to fragments in IE < 9 because + // * Attributes like `name` or `type` cannot be set/changed once an element + // is inserted into a document/fragment + // * Link elements with `src` attributes that are inaccessible, as with + // a 403 response, will cause the tab/window to crash + // * Script elements appended to fragments will execute when their `src` + // or `text` property is set + return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; + } + + /** + * returns a shived DocumentFragment for the given document + * @memberOf html5 + * @param {Document} ownerDocument The context document. + * @returns {Object} The shived DocumentFragment. + */ + function createDocumentFragment(ownerDocument, data){ + if (!ownerDocument) { + ownerDocument = document; + } + if(supportsUnknownElements){ + return ownerDocument.createDocumentFragment(); + } + data = data || getExpandoData(ownerDocument); + var clone = data.frag.cloneNode(), + i = 0, + elems = getElements(), + l = elems.length; + for(;i+~])(' + getElements().join('|') + ')(?=[[\\s,>+~#.:]|$)', 'gi'), + replacement = '$1' + shivNamespace + '\\:$2'; + + while (index--) { + pair = parts[index] = parts[index].split('}'); + pair[pair.length - 1] = pair[pair.length - 1].replace(reElements, replacement); + parts[index] = pair.join('}'); + } + return parts.join('{'); + } + + /** + * Removes the given wrappers, leaving the original elements. + * @private + * @params {Array} wrappers An array of printable wrappers. + */ + function removeWrappers(wrappers) { + var index = wrappers.length; + while (index--) { + wrappers[index].removeNode(); + } + } + + /*--------------------------------------------------------------------------*/ + + /** + * Shivs the given document for print. + * @memberOf html5 + * @param {Document} ownerDocument The document to shiv. + * @returns {Document} The shived document. + */ + function shivPrint(ownerDocument) { + var shivedSheet, + wrappers, + data = getExpandoData(ownerDocument), + namespaces = ownerDocument.namespaces, + ownerWindow = ownerDocument.parentWindow; + + if (!supportsShivableSheets || ownerDocument.printShived) { + return ownerDocument; + } + if (typeof namespaces[shivNamespace] == 'undefined') { + namespaces.add(shivNamespace); + } + + function removeSheet() { + clearTimeout(data._removeSheetTimer); + if (shivedSheet) { + shivedSheet.removeNode(true); + } + shivedSheet= null; + } + + ownerWindow.attachEvent('onbeforeprint', function() { + + removeSheet(); + + var imports, + length, + sheet, + collection = ownerDocument.styleSheets, + cssText = [], + index = collection.length, + sheets = Array(index); + + // convert styleSheets collection to an array + while (index--) { + sheets[index] = collection[index]; + } + // concat all style sheet CSS text + while ((sheet = sheets.pop())) { + // IE does not enforce a same origin policy for external style sheets... + // but has trouble with some dynamically created stylesheets + if (!sheet.disabled && reMedia.test(sheet.media)) { + + try { + imports = sheet.imports; + length = imports.length; + } catch(er){ + length = 0; + } + + for (index = 0; index < length; index++) { + sheets.push(imports[index]); + } + + try { + cssText.push(sheet.cssText); + } catch(er){} + } + } + + // wrap all HTML5 elements with printable elements and add the shived style sheet + cssText = shivCssText(cssText.reverse().join('')); + wrappers = addWrappers(ownerDocument); + shivedSheet = addStyleSheet(ownerDocument, cssText); + + }); + + ownerWindow.attachEvent('onafterprint', function() { + // remove wrappers, leaving the original elements, and remove the shived style sheet + removeWrappers(wrappers); + clearTimeout(data._removeSheetTimer); + data._removeSheetTimer = setTimeout(removeSheet, 500); + }); + + ownerDocument.printShived = true; + return ownerDocument; + } + + /*--------------------------------------------------------------------------*/ + + // expose API + html5.type += ' print'; + html5.shivPrint = shivPrint; + + // shiv for print + shivPrint(document); + +}(this, document)); +/*yepnope1.5.4|WTFPL*/ +(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f\n" "Language-Team: Scott Smith \n" "Language: de_DE\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.6.1\n" +"X-Generator: Poedit 1.6.2\n" "X-Poedit-SourceCharset: utf-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" @@ -208,45 +208,45 @@ msgstr "" "Vielleicht hilft die Suche weiter." #: ../content-page.php:17 ../content-single.php:11 ../content-single.php:76 -#: ../content.php:11 ../content.php:46 ../content.php:119 ../image.php:94 +#: ../content.php:11 ../content.php:46 ../content.php:127 ../image.php:94 msgid "Pages:" msgstr "Seiten: " #: ../content-page.php:20 ../content-single.php:24 ../content-single.php:55 #: ../content-single.php:89 ../content.php:18 ../content.php:53 -#: ../content.php:78 ../content.php:98 ../content.php:126 ../image.php:33 +#: ../content.php:78 ../content.php:103 ../content.php:134 ../image.php:33 #: ../image.php:101 ../inc/template-tags.php:81 ../inc/template-tags.php:100 msgid "Edit" msgstr "Bearbeiten" #: ../content-single.php:10 ../content-single.php:42 ../content-single.php:75 -#: ../content.php:10 ../content.php:45 ../content.php:118 +#: ../content.php:10 ../content.php:45 ../content.php:126 msgid "Continue reading " msgstr "Weiterlesen " #: ../content-single.php:25 ../content-single.php:56 ../content-single.php:90 -#: ../content.php:20 ../content.php:55 ../content.php:128 +#: ../content.php:20 ../content.php:55 ../content.php:136 msgid "Tagged as: " msgstr "Getaggt als: " #: ../content-single.php:26 ../content-single.php:57 ../content-single.php:91 -#: ../content.php:23 ../content.php:58 ../content.php:131 +#: ../content.php:23 ../content.php:58 ../content.php:139 msgid "Categorized in: " msgstr "Abgelegt in: " -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "Leave a comment" msgstr "Schreibe eine Kommentar" -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "1 Comment" msgstr "1 Kommentar" -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "% Comments" msgstr "% Kommentare" -#: ../content.php:97 +#: ../content.php:102 msgid "Read More…" msgstr "Weiterlesen…" @@ -263,7 +263,7 @@ msgstr "Navigations Menü" msgid "Sidebar" msgstr "Seitenleiste" -#: ../header.php:31 ../header.php:438 +#: ../header.php:31 ../header.php:462 msgid "Skip to content" msgstr "Springe zu Inhalt" @@ -392,71 +392,76 @@ msgstr "Kommentare aktivieren" msgid "Social Options" msgstr "Social-Einstellung" -#: ../inc/customizer.php:353 +#: ../inc/customizer.php:361 msgid "Show Social Icons" msgstr "Social Icons anzeigen" -#: ../inc/customizer.php:360 +#: ../inc/customizer.php:368 msgid "Open Links in New Tab/Window" msgstr "" -#: ../inc/customizer.php:367 ../inc/customizer.php:374 -#: ../inc/customizer.php:381 ../inc/customizer.php:388 -#: ../inc/customizer.php:395 ../inc/customizer.php:402 -#: ../inc/customizer.php:409 ../inc/customizer.php:416 -#: ../inc/customizer.php:437 ../inc/customizer.php:444 -#: ../inc/customizer.php:451 ../inc/customizer.php:458 -#: ../inc/customizer.php:465 ../inc/customizer.php:472 -#: ../inc/customizer.php:479 ../inc/customizer.php:486 -#: ../inc/customizer.php:493 ../inc/customizer.php:500 -#: ../inc/customizer.php:507 ../inc/customizer.php:514 -#: ../inc/customizer.php:521 ../inc/customizer.php:528 -#: ../inc/customizer.php:535 ../inc/customizer.php:542 -#: ../inc/customizer.php:549 ../inc/customizer.php:556 +#: ../inc/customizer.php:375 ../inc/customizer.php:382 +#: ../inc/customizer.php:389 ../inc/customizer.php:396 +#: ../inc/customizer.php:403 ../inc/customizer.php:410 +#: ../inc/customizer.php:417 ../inc/customizer.php:424 +#: ../inc/customizer.php:445 ../inc/customizer.php:452 +#: ../inc/customizer.php:459 ../inc/customizer.php:466 +#: ../inc/customizer.php:473 ../inc/customizer.php:480 +#: ../inc/customizer.php:487 ../inc/customizer.php:494 +#: ../inc/customizer.php:501 ../inc/customizer.php:508 +#: ../inc/customizer.php:515 ../inc/customizer.php:522 +#: ../inc/customizer.php:529 ../inc/customizer.php:536 +#: ../inc/customizer.php:543 ../inc/customizer.php:550 +#: ../inc/customizer.php:557 ../inc/customizer.php:564 +#: ../inc/customizer.php:578 msgid "Username" msgstr "Benutzername" -#: ../inc/customizer.php:388 +#: ../inc/customizer.php:396 msgid " (or the long number in your profile URL)" msgstr " (oder die lange Nummer in deiner Profil URL)" -#: ../inc/customizer.php:423 +#: ../inc/customizer.php:431 msgid "Profile URL" msgstr "Profil URL" -#: ../inc/customizer.php:430 +#: ../inc/customizer.php:438 msgid "Site URL" msgstr "Seiten URL" -#: ../inc/customizer.php:563 +#: ../inc/customizer.php:571 +msgid "Group Name" +msgstr "" + +#: ../inc/customizer.php:585 msgid "RSS Feed" msgstr "RSS Feed" -#: ../inc/customizer.php:570 +#: ../inc/customizer.php:592 msgid "Email Address" msgstr "Email Adresse" -#: ../inc/customizer.php:583 +#: ../inc/customizer.php:605 msgid "Reading Options" msgstr "Lese-Einstellungen" -#: ../inc/customizer.php:638 +#: ../inc/customizer.php:665 msgid "" "Use entry excerpts instead of full text on site home. Excludes sticky posts." msgstr "" "Zeige Ausschnitte anstelle des vollen Textes an. Haftnotizen ausgenommen." -#: ../inc/customizer.php:645 +#: ../inc/customizer.php:672 msgid "Displays posts' featured images when excerpts are shown on main page." msgstr "" -#: ../inc/customizer.php:652 +#: ../inc/customizer.php:679 msgid "Show tags on front page (tags will be shown on post's individual page)" msgstr "" "Zeige Tags auf der Startseite (Tags werden auf der Detailseite eines Posts " "angezeigt)" -#: ../inc/customizer.php:659 +#: ../inc/customizer.php:686 msgid "" "Show categories on front page (categories will be shown on post's individual " "page)" @@ -464,32 +469,36 @@ msgstr "" "Zeige Kategorien auf der Startseite (Kategorien werden auf der Detailseite " "eines Posts angezeigt)" -#: ../inc/customizer.php:666 +#: ../inc/customizer.php:693 msgid "Show author's name, profile image, and bio after posts" msgstr "" "Zeige den Namen des Autors, dessen Profilbild und Biographie nach den Posts" -#: ../inc/customizer.php:673 +#: ../inc/customizer.php:700 msgid "Entry Date Position" msgstr "" -#: ../inc/customizer.php:677 +#: ../inc/customizer.php:704 msgid "Above Header" msgstr "" -#: ../inc/customizer.php:678 +#: ../inc/customizer.php:705 msgid "Below Header" msgstr "" -#: ../inc/customizer.php:684 +#: ../inc/customizer.php:711 msgid "Show Page Headers" msgstr "" -#: ../inc/customizer.php:691 +#: ../inc/customizer.php:718 +msgid "Show entry date for post excepts on the main page" +msgstr "" + +#: ../inc/customizer.php:725 msgid "Add an arrow before the title of a link post" msgstr "Füge einen Pfeil vor Titeln eines Link-Posts ein" -#: ../inc/customizer.php:698 +#: ../inc/customizer.php:732 msgid "" "Show Theme Info (display a line of text about the theme and its creator at " "the bottom of pages)" @@ -497,36 +506,36 @@ msgstr "" "Zeige Theme Info (zeige ein Zeile รผber das Theme und dessen Entwickler am " "unteren Seitenrand an)" -#: ../inc/customizer.php:705 +#: ../inc/customizer.php:739 msgid "Text (colophon, copyright, credits, etc.) for the footer of the site" msgstr "" "Text (Schlussschrift, Copyright, Abspann, etc.) fรผr die Fusszeile der Seite" -#: ../inc/customizer.php:718 +#: ../inc/customizer.php:752 msgid "Other Options" msgstr "Weitere Einstellungen" -#: ../inc/customizer.php:730 +#: ../inc/customizer.php:764 msgid "Custom CSS" msgstr "Benutzerdefiniertes CSS" -#: ../inc/customizer.php:769 +#: ../inc/customizer.php:803 msgid "Accent Color" msgstr "Akzentfarbe" -#: ../inc/customizer.php:775 +#: ../inc/customizer.php:809 msgid "Active Link Color" msgstr "Farbe aktiver Links" -#: ../inc/customizer.php:781 +#: ../inc/customizer.php:815 msgid "Text Color" msgstr "Textfarbe" -#: ../inc/customizer.php:787 +#: ../inc/customizer.php:821 msgid "Secondary Text Color" msgstr "Zweite Textfarbe" -#: ../inc/customizer.php:793 +#: ../inc/customizer.php:827 msgid "Use accent color instead of text color for icons" msgstr "Verwende Akzentfarbe anstelle der Textfarbe fรผr die Icons" @@ -547,9 +556,8 @@ msgid "Page " msgstr "Seite" #: ../inc/template-tags.php:23 -#, fuzzy msgid "Posts navigation" -msgstr "Post Navigation" +msgstr "" #: ../inc/template-tags.php:27 msgid " Older posts" @@ -564,16 +572,14 @@ msgid "Post navigation" msgstr "Post Navigation" #: ../inc/template-tags.php:59 -#, fuzzy msgctxt "Previous post link" msgid " %title" -msgstr " Vorherige" +msgstr "" #: ../inc/template-tags.php:60 -#, fuzzy msgctxt "Next post link" msgid "%title " -msgstr "Nächste " +msgstr "" #: ../inc/template-tags.php:81 msgid "Pingback:" @@ -613,7 +619,6 @@ msgid "View all posts by %s" msgstr "Zeige alle Posts von %s" #. Theme Description -#, fuzzy msgid "" "A minimal, modern theme, designed to be mobile first and fully responsive, " "Decode features the ability to change all the colors in the theme and an " @@ -623,7 +628,7 @@ msgid "" "elegent two-column experience. You can even disable the sidebar and comment " "links if you choose. Decode supports link posts, where the title can be " "hyperlinked. Decode includes custom social icons in the header that you can " -"easily link to your choice of 28 different social profiles from Twitter, and " +"easily link to your choice of 30 different social profiles from Twitter, and " "App.net, to Pinterest and LinkedIn, you will be sure to find support for the " "network you want alongside a bevy of customizations to make your site " "unique. Lastly, Decode is also built alongside a companion plugin that adds " @@ -634,7 +639,7 @@ msgstr "" "Ein einfaches, modernes, speziell für Mobilgeräte designtes Theme, " "welches die Möglichkeit bietet alle Farben im Theme zu ändern und " "eine elegante Seitenleiste bietet, die bequem per Klick auf das Menü " -"icon erreicht werden kann. Die Seitenleiser kann eine unbegrenzte Anzahl von " +"con erreicht werden kann. Die Seitenleiser kann eine unbegrenzte Anzahl von " "frei wählbaren Widgets enthalten. Ebenfalls frei gewählt werden " "kann die Position der Seitenleiste (links oder rechts) und ob sie immer " "sichtbar sein soll oder geschlossen werden kann. Wenn du willst, kannst du " diff --git a/languages/decode.pot b/languages/decode.pot index bfb56a0..3d28499 100644 --- a/languages/decode.pot +++ b/languages/decode.pot @@ -6,15 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Decode v2.8.1\n" "Report-Msgid-Bugs-To: http://wordpress.org/support/theme/decode\n" -"POT-Creation-Date: 2013-12-08 23:24-0600\n" -"PO-Revision-Date: 2013-12-08 23:25-0600\n" +"POT-Creation-Date: 2013-12-12 21:53-0600\n" +"PO-Revision-Date: 2013-12-12 21:54-0600\n" "Last-Translator: Scott Smith \n" "Language-Team: Scott Smith \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 1.6.1\n" +"X-Generator: Poedit 1.6.2\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;" "esc_attr__;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;" @@ -193,45 +193,45 @@ msgid "" msgstr "" #: ../content-page.php:17 ../content-single.php:11 ../content-single.php:76 -#: ../content.php:11 ../content.php:46 ../content.php:119 ../image.php:94 +#: ../content.php:11 ../content.php:46 ../content.php:127 ../image.php:94 msgid "Pages:" msgstr "" #: ../content-page.php:20 ../content-single.php:24 ../content-single.php:55 #: ../content-single.php:89 ../content.php:18 ../content.php:53 -#: ../content.php:78 ../content.php:98 ../content.php:126 ../image.php:33 +#: ../content.php:78 ../content.php:103 ../content.php:134 ../image.php:33 #: ../image.php:101 ../inc/template-tags.php:81 ../inc/template-tags.php:100 msgid "Edit" msgstr "" #: ../content-single.php:10 ../content-single.php:42 ../content-single.php:75 -#: ../content.php:10 ../content.php:45 ../content.php:118 +#: ../content.php:10 ../content.php:45 ../content.php:126 msgid "Continue reading " msgstr "" #: ../content-single.php:25 ../content-single.php:56 ../content-single.php:90 -#: ../content.php:20 ../content.php:55 ../content.php:128 +#: ../content.php:20 ../content.php:55 ../content.php:136 msgid "Tagged as: " msgstr "" #: ../content-single.php:26 ../content-single.php:57 ../content-single.php:91 -#: ../content.php:23 ../content.php:58 ../content.php:131 +#: ../content.php:23 ../content.php:58 ../content.php:139 msgid "Categorized in: " msgstr "" -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "Leave a comment" msgstr "" -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "1 Comment" msgstr "" -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "% Comments" msgstr "" -#: ../content.php:97 +#: ../content.php:102 msgid "Read More…" msgstr "" @@ -248,7 +248,7 @@ msgstr "" msgid "Sidebar" msgstr "" -#: ../header.php:31 ../header.php:438 +#: ../header.php:31 ../header.php:462 msgid "Skip to content" msgstr "" @@ -371,132 +371,141 @@ msgstr "" msgid "Social Options" msgstr "" -#: ../inc/customizer.php:353 +#: ../inc/customizer.php:361 msgid "Show Social Icons" msgstr "" -#: ../inc/customizer.php:360 +#: ../inc/customizer.php:368 msgid "Open Links in New Tab/Window" msgstr "" -#: ../inc/customizer.php:367 ../inc/customizer.php:374 -#: ../inc/customizer.php:381 ../inc/customizer.php:388 -#: ../inc/customizer.php:395 ../inc/customizer.php:402 -#: ../inc/customizer.php:409 ../inc/customizer.php:416 -#: ../inc/customizer.php:437 ../inc/customizer.php:444 -#: ../inc/customizer.php:451 ../inc/customizer.php:458 -#: ../inc/customizer.php:465 ../inc/customizer.php:472 -#: ../inc/customizer.php:479 ../inc/customizer.php:486 -#: ../inc/customizer.php:493 ../inc/customizer.php:500 -#: ../inc/customizer.php:507 ../inc/customizer.php:514 -#: ../inc/customizer.php:521 ../inc/customizer.php:528 -#: ../inc/customizer.php:535 ../inc/customizer.php:542 -#: ../inc/customizer.php:549 ../inc/customizer.php:556 +#: ../inc/customizer.php:375 ../inc/customizer.php:382 +#: ../inc/customizer.php:389 ../inc/customizer.php:396 +#: ../inc/customizer.php:403 ../inc/customizer.php:410 +#: ../inc/customizer.php:417 ../inc/customizer.php:424 +#: ../inc/customizer.php:445 ../inc/customizer.php:452 +#: ../inc/customizer.php:459 ../inc/customizer.php:466 +#: ../inc/customizer.php:473 ../inc/customizer.php:480 +#: ../inc/customizer.php:487 ../inc/customizer.php:494 +#: ../inc/customizer.php:501 ../inc/customizer.php:508 +#: ../inc/customizer.php:515 ../inc/customizer.php:522 +#: ../inc/customizer.php:529 ../inc/customizer.php:536 +#: ../inc/customizer.php:543 ../inc/customizer.php:550 +#: ../inc/customizer.php:557 ../inc/customizer.php:564 +#: ../inc/customizer.php:578 msgid "Username" msgstr "" -#: ../inc/customizer.php:388 +#: ../inc/customizer.php:396 msgid " (or the long number in your profile URL)" msgstr "" -#: ../inc/customizer.php:423 +#: ../inc/customizer.php:431 msgid "Profile URL" msgstr "" -#: ../inc/customizer.php:430 +#: ../inc/customizer.php:438 msgid "Site URL" msgstr "" -#: ../inc/customizer.php:563 +#: ../inc/customizer.php:571 +msgid "Group Name" +msgstr "" + +#: ../inc/customizer.php:585 msgid "RSS Feed" msgstr "" -#: ../inc/customizer.php:570 +#: ../inc/customizer.php:592 msgid "Email Address" msgstr "" -#: ../inc/customizer.php:583 +#: ../inc/customizer.php:605 msgid "Reading Options" msgstr "" -#: ../inc/customizer.php:638 +#: ../inc/customizer.php:665 msgid "" "Use entry excerpts instead of full text on site home. Excludes sticky posts." msgstr "" -#: ../inc/customizer.php:645 +#: ../inc/customizer.php:672 msgid "Displays posts' featured images when excerpts are shown on main page." msgstr "" -#: ../inc/customizer.php:652 +#: ../inc/customizer.php:679 msgid "Show tags on front page (tags will be shown on post's individual page)" msgstr "" -#: ../inc/customizer.php:659 +#: ../inc/customizer.php:686 msgid "" "Show categories on front page (categories will be shown on post's individual " "page)" msgstr "" -#: ../inc/customizer.php:666 +#: ../inc/customizer.php:693 msgid "Show author's name, profile image, and bio after posts" msgstr "" -#: ../inc/customizer.php:673 +#: ../inc/customizer.php:700 msgid "Entry Date Position" msgstr "" -#: ../inc/customizer.php:677 +#: ../inc/customizer.php:704 msgid "Above Header" msgstr "" -#: ../inc/customizer.php:678 +#: ../inc/customizer.php:705 msgid "Below Header" msgstr "" -#: ../inc/customizer.php:684 +#: ../inc/customizer.php:711 msgid "Show Page Headers" msgstr "" -#: ../inc/customizer.php:691 +#: ../inc/customizer.php:718 +msgid "Show entry date for post excepts on the main page" +msgstr "" + +#: ../inc/customizer.php:725 msgid "Add an arrow before the title of a link post" msgstr "" -#: ../inc/customizer.php:698 +#: ../inc/customizer.php:732 msgid "" "Show Theme Info (display a line of text about the theme and its creator at " "the bottom of pages)" msgstr "" -#: ../inc/customizer.php:705 +#: ../inc/customizer.php:739 msgid "Text (colophon, copyright, credits, etc.) for the footer of the site" msgstr "" -#: ../inc/customizer.php:718 +#: ../inc/customizer.php:752 msgid "Other Options" msgstr "" -#: ../inc/customizer.php:730 +#: ../inc/customizer.php:764 msgid "Custom CSS" msgstr "" -#: ../inc/customizer.php:769 +#: ../inc/customizer.php:803 msgid "Accent Color" msgstr "" -#: ../inc/customizer.php:775 +#: ../inc/customizer.php:809 msgid "Active Link Color" msgstr "" -#: ../inc/customizer.php:781 +#: ../inc/customizer.php:815 msgid "Text Color" msgstr "" -#: ../inc/customizer.php:787 +#: ../inc/customizer.php:821 msgid "Secondary Text Color" msgstr "" -#: ../inc/customizer.php:793 +#: ../inc/customizer.php:827 msgid "Use accent color instead of text color for icons" msgstr "" @@ -587,7 +596,7 @@ msgid "" "elegent two-column experience. You can even disable the sidebar and comment " "links if you choose. Decode supports link posts, where the title can be " "hyperlinked. Decode includes custom social icons in the header that you can " -"easily link to your choice of 28 different social profiles from Twitter, and " +"easily link to your choice of 30 different social profiles from Twitter, and " "App.net, to Pinterest and LinkedIn, you will be sure to find support for the " "network you want alongside a bevy of customizations to make your site " "unique. Lastly, Decode is also built alongside a companion plugin that adds " diff --git a/languages/fr_FR.mo b/languages/fr_FR.mo index 2d5e003..085c7bb 100644 Binary files a/languages/fr_FR.mo and b/languages/fr_FR.mo differ diff --git a/languages/fr_FR.po b/languages/fr_FR.po index fb9bd7e..694ce0f 100644 --- a/languages/fr_FR.po +++ b/languages/fr_FR.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Decode v2.8.1\n" "Report-Msgid-Bugs-To: http://wordpress.org/support/theme/decode\n" "POT-Creation-Date: 2013-12-08 23:24-0600\n" -"PO-Revision-Date: 2013-12-08 23:27-0600\n" +"PO-Revision-Date: 2013-12-12 22:05-0600\n" "Last-Translator: Scott Smith \n" "Language-Team: \n" "Language: fr_FR\n" @@ -15,7 +15,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n>1;\n" -"X-Generator: Poedit 1.6.1\n" +"X-Generator: Poedit 1.6.2\n" "X-Poedit-SourceCharset: utf-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n" @@ -497,8 +497,11 @@ msgstr "" "l'exception des articles mis en avant." #: ../inc/customizer.php:645 +#, fuzzy msgid "Displays posts' featured images when excerpts are shown on main page." msgstr "" +"Afficher les tags sur la page d’accueil (les tags seront affichés sur la " +"page de chaque article)" #: ../inc/customizer.php:652 msgid "Show tags on front page (tags will be shown on post's individual page)" @@ -520,20 +523,28 @@ msgstr "" "Afficher le nom de l'auteur, l'image du profil et la bio après les articles" #: ../inc/customizer.php:673 +#, fuzzy msgid "Entry Date Position" msgstr "" +"Afficher les tags sur la page d’accueil (les tags seront affichés sur la " +"page de chaque article)" #: ../inc/customizer.php:677 +#, fuzzy msgid "Above Header" -msgstr "" +msgstr "Options de l’en-tête" #: ../inc/customizer.php:678 +#, fuzzy msgid "Below Header" -msgstr "" +msgstr "Options de l’en-tête" #: ../inc/customizer.php:684 +#, fuzzy msgid "Show Page Headers" msgstr "" +"Afficher les tags sur la page d’accueil (les tags seront affichés sur la " +"page de chaque article)" #: ../inc/customizer.php:691 msgid "Add an arrow before the title of a link post" @@ -610,7 +621,7 @@ msgstr "Page" #: ../inc/template-tags.php:23 #, fuzzy msgid "Posts navigation" -msgstr "Navigation dans les articles" +msgstr "Navigation des commentaires" # @ decode #: ../inc/template-tags.php:27 @@ -683,7 +694,6 @@ msgid "View all posts by %s" msgstr "Voir tous les articles de %s" #. Theme Description -#, fuzzy msgid "" "A minimal, modern theme, designed to be mobile first and fully responsive, " "Decode features the ability to change all the colors in the theme and an " @@ -701,16 +711,3 @@ msgid "" "Twitter or App.net. More " "info here" msgstr "" -"Un thème moderne et minimaliste, conçu en responsive design pour s'adapter " -"parfaitement à tous les supports mobiles. Les options de Decode permettent " -"de changer les couleurs du thème et d'afficher une élégante colonne latérale " -"par simple tap sur son icône. Cette colonne affiche un nombre illimité de " -"widgets, peut être placée à droite ou à gauche, être visible de façon " -"permanente ou ponctuelle, ou encore désactivée. Decode permet les liens sur " -"les titres d'articles, et inclut de superbes icônes dans l'en-tête afin de " -"relier votre site aux profils de 28 réseaux sociaux de votre choix, de " -"Twitter à AppNet, en passant par Pinterest ou LinkedIn, vous êtes sûr de " -"trouver votre réseau préféré. Enfin, Decode peut se compléter d'un plugin " -"qui permet à vos lecteurs de vous répondre très simplement sur un article " -"par twitter ou App.net. Plus d'infos ici : http://scotthsmith.com/projects/" -"decode/." diff --git a/languages/ru_RU.mo b/languages/ru_RU.mo index 8c31a15..5069c1c 100644 Binary files a/languages/ru_RU.mo and b/languages/ru_RU.mo differ diff --git a/languages/ru_RU.po b/languages/ru_RU.po index 6acd5b3..2c17161 100644 --- a/languages/ru_RU.po +++ b/languages/ru_RU.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: Decode v2.8\n" "Report-Msgid-Bugs-To: http://wordpress.org/support/theme/decode\n" -"POT-Creation-Date: 2013-12-08 23:24-0600\n" -"PO-Revision-Date: 2013-12-08 23:26-0600\n" +"POT-Creation-Date: 2013-12-12 21:53-0600\n" +"PO-Revision-Date: 2013-12-12 22:06-0600\n" "Last-Translator: Scott Smith \n" "Language-Team: \n" "Language: ru\n" @@ -12,7 +12,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%100/10==1 ? 2 : n%10==1 ? 0 : (n" "+9)%10>3 ? 2 : 1;\n" -"X-Generator: Poedit 1.6.1\n" +"X-Generator: Poedit 1.6.2\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;" "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n" @@ -237,7 +237,7 @@ msgstr "" # @ decode #: ../content-page.php:17 ../content-single.php:11 ../content-single.php:76 -#: ../content.php:11 ../content.php:46 ../content.php:119 ../image.php:94 +#: ../content.php:11 ../content.php:46 ../content.php:127 ../image.php:94 msgid "Pages:" msgstr "Страницы:" @@ -245,46 +245,46 @@ msgstr "Страницы:" # @ _s #: ../content-page.php:20 ../content-single.php:24 ../content-single.php:55 #: ../content-single.php:89 ../content.php:18 ../content.php:53 -#: ../content.php:78 ../content.php:98 ../content.php:126 ../image.php:33 +#: ../content.php:78 ../content.php:103 ../content.php:134 ../image.php:33 #: ../image.php:101 ../inc/template-tags.php:81 ../inc/template-tags.php:100 msgid "Edit" msgstr "Редактировать" # @ decode #: ../content-single.php:10 ../content-single.php:42 ../content-single.php:75 -#: ../content.php:10 ../content.php:45 ../content.php:118 +#: ../content.php:10 ../content.php:45 ../content.php:126 msgid "Continue reading " msgstr "Читать далее " # @ decode #: ../content-single.php:25 ../content-single.php:56 ../content-single.php:90 -#: ../content.php:20 ../content.php:55 ../content.php:128 +#: ../content.php:20 ../content.php:55 ../content.php:136 msgid "Tagged as: " msgstr "Метки: " # @ decode #: ../content-single.php:26 ../content-single.php:57 ../content-single.php:91 -#: ../content.php:23 ../content.php:58 ../content.php:131 +#: ../content.php:23 ../content.php:58 ../content.php:139 msgid "Categorized in: " msgstr "Рубрики: " # @ decode -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "Leave a comment" msgstr "Оставить комментарий" # @ decode -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "1 Comment" msgstr "1 комментарий" # @ decode -#: ../content.php:15 ../content.php:50 ../content.php:123 +#: ../content.php:15 ../content.php:50 ../content.php:131 msgid "% Comments" msgstr "Есть комментарии" # @ decode -#: ../content.php:97 +#: ../content.php:102 msgid "Read More…" msgstr "Читать еще…" @@ -305,7 +305,7 @@ msgid "Sidebar" msgstr "Боковая колонка" # @ decode -#: ../header.php:31 ../header.php:438 +#: ../header.php:31 ../header.php:462 msgid "Skip to content" msgstr "Перейти к контенту" @@ -384,8 +384,9 @@ msgstr "Изображение в заголовке" # @ decode #: ../inc/customizer.php:79 +#, fuzzy msgid "Favicon Image (recommended to be a PNG)" -msgstr "" +msgstr "Изображение в заголовке" # @ decode #: ../inc/customizer.php:86 @@ -462,83 +463,89 @@ msgid "Social Options" msgstr "Социальные опции" # @ decode -#: ../inc/customizer.php:353 +#: ../inc/customizer.php:361 msgid "Show Social Icons" msgstr "Показывать социальные иконки " # @ decode -#: ../inc/customizer.php:360 +#: ../inc/customizer.php:368 msgid "Open Links in New Tab/Window" msgstr "Открывать ссылки в новом окне/вкладке" # @ decode -#: ../inc/customizer.php:367 ../inc/customizer.php:374 -#: ../inc/customizer.php:381 ../inc/customizer.php:388 -#: ../inc/customizer.php:395 ../inc/customizer.php:402 -#: ../inc/customizer.php:409 ../inc/customizer.php:416 -#: ../inc/customizer.php:437 ../inc/customizer.php:444 -#: ../inc/customizer.php:451 ../inc/customizer.php:458 -#: ../inc/customizer.php:465 ../inc/customizer.php:472 -#: ../inc/customizer.php:479 ../inc/customizer.php:486 -#: ../inc/customizer.php:493 ../inc/customizer.php:500 -#: ../inc/customizer.php:507 ../inc/customizer.php:514 -#: ../inc/customizer.php:521 ../inc/customizer.php:528 -#: ../inc/customizer.php:535 ../inc/customizer.php:542 -#: ../inc/customizer.php:549 ../inc/customizer.php:556 +#: ../inc/customizer.php:375 ../inc/customizer.php:382 +#: ../inc/customizer.php:389 ../inc/customizer.php:396 +#: ../inc/customizer.php:403 ../inc/customizer.php:410 +#: ../inc/customizer.php:417 ../inc/customizer.php:424 +#: ../inc/customizer.php:445 ../inc/customizer.php:452 +#: ../inc/customizer.php:459 ../inc/customizer.php:466 +#: ../inc/customizer.php:473 ../inc/customizer.php:480 +#: ../inc/customizer.php:487 ../inc/customizer.php:494 +#: ../inc/customizer.php:501 ../inc/customizer.php:508 +#: ../inc/customizer.php:515 ../inc/customizer.php:522 +#: ../inc/customizer.php:529 ../inc/customizer.php:536 +#: ../inc/customizer.php:543 ../inc/customizer.php:550 +#: ../inc/customizer.php:557 ../inc/customizer.php:564 +#: ../inc/customizer.php:578 msgid "Username" msgstr "Имя пользователя" # @ decode -#: ../inc/customizer.php:388 +#: ../inc/customizer.php:396 msgid " (or the long number in your profile URL)" msgstr "(или длинный номер в URL вашего профиля)" # @ decode -#: ../inc/customizer.php:423 +#: ../inc/customizer.php:431 msgid "Profile URL" msgstr "URL профиля" # @ decode -#: ../inc/customizer.php:430 +#: ../inc/customizer.php:438 msgid "Site URL" msgstr "URL сайта" +#: ../inc/customizer.php:571 +msgid "Group Name" +msgstr "" + # @ decode -#: ../inc/customizer.php:563 +#: ../inc/customizer.php:585 msgid "RSS Feed" msgstr "RSS Feed" # @ decode -#: ../inc/customizer.php:570 +#: ../inc/customizer.php:592 msgid "Email Address" msgstr "Адрес электронной почты" # @ decode -#: ../inc/customizer.php:583 +#: ../inc/customizer.php:605 msgid "Reading Options" msgstr "Параметры чтения" # @ decode -#: ../inc/customizer.php:638 +#: ../inc/customizer.php:665 msgid "" "Use entry excerpts instead of full text on site home. Excludes sticky posts." msgstr "" "Использовать цитаты вместо текста на главной странице сайта. За исключением " "прилепленных сообщений." -#: ../inc/customizer.php:645 +#: ../inc/customizer.php:672 +#, fuzzy msgid "Displays posts' featured images when excerpts are shown on main page." -msgstr "" +msgstr "Картинки" # @ decode -#: ../inc/customizer.php:652 +#: ../inc/customizer.php:679 msgid "Show tags on front page (tags will be shown on post's individual page)" msgstr "" "Показывать метки на главной странице (метки всегда показываются на отдельной " "странице записи)" # @ decode -#: ../inc/customizer.php:659 +#: ../inc/customizer.php:686 msgid "" "Show categories on front page (categories will be shown on post's individual " "page)" @@ -547,37 +554,42 @@ msgstr "" "отдельной странице записи)" # @ decode -#: ../inc/customizer.php:666 +#: ../inc/customizer.php:693 msgid "Show author's name, profile image, and bio after posts" msgstr "Показывать имя автора, изображение профиля и описание в публикации" # @ decode -#: ../inc/customizer.php:673 +#: ../inc/customizer.php:700 msgid "Entry Date Position" msgstr "Позиция даты" # @ decode -#: ../inc/customizer.php:677 +#: ../inc/customizer.php:704 msgid "Above Header" msgstr "Над заголовком" # @ decode -#: ../inc/customizer.php:678 +#: ../inc/customizer.php:705 msgid "Below Header" msgstr "Ниже заголовка" # @ decode -#: ../inc/customizer.php:684 +#: ../inc/customizer.php:711 msgid "Show Page Headers" msgstr "Показывать заголовки страниц" +#: ../inc/customizer.php:718 +#, fuzzy +msgid "Show entry date for post excepts on the main page" +msgstr "Позиция даты" + # @ decode -#: ../inc/customizer.php:691 +#: ../inc/customizer.php:725 msgid "Add an arrow before the title of a link post" msgstr "Добавить стрелочку перед ссылкой на запись" # @ decode -#: ../inc/customizer.php:698 +#: ../inc/customizer.php:732 msgid "" "Show Theme Info (display a line of text about the theme and its creator at " "the bottom of pages)" @@ -586,43 +598,43 @@ msgstr "" "страниц)" # @ decode -#: ../inc/customizer.php:705 +#: ../inc/customizer.php:739 msgid "Text (colophon, copyright, credits, etc.) for the footer of the site" msgstr "" "Текст (выходные данные, копирайты, благодарности и т.д) в подвале сайта" # @ decode -#: ../inc/customizer.php:718 +#: ../inc/customizer.php:752 msgid "Other Options" msgstr "Прочие параметры" # @ decode -#: ../inc/customizer.php:730 +#: ../inc/customizer.php:764 msgid "Custom CSS" msgstr "Свой CSS" # @ decode -#: ../inc/customizer.php:769 +#: ../inc/customizer.php:803 msgid "Accent Color" msgstr "Цвет выделения" # @ decode -#: ../inc/customizer.php:775 +#: ../inc/customizer.php:809 msgid "Active Link Color" msgstr "Цвет активной ссылки" # @ decode -#: ../inc/customizer.php:781 +#: ../inc/customizer.php:815 msgid "Text Color" msgstr "Цвет текста" # @ decode -#: ../inc/customizer.php:787 +#: ../inc/customizer.php:821 msgid "Secondary Text Color" msgstr "Цвет второстепенного текста" # @ decode -#: ../inc/customizer.php:793 +#: ../inc/customizer.php:827 msgid "Use accent color instead of text color for icons" msgstr "Использовать цвет выделения вместо цвет текста для иконок" @@ -650,7 +662,7 @@ msgstr "Страница " #: ../inc/template-tags.php:23 #, fuzzy msgid "Posts navigation" -msgstr "Навигация" +msgstr "Навигация комментария" # @ decode #: ../inc/template-tags.php:27 @@ -733,7 +745,7 @@ msgid "" "elegent two-column experience. You can even disable the sidebar and comment " "links if you choose. Decode supports link posts, where the title can be " "hyperlinked. Decode includes custom social icons in the header that you can " -"easily link to your choice of 28 different social profiles from Twitter, and " +"easily link to your choice of 30 different social profiles from Twitter, and " "App.net, to Pinterest and LinkedIn, you will be sure to find support for the " "network you want alongside a bevy of customizations to make your site " "unique. Lastly, Decode is also built alongside a companion plugin that adds " diff --git a/package.json b/package.json new file mode 100644 index 0000000..9781705 --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "Decode", + "version": "2.8.3", + "devDependencies": { + "grunt": "~0.4.2", + "grunt-contrib-concat": "~0.3.0", + "grunt-contrib-uglify": "~0.2.7", + "grunt-contrib-cssmin": "~0.7.0", + "grunt-autoprefixer": "~0.4.1", + "grunt-contrib-watch": "~0.5.3" + } +} diff --git a/screenshot.png b/screenshot.png index 92e98cf..05fe65f 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/style.css b/style.css index 182f996..de0ff35 100644 --- a/style.css +++ b/style.css @@ -3,9 +3,9 @@ Theme Name: Decode Theme URI: http://ScottHSmith.com/projects/decode/ Author: Scott Smith Author URI: http://ScottHSmith.com/ -Description: A minimal, modern theme, designed to be mobile first and fully responsive, Decode features the ability to change all the colors in the theme and an elegant sidebar conveniently accessed by tapping on the menu icon. The sidebar can fit all of your widgets and its position can be customized. You can also choose to keep the sidebar always visible on larger screens for an elegent two-column experience. You can even disable the sidebar and comment links if you choose. Decode supports link posts, where the title can be hyperlinked. Decode includes custom social icons in the header that you can easily link to your choice of 28 different social profiles from Twitter, and App.net, to Pinterest and LinkedIn, you will be sure to find support for the network you want alongside a bevy of customizations to make your site unique. Lastly, Decode is also built alongside a companion plugin that adds a sleek reply tool that lets readers send you a reply about the post using Twitter or App.net. More info here +Description: A minimal, modern theme, designed to be mobile first and fully responsive, Decode features the ability to change all the colors in the theme and an elegant sidebar conveniently accessed by tapping on the menu icon. The sidebar can fit all of your widgets and its position can be customized. You can also choose to keep the sidebar always visible on larger screens for an elegent two-column experience. You can even disable the sidebar and comment links if you choose. Decode supports link posts, where the title can be hyperlinked. Decode includes custom social icons in the header that you can easily link to your choice of 30 different social profiles from Twitter, and App.net, to Pinterest and LinkedIn, you will be sure to find support for the network you want alongside a bevy of customizations to make your site unique. Lastly, Decode is also built alongside a companion plugin that adds a sleek reply tool that lets readers send you a reply about the post using Twitter or App.net. More info here Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, editor-style, featured-images, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, white, yellow, dark, light -Version: 2.8.2 +Version: 2.8.3 Text Domain: decode License: GNU General Public License License URI: license.txt @@ -44,8 +44,6 @@ html { *, *:before, *:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; box-sizing: border-box; } article, @@ -98,7 +96,7 @@ button, select, textarea { color: #444444; - font: normal 300 110%/1.5 "Oxygen", "Helvetica Neue", "Arial", sans-serif; + font: 300 110%/1.5 "Oxygen", "Helvetica Neue", "Arial", sans-serif; } body { @@ -227,13 +225,11 @@ button, input[type="button"], input[type="reset"], input[type="submit"] { - -webkit-transition: border 0.25s ease-out, color 0.25s ease-out; - -moz-transition: border 0.25s ease-out, color 0.25s ease-out; transition: border 0.25s ease-out, color 0.25s ease-out; border: 1px solid #C0C0C0; border-radius: 3px; background: transparent; - color: #444444; + color: #009BCD; 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 */ height: 2.15em; @@ -278,8 +274,6 @@ input[type="search"], input[type="tel"], input[type="url"], textarea { - -webkit-transition: border 0.25s ease-out, color 0.25s ease-out, background 0.25s ease-out; - -moz-transition: border 0.25s ease-out, color 0.25s ease-out, background 0.25s ease-out; transition: border 0.25s ease-out, color 0.25s ease-out, background 0.25s ease-out; color: #C0C0C0; height: 2.15em; @@ -323,8 +317,6 @@ textarea { /* Links */ a { - -webkit-transition: color 0.4s ease-in-out, border-bottom 0.4s ease-in-out; - -moz-transition: color 0.4s ease-in-out, border-bottom 0.4s ease-in-out; transition: color 0.4s ease-in-out, border-bottom 0.4s ease-in-out; color: #009BCD; text-decoration: none; @@ -517,8 +509,6 @@ object { } .site-logo { - -webkit-transition: opacity 0.5s ease-out; - -moz-transition: opacity 0.5s ease-out; transition: opacity 0.5s ease-out; margin: 0 auto 2%; max-height: 8.5em; @@ -529,14 +519,10 @@ object { } .no-touch .site-logo:hover { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)"; - filter: alpha(opacity=75); opacity: 0.75; } .no-touch .site-logo:active { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; - filter: alpha(opacity=85); opacity: 0.85; } @@ -544,13 +530,10 @@ object { margin: 0 0 0.5%; line-height: 1; text-align: center; - -ms-word-wrap: break-word; word-wrap: break-word; } .site-title a { - -webkit-transition: text-shadow 0.5s; - -moz-transition: text-shadow 0.5s; transition: text-shadow 0.5s; font-size: 1.95em; text-decoration: none; @@ -609,21 +592,15 @@ object { } .sociallink { - -webkit-transition: opacity 0.4s ease-out; - -moz-transition: opacity 0.4s ease-out; transition: opacity 0.4s ease-out; border: none; } .no-touch .sociallink:hover { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; - filter: alpha(opacity=60); opacity: 0.6; } .no-touch .sociallink:active { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; - filter: alpha(opacity=80); opacity: 0.8; } @@ -654,8 +631,6 @@ object { margin-right: 0; } .main-navigation a { - -webkit-transition: color 0.25s ease-out; - -moz-transition: color 0.25s ease-out; transition: color 0.25s ease-out; display: block; text-decoration: none; @@ -710,8 +685,6 @@ object { .menu li.current_page_item > a:hover, .main-navigation li.current-menu-item > a:hover { - -webkit-animation: shake 0.25s ease 0.25s; - -moz-animation: shake 0.25s ease 0.25s; animation: shake 0.25s ease 0.25s; color: #000000; } @@ -765,7 +738,6 @@ object { .entry-content, .entry-summary { margin: 0 0 2.5%; - -ms-word-wrap: break-word; word-wrap: break-word; } @@ -790,23 +762,15 @@ body.single-attachment .entry-header { } a .attachment-post-thumbnail { - -webkit-transition: opacity 0.25s ease-out; - -moz-transition: opacity 0.25s ease-out; transition: opacity 0.25s ease-out; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - filter: alpha(opacity=100); opacity: 1; } .no-touch a .attachment-post-thumbnail:hover { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; - filter: alpha(opacity=80); opacity: 0.8; } .no-touch a .attachment-post-thumbnail:active { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; - filter: alpha(opacity=90); opacity: 0.9; } @@ -814,7 +778,6 @@ a .attachment-post-thumbnail { color: #444444; text-decoration: none; text-align: center; - -ms-word-wrap: break-word; word-wrap: break-word; font-size: 1.5em; line-height: 1.25; @@ -913,8 +876,6 @@ body.single-attachment .entry-meta { } .entry-meta .date a { - -webkit-transition: color 0.25s ease-out; - -moz-transition: color 0.25s ease-out; transition: color 0.25s ease-out; color: #808080; } @@ -949,28 +910,20 @@ body.single-attachment .entry-meta { ----------------------------------------------- */ .SidebarLink { - -webkit-transition: opacity 0.25s ease-out; - -moz-transition: opacity 0.25s ease-out; transition: opacity 0.25s ease-out; position: relative; margin-bottom: 2.5%; cursor: pointer; display: inline-block; height: 1.5em; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - filter: alpha(opacity=100); opacity: 1; } .no-touch .SidebarLink:hover { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)"; - filter: alpha(opacity=65); opacity: 0.65; } .no-touch .SidebarLink:active { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; - filter: alpha(opacity=85); opacity: 0.85; } @@ -1002,9 +955,6 @@ body.single-attachment .entry-meta { } .no-touch .SidebarTop { - position: -webkit-sticky; - position: -moz-sticky; - position: -ms-sticky; position: sticky; top: 0; } @@ -1013,28 +963,26 @@ body.single-attachment .entry-meta { top: 32px; } +@media screen and (max-width:782px) { + .admin-bar .sidebar { + top: 46px; + } +} + .SidebarClose { - -webkit-transition: opacity 0.25s ease-out; - -moz-transition: opacity 0.25s ease-out; transition: opacity 0.25s ease-out; padding: 3.5%; display: block; opacity: 1; height: 1.4em; - -moz-box-sizing: content-box; - -webkit-box-sizing: content-box; box-sizing: content-box; } .no-touch .SidebarTop:hover .SidebarClose { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)"; - filter: alpha(opacity=65); opacity: 0.65; } .no-touch .SidebarTop:hover .SidebarClose:active { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; - filter: alpha(opacity=85); opacity: 0.85; } @@ -1044,9 +992,7 @@ body.single-attachment .entry-meta { } .sidebar { - -webkit-transition: -webkit-transform 0.35s ease-out; - -moz-transition: -moz-transform 0.35s ease-out; - transition: -webkit-transform 0.35s ease-out, -ms-transform 0.35s ease-out, transform 0.35s ease-out; + transition: transform 0.35s ease-out; top: 0; width: 95%; font-size: 0.95em; @@ -1059,18 +1005,12 @@ body.single-attachment .entry-meta { } .sidebar.left { - -webkit-transform: translateX(-110%); - -moz-transform: translateX(-110%); - -ms-transform: translateX(-110%); transform: translateX(-110%); left: 0; box-shadow: 1px 0px 15px rgba(0,0,0,0.5); } .sidebar.right { - -webkit-transform: translateX(110%); - -moz-transform: translateX(110%); - -ms-transform: translateX(110%); transform: translateX(110%); right: 0; box-shadow: -1px 0px 15px rgba(0,0,0,0.5); @@ -1081,9 +1021,6 @@ body.single-attachment .entry-meta { } .sidebar.left.visible, .sidebar.right.visible { - -webkit-transform: translateX(0%); - -moz-transform: translateX(0%); - -ms-transform: translateX(0%); transform: translateX(0%); } @@ -1200,8 +1137,6 @@ body.single-attachment .entry-meta { } .explore-page .widget:not(.search) { - -webkit-transition: box-shadow 0.35s ease-out; - -moz-transition: box-shadow 0.35s ease-out; transition: box-shadow 0.35s ease-out; width: 90%; padding: 2.5% 5%; @@ -1239,7 +1174,6 @@ body.single-attachment .entry-meta { } .nav-next, .nav-previous { - -ms-word-wrap: break-word; word-wrap: break-word; } @@ -1256,8 +1190,6 @@ body.single-attachment .entry-meta { } .nav-links a { - -webkit-transition: padding 0.25s ease-out, color 0.25s ease-out; - -moz-transition: padding 0.25s ease-out, color 0.25s ease-out; transition: padding 0.25s ease-out, color 0.25s ease-out; padding: 0; display: block; @@ -1296,8 +1228,6 @@ body.single-attachment .entry-meta { } .comment-metadata a { - -webkit-transition: color 0.25s ease-out; - -moz-transition: color 0.25s ease-out; transition: color 0.25s ease-out; color: #808080; font-size: 0.8em; @@ -1336,8 +1266,6 @@ li.comment { } .search-entry, .search-entry .entry-title { - -webkit-transition: color 0.25s ease-out; - -moz-transition: color 0.25s ease-out; transition: color 0.25s ease-out; color: #444444; display: block; @@ -1361,7 +1289,7 @@ li.comment { } .search .page-header input[type="search"] { - color: #A6A6A6; + color: #808080; border-top-color: transparent; border-right-color: transparent; border-left-color: transparent; @@ -1374,7 +1302,7 @@ li.comment { border-radius: 3px; } -.search .page-header input[type="search"]:focus, .search .page-header input[type="search"]:hover:focus { +.search .page-header input[type="search"]:focus { color: #444444; border-color: #009BCD; border-radius: 3px; @@ -1404,8 +1332,6 @@ li.comment { /* =Author Section ----------------------------------------------- */ .author-section { - -webkit-transition: box-shadow 0.35s ease-out; - -moz-transition: box-shadow 0.35s ease-out; transition: box-shadow 0.35s ease-out; box-shadow: 0 1px 4px rgba(0,0,0,0.3); padding: 3.5%; @@ -1424,8 +1350,6 @@ li.comment { } .author-image img { - -webkit-transition: box-shadow 0.35s ease-out, opacity 0.35s ease-out; - -moz-transition: box-shadow 0.35s ease-out, opacity 0.35s ease-out; transition: box-shadow 0.35s ease-out, opacity 0.35s ease-out; border-radius: 50%; display: block; @@ -1666,9 +1590,6 @@ li.comment { } .sidebar.constant { - -webkit-transform: translateX(0%); - -moz-transform: translateX(0%); - -ms-transform: translateX(0%); transform: translateX(0%); box-shadow: none; }