Fix styling for badges
This commit is contained in:
1 parent
2fa0b67943
commit
134d610a5d
2 files changed
+21
-13
No files matched your search
@@ -107,12 +107,13 @@ function MeetingCard({ meeting, user, onChanged }) {
|
||||
return (
|
||||
<div className="meeting-card">
|
||||
<div className="meeting-head">
|
||||
{/* Title and badges are grouped so the badges stay right next to the
|
||||
title instead of being pushed to the far edge. */}
|
||||
{/* Title and badges are grouped so they stay right next to the title
|
||||
instead of being pushed to the far edge. */}
|
||||
<div className="meeting-title">
|
||||
<h3>{meeting.title}</h3>
|
||||
{isAuthor && <span className="badge">your meeting</span>}
|
||||
{/* Brief, colour-coded reminder of the viewer's own vote. */}
|
||||
{/* Brief reminder of the viewer's own vote, styled like the badges on
|
||||
the sessions page and coloured by the vote. */}
|
||||
{meeting.myVote && (
|
||||
<span className={`badge ${meeting.myVote}`}>
|
||||
{meeting.myVote === 'join' ? 'will join' : 'will skip'}
|
||||
|
||||
+17
-10
@@ -2,6 +2,7 @@
|
||||
--bg: #0f1419;
|
||||
--surface: #1a2129;
|
||||
--surface-2: #232c36;
|
||||
--surface-3: #2c3743;
|
||||
--border: #2e3a46;
|
||||
--text: #e6edf3;
|
||||
--muted: #8b98a5;
|
||||
@@ -367,15 +368,6 @@ label.checkbox {
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
/* Vote badges in the meeting title, coloured like the join / decline tallies. */
|
||||
.badge.join {
|
||||
color: var(--ok);
|
||||
}
|
||||
|
||||
.badge.decline {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
@@ -585,7 +577,22 @@ textarea:focus {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* The wrapping gap already spaces the badges, so drop their own margin. */
|
||||
/* The default badge shares its background with the meeting card, so nudge it
|
||||
one step lighter (matching the badge/card contrast on the sessions page). */
|
||||
.meeting-card .badge {
|
||||
background: var(--surface-3);
|
||||
}
|
||||
|
||||
/* The vote badge is coloured by the vote: green to join, red to skip. */
|
||||
.meeting-card .badge.join {
|
||||
color: var(--ok);
|
||||
}
|
||||
|
||||
.meeting-card .badge.decline {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
/* The title wrapper's gap already spaces the badges. */
|
||||
.meeting-title .badge {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user