Skip to content

The Open Standard for Generative UI

3.7 KB
Raw Blame
.card {
  position: relative;
  display: block;
  padding: 0.875rem 1rem 1rem;
  border: 1px solid var(--home-hairline);
  border-radius: 12px;
  background: var(--openui-foreground);
  /* Local override of --home-shadow-card: wider and much softer than the shared
     card shadow, so the wall reads as floating cards rather than outlined ones.
     Kept here because three other sections still want the tighter shared one. */
  box-shadow:
    0 2px 6px rgba(22, 34, 51, 0.03),
    0 10px 28px rgba(22, 34, 51, 0.045);
  color: var(--openui-text-neutral-primary);
  font-family: var(--home-font-text);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

[data-theme="dark"] .card {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.card:hover {
  box-shadow: var(--home-card-lift);
}

.header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--home-hairline);
}

.identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.nameText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  flex-shrink: 0;
}

.handle {
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--openui-text-neutral-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xlogo {
  display: inline-flex;
  margin-left: auto;
  align-self: flex-start;
  color: var(--openui-text-neutral-primary);
}

.text {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.link {
  color: #1d9bf0;
}

.media {
  position: relative;
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--home-hairline);
  border-radius: 14px;
}

.media img {
  display: block;
  width: 100%;
  height: auto;
}

.playButton {
  position: absolute;
  inset: 0;
  display: flex;
  width: 3.25rem;
  height: 3.25rem;
  margin: auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding-left: 0.15rem;
}

.date {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--openui-text-neutral-secondary);
}

/* Covers the whole card so a click anywhere opens the tweet; the footer controls
   sit above it (z-index) so they handle their own clicks. */
.stretchedLink {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--home-hairline);
}

.stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--openui-text-neutral-secondary);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.statLike svg {
  color: #f91880;
}

.statReply svg {
  color: #1d9bf0;
}

.copyBtn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--openui-text-neutral-secondary);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.copyBtn:hover {
  color: #1d9bf0;
}

.cta {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.5rem;
  border: 1px solid var(--home-hairline);
  border-radius: 999px;
  color: #1d9bf0;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cta:hover {
  background: rgba(29, 155, 240, 0.08);
}