feat(theme): About, Contact, FAQ, blog list and post pages from new front
- Route pages by address to theme templates (about-us, contact-us, faq, blogs, posts) - Scoped design CSS (pages.css) + Astra/WordPress fixes (pages-wp.css), page JS - Contact form emails the new Settings -> Viator Collector -> Contact email (fallback: admin email), Reply-To the visitor, honeypot spam trap - Blog list shows real posts with search, sort and paging; posts use the article design with comments as reviews and related articles - Design images converted to WebP (~15MB PNG -> ~1MB) - Theme 1.0.10, plugin 1.9.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
51
astra-child-hoponhopoff/assets/pages-wp.css
Normal file
51
astra-child-hoponhopoff/assets/pages-wp.css
Normal file
@@ -0,0 +1,51 @@
|
||||
/* Astra overrides for the theme's design pages — ported from VC_Display::astra_overrides() (scope .hoho-page, body class .hoho-fullwidth). */
|
||||
.hoho-fullwidth .site-main>article,.hoho-fullwidth .ast-page-builder-template .site-main>article,.hoho-fullwidth.ast-page-builder-template .site-main>article{padding:0!important;margin:0!important;border:0!important;max-width:none!important;}
|
||||
.hoho-fullwidth #primary,.hoho-fullwidth #content{margin:0!important;padding:0!important;}
|
||||
.hoho-fullwidth .site-content .ast-container,.hoho-fullwidth .ast-container{max-width:none!important;padding-left:0!important;padding-right:0!important;display:block!important;}
|
||||
.hoho-fullwidth .entry-content{margin-block:0!important;}
|
||||
.hoho-fullwidth .site-content{padding:0!important;}
|
||||
body.hoho-fullwidth{overflow-x:hidden;}
|
||||
.hoho-page.hoho-page .hero__media,.hoho-page.hoho-page .hero-tour{background:linear-gradient(120deg,#101317,#2cafc2);}
|
||||
.hoho-page.hoho-page a{text-decoration:none;box-shadow:none;}
|
||||
.hoho-page.hoho-page :is(ul,ol){list-style:none!important;margin:0;padding:0;}
|
||||
.hoho-page.hoho-page li{margin:0;}
|
||||
.hoho-page.hoho-page .tour__text a{text-decoration:underline;}
|
||||
.hoho-page.hoho-page .tour__text ul{list-style:disc!important;margin:1em 0!important;padding-inline-start:1.5em!important;}
|
||||
.hoho-page.hoho-page .tour__text ol{list-style:decimal!important;margin:1em 0!important;padding-inline-start:1.5em!important;}
|
||||
.hoho-page.hoho-page .tour__text li{margin:.25em 0!important;}
|
||||
.hoho-page.hoho-page a:not(.btn):not(.ring-badge){color:inherit;}
|
||||
.hoho-page.hoho-page .tour__text a{color:var(--c-teal);}
|
||||
.hoho-page.hoho-page .dcard__title{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
|
||||
.hoho-page.hoho-page .titem__desc{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
|
||||
.hoho-page.hoho-page .dcard__desc p{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
|
||||
.hoho-page.hoho-page .dcard__meta .meta__v{white-space:nowrap;}
|
||||
.hoho-page.hoho-page>*{max-width:none!important;margin-inline:0!important;}
|
||||
.hoho-page.hoho-page>.hero,.hoho-page.hoho-page>.hero-tour{margin:var(--page-inset)!important;}
|
||||
.hoho-page.hoho-page{overflow-x:clip;overflow-y:visible;}
|
||||
.hoho-fullwidth .site-main,.hoho-fullwidth #primary,.hoho-fullwidth #content,.hoho-fullwidth .site-content,.hoho-fullwidth .ast-container,.hoho-fullwidth .entry-content,.hoho-fullwidth .site-main>article{overflow:visible!important;}
|
||||
.hoho-page.hoho-page .acc__q{box-shadow:none!important;}
|
||||
.hoho-page.hoho-page :is(h1,h2,h3,h4,h5,h6){color:inherit;}
|
||||
.hoho-page.hoho-page,.hoho-page.hoho-page h1,.hoho-page.hoho-page h2,.hoho-page.hoho-page h3,.hoho-page.hoho-page h4,.hoho-page.hoho-page h5,.hoho-page.hoho-page h6,.hoho-page.hoho-page p,.hoho-page.hoho-page a,.hoho-page.hoho-page span,.hoho-page.hoho-page li,.hoho-page.hoho-page button,.hoho-page.hoho-page input,.hoho-page.hoho-page select,.hoho-page.hoho-page textarea,.hoho-page.hoho-page blockquote{font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;}
|
||||
|
||||
/* WordPress content inside the design. */
|
||||
|
||||
/* Spam-trap field on the contact form: off-screen, never seen by people. */
|
||||
.hoho-page.hoho-page .hoho-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}
|
||||
|
||||
/* Post body from the editor, styled like the design's .tour__block text. */
|
||||
.hoho-page.hoho-page .hoho-prose{display:flex;flex-direction:column;gap:var(--sp-3);}
|
||||
.hoho-page.hoho-page .hoho-prose>*{margin:0;}
|
||||
.hoho-page.hoho-page .hoho-prose :is(h2,h3,h4){margin:var(--sp-3) 0 0;font-size:1rem;font-weight:700;}
|
||||
.hoho-page.hoho-page .hoho-prose :is(p,li){font-size:1rem;font-weight:500;line-height:1.6;opacity:.7;}
|
||||
.hoho-page.hoho-page .hoho-prose a{color:var(--c-teal);text-decoration:underline;}
|
||||
.hoho-page.hoho-page .hoho-prose ul{list-style:disc!important;padding-inline-start:1.5em;}
|
||||
.hoho-page.hoho-page .hoho-prose ol{list-style:decimal!important;padding-inline-start:1.5em;}
|
||||
.hoho-page.hoho-page .hoho-prose img{width:100%;height:auto;max-height:22.1875rem;border-radius:var(--r-card);object-fit:cover;}
|
||||
.hoho-page.hoho-page .hoho-prose figure{margin:0;}
|
||||
.hoho-page.hoho-page .hoho-prose blockquote{margin:0;padding:var(--sp-3) var(--sp-4);border-radius:var(--r-card);background:var(--c-teal-05);}
|
||||
|
||||
/* Review replies need their indent back after the list reset. */
|
||||
.hoho-page.hoho-page .rcard__text p{margin:0;}
|
||||
|
||||
/* Server-rendered pager uses links where the mockup used buttons. */
|
||||
.hoho-page.hoho-page a.pager__btn,.hoho-page.hoho-page a.pager__num{text-decoration:none;}
|
||||
Reference in New Issue
Block a user