/* Theme Name: Birdpress Theme URI: https://kowalskipress.github.io/birdpress Author: Kowalski Press Description: A simple, one column, Twitter inspired theme. Tags: blog, one-column, custom-background, custom-colors, custom-logo Version: 1.0 Tested up to: 6.1 Requires PHP: 7.0 Text Domain: bridpress License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html 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. */ @supports (font-variation-settings: normal) { :root { font-family: 'Inter var', system-ui, -apple-system, 'Segoe UI', sans-serif; } } :root { --light: rgb(83, 100, 113); --medium: rgb(83, 100, 113); --dark: rgb(15, 20, 25); --highlight: rgb(29, 155, 240); } /* Reset -------------------------------------------------------------- */ body { margin: 0; padding: 0; } *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: currentColor; } img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; } table, th, td { border: 1px solid var(--light); } table { border-collapse: collapse; } /* WordPress Core -------------------------------------------------------------- */ .alignnone { margin: 5px 20px 20px 0; } .aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; } .alignright { float: right; margin: 5px 0 20px 20px; } .alignleft { float: left; margin: 5px 20px 20px 0; } a img.alignright { float: right; margin: 5px 0 20px 20px; } a img.alignnone { margin: 5px 20px 20px 0; } a img.alignleft { float: left; margin: 5px 20px 20px 0; } a img.aligncenter { display: block; margin-left: auto; margin-right: auto; } .wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; /* Image does not overflow the content area */ padding: 5px 3px 10px; text-align: center; } .wp-caption.alignnone { margin: 5px 20px 20px 0; } .wp-caption.alignleft { margin: 5px 20px 20px 0; } .wp-caption.alignright { margin: 5px 0 20px 20px; } .wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; } .wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; } /* Text meant only for screen readers. */ .screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; } .screen-reader-text:focus { background-color: #eee; clip-path: none; color: #444; display: block; font-size: 1em; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; } /* Basic Structure -------------------------------------------------------------- */ body { font-size: 1.125rem; font-weight: 400; letter-spacing: -0.014em; line-height: 1.4; color: var(--dark); } .main-container { display: flex; flex-direction: column; min-height: 100vh; } header, main { width: 50%; max-width: 640px; margin: 0 auto; } main { margin-bottom: 8rem; } /* Header & Footer -------------------------------------------------------------- */ #site-header img { margin: 0 auto; } header { margin: 5rem auto 0 auto; margin-bottom: 2.2rem; } .main-header { display: flex; justify-content: space-between; align-items: center; } .branding-container { width: 48%; display: flex; } .list-of-pages { margin: 0; width: 50%; text-align: right; margin-top: 14px; font-weight: 200; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--light); } .list-of-pages li { display: inline-block; margin-left: 6px; } .list-of-pages li a { color: var(--light); text-decoration: none; } .list-of-pages li a:hover { color: var(--medium); text-decoration: underline; } .logo { display: inline-block; margin: 0 6px 0 0; vertical-align: middle; } .logo img { width: 42px; height: 42px; border-radius: 50%; } header h1 { display: inline-block; margin: 0; padding: 0; vertical-align: middle; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.017em; line-height: 42px; } header h1 a { text-decoration: none; color: var(--dark); } header h1 a:hover { text-decoration: underline; } #main-footer { margin-top: auto; text-align: center; background-color: var(--dark); color: #ccc; text-align: center; height: 60px; line-height: 60px; font-size: .9rem; } #main-footer a { color: #ccc; text-decoration: none; } #main-footer a:hover { text-decoration: underline; } /* Search form -------------------------------------------------------------- */ #search-form { } ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ color: var(--light); opacity: 1; /* Firefox */ } :-ms-input-placeholder { /* Internet Explorer 10-11 */ color: var(--light); } ::-ms-input-placeholder { /* Microsoft Edge */ color: var(--light); } #search-input { display: block; width: 100%; font-size: 0.9rem; font-weight: 200; line-height: 1.5; color: var(--dark); font-weight: 400; font-family: 'Inter var', system-ui, -apple-system, 'Segoe UI', sans-serif; padding: 10px 4px; margin: 2rem 0 1rem 0; border-bottom: 1px solid var(--light); border-top: 1px solid var(--light); } #search-input:focus { background-color: #f0f0f0; outline: 0; } /* Posts -------------------------------------------------------------- */ .hentry { margin-bottom: 2.2rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--light); } .entry-content p, .wp-block-image, .wp-block-cover, .wp-block-cover__video-background, .wp-block-button__link, .wp-block-gallery { margin-bottom: 1rem; } .entry-content p:last-of-type { margin-bottom: 0; } .entry-content a { color: var(--highlight); text-decoration: none; } .entry-content a:hover { text-decoration: underline; } /* Entry Alignment */ figure.aligncenter { margin: 40px 0; } figure.wp-block-image, figure.wp-block-video { margin: 40px 0; } .wp-block-image figcaption { font-size: 0.8125rem; letter-spacing: 0.0012em; color: var(--light); font-weight: 300; text-align: center; padding-top: 6px; } figure.wp-block-video figcaption { font-size: 0.8125rem; letter-spacing: 0.0012em; color: var(--light); font-weight: 300; text-align: center; padding-top: 6px; } .wp-block-media-text { overflow: hidden; padding: 1rem 0; } a.wp-block-button__link { min-width: 200px; border-radius: 10px; font-size: 1.1rem; color: #fff; } a.wp-block-button__link:hover { text-decoration: none; } .is-style-squared a.wp-block-button__link { border-radius: 0; } .is-style-outline a.wp-block-button__link:hover {} .entry-content div.alignright { text-align: right; } .wp-block-pullquote { display: block; margin-top: 1rem; } .wp-caption img { display: block; max-width: 640px !important; } iframe { max-width: 100%; } #single-post { margin-bottom: 2.2rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--light); } /* Entry Metadata -------------------------------------------------------------- */ .entry-metadata { font-size: 1rem; margin-top: 2rem; color: var(--light); font-weight: 400; } .entry-metadata img { height: 20px; width: 20px; } .entry-metadata a { color: var(--light); text-decoration: none; } .entry-metadata a:hover { color: var(--medium); text-decoration: underline; } .date-and-comments { display: flex; margin-left: 20px; align-items: center; } .meta-item { display: flex; margin-right: 12px; align-items: center; } .entry-hashtags { display: flex; list-style-type: none; margin: 0; padding: 0; align-items: center; margin-left: 20px; flex-wrap: wrap; } .entry-hashtags li { margin-right: 6px; } .entry-hashtags li:first-of-type { margin-right: 0; } .link-and-pinned { display: flex; align-items: center; margin-top: 8px; margin-left: 20px; } .pinned { display: flex; background-color: #f2f2f2; margin-right: 8px; justify-content: center; width: 136px; padding-right: 5px; height: 30px; align-items: center; border-radius: 6px; } .pinned img, .meta-item img, .entry-hashtags img { margin-right: 4px; } .clearfix { clear: both; height: 1px; } /* Comments -------------------------------------------------------------- */ .comments-area { margin-top: 3rem; font-size: 0.9rem; } .comments-area p { margin-bottom: 1rem; } .comments-area a { color: var(--highlight); text-decoration: none; } .comments-area a:hover { text-decoration: underline; } .comment-list { margin-bottom: 1.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--light); } /* Individual comment */ .comment { margin-bottom: 1.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--light); } .comment:last-of-type { border-bottom: 0; } /* Comment author */ .comment-author { overflow: hidden; } .comment-author img { width: 42px; height: 42px; border-radius: 50%; display: inline-block; margin-right: 10px; } cite.fn { margin-right: 4px; display: inline-block; margin: 0; padding: 0; vertical-align: middle; font-style: normal; } span.says { display: none; } .comment-metadata { display: block; font-size: 1rem; margin: 0.6rem 0 1.2rem 0; } .comment-metadata a { color: var(--light); text-decoration: none; } .children .comment-body { margin-bottom: 1.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--light); } .children .comment-body:first-of-type { margin-top: 1.6rem; padding-top: 1.4rem; } .children .comment-body:last-of-type { margin-bottom: 1.4rem; padding-bottom: 1.6rem; border: 0; } /* Comment form */ .comment-form { margin: 20px 0; padding: 20px; background-color: #f9f9f9; } /* Comment form fields */ .comment-form input, .comment-form textarea { width: 100%; border: 1px solid #ddd; padding: 10px; font-size: 14px; } .comment-form input[type="submit"] { background-color: #333; color: #fff; border: none; padding: 10px 20px; font-size: 14px; cursor: pointer; } /* Pagination -------------------------------------------------------------- */ .pagination { display: flex; justify-content: space-between; align-items: center; } .pagination a { color: var(--light); text-decoration: none; } .pagination a:hover { color: var(--medium); text-decoration: underline; } /* Queries -------------------------------------------------------------- */ @media (max-width: 960px) { header, main { width: 90%; } .branding-container, .list-of-pages { width: 100%; } .list-of-pages { text-align: left; padding: 0; margin-top: 1.6rem; } .main-header { display: block; } }