Flat
Join

Code

GPL v3 or later · 54 files · 1.2 MB

Read me What changed Versions and downloads

top / src / renderer

src/renderer/style.css · 31.4 KB · raw

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 /* Flat. Plain CSS, one self-hosted font, no framework, nothing fetched from anywhere. Dark only: this is a desktop tool that sits open next to a terminal, and a light flash on launch is worse than no choice. */ @font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Variable.woff2') format('woff2-variations'); font-weight: 200 800; font-style: normal; font-display: swap; } :root { color-scheme: dark; --bg: #09090b; --fg: #fafafa; --panel: #1b1d29; --panel-border: rgba(255, 255, 255, .09); --border: #27272a; --muted: #1c1c1f; --muted-fg: #a1a1aa; --shadow-panel: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -16px rgba(0, 0, 0, .6); --accent: #fbc711; --accent-hover: #ddaf0f; --on-accent: #645007; --accent-container: #4b3c05; --on-accent-container: #fde694; --brand-yellow: #fbc711; --brand-navy: #111827; --danger: #f34236; --danger-bg: #350f0c; --success: #4bae4f; --success-bg: #102611; --warning: #ffc006; --warning-bg: #382a01; --info: #2295f1; --info-bg: #072135; --update-green: #4bae4f; --update-amber: #ffc006; --update-blue: #2295f1; --update-red: #f34236; --radius: 0.875rem; --panel-radius: 1.375rem; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; /* The window itself never scrolls. Long lists scroll inside their panel. */ overflow: hidden; } body { background: var(--bg); color: var(--fg); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; user-select: none; } code { font-family: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', monospace; font-size: 0.875em; background: var(--muted); border-radius: 0.375rem; padding: 0.05em 0.35em; } .hint { font-size: 0.8125rem; color: var(--muted-fg); margin: 0; } /* The desktop convention: the ordinary arrow over buttons, boxes and switches, and the pointing hand only for a link that opens a website. */ button, input, label, summary, select { cursor: default; } a[href^="http"] { cursor: pointer; } /* --------------------------------------------------------------------- */ /* Shell */ /* --------------------------------------------------------------------- */ .shell { height: 100%; display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.25rem 1.25rem; } .topbar { display: flex; align-items: center; gap: 1.25rem; flex: none; } .brand { display: flex; align-items: center; gap: 0.625rem; } .brand-mark { width: 30px; height: 30px; flex: none; } /* Identity, not accent: the mark keeps the brand pair whatever accent the rest of the window is using. */ .brand-ground { fill: var(--brand-yellow); } .brand-line { fill: none; stroke: var(--brand-navy); stroke-width: 27; stroke-linecap: round; stroke-linejoin: round; } .brand h1 { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; } .tabs { display: flex; gap: 0.25rem; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.25rem; } .tab { font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted-fg); background: none; border: none; border-radius: calc(var(--radius) - 0.25rem); padding: 0.4rem 1rem; cursor: default; } .tab:hover { color: var(--fg); } .tab.is-on { background: var(--accent); color: var(--on-accent); } .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .header-tools { margin-left: auto; display: flex; align-items: center; gap: 0.875rem; } /* --------------------------------------------------------------------- */ /* Panels */ /* --------------------------------------------------------------------- */ .panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--panel-radius); box-shadow: var(--shadow-panel); padding: 1.25rem 1.5rem 1.25rem; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0.875rem; } .panel[hidden] { display: none; } .panel-head { margin: 0; font-size: 1.0625rem; font-weight: 600; } .panel-head-row { display: flex; align-items: center; gap: 1rem; flex: none; flex-wrap: wrap; } .head-tools { margin-left: auto; display: flex; align-items: center; gap: 1rem; } .head-tools[hidden] { display: none; } .filter { font: inherit; font-size: 0.875rem; color: var(--fg); background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.4rem 0.75rem; width: 14rem; user-select: text; } .filter::placeholder { color: var(--muted-fg); } .filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* The i. The standing explanation of the screen lives behind it, shut by default; anything needed before pressing something stays on the page. */ .eye > summary { list-style: none; display: inline-flex; cursor: default; } .eye > summary::-webkit-details-marker { display: none; } .eye--head > summary { display: flex; align-items: center; gap: 0.625rem; border: 0; background: none; padding: 0; } .eye-btn { width: 1.375rem; height: 1.375rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; font-size: 0.75rem; font-weight: 700; font-style: italic; color: var(--muted-fg); flex: none; } .eye--head > summary:hover > .eye-btn { color: var(--fg); border-color: var(--muted-fg); } .eye--head[open] > summary > .eye-btn { background: var(--accent-container); border-color: var(--accent-container); color: var(--on-accent-container); } .eye--head > summary:focus-visible > .eye-btn { outline: 2px solid var(--accent); outline-offset: 2px; } .eye-body { flex: none; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1rem; max-width: 78ch; user-select: text; } .eye-body[hidden] { display: none; } .eye-body p { margin: 0 0 0.625rem; font-size: 0.875rem; color: var(--muted-fg); } .eye-body p:last-child { margin-bottom: 0; } .eye-body strong { color: var(--fg); font-weight: 600; } /* --------------------------------------------------------------------- */ /* Alert */ /* --------------------------------------------------------------------- */ /* Tinted background and a leading mark. Never a coloured left edge. */ .alert { flex: none; display: flex; align-items: flex-start; gap: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.875rem; } .alert[hidden] { display: none; } .alert--warning { background: var(--warning-bg); border-color: rgba(255, 192, 6, .28); } .alert-mark { flex: none; width: 1.375rem; height: 1.375rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--warning); color: var(--brand-navy); font-weight: 800; font-size: 0.875rem; } .alert-body { min-width: 0; flex: 1 1 auto; } .alert-body p { margin: 0; font-size: 0.875rem; } .alert-body .hint { margin-top: 0.25rem; } .alert .btn { flex: none; align-self: center; } .alert-actions { flex: none; align-self: center; display: flex; gap: 0.5rem; } /* --------------------------------------------------------------------- */ /* Buttons */ /* --------------------------------------------------------------------- */ .btn { font: inherit; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius); padding: 0.5rem 1rem; cursor: default; border: 1px solid var(--border); background: var(--muted); color: var(--fg); white-space: normal; } .btn:hover { border-color: var(--muted-fg); } .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .btn[disabled] { opacity: .45; cursor: default; } .btn[disabled]:hover { border-color: var(--border); } .btn--quiet { font-size: 0.875rem; padding: 0.4rem 0.75rem; color: var(--muted-fg); } .btn--quiet:hover { color: var(--fg); } .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } /* Armed: the first click asks, it does not act. Three seconds and it stands back down on its own. No dialog, no toast — the button is the whole conversation. See the morphic-button standard. */ .btn.is-armed { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn.is-error { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); } /* --------------------------------------------------------------------- */ /* Switch and checkbox */ /* --------------------------------------------------------------------- */ .switch { display: inline-flex; align-items: center; gap: 0.625rem; cursor: default; min-height: 2.75rem; font-size: 0.875rem; } .switch input { position: absolute; opacity: 0; width: 0; height: 0; } .switch .track { flex: none; width: 2.75rem; height: 1.5rem; background: var(--border); border: 1px solid var(--panel-border); border-radius: 999px; position: relative; transition: background .15s ease; } .switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); transition: transform .15s ease; } .switch input:checked + .track { background: var(--accent); } .switch input:checked + .track::after { transform: translateX(1.25rem); } .switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; } @media (prefers-reduced-motion: reduce) { .switch .track, .switch .track::after { transition: none; } } input[type="checkbox"] { width: 1.125rem; height: 1.125rem; flex: none; accent-color: var(--accent); cursor: default; } /* --------------------------------------------------------------------- */ /* The app list */ /* --------------------------------------------------------------------- */ .list-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); } .list-scroll[hidden] { display: none; } /* The default Chromium scrollbar is a light grey slab that sits on the dark list like a strip of tape. Thin and in the panel's own colours instead. */ .list-scroll::-webkit-scrollbar { width: 10px; } .list-scroll::-webkit-scrollbar-track { background: transparent; } .list-scroll::-webkit-scrollbar-thumb { background: var(--border); border: 3px solid var(--bg); border-radius: 999px; } .list-scroll::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted-fg) 45%, transparent); } .applist, .joblist { list-style: none; margin: 0; padding: 0; } .row { display: flex; align-items: center; gap: 0.875rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border); min-width: 0; cursor: default; } .row:last-child { border-bottom: none; } .row:hover { background: var(--muted); } .row[hidden] { display: none; } .row-icon { width: 30px; height: 30px; flex: none; border-radius: 0.5rem; object-fit: contain; background: var(--muted); } .row-icon--blank { display: inline-flex; align-items: center; justify-content: center; color: var(--muted-fg); font-weight: 700; font-size: 0.875rem; } .row-text { flex: 1 1 auto; min-width: 0; } .row-name { font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row-id { font-size: 0.75rem; color: var(--muted-fg); overflow-wrap: anywhere; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* One quiet tick beside a name. A fixed slot, so names line up whether it is there or not, and no fill, no pill, no capitals: a fact, not a badge. */ .quiet-tick { flex: none; width: 1rem; height: 1rem; display: inline-flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--success) 70%, var(--muted-fg)); } .quiet-tick svg { display: block; } .row-size { flex: none; min-width: 5.5rem; text-align: right; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--muted-fg); } .empty, .loading { margin: 0; padding: 2rem 1rem; text-align: center; color: var(--muted-fg); font-size: 0.875rem; } .empty[hidden], .loading[hidden] { display: none; } /* --------------------------------------------------------------------- */ /* The standing list: search, results, editable rows */ /* --------------------------------------------------------------------- */ .finder { flex: none; display: flex; align-items: center; gap: 0.75rem; } .filter--wide { width: auto; flex: 1 1 auto; min-width: 0; } .results { flex: none; list-style: none; margin: 0; padding: 0; max-height: 13rem; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); } .results[hidden] { display: none; } .results::-webkit-scrollbar { width: 10px; } .results::-webkit-scrollbar-track { background: transparent; } .results::-webkit-scrollbar-thumb { background: var(--border); border: 3px solid var(--bg); border-radius: 999px; } .result { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.875rem; border-bottom: 1px solid var(--border); cursor: default; min-width: 0; } .result:last-child { border-bottom: none; } .result:hover { background: var(--muted); } .result-text { min-width: 0; flex: 1 1 auto; } .result-name { font-size: 0.9375rem; font-weight: 600; } .result-sub { font-size: 0.75rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .result-add { flex: none; font-size: 0.8125rem; font-weight: 700; color: var(--accent); } .result[data-on="true"] .result-add { color: var(--muted-fg); } /* The backup the Keep settings apps will draw on. */ .source { flex: none; display: flex; align-items: center; gap: 0.75rem; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.375rem 0.5rem 0.375rem 0.875rem; min-width: 0; } .source-text { flex: 1 1 auto; min-width: 0; font-size: 0.8125rem; color: var(--muted-fg); overflow-wrap: anywhere; user-select: text; } .source-text strong { color: var(--fg); font-weight: 600; } .source .btn { flex: none; } /* Column names, and the tick that ticks them all. Sticky so it is still there halfway down sixty-seven rows. The widths match the cells below. */ .colhead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.875rem; background: var(--panel); border-bottom: 1px solid var(--border); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-fg); } .colhead-all { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; cursor: default; min-width: 4.25rem; } .colhead-name { flex: 1 1 40%; padding-left: 0.5rem; } .colhead-id { flex: 1 1 60%; padding-left: 0.5rem; } .colhead-remote { flex: none; width: 7rem; padding-left: 0.5rem; } .colhead-keep { flex: none; width: 6.5rem; text-align: center; } .colhead-size { flex: none; width: 5.5rem; text-align: right; padding-right: 0.5rem; } /* The Full heading is a way into the help, so it looks like a link but keeps the column's quiet capitals. */ .colhead-full { flex: none; width: 3rem; text-align: center; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted-fg); background: none; border: 0; padding: 0; cursor: default; text-decoration: underline dotted; text-underline-offset: 3px; } .colhead-full:hover { color: var(--fg); } .colhead-full:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .fullcell { flex: none; width: 3rem; display: flex; justify-content: center; } /* How much an app's settings take, so a heavy one can be left out on purpose. Right-aligned so the numbers line up. */ .cell--size { flex: none; width: 5.5rem; text-align: right; font-size: 0.8125rem; color: var(--muted-fg); font-variant-numeric: tabular-nums; padding-right: 0.5rem; } .cell--size.is-heavy { color: var(--warning); } .colhead-tail { flex: none; width: 1.75rem; } .colhead-here { flex: none; width: 1rem; } .editrow .tick { flex: none; min-width: 4.25rem; display: inline-flex; align-items: center; } /* No tint for a ticked row: everything starts ticked, and a whole list in a yellow wash reads as muddy, not as chosen. The tick box says it. */ /* The per-row setting is a switch, because it is an on/off setting. Its column header says what it does, and so does its accessible name. */ .keepcell { flex: none; width: 6.5rem; display: flex; justify-content: center; } .keepcell .switch { min-height: 2rem; } /* A quiet line, not a banner: worth reading once before pressing Restore, not worth shouting every time. */ .restore-note { flex: none; display: flex; align-items: baseline; gap: 0.5rem; margin: 0; padding: 0 0.25rem; font-size: 0.8125rem; color: var(--muted-fg); } .restore-note[hidden] { display: none; } .restore-note-mark { flex: none; color: var(--warning); font-weight: 800; } /* Said, not switched: an app with nothing saved has nothing to keep. */ .no-settings { font-size: 0.75rem; color: var(--muted-fg); white-space: nowrap; } .keepcell .switch .track { width: 2.25rem; height: 1.25rem; } .keepcell .switch .track::after { width: 0.875rem; height: 0.875rem; } .keepcell .switch input:checked + .track::after { transform: translateX(1rem); } /* An editable row. The inputs carry no box until the pointer is near them: twenty bordered fields in a column read as a form to fill in, and this is a list to glance down. */ .editrow { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.875rem; border-bottom: 1px solid var(--border); min-width: 0; } .editrow:last-child { border-bottom: none; } .editrow:hover { background: var(--muted); } .cell { font: inherit; color: var(--fg); background: transparent; border: 1px solid transparent; border-radius: 0.5rem; padding: 0.3rem 0.5rem; min-width: 0; user-select: text; } .cell:hover { border-color: var(--border); } .cell:focus { border-color: var(--accent); background: var(--bg); outline: none; } .cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .cell--name { flex: 1 1 40%; font-size: 0.9375rem; font-weight: 600; } .cell--id { flex: 1 1 60%; font-size: 0.8125rem; color: var(--muted-fg); } .cell--id:focus { color: var(--fg); } .cell--remote { flex: none; width: 7rem; font-size: 0.8125rem; color: var(--muted-fg); } .cell.is-bad { border-color: var(--danger); color: var(--danger); } /* Shown, not edited: no box on hover, and the text can be selected to copy. */ .cell--fixed { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-color: transparent; } .cell--fixed:hover { border-color: transparent; } /* Morphic gesture: resting is a quiet outline, hover fills, first click shows a tick and asks, second click inside three seconds removes the row. */ .drop { flex: none; width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 50%; background: none; color: var(--muted-fg); font: inherit; font-size: 1rem; line-height: 1; cursor: default; } .editrow:hover .drop { border-color: var(--border); } .drop:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .drop.is-armed { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* --------------------------------------------------------------------- */ /* Foot bar */ /* --------------------------------------------------------------------- */ .footbar { flex: none; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; } .footbar[hidden] { display: none; } .tally { min-width: 0; display: flex; flex-direction: column; } .tally-main { font-size: 0.9375rem; font-weight: 600; } /* A notification, said in the place the answer belongs rather than floated over the buttons. It sits in the same line the hint uses, so nothing on the screen moves when it appears, and it stands back down on its own. */ .hint.is-said { color: var(--fg); font-weight: 600; } .foot-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; } /* --------------------------------------------------------------------- */ /* Job view */ /* --------------------------------------------------------------------- */ .job-count { margin-left: auto; font-size: 0.875rem; color: var(--muted-fg); font-variant-numeric: tabular-nums; } .progress { flex: none; } .progress[hidden] { display: none; } .progress-track { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; } .progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .25s ease; } .progress-line { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted-fg); } @media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } } .jobrow { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border); min-width: 0; } .jobrow:last-child { border-bottom: none; } .jobrow-mark { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; font-weight: 700; color: var(--muted-fg); } /* Marks, not filled discs: a quiet tick for done, a dash for passed over, and only a failure in a colour that asks to be looked at. */ .jobrow[data-state="working"] .jobrow-mark { color: var(--accent); } .jobrow[data-state="ok"] .jobrow-mark { color: color-mix(in srgb, var(--success) 70%, var(--muted-fg)); } .jobrow[data-state="skipped"] .jobrow-mark { color: var(--muted-fg); } .jobrow[data-state="failed"] .jobrow-mark { color: var(--danger); } .jobrow-text { min-width: 0; flex: 1 1 auto; user-select: text; } .jobrow-name { font-size: 0.9375rem; font-weight: 600; } .jobrow-note { font-size: 0.8125rem; color: var(--muted-fg); overflow-wrap: anywhere; } .jobrow-note--bad { color: var(--danger); } /* --------------------------------------------------------------------- */ /* Blocker */ /* --------------------------------------------------------------------- */ .blocker { align-items: flex-start; justify-content: center; } .blocker-body { margin: 0; max-width: 60ch; color: var(--muted-fg); font-size: 0.9375rem; } /* --------------------------------------------------------------------- */ /* Update widget, to the update-widget spec. The pixel sizes, the position */ /* and the pulse are exact requirements, so they are fixed px, not rem. */ /* --------------------------------------------------------------------- */ .update-widget { display: inline-flex; align-items: center; gap: 8px; } .update-widget[hidden] { display: none; } .update-widget-version { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted-fg); font-variant-numeric: tabular-nums; text-decoration: none; } .update-widget-version:hover { color: var(--fg); text-decoration: underline; } .update-widget-version:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .update-dot { position: relative; flex: none; width: 16px; height: 16px; padding: 0; border: none; border-radius: 50%; background: var(--muted-fg); /* Never `disabled`: Chromium forces cursor:not-allowed on a disabled button, and a no-entry sign over a status dot reads as "something is wrong" rather than "nothing to do here". The ordinary arrow, like every control here. */ cursor: default; } .update-dot[aria-disabled="true"] { cursor: default; } .update-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .update-dot[data-state="current"], .update-dot[data-state="checking"] { background: var(--update-green); } .update-dot[data-state="available"] { background: var(--update-amber); } .update-dot[data-state="downloaded"], .update-dot[data-state="installing"] { background: var(--update-blue); } .update-dot[data-state="error"] { background: var(--update-red); } /* Downloading: a hollow ring. Light grey round the edge, and a white line tracing round it as the download comes in. No pulse here. */ .update-dot[data-state="downloading"] { background: transparent; } .update-dot-ring { position: absolute; inset: 0; width: 16px; height: 16px; display: none; transform: rotate(-90deg); } .update-dot[data-state="downloading"] .update-dot-ring { display: block; } .update-dot-ring-track { fill: none; stroke: #9e9d9e; stroke-width: 1.5; } .update-dot-ring-fill { fill: none; stroke: #ffffff; stroke-width: 1.5; stroke-linecap: round; /* 2 * PI * r(7) = 43.98; the dash maths is set from JS as the ring fills. */ stroke-dasharray: 43.98; stroke-dashoffset: 43.98; transition: stroke-dashoffset 0.15s linear; } /* The pulse. One per second, slow, like a heartbeat, and it keeps going for as long as the work does: checking (a minimum of three) and installing (until the app restarts). A dot that sits still while it works is a bug. */ .update-dot.is-pulsing { animation: update-dot-beat 1s ease-in-out infinite; } @keyframes update-dot-beat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.45; } } /* Reduced motion keeps the heartbeat — a still dot would say nothing is happening — but drops the size change. */ @media (prefers-reduced-motion: reduce) { .update-dot.is-pulsing { animation-name: update-dot-fade; } @keyframes update-dot-fade { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } } } /* --------------------------------------------------------------------- */ /* Help */ /* --------------------------------------------------------------------- */ .help-link { font: inherit; font-size: 12px; font-weight: 600; color: var(--muted-fg); background: none; border: 0; padding: 0.25rem 0.5rem; border-radius: var(--radius); cursor: default; } .help-link:hover { color: var(--fg); } .help-link.is-on { color: var(--on-accent); background: var(--accent); } .help-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .help-jump { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; } .help-jump a { font-size: 0.8125rem; font-weight: 600; color: var(--muted-fg); text-decoration: none; padding: 0.25rem 0; } .help-jump a:hover { color: var(--fg); } .help-jump a[aria-current="true"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; } .help-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 0.5rem; scroll-behavior: smooth; user-select: text; } @media (prefers-reduced-motion: reduce) { .help-scroll { scroll-behavior: auto; } } .help-scroll::-webkit-scrollbar { width: 10px; } .help-scroll::-webkit-scrollbar-thumb { background: var(--border); border: 3px solid var(--panel); border-radius: 999px; } /* One topic at a time, picked from the names along the top, so the page fits the window instead of growing a scrollbar. */ .help-section { max-width: 72ch; padding: 0.25rem 0 0.5rem; } .help-section[hidden] { display: none; } .help-section h3 { margin: 0 0 0.6rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; } .help-section p { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.65; color: var(--muted-fg); } .help-section p b, .help-section li b { color: var(--fg); font-weight: 600; } .help-section em { font-style: normal; color: var(--fg); font-weight: 600; } .help-section a { color: var(--info); } .help-list, .help-steps { margin: 0 0 0.75rem; padding-left: 1.2rem; color: var(--muted-fg); font-size: 0.9375rem; line-height: 1.6; } .help-list li, .help-steps li { margin: 0.35rem 0; } /* A topic with a picture puts it beside the words, in the space that would otherwise be empty, so the whole topic fits the window at once. */ .help-section:has(.help-shot) { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 1.75rem; align-items: start; } .help-section:has(.help-shot) > * { grid-column: 1; } .help-section:has(.help-shot) > .help-shot { grid-column: 2; grid-row: 1 / span 12; } /* The grid above is more specific than [hidden], so hidden stays hidden. */ .help-section:has(.help-shot)[hidden] { display: none; } .help-shot { margin: 0.25rem 0 0; } .help-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 300px); border-radius: var(--radius); border: 1px solid var(--panel-border); box-shadow: var(--shadow-panel); } /* The update dot's colours, drawn rather than named. */ .dot-key { list-style: none; margin: 0 0 0.75rem; padding: 0; } .dot-key li { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0; font-size: 0.9375rem; color: var(--muted-fg); } .dot-sample { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--muted-fg); } .dot-sample[data-state="current"] { background: var(--update-green); } .dot-sample[data-state="available"] { background: var(--update-amber); } .dot-sample[data-state="downloaded"] { background: var(--update-blue); } .dot-sample[data-state="error"] { background: var(--update-red); } .dot-sample[data-state="downloading"] { background: none; border: 2px solid #9e9d9e; box-shadow: inset 0 0 0 0 transparent; } /* --------------------------------------------------------------------- */ /* Tooltip */ /* --------------------------------------------------------------------- */ /* A light speech bubble with a small arrow at the thing it names. The colours and the font are written in here on purpose, not taken from the theme, so it looks the same on GNOME and on KDE whatever either is themed as. It waits 400ms before showing and clears itself inside two seconds; a word or two, and a new line rather than a long one. */ .tip { position: fixed; z-index: 50; max-width: 260px; padding: 5px 9px; border-radius: 7px; background: #fafafa; color: #111827; font-family: 'Manrope', system-ui, sans-serif; font-size: 10px; font-weight: 700; line-height: 1.35; white-space: pre-line; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); pointer-events: none; } .tip[hidden] { display: none; } .tip::after { content: ''; position: absolute; left: var(--arrow-x, 50%); width: 0; height: 0; margin-left: -5px; border: 5px solid transparent; } .tip[data-side="above"]::after { top: 100%; border-top-color: #fafafa; } .tip[data-side="below"]::after { bottom: 100%; border-bottom-color: #fafafa; }