Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

11.2 KB
Raw Blame
/* ── Rich link previews in blog posts ────────────────────────────────── */
.mj-embed { margin: 2em auto; max-width: 100%; }
.mj-embed figcaption { margin-top: 10px; font-size: 0.84rem; text-align: center; }
.mj-embed figcaption a { color: var(--mj-dim, inherit) !important; text-decoration: none !important; }
.mj-embed figcaption a:hover { color: var(--mj-ink, inherit) !important; }
.mj-embed-live { display: flex; justify-content: center; }
.mj-embed-live > * { margin: 0 auto !important; }
.mj-embed-staging { height: 0; overflow: hidden; visibility: hidden; }
.mj-embed blockquote { border: 0; margin: 0 auto; padding: 0; font-family: inherit; font-size: 1rem; line-height: 1.5; color: inherit; background: none; }
.mj-embed iframe { border: 0; display: block; width: 100%; }

.mj-ecard {
  display: block; color: var(--mj-body, inherit) !important; text-decoration: none !important;
  border: 1px solid var(--mj-line); border-radius: 16px; background: var(--ifm-background-color);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.mj-ecard:hover { border-color: color-mix(in srgb, var(--mj-ink) 35%, transparent); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }

/* social posts (static card before the widget loads) */
.mj-social { max-width: 550px; margin: 0 auto; padding: 18px 20px 16px; }
.mj-social header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mj-social-who { display: flex; flex-direction: column; line-height: 1.25; }
.mj-social-who strong { color: var(--mj-ink); font-size: 0.98rem; }
.mj-social-who span { color: var(--mj-dim); font-size: 0.88rem; }
.mj-social-text { margin: 0 0 12px !important; font-size: 1.02rem; line-height: 1.5; white-space: pre-line; color: var(--mj-ink); }
.mj-social-text.is-dim { color: var(--mj-dim); }
.mj-social footer { font-size: 0.84rem; color: var(--mj-dim); }
.mj-brand { display: inline-flex; width: 22px; height: 22px; flex: none; }
.mj-brand svg { width: 100%; height: 100%; }
.mj-brand--x { color: var(--mj-ink); }
.mj-brand--bsky { color: #1185fe; }
.mj-brand--ig { color: #e1306c; }

/* video facades */
.mj-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--mj-line); }
.mj-video.is-vertical { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.mj-video iframe { position: absolute; inset: 0; height: 100%; }
.mj-video button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.mj-video button img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; opacity: 0.92; transition: opacity 160ms ease; }
.mj-video button:hover img { opacity: 1; }
.mj-video-title {
  position: absolute; left: 0; right: 0; top: 0; padding: 16px 18px 40px; text-align: left;
  color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.35;
  background: linear-gradient(rgba(0, 0, 0, 0.7), transparent);
}
.mj-video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); transition: transform 160ms ease; }
.mj-video-play svg { width: 100%; height: 100%; }
.mj-video button:hover .mj-video-play { transform: translate(-50%, -50%) scale(1.08); }
.mj-embed--vimeo .mj-video-play, .mj-embed--loom .mj-video-play { width: 64px; height: 64px; }

.mj-spotify { border-radius: 14px; }
.mj-codepen { height: 440px; border-radius: 14px; border: 1px solid var(--mj-line) !important; }
.mj-mastodon { min-height: 320px; max-width: 550px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--mj-line) !important; }

