/* Photo-frame and hero-style cards, the global button system, the preset and aspect-ratio grids, the theme section. */ /* Split out of admin.css (#533). Loaded from admin.css in a fixed order — later sheets override earlier ones, so the order there is the cascade. */ /* ── Visual Cards for Photo Frame & Hero Style ────────────────── */ .frame-card-preview, .hero-card-preview { width: 100%; aspect-ratio: 16 / 10; padding: 0.5rem; display: flex; align-items: center; justify-content: center; background: var(--admin-bg-elevated); border-bottom: 1px solid var(--admin-border); position: relative; overflow: hidden; } /* Photo Frame Demos */ .mini-frame-demo { width: 70%; height: 70%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .mini-frame-photo { width: 100%; height: 100%; background: linear-gradient(135deg, #444, #222); border-radius: 2px; } .mini-frame-demo.frame-none .mini-frame-photo { border: none; } .mini-frame-demo.frame-passepartout { padding: 6px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); } .mini-frame-demo.frame-shadow .mini-frame-photo { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); } /* Hero Style Demos */ .mini-hero-demo { width: 100%; height: 100%; display: flex; gap: 0.35rem; padding: 0.25rem; } .demo-line { height: 3px; background: var(--admin-text-muted); border-radius: 2px; } .demo-line.title { width: 80%; height: 5px; background: var(--admin-accent); } .demo-line.title.giant { width: 95%; height: 8px; margin-bottom: 0.2rem; } .demo-line.title.short { width: 50%; margin: 0 auto; } .demo-line.title.light { width: 60%; background: #ffffff; } .demo-line.sub { width: 50%; } .hero-demo-split { align-items: center; } .hero-demo-text { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } .hero-demo-photo { flex: 1; height: 100%; background: linear-gradient(135deg, #3a3a3a, #1a1a1a); border-radius: 3px; } .hero-demo-photo.small { height: 60%; width: 80%; margin: 0 auto; } .hero-demo-photo.banner { width: 100%; height: 65%; } .hero-demo-full { width: 100%; height: 100%; background: linear-gradient(135deg, #555, #111); border-radius: 3px; display: flex; align-items: center; justify-content: center; } .hero-demo-minimal, .hero-demo-stacked { flex-direction: column; justify-content: center; } .hero-demo-center-text { text-align: center; width: 100%; margin-bottom: 0.2rem; } .hero-demo-typographic { flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; } .hero-demo-typographic .demo-line.title.giant { height: 10px; margin-bottom: 0; } .hero-demo-divider { width: 12%; height: 1px; margin: 0.1rem 0; background: var(--admin-text-muted); } .hero-demo-nav { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; width: 100%; } .hero-demo-nav .demo-line { width: 30%; height: 2px; } .hero-demo-cover-splash { flex-direction: column; gap: 0.3rem; } .hero-demo-enter { width: 22%; height: 6px; border: 1px solid #ffffff; border-radius: 2px; } .hero-demo-mosaic { display: flex; gap: 0.25rem; width: 100%; height: 100%; } .hero-demo-photo.big { flex: 1.5; } .hero-demo-photo-col { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; } /* ── Global Button System ────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem 1rem; font-family: var(--font-sans, system-ui, sans-serif); font-size: 0.82rem; font-weight: 600; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease; line-height: 1.2; } .btn-sm { padding: 0.35rem 0.65rem !important; font-size: 0.75rem !important; border-radius: 6px !important; } .btn-secondary { background: var(--admin-bg-elevated, #242424); border-color: var(--admin-border, #333333); color: var(--admin-text, #ffffff); } .btn-secondary:hover { background: var(--admin-bg-raised, #2e2e2e); border-color: var(--admin-border-hover, #444444); } .btn-danger { background: #ef4444; color: #ffffff; border-color: #ef4444; } .btn-danger:hover { background: #dc2626; border-color: #dc2626; } .btn-outline-danger { background: transparent; border-color: rgba(239, 68, 68, 0.4); color: #ef4444; } .btn-outline-danger:hover { background: rgba(239, 68, 68, 0.12); border-color: #ef4444; } /* ── Preset Grid & Buttons (Grid Layout & Aspect Ratio) ───────── */ .preset-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; } .preset-btn { padding: 0.45rem 0.85rem; background: var(--admin-bg-input, #1c1c1c); border: 1px solid var(--admin-border, #333333); border-radius: 8px; color: var(--admin-text-secondary, #cccccc); font-family: var(--font-sans, system-ui, sans-serif); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; text-transform: capitalize; } .preset-btn:hover { background: var(--admin-bg-elevated, #282828); border-color: var(--admin-border-hover, #555555); color: var(--admin-text, #ffffff); } .preset-btn.active { background: var(--admin-bg-elevated, #2a2a2a); border-color: var(--admin-accent, #e60012); color: var(--admin-accent, #e60012); font-weight: 600; box-shadow: 0 0 0 1px var(--admin-accent, #e60012); } /* ── Theme Settings Section Upgrades ─────────────────────────── */ .theme-settings-panel { display: flex; flex-direction: column; gap: 1.5rem; } .settings-section-header { margin-bottom: 0.5rem; } .settings-section-header h3 { margin: 0 0 0.25rem 0; font-size: 1.1rem; font-weight: 700; color: var(--admin-text); } .settings-section-sub { margin: 0; font-size: 0.8rem; color: var(--admin-text-muted); } .settings-section-divider { height: 1px; background: var(--admin-border); margin: 0.75rem 0; } /* Segmented Control (Mode Toggle) */ .segmented-control { display: inline-flex; background: var(--admin-bg-input, #1c1c1c); padding: 4px; border-radius: 10px; border: 1px solid var(--admin-border, #333); gap: 4px; } .segment-btn { padding: 0.5rem 1.1rem; font-size: 0.82rem; font-weight: 600; border-radius: 7px; border: none; background: transparent; color: var(--admin-text-muted); cursor: pointer; transition: all 0.15s ease; } .segment-btn:hover { color: var(--admin-text); } .segment-btn.active { background: var(--admin-bg-elevated, #2d2d2d); color: var(--admin-text, #ffffff); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .segment-btn:focus-visible { outline: var(--admin-focus-ring); outline-offset: 1px; } /* Compact size for toolbars: the editor's Visual Blocks / Raw Markdown, its preview's Desktop / Mobile and the subpage drawer's Edit / Live Preview. Replaces the inline padding the drawer used to carry. */ .segmented-control--sm { padding: 2px; gap: 2px; border-radius: 8px; } .segmented-control--sm .segment-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; min-height: 24px; font-size: 0.75rem; border-radius: 6px; white-space: nowrap; } /* Accent Color Swatches */ .accent-picker-wrapper { display: flex; flex-direction: column; gap: 0.85rem; } .color-swatches-row { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; } .color-swatch-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } .color-swatch-btn:hover { transform: scale(1.15); } .color-swatch-btn.active { border-color: #ffffff; box-shadow: 0 0 0 2px var(--admin-accent, #e60012); transform: scale(1.15); } /* Custom Toggle Cards Grid */ .admin-toggle-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; } .admin-toggle-card { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--admin-bg-raised); border: 1px solid var(--admin-border); border-radius: 12px; cursor: pointer; text-align: left; transition: all 0.15s ease; } .admin-toggle-card:hover { border-color: var(--admin-border-hover); background: var(--admin-bg-elevated); } .admin-toggle-card.active { border-color: var(--admin-accent); box-shadow: 0 0 0 1px var(--admin-accent); } .toggle-card-info { display: flex; flex-direction: column; gap: 0.2rem; padding-right: 1rem; } .toggle-card-title { font-size: 0.88rem; font-weight: 600; color: var(--admin-text); display: inline-flex; align-items: center; gap: 6px; } .toggle-card-desc { font-size: 0.75rem; color: var(--admin-text-muted); line-height: 1.3; } /* iOS Style Switch Slider */ .switch-toggle { width: 42px; height: 24px; background: var(--admin-border, #444); border-radius: 12px; position: relative; transition: background-color 0.2s ease; flex-shrink: 0; } .switch-toggle.on { background: var(--admin-accent, #e60012); } .switch-slider { width: 18px; height: 18px; background: #ffffff; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } .switch-toggle.on .switch-slider { transform: translateX(18px); }