« Back to History
post_view.css
|
20260722_120325.php
Initial Domain Snapshot
Copy Code
/* ========== LAYOUT FOR POST VIEW ========== */ /* Page background */ body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #ffffff; } /* Wrap whole page content (excluding global WP header if any) */ .pv-page-wrap { max-width: 1200px; margin: 0 auto; padding: 16px 8px 40px; } /* Category/Post title with brush background */ .pv-category-banner { position: relative; text-align: center; margin: 0 auto 20px; padding-top: 24px; } .pv-category-banner span { display: inline-block; padding: 6px 18px; font-weight: 700; letter-spacing: 1px; color: #fff; text-transform: uppercase; font-size: 14px; background-image: url("https://e7.pngegg.com/pngimages/742/523/png-clipart-black-ink-brush-strokes-17-material-ink-black-thumbnail.png"); background-repeat: no-repeat; background-position: center; background-size: 100% 100%; } /* Optional intro text below title */ .pv-intro { max-width: 800px; margin: 0 auto 18px; font-size: 14px; line-height: 1.7; color: #333; } /* ---------- Ad / interlinking slots ---------- */ .pv-slot-top, .pv-slot-mid, .pv-slot-below { max-width: 900px; margin: 10px auto; min-height: 60px; /* placeholder */ } /* Add light background so you remember where slots are; remove in production */ .pv-slot-top, .pv-slot-below { background: rgba(255,255,255,0.3); } .pv-slot-mid { background: rgba(255,255,255,0.15); } /* ---------- Grid layout for cards ---------- */ .pv-grid { display: grid; grid-template-columns: 1fr; /* mobile: 1 column */ gap: 18px; } /* tablet: 2 columns */ @media (min-width: 700px) { .pv-grid { grid-template-columns: repeat(2, 1fr); } } /* desktop: 4 columns (4×2 = 8 cards) */ @media (min-width: 1024px) { .pv-grid { grid-template-columns: repeat(4, 1fr); } } /* Outer card – shadow & border; inner structure (shayari-box, tags, actions) already defined in shayari_box.css */ /* ensure inner .shayari-box in this layout has no outer margin */ .pv-card .shayari-box { margin: 0; } /* ---------- Pagination ---------- */ .pv-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 24px 0 10px; flex-wrap: wrap; } .pv-pagination button, .pv-pagination a { display: inline-block; padding: 7px 14px; border-radius: 4px; border: none; background: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.15); font-size: 13px; font-weight: 600; color: #444; cursor: pointer; text-decoration: none; } .pv-pagination .is-current { background: #34A853; color: #fff; cursor: default; } .pv-pagination .is-disabled { opacity: 0.4; cursor: default; } /* ---------- Extra content area above footer ---------- */ .pv-extra-container { max-width: 900px; margin: 25px auto 10px; background: rgba(255,255,255,0.6); border-radius: 6px; padding: 12px 14px; font-size: 13px; } /* Small footer info line (inside this page, not global footer) */ .pv-mini-footer { max-width: 900px; margin: 10px auto 0; font-size: 11px; color: #555; text-align: right; } .pv-card { background: #ffffff; border-radius: 4px; box-shadow: 0 10px 18px rgba(0,0,0,0.25); overflow: hidden; display: flex; flex-direction: column; height: 100%; /* full height card */ } /* Tags section normal */ .tags-section { background: #f8f8f8; border-bottom: 1px solid #dddddd; text-align: center; padding: 8px 10px 10px; } .tag-title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #555555; margin-bottom: 3px; } .tag-list { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; } .tag-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; border: 1px solid #cccccc; background: #ffffff; color: #444; text-decoration: none; } .tag-chip:hover { background: #ffe7e7; border-color: #ff6f61; } .tag-chip.is-empty { opacity: 0.6; cursor: default; } /* Buttons ALWAYS bottom */ .actions { margin-top: auto; /* sabko push karke bottom par chipka dega */ padding: 12px; display: flex; gap: 8px; justify-content: center; } .pv-grid{ column-count: 4; column-gap: 18px; } @media (max-width:1024px){ .pv-grid{ column-count:2; } } @media (max-width:600px){ .pv-grid{ column-count:1; } } .pv-card{ break-inside: avoid; margin-bottom:18px; } .pv-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:18px; grid-auto-flow: dense; /* 👈 IMPORTANT */ } .image-box { padding: 0; background: #fff; } .image-box img { width: 100%; display: block; border-radius: 16px; }