/* Theme Name: Archimedes Theme URI: //github.com/mgsisk/archimedes Author: Michael Sisk Author URI: http://mgsisk.com License: GPL2 License URI: //gnu.org/licenses/gpl-2.0.html Version: 4 Description: Barebones Webcomic-ready theme named in honor of Nite Owl from the Watchmen graphic novel. Tags: light, white, black, gray, two-columns, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready Webcomic: 4 */ /** * To ensure the Theme Customizer doesn't interfere with your own * styles you should add any custom rules to the custom.css file. */ * { /** paulirish.com/2012/box-sizing-border-box-ftw */ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } body { background: #e8e8e8; color: #333; line-height: 1.4; margin: 1rem; text-rendering: optimizeLegibility; /** aestheticallyloyal.com/public/optimize-legibility */ } ::-moz-selection { background: #cbdb2a; color: #333; } ::selection { background: #cbdb2a; color: #333; } a:link { color: #00addc; text-decoration: none; -moz-transition: color .25s; -ms-transition: color .25s; -o-transition: color .25s; -webkit-transition: color .25s; transition: color .25s; } a:visited { color: #b72467; } a:focus, a:hover { color: #f68b1f; } a:active { color: #cbdb2a; } address { font-size: smaller; font-style: normal; } blockquote { border: thin solid #ccc; box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ) inset; padding: 1rem; } blockquote blockquote { margin: 0 0 1rem; } dt { font-weight: bold; } ol ol { list-style: lower-alpha; } ol ol ol { list-style: lower-roman; } nav ul, nav ol { list-style: none; margin: 0; padding: 0; } pre { border: thin solid #ccc; box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ) inset; font-size: smaller; padding: 1rem; } table { width: 100%; } td { border: thin solid #ccc; padding: .5rem; } textarea { resize: vertical; } embed, iframe, object, video { max-width: 100%; } img { height: auto; max-width: 100%; vertical-align: middle; } video { height: auto; } #page { background: #fff; border-radius: .25rem; box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ); margin: auto; position: relative; } #header hgroup { padding: 1rem; } #header hgroup a { color: #333; text-decoration: none; } #header hgroup a:focus, #header hgroup a:hover { opacity: .75; } #header hgroup a:active { opacity: .5; } #header h1 { line-height: 1; margin: 0; } #header h2 { font-size: 100%; font-weight: normal; line-height: 2; margin: 0; } #header nav:before, #header nav:after { content: ""; display: table; } #header nav:after { clear: both; } #header nav select { width: 100%; } #header nav ul { display: none; } #content:before, #content:after { content: ""; display: table; } #content:after { clear: both; } main { padding: 1rem; } #sidebar { padding: 1rem; } #footer { border-top: thin solid #ccc; padding: 1rem; text-align: center; } /** navigation */ nav.posts, nav.posts-paged, nav.comments-paged { border-bottom: thin solid #ccc; margin: 0 0 1rem; padding: 0 0 1rem; text-align: center; } nav.posts a:first-child, nav.comments-paged a:first-child { margin: 0 .5rem 0 0; } nav.posts a:last-child, nav.comments-paged a:last-child { margin: 0 0 0 .5rem; } nav.posts a:focus img, nav.posts a:hover img { opacity: .5; } nav.post-pages { margin: 0 0 1rem; text-align: center; } /** posts */ .sticky .post-header h1:before { content: '\2605'; padding: 0 .5rem 0 0; vertical-align: baseline; } .post-image { float: right; margin: 0 0 1rem 1rem; } .post-header h1 { margin: 0; } .post-comments-link a { border: thin solid; border-radius: .25rem; font-size: smaller; padding: .5rem; } .post-content { overflow: hidden; } .post-footer { border-bottom: thin solid #ccc; font-size: smaller; margin: 0 0 1rem; padding: 0 0 1rem; } .post-actions a { border: thin solid; border-radius: .25rem; font-size: smaller; margin: 0 0 0 .5rem; padding: .25rem; } .attachment .post-image { float: none; margin: 0; text-align: center; } .attachment .post-image img { border-radius: .25rem; box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ); } .attachment .post-excerpt { text-align: center; } /** comments */ .comment, .pingback, .trackback { border-bottom: thin solid #ccc; margin: 0 0 1rem; padding: 1rem; } .comment .comment { border: 0; border-left: thin solid #ccc; margin: 0 0 0 1rem; padding: 1rem; } .bypostauthor { border: thin solid #ccc; } .moderating-comment { font-size: smaller; font-style: italic; margin: 1rem 0 0; } .comment-footer img { margin: 0 1rem 0 0; } .comment-actions a { border: thin solid; border-radius: .25rem; font-size: smaller; margin: 0 0 0 .5rem; padding: .25rem; } /** forms */ #commentform label, .webcomic-transcribe-form label { display: block; float: left; width: 20%; } #commentform .required, .webcomic-transcribe-form .required { background: #0c0; color: #fff; padding: .25rem; } #commentform textarea, .webcomic-transcribe-form textarea { height: 10em; width: 100%; } .webcomic-transcript-error, .webcomic-transcript-success { font-size: smaller; font-style: italic; margin: 1rem 0 0; } /** webcomic */ .post-webcomic .webcomic-image { overflow: auto; } .post-webcomic nav { border-color: #ccc; border-style: solid; border-width: thin 0; } .post-webcomic nav:before, .post-webcomic nav:after { content: ""; display: table; } .post-webcomic nav:after { clear: both; } .post-webcomic nav a { font-size: 200%; float: left; text-align: center; width: 20%; } .post-webcomic nav .current-webcomic { opacity: .25; } .post-webcomic nav.above { border-top: 0; } .webcomic-prints div { margin: 0 0 1rem; } /** wordpress */ .sticky { } .bypostauthor { } .alignnone { margin: 1rem; } .aligncenter { display:block; margin: 1rem auto; } .alignright { float: right; margin: 1rem 0 1rem 1rem; } .alignleft { float: left; margin: 1rem 1rem 1rem 0; } .wp-caption { max-width: 100%; padding: .25rem; text-align: center; } .wp-caption img { border-radius: .25rem; box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ); } .wp-caption-text { font-size: smaller; margin: .5rem 0 0; } .gallery { margin: auto; padding: .25rem; } .gallery-item { float: left; margin: 0; padding: .25rem; text-align: center; } .gallery-icon { line-height: 1; } .gallery-icon img { border-radius: .25rem; box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ); } .gallery-caption { font-size: smaller; margin: .5rem 0 0; } .gallery-columns-1 .gallery-item { float: none; } .gallery-columns-2 .gallery-item { width: 50%; } .gallery-columns-3 .gallery-item { width: 33%; } .gallery-columns-4 .gallery-item { width: 25%; } .gallery-columns-5 .gallery-item { width: 20%; } .gallery-columns-6 .gallery-item { width: 16%; } .gallery-columns-7 .gallery-item { width: 14%; } .gallery-columns-8 .gallery-item { width: 12%; } .gallery-columns-9 .gallery-item { width: 11%; } @media only screen and ( min-width: 45em ) { #header nav { border-color: #ccc; border-style: solid; border-width: thin 0; } #header nav ul ul { display: none; z-index: 99; } #header nav select { display: none; } #header nav ul { display: block; } #header nav li { float: left; position: relative; } #header nav li:hover > ul { background: rgba( 255, 255, 255, .9 ); box-shadow: 0 .12rem .25rem rgba( 0, 0, 0, .25 ); display: block; position: absolute; } #header nav ul ul ul { left: 100%; top: 0; } #header nav ul ul li { float: none; } #header nav a { border: 0; display: block; line-height: 2; padding: 0 1rem; white-space: pre; } #header nav a:focus, #header nav a:hover, #header li:hover > a, #header .current_page_item a, #header .current_page_ancestor a { color: #f68b1f; } #header nav a:active { color: #cbdb2a; } main { float: left; width: 62%; } #sidebar { float: right; width: 38%; } }