/* GitHub: follows GitHub's own palette so it reads as native */
.mj-gh {
  --gh-fg: #1f2328; --gh-dim: #59636e; --gh-line: #d1d9e0; --gh-bg: #ffffff; --gh-subtle: #f6f8fa;
  --gh-open: #1a7f37; --gh-merged: #8250df; --gh-closed: #cf222e; --gh-draft: #59636e; --gh-accent: #0969da;
  padding: 16px 18px; background: var(--gh-bg); border-color: var(--gh-line); color: var(--gh-fg) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5;
}
[data-theme='dark'] .mj-gh {
  --gh-fg: #f0f6fc; --gh-dim: #9198a1; --gh-line: #3d444d; --gh-bg: #0d1117; --gh-subtle: #151b23;
  --gh-open: #3fb950; --gh-merged: #ab7df8; --gh-closed: #f85149; --gh-draft: #9198a1; --gh-accent: #4493f8;
}
.mj-gh svg { width: 16px; height: 16px; flex: none; }
.mj-gh-mark { display: inline-flex; color: var(--gh-fg); }
.mj-gh-repo { display: flex; align-items: center; gap: 8px; color: var(--gh-dim); font-size: 13px; }
.mj-gh-repo.is-big { font-size: 17px; color: var(--gh-accent); gap: 0; }
.mj-gh-repo.is-big .mj-gh-mark { margin-right: 10px; }
.mj-gh-repo.is-big b { font-weight: 600; }
.mj-gh-num { color: var(--gh-dim); }
.mj-gh-dim { color: var(--gh-dim); font-weight: 400; }
.mj-gh-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.mj-gh-title { font-size: 16px; font-weight: 600; color: var(--gh-fg); }
.mj-gh-state { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 500; }
.mj-gh-state.is-open { background: var(--gh-open); }
.mj-gh-state.is-merged { background: var(--gh-merged); }
.mj-gh-state.is-closed { background: var(--gh-closed); }
.mj-gh-state.is-draft, .mj-gh-state.is-not-planned { background: var(--gh-draft); }
.mj-gh-state.is-release { background: transparent; color: var(--gh-open); border: 1px solid var(--gh-open); }
.mj-gh-pill { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid #bf8700; color: #bf8700; }
.mj-gh-desc { margin: 8px 0 0 !important; color: var(--gh-dim); font-size: 14px; line-height: 1.5; }
.mj-gh-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mj-gh-labels span {
  font-size: 12px; font-weight: 500; padding: 0 9px; line-height: 20px; border-radius: 999px;
  color: color-mix(in srgb, var(--l) 70%, var(--gh-fg)); background: color-mix(in srgb, var(--l) 18%, transparent); border: 1px solid color-mix(in srgb, var(--l) 40%, transparent);
}
.mj-gh-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mj-gh-topics span { font-size: 12px; font-weight: 500; padding: 0 10px; line-height: 22px; border-radius: 999px; color: var(--gh-accent); background: color-mix(in srgb, var(--gh-accent) 12%, transparent); }
.mj-gh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; color: var(--gh-dim); font-size: 12.5px; }
.mj-gh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mj-gh-meta b { color: var(--gh-fg); font-weight: 600; }
.mj-gh-meta i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.mj-gh-meta img { border-radius: 50%; margin-right: -10px; }
.mj-gh-diff ins { color: var(--gh-open); text-decoration: none; font-weight: 600; }
.mj-gh-diff del { color: var(--gh-closed); text-decoration: none; font-weight: 600; }
.mj-gh-repo-card { display: flex; gap: 18px; align-items: flex-start; }
.mj-gh-body { flex: 1; min-width: 0; }
.mj-gh-owner { flex: none; border-radius: 12px !important; }
.mj-gh-user { display: flex; gap: 16px; align-items: center; }
.mj-gh-user > img { border-radius: 50% !important; flex: none; }
.mj-gh-user > img.is-org { border-radius: 12px !important; }
.mj-gh-user .mj-gh-title-row { margin-top: 0; gap: 8px; }
.mj-gh-gist pre { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--gh-subtle) !important; border: 1px solid var(--gh-line); font-size: 12.5px; line-height: 1.55; max-height: 280px; overflow: hidden; color: var(--gh-fg); }
.mj-gh-gist pre code { padding: 0 !important; border: 0 !important; background: none !important; font-size: inherit; color: inherit; }

/* generic link preview (Open Graph) */
.mj-link { display: flex; overflow: hidden; min-height: 132px; }
.mj-link-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.mj-link-site { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--mj-dim); }
.mj-link-site img { border-radius: 4px !important; }
.mj-link-site .mj-gh-mark svg { width: 16px; height: 16px; }
.mj-link strong { color: var(--mj-ink); font-size: 1.02rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mj-link p { margin: 0 !important; font-size: 0.9rem; line-height: 1.5; color: var(--mj-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mj-link-host { margin-top: auto; padding-top: 6px; font-size: 0.78rem; color: var(--mj-dim); }
.mj-link-img { flex: none; width: 34%; max-width: 260px; object-fit: cover; border-radius: 0 !important; border-left: 1px solid var(--mj-line); }
.mj-link.is-wide { flex-direction: column-reverse; }
.mj-link.is-wide .mj-link-img { width: 100%; max-width: none; aspect-ratio: 2 / 1; border-left: 0; border-bottom: 1px solid var(--mj-line); }

@media (max-width: 640px) {
  .mj-link { flex-direction: column-reverse; }
  .mj-link-img { width: 100%; max-width: none; aspect-ratio: 1.91 / 1; border-left: 0; border-bottom: 1px solid var(--mj-line); }
  .mj-gh-owner { display: none; }
}

/* GitHub code permalink: real lines at a pinned commit */
.mj-gh-code { margin: 2em 0; }
.mj-gh-code-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px;
  border: 1px solid var(--gh-line); border-bottom: 0; border-radius: 14px 14px 0 0; font-size: 13px;
}
.mj-gh-code-repo { color: var(--gh-fg) !important; font-weight: 600; text-decoration: none !important; }
.mj-gh-ref { font-family: var(--ifm-font-family-monospace); font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--gh-subtle); border: 1px solid var(--gh-line); color: var(--gh-dim); }
.mj-gh-ref.is-sha { color: var(--gh-accent); }
.mj-gh-code-link { margin-left: auto; color: var(--gh-accent) !important; text-decoration: none !important; font-size: 12.5px; }
.mj-gh-code .theme-code-block { margin: 0 !important; border-radius: 0 0 14px 14px !important; }
.mj-gh-code-foot { margin-top: 8px; font-size: 0.8rem; color: var(--mj-dim); text-align: left; }
.mj-gh-code-foot code { font-size: 0.92em; }
.mj-gh-commit-title { display: block; margin-top: 8px; }
.mj-gh-files { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--gh-line); display: grid; gap: 6px; }
.mj-gh-files li { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: 12px; font-size: 12.5px; }
.mj-gh-files code { padding: 0 !important; border: 0 !important; background: none !important; color: var(--gh-fg) !important; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mj-gh-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--gh-subtle); }
.mj-gh-bar i { display: block; height: 100%; }
.mj-gh-bar .is-add { background: var(--gh-open); }
.mj-gh-bar .is-del { background: var(--gh-closed); }
@media (max-width: 640px) {
  .mj-gh-code-link { margin-left: 0; flex-basis: 100%; }
  .mj-gh-files li { grid-template-columns: minmax(0, 1fr) auto; }
  .mj-gh-bar { display: none; }
}