openvibers/openvibe.shared ov-share.css
ov-share.css
| 1 | /* openvibe-shared/ov-share.css — the look of ov-share.js: the Share sheet (a dialog in the middle on a computer, a sheet |
| 2 | * from the bottom on a phone), the recipient's transfer banner and the "shared with specific people" gate. |
| 3 | * Colours come from the site's theme (--accent, --bg-card, --border, --text-primary …) with system colours when a site |
| 4 | * has none, the same fallbacks as ov-forms.css, so light and dark follow the site. Nothing spins: a wait is words. */ |
| 5 | |
| 6 | .ov-share, .ov-share-banner, .ov-share-gate { |
| 7 | --ovs-accent: var(--accent, #3b82f6); |
| 8 | --ovs-on-accent: var(--on-accent, #fff); |
| 9 | --ovs-surface: var(--bg-card, var(--bg-secondary, Canvas)); |
| 10 | --ovs-text: var(--text-primary, CanvasText); |
| 11 | --ovs-muted: var(--text-muted, var(--text-secondary, color-mix(in srgb, CanvasText 60%, Canvas))); |
| 12 | --ovs-line: var(--border, color-mix(in srgb, CanvasText 14%, transparent)); |
| 13 | --ovs-hover: var(--bg-hover, color-mix(in srgb, CanvasText 7%, transparent)); |
| 14 | --ovs-field: var(--bg-input, var(--bg-tertiary, Field)); |
| 15 | --ovs-bad: var(--danger, #ef4444); |
| 16 | --ovs-warn: var(--warning, #f59e0b); |
| 17 | --ovs-radius: var(--ov-radius-2, 14px); |
| 18 | color: var(--ovs-text); font-family: inherit; font-size: 14px; line-height: 1.45; text-align: start; |
| 19 | } |
| 20 | .ov-share *, .ov-share *::before, .ov-share *::after, .ov-share-banner *, .ov-share-gate * { box-sizing: border-box; } |
| 21 | |
| 22 | /* ── The dialog ─────────────────────────────────────────────────────────────────────────────────────────────── */ |
| 23 | .ov-share { |
| 24 | box-sizing: border-box; width: min(520px, calc(100vw - 24px)); max-width: none; max-height: min(88dvh, 760px); max-height: min(88vh, 760px); |
| 25 | margin: auto; padding: 0; overflow: hidden; |
| 26 | background: var(--ovs-surface); border: 1px solid var(--ovs-line); border-radius: var(--ov-radius-3, 20px); |
| 27 | box-shadow: 0 28px 70px -18px rgb(0 0 0 / .5), 0 4px 14px rgb(0 0 0 / .14); |
| 28 | opacity: 0; transform: translateY(10px) scale(.985); |
| 29 | transition: opacity .16s ease, transform .2s cubic-bezier(.2, .8, .2, 1); |
| 30 | } |
| 31 | .ov-share.is-open { opacity: 1; transform: none; } |
| 32 | .ov-share::backdrop { background: rgb(6 10 16 / .52); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); } |
| 33 | html.ov-share-locked, html.ov-share-locked body { overflow: hidden; overscroll-behavior: none; } |
| 34 | .ov-share-box { display: flex; flex-direction: column; max-height: inherit; min-height: 0; } |
| 35 | /* The sheet's headings are h2s on someone else's page: a site's own h2 rule (Wiki: a bottom border, a big margin) must |
| 36 | not reach them. Every property a site might set on h2 is set here. */ |
| 37 | .ov-share .ov-share-title, .ov-share-gate .ov-share-gatetitle { border: 0; padding: 0; background: none; color: inherit; font-family: inherit; text-transform: none; text-decoration: none; box-shadow: none; } |
| 38 | .ov-share-head { display: flex; align-items: center; gap: 6px; padding: 14px 10px 6px 20px; } |
| 39 | .ov-share-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 40 | .ov-share-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 18px; padding: 8px 20px 18px; scrollbar-width: thin; } |
| 41 | .ov-share-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--ovs-line); } |
| 42 | .ov-share-foot.is-confirm { background: color-mix(in srgb, var(--ovs-warn) 9%, transparent); } |
| 43 | .ov-share-foot.is-confirm p { margin: 0; font-weight: 600; } |
| 44 | .ov-share-grow { flex: 1 1 auto; min-width: 0; } |
| 45 | |
| 46 | /* A phone: a sheet from the bottom, the whole width, clear of the home bar. */ |
| 47 | @media (max-width: 640px), (pointer: coarse) and (max-width: 900px) { |
| 48 | .ov-share { |
| 49 | width: 100%; max-width: 100%; max-height: min(92dvh, 820px); max-height: min(92vh, 820px); |
| 50 | margin: auto 0 0; border: 0; border-radius: var(--ov-radius-3, 20px) var(--ov-radius-3, 20px) 0 0; |
| 51 | box-shadow: 0 -14px 44px rgb(0 0 0 / .38); |
| 52 | opacity: 1; transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .85, .25, 1); |
| 53 | } |
| 54 | .ov-share.is-open { transform: none; } |
| 55 | .ov-share-head { position: relative; padding: 20px max(8px, env(safe-area-inset-right, 0px)) 6px max(18px, env(safe-area-inset-left, 0px)); } |
| 56 | .ov-share-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 99px; background: color-mix(in srgb, var(--ovs-text) 22%, transparent); } |
| 57 | .ov-share-body { padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); font-size: 15px; } |
| 58 | .ov-share-foot { padding: 10px max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); } |
| 59 | } |
| 60 | |
| 61 | /* ── Words ──────────────────────────────────────────────────────────────────────────────────────────────────── */ |
| 62 | .ov-share-label { display: block; margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ovs-muted); } |
| 63 | .ov-share-desc, .ov-share-lead { margin: 10px 0 0; color: var(--ovs-muted); font-size: 13.5px; } |
| 64 | .ov-share-lead { margin: 0; font-size: 14px; } |
| 65 | .ov-share-desc strong { color: var(--ovs-text); font-weight: 650; } |
| 66 | .ov-share-muted { margin: 0; color: var(--ovs-muted); font-size: 13px; } |
| 67 | .ov-share-note { margin: 0; font-size: 13px; color: var(--ovs-text); padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ovs-accent) 9%, transparent); } |
| 68 | .ov-share-warn { margin: 0; font-size: 13px; padding: 8px 10px; border-radius: 10px; color: var(--warning-text, var(--ovs-text)); background: color-mix(in srgb, var(--ovs-warn) 15%, transparent); } |
| 69 | .ov-share-error { margin: 0; font-size: 13px; color: var(--danger-text, var(--ovs-bad)); } |
| 70 | .ov-share-soft { font-style: italic; } |
| 71 | |
| 72 | /* ── Buttons ────────────────────────────────────────────────────────────────────────────────────────────────── */ |
| 73 | .ov-share-btn { |
| 74 | -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; |
| 75 | min-height: 40px; padding: 0 15px; margin: 0; border: 1px solid var(--ovs-line); border-radius: 10px; |
| 76 | background: transparent; color: var(--ovs-text); font: inherit; font-size: 14px; font-weight: 650; line-height: 1.2; |
| 77 | text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; |
| 78 | transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease; |
| 79 | } |
| 80 | .ov-share-btn:hover:not(:disabled) { background: var(--ovs-hover); } |
| 81 | .ov-share-btn:focus-visible, .ov-share-iconbtn:focus-visible, .ov-share-link:focus-visible, .ov-share-chip:focus-visible { |
| 82 | outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-accent) 40%, transparent); |
| 83 | } |
| 84 | .ov-share-btn:disabled { opacity: .55; cursor: default; } |
| 85 | .ov-share-btn.is-primary { background: var(--ovs-accent); border-color: var(--ovs-accent); color: var(--ovs-on-accent); } |
| 86 | .ov-share-btn.is-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ovs-accent) 88%, #000); } |
| 87 | .ov-share-btn.is-quiet { border-color: transparent; } |
| 88 | .ov-share-btn.is-danger { background: var(--ovs-bad); border-color: var(--ovs-bad); color: #fff; } |
| 89 | .ov-share-btn.is-small { min-height: 34px; padding: 0 12px; font-size: 13px; } |
| 90 | .ov-share-btn .ov-share-ico { width: 18px; height: 18px; } |
| 91 | .ov-share-iconbtn { |
| 92 | -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; |
| 93 | border: 0; border-radius: 10px; background: none; color: var(--ovs-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; |
| 94 | } |
| 95 | .ov-share-iconbtn:hover { background: var(--ovs-hover); color: var(--ovs-text); } |
| 96 | .ov-share-iconbtn.is-small { width: 34px; height: 34px; } |
| 97 | .ov-share-link { |
| 98 | -webkit-appearance: none; appearance: none; display: inline; margin: 0; padding: 2px 0; border: 0; background: none; |
| 99 | color: var(--ovs-accent); font: inherit; font-weight: 600; cursor: pointer; border-radius: 4px; |
| 100 | } |
| 101 | .ov-share-link:hover { text-decoration: underline; } |
| 102 | .ov-share-link.is-quiet { color: var(--ovs-muted); font-weight: 500; } |
| 103 | @media (pointer: coarse) { |
| 104 | .ov-share-btn { min-height: 44px; } |
| 105 | .ov-share-btn.is-small { min-height: 40px; } |
| 106 | .ov-share-iconbtn { width: 44px; height: 44px; } |
| 107 | .ov-share-iconbtn.is-small { width: 40px; height: 40px; } |
| 108 | .ov-share-link { padding: 6px 0; } |
| 109 | } |
| 110 | |
| 111 | /* Icons: one stroke family, the currentColor of their place. */ |
| 112 | .ov-share-ico { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; } |
| 113 | .ov-share-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } |
| 114 | .ov-share-ico.is-big { width: 40px; height: 40px; color: var(--ovs-accent); } |
| 115 | |
| 116 | /* ── Who can open this: a segmented choice of up to four ───────────────────────────────────────────────────── */ |
| 117 | .ov-share-aud { margin: 0; padding: 0; border: 0; min-width: 0; } |
| 118 | .ov-share-aud:disabled .ov-share-segopt { cursor: default; } |
| 119 | .ov-share-seg { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--ovs-radius); background: var(--ovs-hover); } |
| 120 | .ov-share-segopt { |
| 121 | position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; |
| 122 | min-width: 0; min-height: 62px; padding: 8px 4px; border-radius: 11px; cursor: pointer; |
| 123 | color: var(--ovs-muted); font-size: 13px; font-weight: 600; text-align: center; -webkit-tap-highlight-color: transparent; |
| 124 | transition: background-color .14s ease, color .14s ease, box-shadow .14s ease; |
| 125 | } |
| 126 | .ov-share-segopt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; } |
| 127 | .ov-share-segopt:hover { color: var(--ovs-text); } |
| 128 | .ov-share-segopt:has(input:checked) { background: var(--ovs-surface); color: var(--ovs-accent); box-shadow: 0 1px 3px rgb(0 0 0 / .16), 0 0 0 1px color-mix(in srgb, var(--ovs-accent) 30%, transparent); } |
| 129 | .ov-share-segopt:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-accent) 40%, transparent); } |
| 130 | .ov-share-seglabel { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 131 | .ov-share-aud:disabled .ov-share-segopt:not(:has(input:checked)) { opacity: .55; } |
| 132 | |
| 133 | /* ── Locked: what the lock means, and the fingerprints it is wrapped for ───────────────────────────────────── */ |
| 134 | .ov-share-lock { display: grid; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: var(--ovs-radius); background: color-mix(in srgb, var(--ovs-accent) 6%, var(--ovs-hover)); } |
| 135 | .ov-share-lockhead { |
| 136 | -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; |
| 137 | margin: 0; padding: 0; border: 0; background: none; color: var(--ovs-text); font: inherit; text-align: left; cursor: pointer; |
| 138 | } |
| 139 | .ov-share-lockhead .ov-share-ico { color: var(--ovs-accent); } |
| 140 | .ov-share-lockhead:focus-visible { outline: 3px solid color-mix(in srgb, var(--ovs-accent) 40%, transparent); outline-offset: 3px; border-radius: 8px; } |
| 141 | .ov-share-locklabel { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; } |
| 142 | .ov-share-locktitle { font-weight: 700; font-size: 14px; } |
| 143 | .ov-share-lockcaret { flex: none; width: 20px; text-align: center; color: var(--ovs-muted); font-size: 17px; line-height: 1; } |
| 144 | .ov-share-lockshort { font-size: 12.5px; } |
| 145 | .ov-share-lockbody { display: grid; gap: 8px; min-width: 0; } |
| 146 | .ov-share-lockmeans { margin: 0; font-size: 13.5px; color: var(--ovs-text); } |
| 147 | .ov-share-fps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; } |
| 148 | .ov-share-fprow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; font-size: 12.5px; } |
| 149 | .ov-share-fpwho { flex: none; color: var(--ovs-text); font-weight: 650; } |
| 150 | .ov-share-fp { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ovs-muted); white-space: normal; overflow-wrap: anywhere; } |
| 151 | .ov-share-fp.is-changed { color: var(--warning-text, var(--ovs-warn)); } |
| 152 | .ov-share-tag.is-warn { color: var(--warning-text, var(--ovs-warn)); background: color-mix(in srgb, var(--ovs-warn) 16%, transparent); } |
| 153 | |
| 154 | /* ── People ─────────────────────────────────────────────────────────────────────────────────────────────────── */ |
| 155 | .ov-share-people { display: grid; gap: 10px; min-width: 0; } |
| 156 | .ov-share-people .ov-share-label { margin: 0; } |
| 157 | .ov-share-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; } |
| 158 | .ov-share-addfield { |
| 159 | display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 0 12px; gap: 2px; |
| 160 | background: var(--ovs-field); border: 1px solid var(--ovs-line); border-radius: 10px; |
| 161 | transition: border-color .14s ease, box-shadow .14s ease; |
| 162 | } |
| 163 | .ov-share-addfield:focus-within { border-color: var(--ovs-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-accent) 28%, transparent); } |
| 164 | .ov-share-at { color: var(--ovs-muted); font-weight: 650; } |
| 165 | .ov-share-addfield input { flex: 1; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: none; color: var(--ovs-text); font: inherit; } |
| 166 | .ov-share-addfield input::placeholder { color: var(--ovs-muted); opacity: 1; } |
| 167 | @media (pointer: coarse) { .ov-share-addfield input { font-size: 16px; } } /* a phone does not zoom into a 16 px field */ |
| 168 | .ov-share-add .ov-share-btn { min-height: 44px; } |
| 169 | .ov-share-addmsg { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ovs-muted); } |
| 170 | .ov-share-addmsg:empty { display: none; } |
| 171 | .ov-share-addmsg.is-bad { color: var(--danger-text, var(--ovs-bad)); } |
| 172 | .ov-share-sugg { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; } |
| 173 | .ov-share-chip { |
| 174 | -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 0 10px 0 4px; |
| 175 | border: 1px solid var(--ovs-line); border-radius: 999px; background: none; color: var(--ovs-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; |
| 176 | } |
| 177 | .ov-share-chip:hover { background: var(--ovs-hover); } |
| 178 | .ov-share-chip .ov-share-av { width: 24px; height: 24px; font-size: 11px; } |
| 179 | @media (pointer: coarse) { .ov-share-chip { min-height: 40px; } } |
| 180 | |
| 181 | .ov-share-list { display: grid; margin: 0; padding: 0; list-style: none; } |
| 182 | .ov-share-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 7px 0; min-width: 0; } |
| 183 | .ov-share-row + .ov-share-row { border-top: 1px solid color-mix(in srgb, var(--ovs-line) 70%, transparent); } |
| 184 | .ov-share-row.is-dim > :not(.ov-share-iconbtn) { opacity: .5; } |
| 185 | .ov-share-row.is-new .ov-share-av { box-shadow: 0 0 0 2px var(--ovs-surface), 0 0 0 4px color-mix(in srgb, var(--ovs-accent) 55%, transparent); } |
| 186 | .ov-share-av { |
| 187 | flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; |
| 188 | background: hsl(var(--ov-share-h, 210) 52% 46%); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; user-select: none; |
| 189 | } |
| 190 | .ov-share-av img { width: 100%; height: 100%; object-fit: cover; display: block; } |
| 191 | .ov-share-words { flex: 1; min-width: 0; display: grid; gap: 1px; } |
| 192 | .ov-share-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 650; } |
| 193 | .ov-share-display { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 194 | .ov-share-tag { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ovs-muted); background: var(--ovs-hover); } |
| 195 | .ov-share-tag.is-new { color: var(--ovs-accent); background: color-mix(in srgb, var(--ovs-accent) 14%, transparent); } |
| 196 | .ov-share-sub { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; row-gap: 2px; min-width: 0; font-size: 12.5px; color: var(--ovs-muted); } |
| 197 | .ov-share-sub > * + *::before { content: "\00b7"; display: inline-block; padding: 0 6px; color: var(--ovs-muted); font-style: normal; font-weight: 400; } |
| 198 | .ov-share-sub > * { min-width: 0; white-space: nowrap; } /* a part wraps whole, never inside "until Nov 30" */ |
| 199 | .ov-share-sub > span:first-child { overflow: hidden; text-overflow: ellipsis; } |
| 200 | @media (max-width: 480px) { /* a phone: the name, then the end date under it, no dot left hanging */ |
| 201 | .ov-share-sub { flex-direction: column; align-items: flex-start; } |
| 202 | .ov-share-sub > * + *::before { content: none; } |
| 203 | } |
| 204 | .ov-share-exp { display: inline-flex; align-items: baseline; gap: 8px; } |
| 205 | .ov-share-exp .ov-share-link { font-size: 12.5px; } |
| 206 | .ov-share-exp .ov-share-btn { min-height: 30px; padding: 0 8px; font-size: 12.5px; } |
| 207 | .ov-share-date { min-height: 32px; padding: 2px 8px; border: 1px solid var(--ovs-accent); border-radius: 8px; background: var(--ovs-field); color: var(--ovs-text); font: inherit; font-size: 13px; color-scheme: light dark; } |
| 208 | .ov-share-role { flex: none; font-size: 13px; color: var(--ovs-muted); white-space: nowrap; } |
| 209 | .ov-share-role.is-fixed { font-weight: 600; } |
| 210 | .ov-share-rolepill { flex: none; display: inline-flex; align-items: stretch; min-height: 34px; padding: 0; border: 1px solid var(--ovs-line); border-radius: 999px; font-size: 13px; font-weight: 600; overflow: hidden; } |
| 211 | .ov-share-rolepill:focus-within { border-color: var(--ovs-accent); } |
| 212 | .ov-share-select { max-width: 100%; min-height: 32px; margin: 0; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--ovs-text); font: inherit; cursor: pointer; } |
| 213 | .ov-share-rolepill .ov-sel { padding: 0 10px; } /* ov-forms.js, when the site has it, draws the select as a bare button */ |
| 214 | @media (pointer: coarse) { .ov-share-rolepill { min-height: 40px; } .ov-share-select { min-height: 38px; } .ov-share-exp .ov-share-link { padding: 9px 0; } } |
| 215 | .ov-share-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; } |
| 216 | .ov-share-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ovs-accent); } |
| 217 | /* The sheet's own switch, the same as ov-forms.css draws (a site without the Forms kit still gets a switch). */ |
| 218 | .ov-share-check input[role="switch"] { |
| 219 | -webkit-appearance: none; appearance: none; width: 42px; height: 24px; border-radius: 999px; cursor: pointer; |
| 220 | background-color: color-mix(in srgb, var(--ovs-text) 26%, transparent); |
| 221 | background-image: radial-gradient(circle, #fff 0 8.5px, transparent 9px); background-repeat: no-repeat; background-size: 20px 20px; background-position: 2px 50%; |
| 222 | transition: background-color .18s ease, background-position .2s cubic-bezier(.3, .8, .3, 1); |
| 223 | } |
| 224 | .ov-share-check input[role="switch"]:checked { background-color: var(--ovs-accent); background-position: calc(100% - 2px) 50%; } |
| 225 | .ov-share-check input[role="switch"]:focus-visible { outline: 2px solid var(--ovs-accent); outline-offset: 2px; } |
| 226 | |
| 227 | /* ── Send it: the link, the phone's own sheet, the places ──────────────────────────────────────────────────── */ |
| 228 | .ov-share-box { position: relative; } |
| 229 | .ov-share-send { display: grid; gap: 14px; min-width: 0; } |
| 230 | .ov-share-linkpill { |
| 231 | display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 5px 5px 14px; |
| 232 | background: var(--ovs-field); border: 1px solid var(--ovs-line); border-radius: 14px; |
| 233 | transition: border-color .18s ease, box-shadow .18s ease; |
| 234 | } |
| 235 | .ov-share-linkpill:focus-within { border-color: var(--ovs-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-accent) 26%, transparent); } |
| 236 | .ov-share-linkpill > .ov-share-ico { color: var(--ovs-muted); width: 18px; height: 18px; } |
| 237 | .ov-share-linktext { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; outline: 0; background: none; color: var(--ovs-text); font: inherit; font-size: 14.5px; text-overflow: ellipsis; } |
| 238 | @media (pointer: coarse) { .ov-share-linktext { font-size: 16px; } } |
| 239 | .ov-share-copy { min-width: 96px; border-radius: 10px; } |
| 240 | .ov-share-linkpill.is-copied { border-color: var(--success, #22c55e); animation: ov-share-ring .7s ease-out; } |
| 241 | .ov-share-linkpill.is-copied .ov-share-copy { background: var(--success, #16a34a); border-color: var(--success, #16a34a); color: #fff; } |
| 242 | .ov-share-linkpill.is-copied .ov-share-copy .ov-share-ico { animation: ov-share-pop .38s cubic-bezier(.3, 1.6, .5, 1); } |
| 243 | @keyframes ov-share-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success, #22c55e) 50%, transparent); } to { box-shadow: 0 0 0 12px transparent; } } |
| 244 | @keyframes ov-share-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: none; } } |
| 245 | .ov-share-linkfor { margin-top: -6px; } |
| 246 | .ov-share-rule { margin: 2px 0; border: 0; border-top: 1px solid var(--ovs-line); } |
| 247 | |
| 248 | .ov-share-device { |
| 249 | -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin: 0; padding: 10px 14px; |
| 250 | border: 1px solid var(--ovs-line); border-radius: 14px; background: color-mix(in srgb, var(--ovs-accent) 6%, transparent); |
| 251 | color: var(--ovs-text); font: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; |
| 252 | transition: transform .12s ease, background-color .14s ease; |
| 253 | } |
| 254 | .ov-share-device:active { transform: scale(.985); } |
| 255 | .ov-share-device .ov-share-tileic { background: var(--ovs-accent); color: var(--ovs-on-accent); } |
| 256 | .ov-share-devicewords { display: grid; gap: 1px; min-width: 0; } |
| 257 | .ov-share-devicetitle { font-weight: 700; font-size: 15px; } |
| 258 | |
| 259 | .ov-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; margin: 0 -6px; } |
| 260 | @media (max-width: 640px) { .ov-share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } |
| 261 | .ov-share-tile { |
| 262 | -webkit-appearance: none; appearance: none; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; margin: 0; padding: 9px 2px 8px; |
| 263 | border: 0; border-radius: 14px; background: none; color: var(--ovs-text); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; |
| 264 | text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; |
| 265 | transition: background-color .14s ease, transform .12s ease; |
| 266 | } |
| 267 | .ov-share-tile:hover { background: var(--ovs-hover); } |
| 268 | .ov-share-tile:active { transform: scale(.94); } |
| 269 | .ov-share-tile:focus-visible, .ov-share-device:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-accent) 40%, transparent); } |
| 270 | .ov-share-tile[aria-expanded="true"] { background: color-mix(in srgb, var(--ovs-accent) 12%, transparent); } |
| 271 | .ov-share-tilelabel { max-width: 100%; padding: 0 2px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; } |
| 272 | .ov-share-tileic { |
| 273 | flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; |
| 274 | background: var(--ovs-hover); color: var(--ovs-text); font-weight: 800; font-size: 18px; |
| 275 | box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ovs-text) 10%, transparent); |
| 276 | transition: transform .16s cubic-bezier(.3, 1.4, .5, 1); |
| 277 | } |
| 278 | .ov-share-tile:hover .ov-share-tileic { transform: translateY(-2px); } |
| 279 | .ov-share-tileic svg { width: 22px; height: 22px; } |
| 280 | .ov-share-tileic:not(.is-brand) svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; } |
| 281 | .ov-share-tileic.is-brand { background: var(--ov-brand); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); } |
| 282 | .ov-share-tileic.is-email { background: color-mix(in srgb, var(--ovs-accent) 16%, transparent); color: var(--ovs-accent); } |
| 283 | .ov-share-tileic.is-sms { background: #34c759; color: #fff; } |
| 284 | .ov-share-tileic.is-linkedin { background: #0a66c2; color: #fff; } |
| 285 | .ov-share-tileic.is-qr, .ov-share-tileic.is-embed, .ov-share-tileic.is-device, .ov-share-tileic.is-more { color: var(--ovs-text); } |
| 286 | .ov-share-tileic.is-more svg { fill: currentColor; stroke: none; } |
| 287 | .ov-share-box.is-first .ov-share-tile, .ov-share-box.is-first .ov-share-device, .ov-share-box.is-first .ov-share-linkpill { |
| 288 | animation: ov-share-in .34s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms + 70ms); |
| 289 | } |
| 290 | .ov-share-box.is-first .ov-share-linkpill { --i: -2; } |
| 291 | .ov-share-box.is-first .ov-share-device { --i: -1; } |
| 292 | @keyframes ov-share-in { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } } |
| 293 | |
| 294 | .ov-share-panel { |
| 295 | display: grid; gap: 10px; margin: 0; padding: 14px; min-width: 0; border-radius: 14px; |
| 296 | background: color-mix(in srgb, var(--ovs-text) 4%, transparent); border: 1px solid var(--ovs-line); |
| 297 | animation: ov-share-unfold .22s cubic-bezier(.2, .8, .2, 1); |
| 298 | } |
| 299 | .ov-share-panel .ov-share-label { margin: 0; } |
| 300 | @keyframes ov-share-unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } } |
| 301 | .ov-share-qr { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; } |
| 302 | .ov-share-qrart { display: grid; place-items: center; width: 172px; height: 172px; padding: 8px; border-radius: 14px; background: #fff; color: #0b0f17; font-size: 12.5px; text-align: center; box-shadow: 0 6px 20px -8px rgb(0 0 0 / .4); } |
| 303 | .ov-share-qrart svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; } |
| 304 | .ov-share-qrside { display: grid; gap: 10px; justify-items: start; min-width: 0; } |
| 305 | @media (max-width: 420px) { .ov-share-qr { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .ov-share-qrside { justify-items: center; } } |
| 306 | .ov-share-code { |
| 307 | box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 10px 12px; resize: none; |
| 308 | font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ovs-text); |
| 309 | background: var(--ovs-field); border: 1px solid var(--ovs-line); border-radius: 10px; |
| 310 | } |
| 311 | .ov-share-panel > .ov-share-btn { justify-self: start; } |
| 312 | |
| 313 | .ov-share-toast { |
| 314 | position: absolute; left: 50%; bottom: 78px; z-index: 2; max-width: calc(100% - 32px); margin: 0; padding: 9px 16px; |
| 315 | border-radius: 999px; background: color-mix(in srgb, var(--ovs-text) 92%, transparent); color: var(--ovs-surface); |
| 316 | font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; |
| 317 | box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45); |
| 318 | opacity: 0; transform: translate(-50%, 8px) scale(.96); transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .3, 1.3); |
| 319 | } |
| 320 | .ov-share-toast:empty { display: none; } |
| 321 | .ov-share-toast.is-quiet { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } |
| 322 | .ov-share-toast.is-on { opacity: 1; transform: translate(-50%, 0); } |
| 323 | @media (max-width: 640px), (pointer: coarse) and (max-width: 900px) { .ov-share-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } } |
| 324 | |
| 325 | /* ── Transfer ───────────────────────────────────────────────────────────────────────────────────────────────── */ |
| 326 | .ov-share-give { display: grid; gap: 10px; margin: 0; } |
| 327 | .ov-share-give .ov-share-label { margin: 6px 0 0; } |
| 328 | .ov-share-keep { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; border: 0; min-width: 0; } |
| 329 | .ov-share-radio { |
| 330 | display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--ovs-line); border-radius: 12px; cursor: pointer; |
| 331 | transition: border-color .14s ease, background-color .14s ease; |
| 332 | } |
| 333 | .ov-share-radio:has(input:checked) { border-color: var(--ovs-accent); background: color-mix(in srgb, var(--ovs-accent) 7%, transparent); } |
| 334 | .ov-share-radio:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ovs-accent) 35%, transparent); } |
| 335 | .ov-share-radio input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ovs-accent); } |
| 336 | .ov-share-radiowords { display: grid; gap: 2px; min-width: 0; } |
| 337 | .ov-share-radiotitle { font-weight: 650; } |
| 338 | |
| 339 | /* ── Banners: the owner's pending offer, the recipient's offer ─────────────────────────────────────────────── */ |
| 340 | .ov-share-banner { |
| 341 | display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 12px; |
| 342 | background: color-mix(in srgb, var(--accent, #3b82f6) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #3b82f6) 28%, transparent); |
| 343 | } |
| 344 | .ov-share-banner > .ov-share-ico { color: var(--ovs-accent); } |
| 345 | .ov-share-banner > p { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 13.5px; } |
| 346 | .ov-share-banner > .ov-share-error { flex-basis: 100%; } |
| 347 | .ov-share-banner.is-offer { margin: 0 0 16px; } |
| 348 | .ov-share-acts { display: flex; flex-wrap: wrap; gap: 8px; } |
| 349 | |
| 350 | /* ── The gate: a person who is not on the list ─────────────────────────────────────────────────────────────── */ |
| 351 | .ov-share-gate { |
| 352 | display: grid; justify-items: center; gap: 12px; max-width: 440px; margin: 48px auto; padding: 32px 24px; text-align: center; |
| 353 | background: var(--ovs-surface); border: 1px solid var(--ovs-line); border-radius: var(--ov-radius-3, 20px); |
| 354 | } |
| 355 | .ov-share-gatetitle { margin: 4px 0 0; font-size: 19px; font-weight: 700; line-height: 1.3; text-wrap: balance; } |
| 356 | .ov-share-gate .ov-share-acts { justify-content: center; margin-top: 4px; } |
| 357 | .ov-share-gate .ov-share-muted { font-size: 14px; max-width: 34ch; } |
| 358 | |
| 359 | .ov-share-copybuf { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; } |
| 360 | |
| 361 | @media (forced-colors: active) { |
| 362 | .ov-share { border: 1px solid CanvasText; } |
| 363 | .ov-share-segopt:has(input:checked), .ov-share-radio:has(input:checked) { outline: 2px solid Highlight; } |
| 364 | } |
| 365 | /* OpenVibe’s own places (Chat, Community) wear the accent, so they read apart from the outside networks. */ |
| 366 | .ov-share-tileic.is-ovchat, .ov-share-tileic.is-ovcommunity { background: color-mix(in srgb, var(--ovs-accent) 16%, transparent); color: var(--ovs-accent); } |
| 367 |