archivo del paquete→ .shtukbase/packages/lenses-records/lens/lens.css
lens/lens.css
226 líneas, 6.9 KB.
El archivo tal como está en el paquete: el código y sus comentarios no se traducen.
- .lens-error {
- margin: 0;
- padding: 8px 16px;
- color: var(--lx-muted);
- }
- /* Laid out as the desktop app's collection views (engine/gui guide: collections-table, collections-board,
- collections-task-open): 14px text in ink, rows 34px with hairline grid lines, no header fill; board columns
- faintly tinted by their status hue, white cards with a ring shadow; a record with a big bold title and a quiet
- list of properties. Kit variables only. */
- .table-scroll {
- height: 100%;
- overflow: auto;
- overflow-anchor: none;
- padding: 16px 32px 48px;
- box-sizing: border-box;
- }
- .records-table {
- width: 0;
- table-layout: fixed;
- border-collapse: separate;
- border-spacing: 0;
- font-size: 14px;
- }
- .records-table th,
- .records-table td {
- height: 34px;
- padding: 0 8px;
- border-bottom: 1px solid var(--line);
- border-inline-end: 1px solid var(--line);
- text-align: start;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .records-table th:last-child,
- .records-table td:last-child { border-inline-end: 0; }
- .records-table th {
- position: sticky;
- top: 0;
- z-index: 1;
- width: 200px;
- height: 34px;
- background: var(--bg);
- color: var(--lx-muted);
- font-weight: 400;
- border-inline-end-color: transparent;
- }
- /* the name column's kind mark, as the desktop header's "Aa" */
- .records-table th:first-child::before {
- content: "Aa";
- margin-inline-end: 8px;
- font-size: 12px;
- color: var(--faint);
- }
- .records-table th:first-child { width: 260px; }
- .records-table td { color: var(--ink); }
- .records-table tr:hover td { background: var(--wash); }
- .records-table .lx-chip { font-size: 14px; height: 22px; line-height: 22px; }
- .record-title {
- display: block;
- max-width: 100%;
- padding: 0;
- border: 0;
- background: none;
- color: var(--ink);
- font: inherit;
- font-weight: 400;
- text-align: start;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- cursor: pointer;
- }
- .record-title:hover { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
- .record-title:focus-visible { outline-offset: -1px; }
- .records-board {
- grid-auto-columns: 276px;
- gap: 12px;
- padding: 16px 32px 48px;
- margin-inline: 0;
- }
- .records-board .lx-col {
- padding: 6px 6px 8px;
- border: 0;
- border-radius: var(--radius-lg);
- background: var(--ct-default);
- gap: 8px;
- }
- /* columns tinted by their status hue; written with "> *" (the columns are the board's children) */
- .records-board > *:has(> .ch .hue-gray) { background: var(--ct-gray); }
- .records-board > *:has(> .ch .hue-brown) { background: var(--ct-brown); }
- .records-board > *:has(> .ch .hue-orange) { background: var(--ct-orange); }
- .records-board > *:has(> .ch .hue-yellow) { background: var(--ct-yellow); }
- .records-board > *:has(> .ch .hue-green) { background: var(--ct-green); }
- .records-board > *:has(> .ch .hue-blue) { background: var(--ct-blue); }
- .records-board > *:has(> .ch .hue-purple) { background: var(--ct-purple); }
- .records-board > *:has(> .ch .hue-pink) { background: var(--ct-pink); }
- .records-board > *:has(> .ch .hue-red) { background: var(--ct-red); }
- .records-board > *:has(> .ch .hue-teal) { background: var(--ct-teal); }
- .records-board .lx-col > .ch {
- min-height: 30px;
- margin: 0;
- padding: 2px 0 2px 0;
- gap: 8px;
- font-weight: 400;
- font-size: 14px;
- cursor: inherit;
- }
- .records-board .lx-col > .ch .lx-chip { font-size: 14px; height: 22px; line-height: 22px; }
- .records-board .lx-col > .ch .n { margin-left: 0; color: var(--faint); font-size: 13px; }
- .records-board .lx-col > .ch:hover { background: none; }
- .records-board .lx-card {
- display: block;
- width: 100%;
- padding: 10px;
- border: 0;
- border-radius: 8px;
- font: inherit;
- text-align: start;
- }
- .records-board .lx-card .ttl { font-size: 14px; font-weight: 400; line-height: 1.45; }
- .records-board .lx-col .lx-card:hover { background: var(--card-hover, var(--bg2)); }
- /* the values under a card's title: inline, as the desktop card (a chip, then a date), without their labels */
- .card-values {
- display: flex;
- flex-wrap: wrap;
- gap: 6px 12px;
- margin-top: 8px;
- align-items: center;
- font-size: 13px;
- color: var(--lx-muted);
- }
- .card-values > span:nth-child(odd) { display: none; }
- .card-values > span {
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .card-values .lx-chip { font-size: 13px; }
- .record-page {
- max-width: 900px;
- margin: 0 auto;
- padding: 64px 48px 64px;
- font-size: 15px;
- overflow-wrap: anywhere;
- }
- .record-page h1 {
- margin: 0 0 16px;
- font-size: 40px;
- line-height: 1.2;
- font-weight: 700;
- letter-spacing: -0.01em;
- }
- .record-fields {
- display: grid;
- grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
- margin: 0 0 24px;
- padding-bottom: 12px;
- border-bottom: 1px solid var(--line);
- font-size: 14px;
- }
- .record-fields dt,
- .record-fields dd {
- min-height: 34px;
- margin: 0;
- padding: 6px 8px;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- border-radius: var(--lx-radius);
- }
- .record-fields dt { color: var(--lx-muted); padding-left: 0; }
- .record-fields dd { color: var(--ink); }
- .record-fields dd:hover { background: var(--wash); }
- .record-fields .lx-chip { font-size: 14px; height: 22px; line-height: 22px; }
- .record-body { white-space: pre-wrap; line-height: 1.6; }
- .lx-chip.dot.hue-default { background: var(--cb-default); color: var(--cf-default); }
- .lx-chip.dot.hue-gray { background: var(--cb-gray); color: var(--cf-gray); }
- .lx-chip.dot.hue-brown { background: var(--cb-brown); color: var(--cf-brown); }
- .lx-chip.dot.hue-orange { background: var(--cb-orange); color: var(--cf-orange); }
- .lx-chip.dot.hue-yellow { background: var(--cb-yellow); color: var(--cf-yellow); }
- .lx-chip.dot.hue-green { background: var(--cb-green); color: var(--cf-green); }
- .lx-chip.dot.hue-blue { background: var(--cb-blue); color: var(--cf-blue); }
- .lx-chip.dot.hue-purple { background: var(--cb-purple); color: var(--cf-purple); }
- .lx-chip.dot.hue-pink { background: var(--cb-pink); color: var(--cf-pink); }
- .lx-chip.dot.hue-red { background: var(--cb-red); color: var(--cf-red); }
- .lx-chip.dot.hue-teal { background: var(--cb-teal); color: var(--cf-teal); }
- .lx-chip.dot.hue-default::before { background: var(--c-default, var(--cf-default)); }
- .lx-chip.dot.hue-gray::before { background: var(--c-gray, var(--cf-gray)); }
- .lx-chip.dot.hue-brown::before { background: var(--c-brown, var(--cf-brown)); }
- .lx-chip.dot.hue-orange::before { background: var(--c-orange, var(--cf-orange)); }
- .lx-chip.dot.hue-yellow::before { background: var(--c-yellow, var(--cf-yellow)); }
- .lx-chip.dot.hue-green::before { background: var(--c-green, var(--cf-green)); }
- .lx-chip.dot.hue-blue::before { background: var(--c-blue, var(--cf-blue)); }
- .lx-chip.dot.hue-purple::before { background: var(--c-purple, var(--cf-purple)); }
- .lx-chip.dot.hue-pink::before { background: var(--c-pink, var(--cf-pink)); }
- .lx-chip.dot.hue-red::before { background: var(--c-red, var(--cf-red)); }
- .lx-chip.dot.hue-teal::before { background: var(--c-teal, var(--cf-teal)); }