Created
April 22, 2026 19:05
-
-
Save SitesByYogi/c9d9e648d52cba081adf1dc6d693fa59 to your computer and use it in GitHub Desktop.
General CSS for Retail Hub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .e-search-input { | |
| padding-inline-start: 5% !important; | |
| } | |
| /* Remove homepage-only top gap */ | |
| .home .site-content, | |
| .home #content, | |
| .home .entry-content, | |
| .home .elementor-location-single, | |
| .home .elementor-page { | |
| margin-top: 0 !important; | |
| padding-top: 0 !important; | |
| } | |
| /* Remove accidental spacing from first Elementor section on homepage */ | |
| .home .elementor-top-section:first-child, | |
| .home .elementor-section-wrap > .elementor-section:first-child, | |
| .home .e-con:first-child { | |
| margin-top: 0 !important; | |
| padding-top: 0 !important; | |
| } | |
| /* Make sure sticky is not being broken by parent wrappers */ | |
| .home, | |
| .home body, | |
| .home html, | |
| .home #page, | |
| .home .site, | |
| .home #content, | |
| .home .site-content { | |
| overflow: visible !important; | |
| } | |
| /* If your header is custom HTML/CSS */ | |
| .rh-header-wrap { | |
| position: sticky; | |
| top: 0; | |
| z-index: 9999; | |
| } | |
| .elementor-1988 .elementor-element.elementor-element-cd9a04c .elementor-heading-title { | |
| font-family: "Outfit", Sans-serif; | |
| font-size: 58px; | |
| font-weight: 500; | |
| line-height: 60px; | |
| color: #FFFFFF; | |
| margin-top: 50px | |
| } | |
| .rh-article { | |
| max-width: 1120px; | |
| margin: 0 auto; | |
| padding: 40px 24px 80px; | |
| font-family: Inter, Arial, sans-serif; | |
| color: #0f172a; | |
| line-height: 1.7; | |
| } | |
| .rh-article * { | |
| box-sizing: border-box; | |
| } | |
| .rh-inner { | |
| max-width: 860px; | |
| margin: 0 auto; | |
| } | |
| .rh-article h1, | |
| .rh-article h2, | |
| .rh-article h3 { | |
| margin: 0 0 14px; | |
| color: #111827; | |
| line-height: 1.2; | |
| font-weight: 700; | |
| } | |
| .rh-article h1 { | |
| font-size: 44px; | |
| letter-spacing: -0.02em; | |
| } | |
| .rh-article h2 { | |
| font-size: 34px; | |
| letter-spacing: -0.02em; | |
| } | |
| .rh-article h3 { | |
| font-size: 24px; | |
| letter-spacing: -0.01em; | |
| } | |
| .rh-article h4 { | |
| margin: 0 0 10px; | |
| font-size: 15px; | |
| color: #111827; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| } | |
| .rh-article p { | |
| margin: 0 0 18px; | |
| font-size: 16px; | |
| color: #475569; | |
| } | |
| .rh-article ul, | |
| .rh-article ol { | |
| margin: 0 0 18px 22px; | |
| padding: 0; | |
| color: #475569; | |
| } | |
| .rh-article li { | |
| margin-bottom: 8px; | |
| } | |
| .rh-article a { | |
| color: #2563eb; | |
| text-decoration: none; | |
| font-weight: 600; | |
| } | |
| .rh-article a:hover { | |
| text-decoration: underline; | |
| } | |
| .rh-article hr { | |
| border: 0; | |
| border-top: 1px solid #e2e8f0; | |
| margin: 44px 0; | |
| } | |
| .rh-label { | |
| display: inline-block; | |
| margin-bottom: 12px; | |
| font-size: 12px; | |
| line-height: 1; | |
| font-weight: 700; | |
| letter-spacing: 0.12em; | |
| text-transform: uppercase; | |
| color: #2563eb; | |
| } | |
| .rh-hero { | |
| background: #f8fafc; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 24px; | |
| padding: 40px 36px; | |
| margin-bottom: 28px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); | |
| } | |
| .rh-meta { | |
| font-size: 14px; | |
| color: #64748b; | |
| margin-bottom: 0; | |
| } | |
| .rh-intro { | |
| background: #eff6ff; | |
| border: 1px solid #bfdbfe; | |
| border-left: 4px solid #2563eb; | |
| border-radius: 18px; | |
| padding: 20px 22px; | |
| margin: 24px 0 0; | |
| } | |
| .rh-intro p:last-child { | |
| margin-bottom: 0; | |
| } | |
| .rh-section-head { | |
| margin-bottom: 18px; | |
| } | |
| .rh-card { | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 22px; | |
| padding: 28px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); | |
| } | |
| .rh-methodology { | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 24px; | |
| padding: 28px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); | |
| } | |
| .rh-method-grid { | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 14px; | |
| margin-top: 20px; | |
| } | |
| .rh-method-item { | |
| background: #f8fafc; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 18px; | |
| padding: 18px 18px 16px; | |
| } | |
| .rh-method-item strong { | |
| display: block; | |
| font-size: 18px; | |
| color: #2563eb; | |
| margin-bottom: 6px; | |
| } | |
| .rh-table-wrap { | |
| overflow-x: auto; | |
| -webkit-overflow-scrolling: touch; | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 22px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); | |
| } | |
| .rh-table { | |
| width: 100%; | |
| min-width: 980px; | |
| border-collapse: collapse; | |
| } | |
| .rh-table thead th { | |
| background: #2563eb; | |
| color: #ffffff; | |
| font-size: 13px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.04em; | |
| padding: 16px 14px; | |
| text-align: left; | |
| white-space: nowrap; | |
| } | |
| .rh-table tbody td { | |
| padding: 16px 14px; | |
| border-top: 1px solid #e2e8f0; | |
| vertical-align: top; | |
| color: #475569; | |
| font-size: 15px; | |
| } | |
| .rh-table tbody tr:nth-child(odd) { | |
| background: #ffffff; | |
| } | |
| .rh-table tbody tr:nth-child(even) { | |
| background: #f8fafc; | |
| } | |
| .rh-table tbody tr.rh-top-row { | |
| background: #eff6ff; | |
| } | |
| .rh-rank { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 34px; | |
| height: 34px; | |
| border-radius: 999px; | |
| background: #2563eb; | |
| color: #ffffff; | |
| font-size: 14px; | |
| font-weight: 700; | |
| } | |
| .rh-rank.gray { | |
| background: #94a3b8; | |
| } | |
| .rh-stars { | |
| color: #f59e0b; | |
| letter-spacing: 1px; | |
| display: block; | |
| margin-bottom: 4px; | |
| } | |
| .rh-pill { | |
| display: inline-block; | |
| padding: 5px 10px; | |
| border-radius: 999px; | |
| font-size: 13px; | |
| font-weight: 600; | |
| white-space: nowrap; | |
| } | |
| .rh-pill.green { | |
| background: #dcfce7; | |
| color: #166534; | |
| } | |
| .rh-pill.yellow { | |
| background: #fef3c7; | |
| color: #92400e; | |
| } | |
| .rh-pill.gray { | |
| background: #e5e7eb; | |
| color: #4b5563; | |
| } | |
| .rh-product-card { | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 24px; | |
| padding: 28px; | |
| margin-bottom: 24px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); | |
| } | |
| .rh-product-card.featured { | |
| border: 2px solid #2563eb; | |
| } | |
| .rh-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 34px; | |
| padding: 8px 14px; | |
| border-radius: 999px; | |
| background: #2563eb; | |
| color: #ffffff; | |
| font-size: 12px; | |
| line-height: 1; | |
| font-weight: 700; | |
| letter-spacing: 0.08em; | |
| text-transform: uppercase; | |
| margin-bottom: 16px; | |
| } | |
| .rh-badge.gray { | |
| background: #64748b; | |
| } | |
| .rh-rating { | |
| display: inline-block; | |
| margin-bottom: 16px; | |
| padding: 8px 12px; | |
| border-radius: 999px; | |
| background: #eff6ff; | |
| color: #1e3a8a; | |
| font-size: 14px; | |
| font-weight: 700; | |
| } | |
| .rh-price-line { | |
| font-size: 16px; | |
| color: #334155; | |
| } | |
| .rh-score-bars { | |
| margin: 24px 0; | |
| } | |
| .rh-score-row { | |
| display: grid; | |
| grid-template-columns: 190px 1fr 52px; | |
| gap: 12px; | |
| align-items: center; | |
| margin-bottom: 12px; | |
| } | |
| .rh-score-label { | |
| font-size: 15px; | |
| color: #475569; | |
| } | |
| .rh-score-track { | |
| height: 8px; | |
| background: #e5e7eb; | |
| border-radius: 999px; | |
| overflow: hidden; | |
| } | |
| .rh-score-fill { | |
| height: 100%; | |
| background: #2563eb; | |
| border-radius: 999px; | |
| } | |
| .rh-score-val { | |
| font-size: 15px; | |
| font-weight: 700; | |
| color: #111827; | |
| text-align: right; | |
| } | |
| .rh-subgrid { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 18px; | |
| margin-top: 18px; | |
| } | |
| .rh-subcard { | |
| background: #f8fafc; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 18px; | |
| padding: 18px 18px 10px; | |
| } | |
| .rh-feedback { | |
| margin-top: 18px; | |
| background: #eff6ff; | |
| border: 1px solid #bfdbfe; | |
| border-radius: 18px; | |
| padding: 18px 20px; | |
| } | |
| .rh-feedback .rh-feedback-label { | |
| display: block; | |
| margin-bottom: 8px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| letter-spacing: 0.1em; | |
| text-transform: uppercase; | |
| color: #2563eb; | |
| } | |
| .rh-feedback p { | |
| margin-bottom: 0; | |
| } | |
| .rh-cta { | |
| background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%); | |
| border: 1px solid #bfdbfe; | |
| border-radius: 24px; | |
| padding: 30px 24px; | |
| margin: 34px 0; | |
| text-align: center; | |
| box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08); | |
| } | |
| .rh-cta h3 { | |
| margin-bottom: 10px; | |
| font-size: 28px; | |
| } | |
| .rh-cta p { | |
| max-width: 680px; | |
| margin: 0 auto 18px; | |
| } | |
| .rh-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 48px; | |
| padding: 12px 20px; | |
| border-radius: 999px; | |
| background: #2563eb; | |
| color: #ffffff !important; | |
| font-size: 15px; | |
| font-weight: 700; | |
| text-decoration: none; | |
| box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18); | |
| } | |
| .rh-btn:hover { | |
| background: #1d4ed8; | |
| text-decoration: none; | |
| } | |
| .rh-faq { | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 22px; | |
| padding: 8px 24px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); | |
| } | |
| .rh-faq-item { | |
| padding: 18px 0; | |
| border-bottom: 1px solid #e2e8f0; | |
| } | |
| .rh-faq-item:last-child { | |
| border-bottom: 0; | |
| } | |
| .rh-faq-item h3 { | |
| font-size: 19px; | |
| margin-bottom: 8px; | |
| } | |
| .rh-final { | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 24px; | |
| padding: 30px 28px; | |
| box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); | |
| } | |
| .rh-disclaimer { | |
| margin-top: 24px; | |
| font-size: 13px; | |
| color: #64748b; | |
| } | |
| @media (max-width: 900px) { | |
| .rh-method-grid { | |
| grid-template-columns: repeat(2, minmax(0, 1fr)); | |
| } | |
| .rh-score-row { | |
| grid-template-columns: 1fr; | |
| gap: 6px; | |
| } | |
| .rh-score-val { | |
| text-align: left; | |
| } | |
| } | |
| @media (max-width: 767px) { | |
| .rh-article { | |
| padding: 28px 16px 60px; | |
| } | |
| .rh-article h1 { | |
| font-size: 34px; | |
| } | |
| .rh-article h2 { | |
| font-size: 28px; | |
| } | |
| .rh-article h3 { | |
| font-size: 21px; | |
| } | |
| .rh-hero, | |
| .rh-card, | |
| .rh-methodology, | |
| .rh-product-card, | |
| .rh-cta, | |
| .rh-final, | |
| .rh-faq { | |
| padding-left: 18px; | |
| padding-right: 18px; | |
| } | |
| .rh-method-grid, | |
| .rh-subgrid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| /* RetailHub Global Single Post Content Styling */ | |
| .rh-post-content { | |
| max-width: 860px; | |
| margin: 0 auto; | |
| color: #475569; | |
| font-family: Inter, Arial, sans-serif; | |
| font-size: 16px; | |
| line-height: 1.75; | |
| } | |
| .rh-post-content * { | |
| box-sizing: border-box; | |
| } | |
| .rh-post-content > *:first-child { | |
| margin-top: 0 !important; | |
| } | |
| .rh-post-content > *:last-child { | |
| margin-bottom: 0 !important; | |
| } | |
| /* Headings */ | |
| .rh-post-content h1, | |
| .rh-post-content h2, | |
| .rh-post-content h3, | |
| .rh-post-content h4, | |
| .rh-post-content h5, | |
| .rh-post-content h6 { | |
| color: #111827; | |
| font-weight: 700; | |
| line-height: 1.2; | |
| letter-spacing: -0.02em; | |
| margin: 0 0 14px; | |
| } | |
| .rh-post-content h1 { | |
| font-size: 44px; | |
| margin-top: 0; | |
| } | |
| .rh-post-content h2 { | |
| font-size: 34px; | |
| margin-top: 48px; | |
| } | |
| .rh-post-content h3 { | |
| font-size: 26px; | |
| margin-top: 34px; | |
| } | |
| .rh-post-content h4 { | |
| font-size: 21px; | |
| margin-top: 28px; | |
| } | |
| .rh-post-content h5 { | |
| font-size: 18px; | |
| margin-top: 24px; | |
| } | |
| .rh-post-content h6 { | |
| font-size: 16px; | |
| margin-top: 20px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| } | |
| /* Paragraphs and text */ | |
| .rh-post-content p { | |
| margin: 0 0 18px; | |
| color: #475569; | |
| font-size: 16px; | |
| line-height: 1.75; | |
| } | |
| .rh-post-content strong { | |
| color: #111827; | |
| font-weight: 700; | |
| } | |
| .rh-post-content em { | |
| font-style: italic; | |
| } | |
| .rh-post-content small { | |
| font-size: 13px; | |
| color: #64748b; | |
| } | |
| /* Links */ | |
| .rh-post-content a { | |
| color: #2563eb; | |
| text-decoration: none; | |
| font-weight: 600; | |
| } | |
| .rh-post-content a:hover, | |
| .rh-post-content a:focus { | |
| text-decoration: underline; | |
| } | |
| /* Lists */ | |
| .rh-post-content ul, | |
| .rh-post-content ol { | |
| margin: 0 0 20px 24px; | |
| padding: 0; | |
| color: #475569; | |
| } | |
| .rh-post-content ul li, | |
| .rh-post-content ol li { | |
| margin-bottom: 8px; | |
| } | |
| .rh-post-content ul ul, | |
| .rh-post-content ol ol, | |
| .rh-post-content ul ol, | |
| .rh-post-content ol ul { | |
| margin-top: 10px; | |
| margin-bottom: 10px; | |
| } | |
| /* Horizontal rule */ | |
| .rh-post-content hr, | |
| .rh-post-content .wp-block-separator { | |
| border: 0; | |
| border-top: 1px solid #e2e8f0; | |
| margin: 40px 0; | |
| opacity: 1; | |
| } | |
| /* Blockquote */ | |
| .rh-post-content blockquote, | |
| .rh-post-content .wp-block-quote { | |
| margin: 28px 0; | |
| padding: 20px 22px; | |
| border-left: 4px solid #2563eb; | |
| background: #eff6ff; | |
| border-radius: 16px; | |
| } | |
| .rh-post-content blockquote p, | |
| .rh-post-content .wp-block-quote p { | |
| margin-bottom: 12px; | |
| color: #334155; | |
| font-size: 18px; | |
| line-height: 1.7; | |
| } | |
| .rh-post-content blockquote cite, | |
| .rh-post-content .wp-block-quote cite { | |
| display: block; | |
| font-size: 14px; | |
| color: #64748b; | |
| font-style: normal; | |
| } | |
| /* Tables */ | |
| .rh-post-content table, | |
| .rh-post-content .wp-block-table table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 28px 0; | |
| background: #ffffff; | |
| border: 1px solid #e2e8f0; | |
| overflow: hidden; | |
| border-radius: 18px; | |
| } | |
| .rh-post-content table th, | |
| .rh-post-content .wp-block-table table th { | |
| background: #2563eb; | |
| color: #ffffff; | |
| font-size: 13px; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.04em; | |
| text-align: left; | |
| padding: 14px 16px; | |
| } | |
| .rh-post-content table td, | |
| .rh-post-content .wp-block-table table td { | |
| padding: 14px 16px; | |
| border-top: 1px solid #e2e8f0; | |
| color: #475569; | |
| vertical-align: top; | |
| } | |
| .rh-post-content table tr:nth-child(even) td, | |
| .rh-post-content .wp-block-table table tr:nth-child(even) td { | |
| background: #f8fafc; | |
| } | |
| .rh-post-content .wp-block-table { | |
| overflow-x: auto; | |
| -webkit-overflow-scrolling: touch; | |
| } | |
| /* Images */ | |
| .rh-post-content img { | |
| max-width: 100%; | |
| height: auto; | |
| border-radius: 18px; | |
| } | |
| .rh-post-content figure { | |
| margin: 28px 0; | |
| } | |
| .rh-post-content figcaption, | |
| .rh-post-content .wp-element-caption, | |
| .rh-post-content .wp-caption-text { | |
| margin-top: 10px; | |
| font-size: 13px; | |
| color: #64748b; | |
| text-align: center; | |
| } | |
| /* Gutenberg image blocks */ | |
| .rh-post-content .wp-block-image img, | |
| .rh-post-content .wp-block-post-featured-image img { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| border-radius: 18px; | |
| } | |
| /* Buttons */ | |
| .rh-post-content .wp-block-button { | |
| margin: 24px 0; | |
| } | |
| .rh-post-content .wp-block-button .wp-block-button__link, | |
| .rh-post-content a.rh-inline-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 48px; | |
| padding: 12px 20px; | |
| background: #2563eb; | |
| color: #ffffff !important; | |
| border-radius: 999px; | |
| font-size: 15px; | |
| font-weight: 700; | |
| text-decoration: none; | |
| box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18); | |
| } | |
| .rh-post-content .wp-block-button .wp-block-button__link:hover, | |
| .rh-post-content a.rh-inline-btn:hover { | |
| background: #1d4ed8; | |
| text-decoration: none; | |
| } | |
| /* Code */ | |
| .rh-post-content code { | |
| background: #f8fafc; | |
| color: #0f172a; | |
| padding: 2px 6px; | |
| border-radius: 6px; | |
| font-size: 0.95em; | |
| } | |
| .rh-post-content pre { | |
| margin: 24px 0; | |
| padding: 18px; | |
| background: #0f172a; | |
| color: #f8fafc; | |
| border-radius: 18px; | |
| overflow-x: auto; | |
| } | |
| .rh-post-content pre code { | |
| background: transparent; | |
| color: inherit; | |
| padding: 0; | |
| } | |
| /* Core embed/video/iframe blocks */ | |
| .rh-post-content .wp-block-embed, | |
| .rh-post-content .wp-block-video, | |
| .rh-post-content iframe { | |
| margin: 28px 0; | |
| } | |
| /* Pullquote */ | |
| .rh-post-content .wp-block-pullquote { | |
| margin: 32px 0; | |
| padding: 28px 24px; | |
| border-top: 1px solid #e2e8f0; | |
| border-bottom: 1px solid #e2e8f0; | |
| } | |
| .rh-post-content .wp-block-pullquote blockquote { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| background: transparent; | |
| border-radius: 0; | |
| } | |
| /* Cover block text */ | |
| .rh-post-content .wp-block-cover, | |
| .rh-post-content .wp-block-cover p { | |
| color: inherit; | |
| } | |
| /* Group block spacing */ | |
| .rh-post-content .wp-block-group, | |
| .rh-post-content .wp-block-columns { | |
| margin: 28px 0; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 767px) { | |
| .rh-post-content { | |
| font-size: 15px; | |
| line-height: 1.7; | |
| } | |
| .rh-post-content h1 { | |
| font-size: 34px; | |
| } | |
| .rh-post-content h2 { | |
| font-size: 28px; | |
| margin-top: 38px; | |
| } | |
| .rh-post-content h3 { | |
| font-size: 22px; | |
| margin-top: 28px; | |
| } | |
| .rh-post-content h4 { | |
| font-size: 19px; | |
| } | |
| .rh-post-content blockquote, | |
| .rh-post-content .wp-block-quote { | |
| padding: 18px; | |
| } | |
| .rh-post-content table th, | |
| .rh-post-content table td, | |
| .rh-post-content .wp-block-table table th, | |
| .rh-post-content .wp-block-table table td { | |
| padding: 12px 12px; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment