Files
co-lite/solvway-admin-portal/app/components/genealogy/org-chart.css
T
ngqileandClaude Opus 5.5 5ee51d1913 chore: copy kept Tastefully modules and portals into Co-Lite
Backend modules from tastefully 8bd93d15: core-libs, core-session,
api-gateway, mobile-api, services-auth, services-system,
services-counter, services-member, services-log, services-email.
solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal
from tastefully 8bd93d15. Copied as tracked files only.

Literal secrets replaced with environment placeholders:
- services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY,
  MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default)
- services-system: JUMIO_TOKEN, JUMIO_SECRET (optional)
- services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed
- core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default
  removed, ipgeolocation key read from IPGEOLOCATION_API_KEY
- services-system EkycAppConfig: commented Jumio credentials removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-11-26 15:55:45 +08:00

114 lines
2.7 KiB
CSS

/*
* Connector lines for the org-chart view, drawn with ::before/::after borders on
* nested lists. Technique adapted from the CoLink kit's org-chart; colours use
* --border here instead of hardcoded slate values, so it re-skins with the theme
* and works in both modes without a .dark override.
*
* Kept as a real stylesheet rather than an injected <style> tag so it is part of
* the build and honours the token layer.
*/
/* Pan affordance on the scrollable viewport itself — background drag (see
* OrgChart's pointer handlers in org-chart.tsx) is otherwise invisible until
* the user tries it. :active approximates "actively dragging" without any JS
* state: it's set the instant the pointer is pressed down anywhere in the
* viewport, including on an interactive node (link/button), which is an
* acceptable, purely-visual over-approximation — those clicks are quick and
* the pan gesture itself is only armed once movement clears the threshold.
*/
.org-tree {
cursor: grab;
}
.org-tree:active {
cursor: grabbing;
}
.org-tree ul {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
position: relative;
padding-top: 20px;
list-style: none;
margin: 0;
}
.org-tree li {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
padding: 20px 8px 0;
list-style: none;
}
/* Horizontal run to each child, plus the drop into it. */
.org-tree li::before,
.org-tree li::after {
content: '';
position: absolute;
top: 0;
right: 50%;
width: 50%;
height: 20px;
border-top: 2px solid var(--border);
}
.org-tree li::after {
right: auto;
left: 50%;
border-left: 2px solid var(--border);
}
/* An only child needs no horizontal run — just a straight vertical drop. It keeps
the same padding-top as multi-child rows so a single-child branch does not ride
up and misalign its node with same-depth cousins under wider siblings. */
.org-tree li:only-child::after {
display: none;
}
.org-tree li:only-child::before {
right: auto;
left: 50%;
width: 0;
border-top: 0;
border-left: 2px solid var(--border);
border-radius: 0;
}
/* Trim the outer half-runs at each end of a sibling row. */
.org-tree li:first-child::before,
.org-tree li:last-child::after {
border: 0 none;
}
.org-tree li:last-child::before {
border-right: 2px solid var(--border);
border-radius: 0 4px 0 0;
}
.org-tree li:first-child::after {
border-radius: 4px 0 0 0;
}
/* Stem descending from a parent to its children's row. */
.org-tree ul::before {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 0;
height: 20px;
border-left: 2px solid var(--border);
}
/* The root has no parent, so no incoming stem. */
.org-tree > ul {
padding-top: 0;
}
.org-tree > ul::before {
display: none;
}