Files
vitareba/components/shared/NotificationBell.module.css
GandClaude Opus 5 3e059f0818 chore: add a formatter (#83)
* chore: add a formatter, matching the style this repo already writes

singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (304 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format the two files the reformat pass missed

prettier --check flagged app/shared.module.css and lib/domain/clinicians.test.ts
on a branch whose whole point was that everything had been formatted. Re-running
the same command with the same version fixes both, so the rollout's write step
did not finish what it reported.

The rollout now runs --check straight after --write and refuses to open a PR
unless it comes back clean, so a partial reformat fails at the source instead of
in CI.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 10:48:01 +00:00

169 lines
2.7 KiB
CSS

.root {
position: relative;
}
.trigger {
position: relative;
width: 2.1rem;
height: 2.1rem;
border-radius: var(--radius-full);
background: transparent;
color: var(--ink2);
border: 2px solid transparent;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition:
background var(--transition-fast),
color var(--transition-fast);
}
.trigger:hover,
.trigger:focus-visible {
background: var(--off);
color: var(--ink);
outline: none;
}
.trigger[aria-expanded="true"] {
border-color: var(--teal);
}
.badge {
position: absolute;
top: 0;
right: 0;
min-width: 1.05rem;
height: 1.05rem;
padding: 0 0.25rem;
border-radius: var(--radius-full);
background: var(--danger);
color: var(--white);
font-size: 0.62rem;
font-weight: 600;
line-height: 1.05rem;
text-align: center;
}
.dropdown {
position: absolute;
top: calc(100% + 0.5rem);
right: 0;
width: 320px;
max-width: 90vw;
background: var(--white);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-md);
z-index: var(--z-dropdown);
overflow: hidden;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--border);
}
.headerTitle {
font-size: 0.78rem;
font-weight: 500;
letter-spacing: 0.03em;
text-transform: uppercase;
color: var(--ink);
margin: 0;
}
.markAllBtn {
background: none;
border: none;
color: var(--teal);
font-size: 0.72rem;
cursor: pointer;
padding: 0;
}
.markAllBtn:hover,
.markAllBtn:focus-visible {
color: var(--teal-dark);
outline: none;
}
.stateMsg {
padding: 1.5rem 1rem;
text-align: center;
font-size: 0.8rem;
color: var(--muted);
margin: 0;
}
.list {
list-style: none;
margin: 0;
padding: 0.3rem 0;
max-height: 360px;
overflow-y: auto;
}
.row {
display: flex;
align-items: flex-start;
gap: 0.6rem;
width: 100%;
padding: 0.55rem 1rem;
text-align: left;
text-decoration: none;
background: none;
border: none;
cursor: pointer;
transition: background var(--transition-fast);
}
.row:hover,
.row:focus-visible {
background: var(--off);
outline: none;
}
.rowDot {
flex-shrink: 0;
width: 0.45rem;
height: 0.45rem;
margin-top: 0.35rem;
border-radius: var(--radius-full);
background: transparent;
}
.rowDot[data-unread="true"] {
background: var(--teal);
}
.rowBody {
display: flex;
flex-direction: column;
gap: 0.1rem;
min-width: 0;
}
.rowTitle {
font-size: 0.82rem;
color: var(--ink);
line-height: 1.35;
}
.rowMeta {
font-size: 0.75rem;
color: var(--muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rowTime {
font-size: 0.68rem;
color: var(--faint);
}