/* Theme Name: Ansico WP Theme Theme URI: https://ansico.dk Author: Andreas Andersen (Ansico) Author URI: https://ansico.dk Description: A full site editing WordPress theme with a centered title header, boxed navigation, content area with sidebar, and footer. Requires at least: 6.5 Tested up to: 6.8 Requires PHP: 7.4 Version: 1.0.0 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Text Domain: ansico-wp-theme Tags: full-site-editing, block-patterns, block-styles, blog, one-column, two-columns, custom-menu, featured-images, editor-style */ @font-face { font-family: 'Source Sans 3'; src: url('assets/fonts/source-sans-3/source-sans-3-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: 'Source Sans 3'; src: url('assets/fonts/source-sans-3/source-sans-3-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; } @font-face { font-family: 'Source Sans 3'; src: url('assets/fonts/source-sans-3/source-sans-3-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; } @font-face { font-family: 'Source Sans 3'; src: url('assets/fonts/source-sans-3/source-sans-3-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; } :root { --ansico-font-family: 'Source Sans 3', sans-serif; --ansico-color-primary: #0a66c2; --ansico-color-primary-dark: #084b8a; --ansico-color-text: #000000; --ansico-color-border: #cfd6df; --ansico-color-surface: #ffffff; } html, body, .editor-styles-wrapper { background: #ffffff; color: #000000; font-family: var(--ansico-font-family); } body, p, li, div, span, input, textarea, select, label, .wp-site-blocks, .wp-block-post-content, .wp-block-post-excerpt, .wp-block-navigation, .wp-block-navigation-item, .wp-block-navigation-item__content, .wp-block-page-list, .wp-block-page-list__item, .wp-block-search__input { color: #000000; } .wp-site-blocks { min-height: 100vh; } a { color: var(--ansico-color-primary); } a:hover { color: var(--ansico-color-primary-dark); } h1, h2, h3, h4, h5, h6, .wp-block-post-title, .wp-block-query-title { color: var(--ansico-color-primary); font-family: var(--ansico-font-family); position: relative; } h1::after, h2::after, h3::after, .wp-block-post-title::after, .wp-block-query-title::after { content: ""; display: block; width: 100%; max-width: 100%; border-bottom: 1px solid var(--ansico-color-primary); margin-top: 0.35em; } /* Header */ .ansico-header-shell { background: #ffffff; padding: 3.25rem 2rem 0 2rem; position: relative; } .ansico-header-shell::after { content: ""; display: block; height: 2px; background: var(--ansico-color-primary); margin: 0 10px; } .ansico-title-wrap { text-align: center; margin: 0 auto 1.25rem auto; } .ansico-title-wrap .wp-block-site-title, .ansico-title-wrap .wp-block-site-title a, .site-title, .wp-block-site-title { color: var(--ansico-color-primary) !important; text-align: center; text-decoration: none; font-size: clamp(3rem, 5.8vw, 4.4rem); font-weight: 700; line-height: 1.08; } .ansico-title-wrap .wp-block-site-title::after, .ansico-title-wrap .wp-block-site-title a::after { content: none !important; } .ansico-main-nav-wrap { width: 100%; margin: 0; padding: 0; box-sizing: border-box; border-bottom: none; } .ansico-main-nav-wrap::after { display: none; } .ansico-main-nav-wrap .wp-block-navigation, .ansico-main-nav-wrap .wp-block-page-list { justify-content: center; gap: 0.9rem; } .ansico-main-nav-wrap ul, .ansico-main-nav-wrap .wp-block-navigation__container, .ansico-main-nav-wrap .wp-block-page-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem; margin: 0; padding: 0; list-style: none; } .ansico-main-nav-wrap li, .ansico-main-nav-wrap .wp-block-navigation-item, .ansico-main-nav-wrap .page_item { margin: 0; padding: 0; list-style: none; } .ansico-main-nav-wrap a, .ansico-main-nav-wrap .wp-block-navigation-item__content, .ansico-main-nav-wrap .wp-block-page-list__item__link { display: inline-block; background: #ffffff; color: #000000 !important; border: none; border-radius: 0; padding: 0.75rem 1.15rem; text-decoration: none; line-height: 1; transition: background-color 0.18s ease, color 0.18s ease; } .ansico-main-nav-wrap a:hover, .ansico-main-nav-wrap a:focus, .ansico-main-nav-wrap a:hover *, .ansico-main-nav-wrap a:focus *, .ansico-main-nav-wrap .wp-block-navigation-item__content:hover, .ansico-main-nav-wrap .wp-block-navigation-item__content:focus, .ansico-main-nav-wrap .wp-block-navigation-item__content:hover *, .ansico-main-nav-wrap .wp-block-navigation-item__content:focus *, .ansico-main-nav-wrap .current-menu-item > a, .ansico-main-nav-wrap .current-menu-item > .wp-block-navigation-item__content, .ansico-main-nav-wrap .current_page_item > a, .ansico-main-nav-wrap .current_page_item > .wp-block-navigation-item__content { background: var(--ansico-color-primary); color: #ffffff !important; } /* Content */ .wp-block-post-content > *:first-child, .entry-content > *:first-child { margin-top: 0; } .wp-block-search__button { transition: background-color 0.2s ease, border-color 0.2s ease; } .wp-block-search__button:hover { background: var(--ansico-color-primary-dark); border-color: var(--ansico-color-primary-dark); } /* Footer */ .ansico-footer { background: var(--ansico-color-primary); color: #ffffff; border-radius: 0; min-height: 0; display: flex; align-items: center; } .ansico-footer p, .ansico-footer a { color: #ffffff !important; margin: 0; line-height: 1.35; } /* Ensure no light inherited text */ .has-text-color, .has-contrast-color, .has-muted-color { color: #000000; } .site-title,.wp-block-site-title{font-size:clamp(2.6rem,5vw,3.8rem);font-weight:700;line-height:1.1;} /* Remove content area borders globally */ .wp-site-blocks, .wp-block-group, main, .site-main, .content, .entry-content { border: none !important; box-shadow: none !important; } /* Keep page titles flush with surrounding content */ .wp-block-post-title, .entry-title { margin-top: 0 !important; padding-top: 0 !important; } /* Center footer copyright robustly */ .ansico-footer, .ansico-footer .wp-block-paragraph, .ansico-footer p { text-align: center !important; } .ansico-footer p { margin: 0 auto !important; } /* Slightly larger sidebar section headings */ .wp-block-sidebar h3, .widget-area h3, aside h3, .sidebar h3 { font-size: 1.35rem; line-height: 1.25; } /* Active menu item: white text on blue background */ .current-menu-item > a, .current_page_item > a, .current-page-ancestor > a, .current-menu-ancestor > a, .current-menu-parent > a, .current_page_parent > a, .wp-block-navigation .current-menu-item > a, .wp-block-navigation .current_page_item > a, .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content, .wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content, .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content, .wp-block-navigation-item.current_page_parent > .wp-block-navigation-item__content { color: #ffffff !important; } /* Footer centered and padded robustly */ .ansico-footer, .ansico-footer *, .site-footer, .site-footer *, footer, footer * { text-align: center !important; } .ansico-footer { padding-top: 20px !important; padding-bottom: 20px !important; } .ansico-footer p { margin: 0 auto !important; width: 100%; } /* Larger H3 headings in sidebar/secondary areas */ .wp-block-sidebar h3, .widget-area h3, aside h3, .sidebar h3, .wp-block-column h3 { font-size: 1.55rem !important; line-height: 1.25; } /* FORCE center footer text (block + flex override) */ .ansico-footer { display: flex !important; justify-content: center !important; align-items: center !important; text-align: center !important; } .ansico-footer p { width: 100%; text-align: center !important; } /* FIX: active menu item text should be white on blue background */ .wp-block-navigation .current-menu-item > a, .wp-block-navigation .current_page_item > a, .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content, .wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content, .current-menu-item > a, .current_page_item > a { color: #ffffff !important; } /* also ensure links inside active items stay white */ .current-menu-item a, .current_page_item a { color: #ffffff !important; } /* Force white text on the active menu item, including block-navigation aria-current markup */ .ansico-main-nav-wrap .current-menu-item > a, .ansico-main-nav-wrap .current_page_item > a, .ansico-main-nav-wrap .current-menu-item > .wp-block-navigation-item__content, .ansico-main-nav-wrap .current_page_item > .wp-block-navigation-item__content, .ansico-main-nav-wrap .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content, .ansico-main-nav-wrap .wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content, .ansico-main-nav-wrap .wp-block-navigation-item__content[aria-current="page"], .ansico-main-nav-wrap .wp-block-navigation-item__content[aria-current="page"] *, .ansico-main-nav-wrap a[aria-current="page"], .ansico-main-nav-wrap a[aria-current="page"] *, .ansico-main-nav-wrap .current-menu-ancestor > a, .ansico-main-nav-wrap .current-menu-ancestor > .wp-block-navigation-item__content, .ansico-main-nav-wrap .current_page_parent > a, .ansico-main-nav-wrap .current_page_parent > .wp-block-navigation-item__content { color: #ffffff !important; } .ansico-main-nav-wrap .wp-block-navigation-item__content[aria-current="page"] .wp-block-navigation-item__label, .ansico-main-nav-wrap .current-menu-item .wp-block-navigation-item__label, .ansico-main-nav-wrap .current_page_item .wp-block-navigation-item__label { color: #ffffff !important; } /* Fix meta line wrapping */ .single .ansico-post-meta { display:flex; flex-wrap: nowrap; gap: 0.5rem; width: 100%; } .single .ansico-post-meta * { white-space: nowrap; } .single .ansico-post-meta .wp-block-post-author { display:inline-flex; } /* Keep post meta on one line, including 'Af' + author name */ .single .ansico-post-meta { display: flex; flex-wrap: nowrap !important; align-items: center; gap: 0.5rem; width: 100%; overflow-x: auto; } .single .ansico-post-meta > * { white-space: nowrap !important; flex: 0 0 auto; } .single .ansico-post-meta .wp-block-post-author, .single .ansico-post-meta .wp-block-post-author-name, .single .ansico-post-meta .wp-block-post-author__name, .single .ansico-post-meta .wp-block-post-author__byline, .single .ansico-post-meta .wp-block-post-author > div, .single .ansico-post-meta .wp-block-post-author span { display: inline !important; white-space: nowrap !important; } .single .ansico-post-meta .wp-block-post-author { min-width: max-content; } /* Archive pages: larger image on the left, smaller title */ .blog .wp-block-post-template > li, .archive .wp-block-post-template > li, .search .wp-block-post-template > li { grid-template-columns: 360px minmax(0, 1fr); } .blog .wp-block-post-template > li .wp-block-post-title, .archive .wp-block-post-template > li .wp-block-post-title, .search .wp-block-post-template > li .wp-block-post-title { font-size: 1.7rem; line-height: 1.15; margin-top: 0; margin-bottom: 10px; } .blog .wp-block-post-template > li .wp-block-post-excerpt, .archive .wp-block-post-template > li .wp-block-post-excerpt, .search .wp-block-post-template > li .wp-block-post-excerpt { margin-top: 0; } /* Cleaner post meta on single posts */ .single .ansico-post-meta, .single .ansico-post-meta .wp-block-post-date, .single .ansico-post-meta .wp-block-post-author, .single .ansico-post-meta p { font-size: 0.88rem; line-height: 1.25; } .single .ansico-post-meta { display: flex; flex-wrap: nowrap !important; align-items: center; gap: 0.5rem; width: 100%; overflow-x: auto; margin-top: 6px; margin-bottom: 16px; } .single .ansico-post-meta > * { white-space: nowrap !important; flex: 0 0 auto; margin: 0; } .single .ansico-post-meta .wp-block-post-author, .single .ansico-post-meta .wp-block-post-author-name, .single .ansico-post-meta .wp-block-post-author__name, .single .ansico-post-meta .wp-block-post-author__byline, .single .ansico-post-meta .wp-block-post-author > div, .single .ansico-post-meta .wp-block-post-author span { display: inline !important; white-space: nowrap !important; } .single .ansico-post-meta .wp-block-post-author { min-width: max-content; } /* Archive pages: larger image on the left, smaller title, tighter date */ .blog .wp-block-post-template > li, .archive .wp-block-post-template > li, .search .wp-block-post-template > li { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; } .blog .wp-block-post-template > li .wp-block-post-featured-image, .archive .wp-block-post-template > li .wp-block-post-featured-image, .search .wp-block-post-template > li .wp-block-post-featured-image { margin: 0; } .blog .wp-block-post-template > li .wp-block-post-featured-image img, .archive .wp-block-post-template > li .wp-block-post-featured-image img, .search .wp-block-post-template > li .wp-block-post-featured-image img { width: 100%; height: auto; display: block; } .blog .wp-block-post-template > li > :not(.wp-block-post-featured-image), .archive .wp-block-post-template > li > :not(.wp-block-post-featured-image), .search .wp-block-post-template > li > :not(.wp-block-post-featured-image) { grid-column: 2; } .blog .wp-block-post-template > li .wp-block-post-title, .archive .wp-block-post-template > li .wp-block-post-title, .search .wp-block-post-template > li .wp-block-post-title { font-size: 1.7rem; line-height: 1.15; margin-top: 0; margin-bottom: 4px; } .blog .wp-block-post-template > li .wp-block-post-date, .archive .wp-block-post-template > li .wp-block-post-date, .search .wp-block-post-template > li .wp-block-post-date { font-size: 0.82rem; line-height: 1.2; margin-top: 0; margin-bottom: 8px; } .blog .wp-block-post-template > li .wp-block-post-excerpt, .archive .wp-block-post-template > li .wp-block-post-excerpt, .search .wp-block-post-template > li .wp-block-post-excerpt { margin-top: 0; } .blog .wp-block-post-template > li .wp-block-read-more, .archive .wp-block-post-template > li .wp-block-read-more, .search .wp-block-post-template > li .wp-block-read-more { display: none !important; } @media (max-width: 700px) { .blog .wp-block-post-template > li, .archive .wp-block-post-template > li, .search .wp-block-post-template > li { grid-template-columns: 1fr; } .blog .wp-block-post-template > li > :not(.wp-block-post-featured-image), .archive .wp-block-post-template > li > :not(.wp-block-post-featured-image), .search .wp-block-post-template > li > :not(.wp-block-post-featured-image) { grid-column: auto; } } /* Post footer meta: categories and tags */ .single .ansico-post-taxonomy { margin-top: 28px; font-size: 0.88rem; line-height: 1.35; } .single .ansico-post-taxonomy-row { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 8px; } .single .ansico-post-taxonomy-icon { width: 1.1rem; text-align: center; flex: 0 0 1.1rem; opacity: 0.9; } .single .ansico-post-taxonomy .wp-block-post-terms { margin: 0; font-size: 0.88rem; line-height: 1.35; } .single .ansico-post-taxonomy .wp-block-post-terms a { text-decoration: none; } .single .ansico-post-taxonomy .wp-block-post-terms a:hover { text-decoration: underline; } /* Keep author link styling natural */ .single .ansico-post-meta .wp-block-post-author a { text-decoration: none; } .single .ansico-post-meta .wp-block-post-author a:hover { text-decoration: underline; } /* Refine post metadata icons/labels and hide stray author block icon */ .single .ansico-post-taxonomy-icon { opacity: 0.55; color: #777; } .single .ansico-post-taxonomy .wp-block-post-terms strong, .single .ansico-post-taxonomy .ansico-label, .single .ansico-post-meta .wp-block-post-author__byline, .single .ansico-post-meta .wp-block-post-author .wp-block-post-author__byline { font-weight: 700; } /* Hide unwanted inline icon/button in author meta row */ .single .ansico-post-meta .wp-block-post-author__avatar, .single .ansico-post-meta .wp-block-post-author img, .single .ansico-post-meta .wp-block-post-author svg, .single .ansico-post-meta .wp-block-post-author button, .single .ansico-post-meta .wp-block-post-author [aria-label], .single .ansico-post-meta .wp-block-post-author .components-button, .single .ansico-post-meta .wp-block-post-author .wp-block-post-author__avatar-link { display: none !important; } /* Keep author line clean and inline */ .single .ansico-post-meta .wp-block-post-author { gap: 0 !important; } /* FORCE remove any extra icons in meta (including arrow icon) */ .single .ansico-post-meta svg, .single .ansico-post-meta button, .single .ansico-post-meta [role="button"], .single .ansico-post-meta .wp-block-post-author__avatar, .single .ansico-post-meta img { display:none !important; } /* ensure only text remains */ .single .ansico-post-meta { gap: 0.5rem; } /* Make taxonomy icons grey (override theme color) */ .single .ansico-post-taxonomy-icon, .single .ansico-post-taxonomy-icon * { color: #777 !important; fill: #777 !important; } /* Ensure 'Af' is not bold */ .single .ansico-post-meta strong, .single .ansico-post-meta b { font-weight: 400 !important; } /* Hard remove any arrow/share/navigation icons */ .single .ansico-post-meta svg, .single .ansico-post-meta path, .single .ansico-post-meta use, .single .ansico-post-meta i, .single .ansico-post-meta .icon, .single .ansico-post-meta [class*="icon"], .single .ansico-post-meta [class*="arrow"] { display: none !important; } /* Remove taxonomy icons and make categories + tags inline */ .single .ansico-post-taxonomy-icon { display: none !important; } .single .ansico-post-taxonomy { display: flex; flex-wrap: wrap; gap: 1rem; } .single .ansico-post-taxonomy-row { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0; } .single .ansico-post-taxonomy .wp-block-post-terms { display: inline; margin: 0; } /* Fix taxonomy alignment to left */ .single .ansico-post-taxonomy { display: flex; justify-content: flex-start !important; align-items: center; gap: 1rem; width: 100%; } .single .ansico-post-taxonomy-row { display: inline-flex; justify-content: flex-start; } /* Remove arrow icon specifically (likely navigation or pseudo element) */ .single .ansico-post-meta::after, .single .ansico-post-meta::before { display: none !important; content: none !important; } .single .ansico-post-meta a::after, .single .ansico-post-meta a::before { display: none !important; content: none !important; } /* also target possible WP navigation icons */ .single .wp-block-post-navigation-link, .single .wp-block-post-navigation-link svg, .single .wp-block-post-navigation-link * { display: none !important; } /* Fix single post meta: remove horizontal overflow/arrows */ .single .ansico-post-meta { display: inline-flex !important; flex-wrap: nowrap !important; align-items: center; gap: 0.5rem; width: auto !important; max-width: 100%; overflow: visible !important; white-space: nowrap; } .single .ansico-post-meta > * { flex: 0 0 auto; min-width: 0; } .single .ansico-post-meta .wp-block-post-author, .single .ansico-post-meta .wp-block-post-date, .single .ansico-post-meta p { overflow: visible !important; } /* Archive layout only reserves image column when a featured image exists */ .blog .wp-block-post-template > li, .archive .wp-block-post-template > li, .search .wp-block-post-template > li { display: block; } .blog .wp-block-post-template > li:has(.wp-block-post-featured-image), .archive .wp-block-post-template > li:has(.wp-block-post-featured-image), .search .wp-block-post-template > li:has(.wp-block-post-featured-image) { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; } .blog .wp-block-post-template > li > :not(.wp-block-post-featured-image), .archive .wp-block-post-template > li > :not(.wp-block-post-featured-image), .search .wp-block-post-template > li > :not(.wp-block-post-featured-image) { grid-column: auto; } .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image), .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image), .search .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image) { grid-column: 2; } @media (max-width: 700px) { .blog .wp-block-post-template > li:has(.wp-block-post-featured-image), .archive .wp-block-post-template > li:has(.wp-block-post-featured-image), .search .wp-block-post-template > li:has(.wp-block-post-featured-image) { grid-template-columns: 1fr; } .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image), .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image), .search .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image) { grid-column: auto; } } /* Force taxonomy line fully left aligned (no indentation) */ .single .ansico-post-taxonomy { margin-left: 0 !important; padding-left: 0 !important; justify-content: flex-start !important; text-align: left !important; } .single .ansico-post-taxonomy-row { margin-left: 0 !important; padding-left: 0 !important; } .single .ansico-post-taxonomy .wp-block-post-terms { margin-left: 0 !important; padding-left: 0 !important; } .single .ansico-post-taxonomy * { margin-left: 0 !important; } /* Author archive intro */ .ansico-author-intro { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 28px 0; } .ansico-author-intro__avatar img { width: 120px; height: 120px; border-radius: 999px; display: block; object-fit: cover; } .ansico-author-intro__name { margin: 0 0 10px 0; font-size: 2rem; line-height: 1.1; } .ansico-author-intro__bio { margin: 0 0 12px 0; } .ansico-author-intro__website a { text-decoration: none; } .ansico-author-intro__website a:hover { text-decoration: underline; } @media (max-width: 700px) { .ansico-author-intro { grid-template-columns: 1fr; gap: 16px; } .ansico-author-intro__avatar img { width: 96px; height: 96px; } } /* Keep active home icon white on blue background */ .ansico-main-nav-wrap .current-menu-item > a[href="/"]::before, .ansico-main-nav-wrap .current_page_item > a[href="/"]::before, .ansico-main-nav-wrap a[aria-current="page"][href="/"]::before, .ansico-main-nav-wrap .wp-block-navigation-item__content[aria-current="page"][href="/"]::before { color: #fff !important; } /* Archive-style list on front page too */ .home .wp-block-post-template > li { display: block; } .home .wp-block-post-template > li:has(.wp-block-post-featured-image) { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; } .home .wp-block-post-template > li > :not(.wp-block-post-featured-image) { grid-column: auto; } .home .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image) { grid-column: 2; } .home .wp-block-post-template > li .wp-block-post-title { font-size: 1.7rem; line-height: 1.15; margin-top: 0; margin-bottom: 4px; } .home .wp-block-post-template > li .wp-block-post-date { font-size: 0.82rem; line-height: 1.2; margin-top: 0; margin-bottom: 8px; } .home .wp-block-post-template > li .wp-block-read-more { display: none !important; } @media (max-width: 700px) { .home .wp-block-post-template > li:has(.wp-block-post-featured-image) { grid-template-columns: 1fr; } .home .wp-block-post-template > li:has(.wp-block-post-featured-image) > :not(.wp-block-post-featured-image) { grid-column: auto; } } /* Keep archive/home/search title, date and excerpt together beside featured image */ .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-title, .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-date, .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt, .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-title, .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-date, .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt, .search .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-title, .search .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-date, .search .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt, .home .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-title, .home .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-date, .home .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt { grid-column: 2 !important; } .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt, .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt, .search .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt, .home .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt { margin-top: 0 !important; } .blog .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt p, .archive .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt p, .search .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt p, .home .wp-block-post-template > li:has(.wp-block-post-featured-image) .wp-block-post-excerpt p { margin-top: 0 !important; } /* Front page: keep title, date and excerpt together beside featured image */ .home .wp-block-post-template > li, .page-template-front-page .wp-block-post-template > li, body[class*="front-page"] .wp-block-post-template > li { display: block; } .home .wp-block-post-template > li:has(.wp-block-post-featured-image), .page-template-front-page .wp-block-post-template > li:has(.wp-block-post-featured-image), body[class*="front-page"] .wp-block-post-template > li:has(.wp-block-post-featured-image) { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; } .home .wp-block-post-template > li:has(.wp-block-post-featured-image) > .ansico-post-list-text, .page-template-front-page .wp-block-post-template > li:has(.wp-block-post-featured-image) > .ansico-post-list-text, body[class*="front-page"] .wp-block-post-template > li:has(.wp-block-post-featured-image) > .ansico-post-list-text { grid-column: 2; } .home .ansico-post-list-text .wp-block-post-title, .home .ansico-post-list-text .wp-block-post-date, .home .ansico-post-list-text .wp-block-post-excerpt, .page-template-front-page .ansico-post-list-text .wp-block-post-title, .page-template-front-page .ansico-post-list-text .wp-block-post-date, .page-template-front-page .ansico-post-list-text .wp-block-post-excerpt, body[class*="front-page"] .ansico-post-list-text .wp-block-post-title, body[class*="front-page"] .ansico-post-list-text .wp-block-post-date, body[class*="front-page"] .ansico-post-list-text .wp-block-post-excerpt { margin-top: 0 !important; margin-bottom: 0.45rem !important; } .home .ansico-post-list-text .wp-block-post-excerpt p, .page-template-front-page .ansico-post-list-text .wp-block-post-excerpt p, body[class*="front-page"] .ansico-post-list-text .wp-block-post-excerpt p { margin-top: 0 !important; } @media (max-width: 700px) { .home .wp-block-post-template > li:has(.wp-block-post-featured-image), .page-template-front-page .wp-block-post-template > li:has(.wp-block-post-featured-image), body[class*="front-page"] .wp-block-post-template > li:has(.wp-block-post-featured-image) { grid-template-columns: 1fr; } .home .wp-block-post-template > li:has(.wp-block-post-featured-image) > .ansico-post-list-text, .page-template-front-page .wp-block-post-template > li:has(.wp-block-post-featured-image) > .ansico-post-list-text, body[class*="front-page"] .wp-block-post-template > li:has(.wp-block-post-featured-image) > .ansico-post-list-text { grid-column: auto; } } /* Author social links */ .ansico-author-intro__website a { word-break: break-word; } .ansico-author-intro__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; } .ansico-author-intro__social { width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid currentColor; font-size: 15px; line-height: 1; } .ansico-author-intro__social:hover { text-decoration: none; transform: translateY(-1px); } .ansico-author-intro__social-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* Byline label should not be bold */ .wp-block-post-author__byline, .wp-block-post-author .wp-block-post-author__byline, .ansico-post-meta .wp-block-post-author__byline, .ansico-post-meta strong, .ansico-post-meta b { font-weight: 400 !important; } /* Home menu item as modern SVG icon */ .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[href="/"], .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[href$="/"], .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[href="/"], .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[href$="/"] { font-size: 0 !important; line-height: 1 !important; min-width: 2.65rem; display: inline-flex; align-items: center; justify-content: center; } .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[href="/"]::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[href$="/"]::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[href="/"]::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[href$="/"]::before { content: ""; width: 1.22rem; height: 1.22rem; display: inline-block; background-repeat: no-repeat; background-position: center; background-size: contain; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5.5 9.8V21h13V9.8'/%3E%3Cpath d='M9.5 21v-5.5h5V21'/%3E%3C/svg%3E"); } .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[href="/"]:hover::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[href$="/"]:hover::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[href="/"]:hover::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[href$="/"]:hover::before, .ansico-main-nav-wrap .wp-block-navigation-item.current-menu-item:first-child > .wp-block-navigation-item__content::before, .ansico-main-nav-wrap .wp-block-navigation-item.current_page_item:first-child > .wp-block-navigation-item__content::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content[aria-current="page"]::before, .ansico-main-nav-wrap .wp-block-navigation-item.current-menu-item:first-child > a::before, .ansico-main-nav-wrap .wp-block-navigation-item.current_page_item:first-child > a::before, .ansico-main-nav-wrap .wp-block-navigation-item:first-child > a[aria-current="page"]::before { background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5.5 9.8V21h13V9.8'/%3E%3Cpath d='M9.5 21v-5.5h5V21'/%3E%3C/svg%3E"); }