Files
SHiNE-server/docs/UI-Design/channels-v1/mockups.css
T
2026-09-22 14:09:02 +03:00

213 lines
21 KiB
CSS

* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #242622; background: #f1f0eb; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #728de3; outline-offset: 3px; }
a { color: inherit; }
.studio-header { margin: 0 42px; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d5d6ce; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 760; text-decoration: none; letter-spacing: -1px; }
.brand-spark { font-size: 36px; font-weight: 400; }
.brand-caption { margin-left: 22px; font-size: 10px; letter-spacing: 2px; font-weight: 600; }
.draft-label { font-size: 12px; color: #63675f; }
main { padding: 0 42px; max-width: 1900px; margin: auto; }
.intro { display: flex; justify-content: space-between; align-items: end; padding: 48px 0 34px; gap: 30px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.1; letter-spacing: -2.8px; font-weight: 550; margin: 16px 0; }
.intro p { color: #62665d; font-size: 14px; line-height: 1.7; margin: 0; }
.intro-note { border-left: 1px solid #c6c8bd; padding-left: 24px; min-width: 250px; }
.intro-note > span { font-size: 38px; letter-spacing: -2px; }
.intro-note p { font-size: 12px; margin-top: 10px; }
.review-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid #d5d6ce; border-bottom: 1px solid #d5d6ce; }
.screen-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.review-button { border: 0; padding: 11px 14px; background: transparent; border-radius: 7px; font-size: 12px; color: #62665d; min-height: 42px; }
.review-button.selected { background: #292d27; color: white; }
.review-options { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 12px; color: #62665d; }
.review-options label { display: flex; align-items: center; gap: 6px; }
.review-options select { padding: 8px; border: 1px solid #d5d6ce; border-radius: 7px; background: transparent; color: #242622; }
.compare-link { display: none; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 30px 0 36px; align-items: start; }
.concept { min-width: 0; }
.concept-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.concept-number { font-size: 11px; border: 1px solid #c9cdc2; border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; }
.concept-heading h2 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.5px; }
.open-concept { margin-left: auto; padding: 10px; text-decoration: none; font-size: 18px; }
.concept-description { font-size: 12px; line-height: 1.6; color: #6b7065; min-height: 40px; margin: 0 0 18px; }
.phone { --bg: #111212; --surface: #1c1d1d; --text: #f3f3f1; --muted: #a0a2a0; --line: #2c2d2d; --accent: #f3f3f1; --on-accent: #161717; --soft: #252727; position: relative; display: flex; flex-direction: column; height: 760px; width: 100%; max-width: 410px; margin: auto; color: var(--text); background: var(--bg); border: 1px solid #bfc2b8; border-radius: 32px; overflow: hidden; box-shadow: 0 14px 35px #252d2210; font-size: 14px; line-height: 1.45; isolation: isolate; }
.phone[data-theme="warm"] { --bg: #faf7f0; --surface: #fffdf8; --text: #302c25; --muted: #7b7264; --line: #e6dfd1; --accent: #93511e; --on-accent: #fffaf3; --soft: #efe6d6; }
.phone[data-theme="night"] { --bg: #101b20; --surface: #17272d; --text: #e8f2f1; --muted: #98adaf; --line: #2a3b40; --accent: #94e1ce; --on-accent: #102c27; --soft: #213b3a; }
.phone[data-theme="club"] { --bg: #f9fafb; --surface: #fff; --text: #202b3c; --muted: #6b7688; --line: #e2e7ee; --accent: #4c5caa; --on-accent: #fff; --soft: #eaeefa; }
.status-bar { display: flex; justify-content: space-between; padding: 15px 24px 6px; font-size: 11px; font-weight: 700; flex: 0 0 38px; }
.status-icons { display: flex; gap: 5px; align-items: center; font-size: 10px; }
.icon { height: 21px; width: 21px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.status-icons .icon { height: 16px; width: 16px; }
.phone button { color: inherit; }
.icon-btn { background: transparent; border: 0; width: 44px; height: 44px; flex: 0 0 44px; display: inline-grid; place-items: center; border-radius: 50%; padding: 0; }
.icon-btn:hover { background: var(--soft); }
.app-header { display: flex; align-items: center; padding: 4px 12px 10px; gap: 6px; min-height: 66px; border-bottom: 1px solid var(--line); }
.header-text { flex: 1; min-width: 0; }
.header-text h3 { font-size: 17px; letter-spacing: -.4px; margin: 0; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-text small { color: var(--muted); font-size: 10px; }
.list-header { padding-left: 22px; }
.list-header h3 { font-size: 25px; letter-spacing: -.9px; }
.mini-brand { color: var(--accent); font-size: 26px; line-height: 1; margin-right: 3px; }
.view { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior: contain; }
.search-field { margin: 15px 18px 10px; display: flex; gap: 9px; align-items: center; background: var(--surface); border-radius: 12px; padding: 0 12px; border: 1px solid var(--line); color: var(--muted); }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; height: 42px; outline-offset: 0; color: var(--text); font-size: 13px; }
.search-field input::placeholder { color: var(--muted); }
.filter-tabs { display: flex; padding: 0 18px 12px; gap: 7px; }
.filter { font-size: 11px; padding: 0 11px; min-height: 36px; background: transparent; border: 1px solid transparent; border-radius: 20px; color: var(--muted); }
.filter[aria-pressed="true"] { color: var(--text); background: var(--soft); }
.section-label { padding: 10px 20px 7px; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 1.3px; font-size: 9px; font-weight: 700; color: var(--muted); }
.channel-row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 17px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.channel-row:hover { background: var(--soft); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #bdc5a8; color: #283124; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 13px; font-weight: 650; letter-spacing: -.5px; }
.avatar.city { background: #ded3bb; color: #635039; }
.avatar.blue { background: #bac5d9; color: #354663; }
.avatar.rose { background: #d9bcbb; color: #704444; }
.avatar.green { background: #b9cdc0; color: #345747; }
.avatar.violet { background: #cbc2d9; color: #56476c; }
.avatar.self { background: var(--soft); color: var(--accent); }
.channel-row .avatar { width: 48px; height: 48px; font-size: 23px; }
.channel-copy { min-width: 0; flex: 1; }
.channel-copy strong { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-copy small { display: block; color: var(--muted); font-size: 10px; margin: 2px 0; }
.channel-copy p { margin: 3px 0 0; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.channel-tail { display: flex; align-items: end; flex-direction: column; gap: 11px; align-self: stretch; padding-top: 2px; color: var(--muted); font-size: 10px; }
.badge { min-width: 20px; height: 20px; background: var(--accent); color: var(--on-accent); padding: 2px 6px; border-radius: 10px; text-align: center; font-size: 10px; font-weight: 700; }
.list-tip { padding: 24px 24px 16px; color: var(--muted); font-size: 11px; text-align: center; }
.bottom-nav { border-top: 1px solid var(--line); display: flex; justify-content: space-around; flex: 0 0 73px; align-items: start; padding: 9px 6px 12px; background: var(--bg); }
.nav-item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8px; width: 20%; min-height: 44px; opacity: .65; }
.nav-item[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav-item[aria-current="page"] .icon { background: var(--soft); border-radius: 7px; box-shadow: 0 0 0 5px var(--soft); }
.channel-intro { margin: 0; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.channel-intro p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.channel-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; padding: 0 4px; min-height: 36px; background: transparent; color: var(--accent); font-size: 11px; font-weight: 600; }
.text-button .icon { width: 16px; height: 16px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 11px; font-size: 10px; min-height: 36px; }
.unread-line { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 9px; padding: 13px 20px 0; }
.unread-line::before, .unread-line::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.post { padding: 18px 18px 10px; border-bottom: 1px solid var(--line); }
.post-header { display: flex; align-items: center; gap: 9px; }
.post-header .avatar { width: 34px; height: 34px; font-size: 11px; }
.author { min-width: 0; flex: 1; font-size: 12px; }
.author strong { font-weight: 650; }
.author small { color: var(--muted); font-size: 10px; display: block; }
.post .more { width: 36px; height: 36px; flex-basis: 36px; color: var(--muted); }
.post p { font-size: 14px; line-height: 1.6; margin: 10px 0 12px; overflow-wrap: anywhere; }
.post-title { font-weight: 600; }
.landscape { height: 142px; overflow: hidden; border-radius: 12px; position: relative; background: #c9d6cf; margin: 10px 0 8px; }
.landscape svg { width: 100%; height: 100%; display: block; }
.media-caption { position: absolute; bottom: 10px; left: 12px; font-size: 9px; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.post-actions { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.action { border: 0; background: transparent; min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 11px; color: var(--muted); }
.action[aria-pressed="true"] { color: #dc7477; }
.action[aria-pressed="true"] .icon { fill: currentColor; }
.reply-link { margin-left: auto; font-size: 10px; }
.attachment { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; margin: 10px 0; }
.attachment > .icon { color: var(--accent); }
.attachment strong { font-size: 11px; display: block; }
.attachment small { color: var(--muted); display: block; font-size: 10px; }
.composer-bar { display: flex; align-items: center; padding: 10px 16px; gap: 10px; border-top: 1px solid var(--line); background: var(--bg); flex: 0 0 auto; }
.composer-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 24px; text-align: left; font-size: 12px; }
.composer-trigger.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; justify-content: center; font-weight: 650; }
.thread-heading { padding: 13px 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.thread-heading strong { color: var(--text); }
.reply { display: flex; padding: 16px 18px 0; gap: 10px; }
.reply-body { flex: 1; min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.reply .avatar { width: 32px; height: 32px; font-size: 10px; }
.reply p { font-size: 13px; margin: 6px 0 2px; line-height: 1.55; overflow-wrap: anywhere; }
.reply small { color: var(--muted); font-size: 10px; }
.reply strong { font-size: 12px; }
.reply .post-actions { gap: 16px; }
.reply-context { color: var(--accent); font-size: 10px; }
.empty { padding: 40px 25px; text-align: center; color: var(--muted); font-size: 13px; }
.overlay { position: absolute; inset: 38px 0 0; z-index: 5; background: #0009; display: flex; flex-direction: column; justify-content: end; }
.sheet { display: flex; flex-direction: column; background: var(--bg); max-height: 100%; min-height: 78%; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -8px 40px #0002; }
.sheet.full { height: 100%; border-radius: 0; }
.sheet-handle { width: 32px; height: 4px; border-radius: 4px; background: var(--line); align-self: center; margin-top: 9px; }
.sheet-header { display: flex; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line); gap: 6px; }
.sheet-header h4 { margin: 0; flex: 1; text-align: center; font-size: 15px; }
.sheet-header .expand { color: var(--muted); }
.editor-scroll { overflow-y: auto; flex: 1; min-height: 0; padding: 18px; }
.source-preview { display: flex; gap: 10px; padding-bottom: 20px; position: relative; }
.source-preview::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 3px; width: 1px; background: var(--line); }
.source-preview p { font-size: 12px; color: var(--muted); margin: 5px 0; line-height: 1.5; }
.source-preview strong { font-size: 12px; }
.source-preview small { color: var(--muted); font-size: 10px; }
.editor-row { display: flex; gap: 10px; }
.editor-main { flex: 1; min-width: 0; }
.editor-main strong { display: block; font-size: 12px; margin: 2px 0; }
.editor-main > small { color: var(--muted); display: block; font-size: 10px; margin: 3px 0 10px; }
.editor-input { resize: none; border: 0; width: 100%; min-height: 115px; background: transparent; color: var(--text); font-size: 15px; line-height: 1.6; padding: 3px 0; }
.editor-input::placeholder { color: var(--muted); }
.editor-input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--accent); }
.editor-footer { display: flex; align-items: center; gap: 4px; padding: 11px 16px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.char-count { color: var(--muted); font-size: 10px; margin-left: auto; margin-right: 10px; }
.submit { border: 0; border-radius: 22px; padding: 12px 18px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 650; min-height: 44px; }
.phone .submit { color: var(--on-accent); }
.editor-attachment { margin-top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--soft); border-radius: 10px; font-size: 10px; }
.editor-attachment span { flex: 1; overflow-wrap: anywhere; }
.keyboard { flex: 0 0 auto; background: var(--surface); padding: 10px 4px 18px; border-top: 1px solid var(--line); }
.keyboard-label { font-size: 9px; text-align: center; color: var(--muted); margin-bottom: 10px; }
.keys { display: flex; justify-content: center; gap: 3px; margin: 5px 0; }
.keys span { display: grid; place-items: center; height: 31px; flex: 1; max-width: 29px; border-radius: 5px; font-size: 13px; color: var(--text); background: var(--soft); box-shadow: 0 1px 0 #0003; }
.keys .space { max-width: 150px; flex: 5; font-size: 10px; }
.keys .wide { max-width: 45px; flex: 1.7; font-size: 11px; }
.menu-sheet { min-height: 0; padding-bottom: 24px; }
.menu-content { padding: 10px 20px; }
.menu-action { border: 0; background: transparent; width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; min-height: 47px; font-size: 13px; border-bottom: 1px solid var(--line); }
.menu-content p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.toast { position: absolute; bottom: 86px; left: 18px; right: 18px; padding: 12px 15px; border-radius: 12px; background: var(--text); color: var(--bg); z-index: 10; font-size: 12px; box-shadow: 0 4px 20px #0003; }
.concept-notes { margin-top: 19px; font-size: 12px; color: #666d61; line-height: 1.65; }
.concept-notes strong { color: #33392f; font-weight: 600; }
.swatches { display: flex; gap: 5px; margin-bottom: 12px; }
.swatches span { width: 19px; height: 19px; border-radius: 50%; border: 1px solid #0002; }
.concept-tag { display: inline-block; border: 1px solid #c9cdc2; padding: 3px 7px; border-radius: 4px; font-size: 9px; letter-spacing: .3px; margin-bottom: 8px; }
.decision-note { padding: 36px 0; border-top: 1px solid #d5d6ce; }
.decision-note h2 { font-weight: 500; letter-spacing: -.7px; font-size: 27px; margin: 13px 0; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.decision-grid p { font-size: 13px; line-height: 1.7; color: #62665d; }
.decision-grid b { display: block; font-weight: 600; color: #33392f; margin-bottom: 6px; }
.disclaimer { font-size: 11px; color: #62665d; line-height: 1.7; margin-top: 24px; }
.studio-footer { display: flex; justify-content: space-between; margin: 0 42px; padding: 22px 0; border-top: 1px solid #d5d6ce; color: #73796b; font-size: 10px; gap: 15px; }
/* Варианты отличаются также плотностью, иерархией и формой редактора. */
.phone[data-theme="mono"] .post { padding-left: 18px; }
.phone[data-theme="mono"] .post-content { margin-left: 43px; }
.phone[data-theme="mono"] .landscape { height: 128px; }
.phone[data-theme="warm"] .channel-row { margin: 0 12px 8px; width: calc(100% - 24px); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; background: var(--surface); }
.phone[data-theme="warm"] .channel-intro { background: var(--soft); margin: 14px 16px 0; border: 0; border-radius: 16px; }
.phone[data-theme="warm"] .post { margin: 14px 12px; padding: 15px 14px 7px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.phone[data-theme="warm"] .post-title { font-family: Georgia, serif; font-size: 20px; line-height: 1.3; }
.phone[data-theme="warm"] .reply .avatar { border-radius: 12px; }
.phone[data-theme="night"] .list-header { border-bottom: 0; padding-top: 12px; }
.phone[data-theme="night"] .channel-intro { background: linear-gradient(125deg, #1d3937, #16272e); border-bottom: 1px solid #36544f; }
.phone[data-theme="night"] .channel-row { border-bottom-color: #21343b; }
.phone[data-theme="night"] .channel-row:first-child { background: #172b2e; box-shadow: inset 3px 0 var(--accent); }
.phone[data-theme="night"] .composer-trigger { border-radius: 13px; }
.phone[data-theme="night"] .post-title { font-size: 17px; font-weight: 550; }
.phone[data-theme="club"] .channel-row { padding: 12px 16px; gap: 10px; }
.phone[data-theme="club"] .channel-row .avatar { width: 42px; height: 42px; border-radius: 13px; }
.phone[data-theme="club"] .channel-copy small { display: none; }
.phone[data-theme="club"] .filter-tabs { border-bottom: 1px solid var(--line); padding-bottom: 0; gap: 12px; }
.phone[data-theme="club"] .filter { border-radius: 0; padding: 0 1px; }
.phone[data-theme="club"] .filter[aria-pressed="true"] { background: transparent; color: var(--accent); border-bottom: 2px solid var(--accent); }
.phone[data-theme="club"] .post { padding: 12px 16px 5px; }
.phone[data-theme="club"] .post p { font-size: 13px; margin: 7px 0; }
.phone[data-theme="club"] .landscape { height: 108px; }
.phone[data-theme="club"] .channel-intro { padding: 12px 16px 8px; }
.phone[data-theme="club"] .channel-intro p { margin-bottom: 5px; }
.phone[data-theme="club"] .reply { padding-top: 12px; }
.phone[data-theme="club"] .reply-body { border-left: 2px solid var(--line); border-bottom: 0; padding-left: 12px; }
.phone[data-theme="club"] .composer-trigger { border-radius: 10px; }
.gallery.single { display: block; max-width: 410px; margin: auto; }
.single .concept-description { min-height: 0; }
body.focused .compare-link { display: inline; }
@media (max-width: 1490px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: auto; gap: 40px; } .concept { max-width: 410px; width: 100%; justify-self: center; } }
@media (max-width: 760px) { .studio-header { margin: 0 20px; padding: 18px 0; } main { padding: 0 20px; } .brand-caption, .draft-label, .intro-note { display: none; } .intro { padding: 30px 0 24px; } h1 { letter-spacing: -1.5px; } .intro p { font-size: 13px; } .gallery { grid-template-columns: minmax(0, 1fr); gap: 32px; } .screen-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .review-button { padding: 10px; } .review-options { gap: 12px; } .phone { height: 760px; border-radius: 25px; } .decision-grid { grid-template-columns: 1fr; gap: 0; } .studio-footer { margin: 0 20px; } }
@media (max-width: 380px) { main { padding: 0 10px; } .post-actions { gap: 10px; } .phone { font-size: 13px; } .channel-row { padding-left: 12px; padding-right: 12px; gap: 8px; } .header-text h3 { font-size: 15px; } .concept-heading h2 { font-size: 16px; } }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: appear .18s ease-out; } @keyframes appear { from { transform: translateY(22px); opacity: .5; } to { transform: translateY(0); opacity: 1; } } }