# clio.css 2.0.2 — full reference Classic Mac OS interface CSS: System 6 (default), System 7 (data-era="system7"), Mac OS 8.5 Drawing Board (data-era="drawingboard") and Mac OS 8/9 Platinum (data-era="platinum"). NeXTSTEP 3.3 ships as its own file, dist/clio.nextstep.css (data-era="nextstep"). Install: npm install clio.css — or Rules have zero or one-class specificity; override any --clio-* custom property on any element. ## Window (#window) A document window: frame, title bar with close and zoom boxes (plus the WindowShade box in Platinum), an optional details bar and a scrolling pane. System 7 adds colour to the frame and title bar. Selectors: .window, .window.inactive, .title-bar, .title-bar > .title, .title-bar > .close, .title-bar > .resize, .title-bar > .shade, .details-bar, .window-pane, .status-bar, .separator, .inactive-title-bar Tokens: --clio-window-bg, --clio-window-border, --clio-window-shadow, --clio-titlebar-height, --clio-titlebar-bg, --clio-box-size, --clio-box-inset, --clio-box-isolation, --clio-pane-bg Accessibility: Give each box an aria-label (Close, Zoom, Collapse). The title is a real heading; pick the level that fits your page (h1 for a full-screen app window). Buttons keep a visible focus ring. On touch screens each box gets a 45px hit area while its art stays 11px. ```html

Macintosh HD

12 items 232K in disk 167K available

A window pane scrolls with the era's scroll bars.

``` ### Inactive window A background window keeps its title but erases its stripes and boxes. ```html

Untitled

``` ### With a WindowShade box Platinum draws the collapse box at the far right. System 6 had none, so the box is hidden there. ```html

Appearance

``` ## Menu bar and menus (#menu) The menu bar across the top of the screen and its pull-down menus: items, keyboard shortcuts, check marks, separators, disabled items and submenus. Selectors: .menu-bar, [role=menubar], .menu, [role=menu], .menu > li, li.separator, li.checked, li.disabled, kbd Tokens: --clio-menubar-height, --clio-menubar-bg, --clio-menu-bg, --clio-menu-shadow, --clio-menu-item-height, --clio-menu-item-active-bg, --clio-menu-separator Accessibility: Use role=menubar, role=menu and role=menuitem with aria-haspopup and aria-expanded on titles. A menu opens while its title has aria-expanded=true, while its
  • has the class open, or while focus is inside it, so it works from the keyboard without script. Arrow-key movement between items is up to your script. ```html ``` ## Push button (#button) Push buttons, the default button with its ring, the pressed state and the disabled state. Styles ``` ## Check box (#checkbox) A check box drawn on the native ; no extra label markup needed. Selectors: input[type=checkbox], label > input[type=checkbox], .field-row Tokens: --clio-check-size, --clio-check-bg, --clio-check-border, --clio-check-shadow, --clio-check-mark Accessibility: Native input, so keyboard, form and screen-reader behaviour are the browser's. In forced-colours mode the control returns to the system's own drawing. ```html
    ``` ## Radio button (#radio) A radio button drawn on the native . Selectors: input[type=radio] Tokens: --clio-radio-size, --clio-radio-off, --clio-radio-on Accessibility: Native input; group radios with the same name inside a fieldset with a legend. ```html
    Highlight
    ``` ## Text field (#text-field) Single-line inputs and ``` ## Pop-up menu (#select) A or size>1 becomes a list box. Selectors: select, select[multiple], select[size] Tokens: --clio-popup-bg, --clio-popup-border, --clio-popup-shadow, --clio-popup-arrow Accessibility: Native ``` ## List box (#listbox) A scrolling list with one or more selected rows, as in the Open dialog. Selectors: .listbox, [role=listbox], [role=option], [aria-selected=true], .selected Tokens: --clio-list-bg, --clio-list-border, --clio-list-shadow, --clio-list-row, --clio-selection-bg, --clio-selection-fg Accessibility: Use role=listbox and role=option with aria-selected; move focus with your script (roving tabindex). ```html ``` ## Scroll bar (#scrollbar) The era's scroll bar on every scroll area clio.css owns, on any element with .clio-scroll, or on the whole page with . Selectors: .window-pane, .clio-scroll, html.clio-scrollbars, ::-webkit-scrollbar Tokens: --clio-scrollbar-size, --clio-scrollbar-track, --clio-scrollbar-thumb-bg, --clio-scrollbar-button-bg Accessibility: Native scrolling is untouched: wheel, keyboard and touch scroll as usual. ```html

    The lane, the scroll box and both arrow boxes come from the era. Firefox has no scroll-bar parts, so it gets the era's colours only.

    Scroll me.

    ``` ## Dialogs and alerts (#dialog) The modal dialog frame, the alert layout with an icon, and the plain shadowed box. Selectors: .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .alert-icon, .dialog-buttons Tokens: --clio-dialog-bg, --clio-modal-border, --clio-modal-frame, --clio-plain-dialog-shadow Accessibility: Put the classes on a native opened with showModal() to get focus trapping and Escape; label it with aria-labelledby. ```html

    Save changes to the document “Untitled” before closing?

    ``` ### Plain box The shadowed box, for a message with no frame of its own. ```html

    Welcome to Macintosh.

    ``` ## Group box (#fieldset) A
    with a , for grouping controls. Selectors: fieldset, legend Tokens: --clio-group-border, --clio-group-shadow Accessibility: A fieldset's legend names the group for screen readers. ```html
    Sound
    ``` ## Progress bar (#progress) The native element as the era's thermometer. Selectors: progress Tokens: --clio-progress-height, --clio-progress-bg, --clio-progress-fill, --clio-progress-shadow Accessibility: Native ; give it a label or aria-label. ```html
    62%
    ``` ## Tabs (#tabs) A tab strip over a panel. Native in Platinum; an adaptation in System 6, which had no tab control. Selectors: [role=tablist], [role=tab], [aria-selected=true], [role=tabpanel], .tabs, .tab-panel Tokens: --clio-tab-height, --clio-tab-panel-bg, --clio-tab-panel-border Accessibility: Use role=tablist, role=tab with aria-selected and aria-controls, and role=tabpanel; arrow keys between tabs are up to your script. ```html
    ``` ## Control Strip (#control-strip) The Control Strip of System 7.5 to Mac OS 9: module buttons with menu triangles, scroll arrows and a tab that folds it away. Markup matches AI System 6's. Selectors: .control-strip, .control-strip.is-collapsed, .control-strip-scroll, .control-strip-scroll-back, .control-strip-scroll-forward, .control-strip-modules, .control-strip-module-track, .control-strip-module, .control-strip-handle Tokens: --clio-strip-height, --clio-strip-bg, --clio-strip-line, --clio-strip-cell-shadow, --clio-strip-sunken-shadow, --clio-strip-pressed-bg, --clio-strip-pressed-shadow, --clio-strip-module-width, --clio-strip-handle Accessibility: role=toolbar on .control-strip-modules with an aria-label; every module and arrow is a ``` ### Folded With .is-collapsed only the tab shows. ```html ``` ## Desktop and icons (#desktop) The desktop pattern and desktop icons with their name labels. Bring your own icon images; clio.css ships no Apple icons. Selectors: .desktop, .icon, .icon > img, .icon > figcaption, .icon.selected Tokens: --clio-desktop, --clio-label-bg, --clio-label-selected-bg, --clio-icon-selected-filter Accessibility: Make each icon a ``` ## Disclosure triangle (#disclosure) The triangle that shows and hides a list's or a dialog's details. A
    summary gets it too. Selectors: .disclosure, .disclosure[aria-expanded=true], details > summary, details[open] > summary Tokens: --clio-disclosure-size, --clio-art-disclosure, --clio-art-disclosure-open Accessibility: Use a Developer ``` ## List view (#list-view) The Finder's list view: column headers with the sorted column marked, and rows of names and details. Selectors: .list-view, .list-view th[aria-sort], .list-view th.sort-direction, .list-view td.sorted Tokens: --clio-list-view-row, --clio-list-view-header-height, --clio-list-view-sorted-bg Accessibility: A real : give the sorted header aria-sort, keep scope on headers; the disclosure buttons need labels. ```html
    NameDate Modified
    DeveloperThu, Apr 14, 2022
    GamesThu, Apr 14, 2022
    ``` ## Slider (#slider) as the Appearance slider, with optional tick marks. Selectors: input[type=range], input[type=range].ticks Tokens: --clio-slider-height, --clio-art-slider-track, --clio-art-slider-thumb, --clio-slider-tick-count Accessibility: Native range input: label it, and say the value with aria-valuetext when the number alone means little. ```html ``` ## Little arrows (#little-arrows) The up and down pair beside a number or a clock field. Selectors: .little-arrows, .little-arrows > .up, .little-arrows > .down, .little-arrows[aria-disabled=true] Tokens: --clio-little-arrows-width, --clio-little-arrows-height, --clio-art-little-arrows Accessibility: Two real buttons with labels; keep the field itself editable and announce the new value. ```html ``` ## Bevel button (#bevel-button) A square bevelled button for an icon or a short label: push button, toggle (aria-pressed) or menu (class menu). Selectors: .bevel, .bevel.menu, .bevel[aria-pressed=true], .bevel:active Tokens: --clio-art-bevel, --clio-art-bevel-held, --clio-bevel-slice Accessibility: A real button: label icon-only ones; a menu bevel needs aria-haspopup and aria-expanded. ```html ``` ## Chasing arrows (#chasing-arrows) The asynchronous progress indicator: two arrows chasing round a circle. Selectors: .chasing-arrows Tokens: --clio-art-chasing-arrows, --clio-chasing-arrows-frames Accessibility: Give it role=status and a label saying what is going on; it stands still under prefers-reduced-motion. ```html Looking for servers… ``` ## Help button (#help-button) The square button with the help icon in a dialog's lower left. Selectors: .help-button Tokens: --clio-art-help-button Accessibility: aria-label="Help"; it should open help about the dialog. ```html ``` ## Image well (#image-well) A sunken well holding a picture or an icon. Selectors: .image-well Tokens: --clio-image-well-bg, --clio-field-border, --clio-field-shadow Accessibility: Describe the picture with alt text; a well that accepts drops needs a keyboard alternative. ```html
    ◆
    ``` ## Help balloon (#balloon) Balloon Help: a white balloon with a tail pointing at what it describes. Selectors: .balloon Tokens: --clio-art-balloon, --clio-art-balloon-tail Accessibility: role=tooltip, referenced by aria-describedby from the thing it explains; show it on focus as well as hover. ```html ``` ## Rounded-corner window (#rounded-window) The desk accessory's window (rDocProc): rounded corners and a black title bar, as the Calculator draws it in every Classic era. Selectors: .rounded-window, .rounded-window.inactive, .rounded-title, .rounded-title > .close, .rounded-title > h2 Tokens: --clio-rounded-bg, --clio-art-rdoc-mask-tl, --clio-art-rdoc-frame-tl Accessibility: Label the close box (aria-label="Close") and keep the title a real heading. The corners are a mask: keep content 6px clear of them. ```html

    Calculator

    ``` ## Side-title utility window (#side-utility-window) A floating window whose title bar runs down its left side (kWindowFloatSide*): close box at the top, collapse box at the foot. Selectors: .window.utility.side, .window.utility.side.inactive Tokens: Accessibility: The title is not drawn but stays in the markup for assistive technology; label both boxes. ```html

    Tools

    ``` ## Placard (#placard) A framed strip for status or a small control at the foot of a window, beside the horizontal scroll bar. Selectors: .placard, .placard[aria-disabled=true] Tokens: Accessibility: A status placard that changes is a live region (role=status); a placard that acts is a ``` ## Workspace dock (NeXTSTEP) (#dock) The column of 64px application tiles at the screen's right edge; a docked application that is not running shows three dots. NeXTSTEP only. Selectors: .dock, .dock > li, .dock > .not-running Tokens: --clio-dock-tile, --clio-dock-tile-bg Accessibility: A list of buttons labelled with the application's name; say whether it is running in the label. ```html
    ``` ## Type and tokens (#typography) The fonts, the palette and every --clio-* custom property you can override. Selectors: .clio, .text, .heading, .display, [data-era=system6], [data-era=platinum] Tokens: --clio-ink, --clio-paper, --clio-font-chrome, --clio-font-text, --clio-font-display, --clio-font-cjk, --clio-font-size, --clio-selection-bg, --clio-focus-outline Accessibility: Text colours keep at least 4.5:1 on their grounds; disabled text keeps 3:1 or more. ```html

    Clio Sans '84 is the system font

    Clio Text '84 (Geneva) is the application font. Every value is a --clio-* custom property you can override on any element.

    Display: any other size

    繁體中文、日本語、한국어:lang 屬性換上像素字型

    ``` ## Stylesheet (dist/clio.css) ```css /* Clio Sans '84: Chicago 12 rebuilt pixel for pixel from System 6.0.8 (fonts-src/clio-sans-84.txt). Every pixel is a square on a 1200-unit em, so at 12px and its multiples it draws exactly the original bitmap. */ @font-face { font-family: "Clio Sans '84"; src: url("fonts/ClioSans84.woff2") format("woff2"); font-display: swap; } /* Clio Text '84: Geneva 12, and Clio Text '84 9: Geneva 9, rebuilt the same way (fonts-src/clio-text-84*.txt). */ @font-face { font-family: "Clio Text '84"; src: url("fonts/ClioText84.woff2") format("woff2"); font-display: swap; } @font-face { font-family: "Clio Text '84 9"; src: url("fonts/ClioText84-9.woff2") format("woff2"); font-display: swap; } /* Clio Sans '97: Charcoal 12 rebuilt the same way from Mac OS 9.0's Key Caps (fonts-src/clio-sans-97.txt). Charcoal has one weight, so the face covers every weight and the browser never thickens it. */ /* Each colour face is declared twice: the Plain file alone first, then both. An engine that cannot parse tech() (Safari before 17) drops the second rule and keeps the first instead of losing the face. */ @font-face { font-family: "Clio Sans '97"; src: url("fonts/ClioSans97Plain.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Clio Sans '97"; src: url("fonts/ClioSans97.woff2") format("woff2") tech(color-COLRv1), url("fonts/ClioSans97Plain.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } /* Clio Sans '97's antialiasing is COLRv1 colour layers. A browser without COLRv1 (Safari) would paint every layer solid, so it gets the Plain file: the same levels as COLRv0 layers, which Safari draws (fully covered pixels in the text colour, the others black at their alpha unless a palette below recolours them), over outlines for browsers with no colour fonts. */ /* Clio Sans '97 Title: the same face as window titles draw it (a few faint pixels fewer than menus and buttons), for title bars only. */ @font-face { font-family: "Clio Sans '97 Title"; src: url("fonts/ClioSans97TitlePlain.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Clio Sans '97 Title"; src: url("fonts/ClioSans97Title.woff2") format("woff2") tech(color-COLRv1), url("fonts/ClioSans97TitlePlain.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } /* Clio Sans '97 Exact and Clio Sans '97 Title Exact: the same glyphs with each antialiasing level painted from a palette entry, so the palettes below give, for clio.css's own title and button colours, the very pixels Mac OS blends ((fg * a + bg * (255 - a)) >> 8). They ignore the text colour: a page that recolours a title or a button label also sets --clio-font-window-title or --clio-font-button back to a stack without "Exact", and gets Clio Sans '97 in its colour, within one level of the real screen. */ @font-face { font-family: "Clio Sans '97 Exact"; src: url("fonts/ClioSans97PlainExact.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Clio Sans '97 Exact"; src: url("fonts/ClioSans97Exact.woff2") format("woff2") tech(color-COLRv1), url("fonts/ClioSans97PlainExact.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Clio Sans '97 Title Exact"; src: url("fonts/ClioSans97TitlePlainExact.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Clio Sans '97 Title Exact"; src: url("fonts/ClioSans97TitleExact.woff2") format("woff2") tech(color-COLRv1), url("fonts/ClioSans97TitlePlainExact.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } /* Written by tooling/aa-palettes.py. */ @font-palette-values --clio-aa-p9-title { font-family: "Clio Sans '97 Title Exact"; override-colors: 0 #bebebe, 1 #b0b0b0, 2 #a2a2a2, 3 #959595, 4 #878787, 5 #7a7a7a, 6 #6c6c6c, 7 #5f5f5f, 8 #515151, 9 #444444, 10 #363636, 11 #282828, 12 #1b1b1b, 13 #0d0d0d, 14 #000000; } @font-palette-values --clio-aa-p9-title-inactive { font-family: "Clio Sans '97 Title Exact"; override-colors: 0 #c5c5c5, 1 #bfbfbf, 2 #bababa, 3 #b4b4b4, 4 #aeaeae, 5 #a9a9a9, 6 #a3a3a3, 7 #9e9e9e, 8 #989898, 9 #929292, 10 #8d8d8d, 11 #878787, 12 #818181, 13 #7c7c7c, 14 #777777; } @font-palette-values --clio-aa-p9-button { font-family: "Clio Sans '97 Exact"; override-colors: 0 #cecece, 1 #bfbfbf, 2 #b0b0b0, 3 #a2a2a2, 4 #939393, 5 #848484, 6 #757575, 7 #676767, 8 #585858, 9 #494949, 10 #3a3a3a, 11 #2c2c2c, 12 #1d1d1d, 13 #0e0e0e, 14 #000000; } @font-palette-values --clio-aa-p9-button-held { font-family: "Clio Sans '97 Exact"; override-colors: 0 #707070, 1 #7a7a7a, 2 #848484, 3 #8e8e8e, 4 #999999, 5 #a3a3a3, 6 #adadad, 7 #b7b7b7, 8 #c1c1c1, 9 #cbcbcb, 10 #d6d6d6, 11 #e0e0e0, 12 #eaeaea, 13 #f4f4f4, 14 #ffffff; } @font-palette-values --clio-aa-p9-button-disabled { font-family: "Clio Sans '97 Exact"; override-colors: 0 #d5d5d5, 1 #cecece, 2 #c7c7c7, 3 #c1c1c1, 4 #bababa, 5 #b3b3b3, 6 #acacac, 7 #a5a5a5, 8 #9f9f9f, 9 #989898, 10 #919191, 11 #8a8a8a, 12 #848484, 13 #7d7d7d, 14 #777777; } @font-palette-values --clio-aa-db-button { font-family: "Clio Sans '97 Exact"; override-colors: 0 #c3bcac, 1 #b9b2a3, 2 #aea89a, 3 #a49e91, 4 #999488, 5 #8f8a80, 6 #848077, 7 #7a766e, 8 #6f6c65, 9 #65625d, 10 #5a5854, 11 #504e4b, 12 #454442, 13 #3b3a39, 14 #313131; } @font-palette-values --clio-aa-db-button-disabled { font-family: "Clio Sans '97 Exact"; override-colors: 0 #cac2b2, 1 #c6bfaf, 2 #c3bcad, 3 #c0b9ab, 4 #bdb6a9, 5 #bab3a7, 6 #b7b0a4, 7 #b4ada2, 8 #b1aaa0, 9 #ada89e, 10 #aaa59c, 11 #a7a299, 12 #a49f97, 13 #a19c95, 14 #9c9c94; } @font-palette-values --clio-aa-rdoc-title { font-family: "Clio Sans '97 Title Exact"; override-colors: 0 #101010, 1 #212121, 2 #323232, 3 #444444, 4 #555555, 5 #666666, 6 #777777, 7 #878787, 8 #989898, 9 #a9a9a9, 10 #bababa, 11 #cccccc, 12 #dddddd, 13 #eeeeee, 14 #ffffff; } @font-palette-values --clio-aa-rdoc-title-inactive { font-family: "Clio Sans '97 Title Exact"; override-colors: 0 #eeeeee, 1 #dddddd, 2 #cccccc, 3 #bababa, 4 #a9a9a9, 5 #989898, 6 #878787, 7 #777777, 8 #666666, 9 #555555, 10 #444444, 11 #323232, 12 #212121, 13 #101010, 14 #000000; } /* COLRv0 edge levels in other text colours (Safari; Chrome's COLRv1 file follows the text colour by itself and ignores these): white for chosen menu titles, items and icon labels, #6f6f6f for dimmed items. */ @font-palette-values --clio-aa-white { font-family: "Clio Sans '97"; override-colors: 0 rgb(255 255 255 / 0.0667), 1 rgb(255 255 255 / 0.1333), 2 rgb(255 255 255 / 0.2000), 3 rgb(255 255 255 / 0.2667), 4 rgb(255 255 255 / 0.3333), 5 rgb(255 255 255 / 0.4000), 6 rgb(255 255 255 / 0.4667), 7 rgb(255 255 255 / 0.5333), 8 rgb(255 255 255 / 0.6000), 9 rgb(255 255 255 / 0.6667), 10 rgb(255 255 255 / 0.7333), 11 rgb(255 255 255 / 0.8000), 12 rgb(255 255 255 / 0.8667), 13 rgb(255 255 255 / 0.9333); } @font-palette-values --clio-aa-6f6f6f { font-family: "Clio Sans '97"; override-colors: 0 rgb(111 111 111 / 0.0667), 1 rgb(111 111 111 / 0.1333), 2 rgb(111 111 111 / 0.2000), 3 rgb(111 111 111 / 0.2667), 4 rgb(111 111 111 / 0.3333), 5 rgb(111 111 111 / 0.4000), 6 rgb(111 111 111 / 0.4667), 7 rgb(111 111 111 / 0.5333), 8 rgb(111 111 111 / 0.6000), 9 rgb(111 111 111 / 0.6667), 10 rgb(111 111 111 / 0.7333), 11 rgb(111 111 111 / 0.8000), 12 rgb(111 111 111 / 0.8667), 13 rgb(111 111 111 / 0.9333); } /* Drawing Board's menu text (#313131) and dimmed text (#8c8c8c), for Safari's COLRv0 file. */ @font-palette-values --clio-aa-313131 { font-family: "Clio Sans '97"; override-colors: 0 rgb(49 49 49 / 0.0667), 1 rgb(49 49 49 / 0.1333), 2 rgb(49 49 49 / 0.2000), 3 rgb(49 49 49 / 0.2667), 4 rgb(49 49 49 / 0.3333), 5 rgb(49 49 49 / 0.4000), 6 rgb(49 49 49 / 0.4667), 7 rgb(49 49 49 / 0.5333), 8 rgb(49 49 49 / 0.6000), 9 rgb(49 49 49 / 0.6667), 10 rgb(49 49 49 / 0.7333), 11 rgb(49 49 49 / 0.8000), 12 rgb(49 49 49 / 0.8667), 13 rgb(49 49 49 / 0.9333); } @font-palette-values --clio-aa-8c8c8c { font-family: "Clio Sans '97"; override-colors: 0 rgb(140 140 140 / 0.0667), 1 rgb(140 140 140 / 0.1333), 2 rgb(140 140 140 / 0.2000), 3 rgb(140 140 140 / 0.2667), 4 rgb(140 140 140 / 0.3333), 5 rgb(140 140 140 / 0.4000), 6 rgb(140 140 140 / 0.4667), 7 rgb(140 140 140 / 0.5333), 8 rgb(140 140 140 / 0.6000), 9 rgb(140 140 140 / 0.6667), 10 rgb(140 140 140 / 0.7333), 11 rgb(140 140 140 / 0.8000), 12 rgb(140 140 140 / 0.8667), 13 rgb(140 140 140 / 0.9333); } /* Clio Sans '97 Display: Charcoal's outlines, traced from Mac OS 9.0 drawing it at 72 points (fonts/ClioSans97Display.woff2, tooling/trace-outline.py), for every size that is not 12px or a multiple of it. */ @font-face { font-family: "Clio Sans '97 Display"; src: url("fonts/ClioSans97Display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } /* Other fonts, each with a licence that allows it: - ChicagoFLF: a public-domain outline revival of Chicago (Robin Casady). - Asap (variable, wdth + wght): SIL OFL 1.1, Omnibus-Type. The legal stand-in for Charcoal that AI System 6 measured its Platinum title bar against (width axis 113 for text, 123 for titles); now the fallback behind Clio Sans '97. Apple's own faces (Chicago, Geneva, Charcoal, Monaco) are never shipped; the stacks below reach them only when the visitor already has them. */ @font-face { font-family: "ChicagoFLF"; src: url("fonts/ChicagoFLF.woff2") format("woff2"), url("fonts/ChicagoFLF.woff") format("woff"); font-display: swap; } @font-face { font-family: "Clio Asap"; src: url("fonts/Asap-Variable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-stretch: 75% 125%; font-display: swap; } /* Tokens: Macintosh System 6 is the default era. Measured values come from System 6.0.8 running in Infinite Mac, read from the emulator canvas 1:1 (tooling/capture-system6.ts). Every value below is traceable in EVIDENCE.md. A value marked [M] there was measured from real pixels; [I] is inferred; [A] is a deliberate web adaptation (contrast, focus, touch). Platinum re-declares these tokens in 90-platinum.css under [data-era="platinum"]. */ :root, [data-era="system6"], [data-era="system7"] { /* 1-bit palette. System 6 on a compact Mac had two colours. */ --clio-ink: #000000; --clio-paper: #ffffff; --clio-face: #ffffff; /* [A] Disabled text: System 6 drew it through a 50% grey pattern; a solid grey keeps 5.6:1 on white instead of a dither the browser would blur. */ --clio-disabled: #696969; /* Dimmed text is drawn through QuickDraw's 50% gray pattern, aligned to the screen: the ink where x + y is odd survives (measured, File menu). The pattern is fixed to the viewport the same way; #696969 is only the fallback colour where background-clip: text is missing. */ --clio-disabled-dither: var(--clio-art-s6-gray50); --clio-disabled-fill: transparent; /* A dimmed pop-up menu: the whole control (frame, shadow, title, arrow) drawn through the 50% gray, the ink where x + y is odd surviving (System 7.5.3, Memory's Select Hard Disk with virtual memory off, measured). The pattern starts at the control's corner, not the screen's. */ --clio-popup-disabled-mask: var(--clio-art-s6-gray50) 0 0 / 2px 2px; /* a crisp 2x2 picture: a gradient blurs at 2x in Firefox */ --clio-popup-disabled-fg: var(--clio-ink); --clio-selection-bg: #000000; --clio-selection-fg: #ffffff; /* Type. Chicago 12 is the system font; Geneva is the application font. */ --clio-font-chrome: "Clio Sans '84", Chicago, "ChicagoFLF", Charcoal, Geneva, "Helvetica Neue", Arial, sans-serif; --clio-font-text: "Clio Text '84", Geneva, "Helvetica Neue", Arial, sans-serif; /* Geneva 9: the Finder info line, icon names, status lines. */ --clio-font-small: "Clio Text '84 9", Geneva, "Helvetica Neue", Arial, sans-serif; --clio-text-smoothing: none; --clio-text-smoothing-moz: grayscale; /* Firefox's nearest to none */ --clio-font-mono: Monaco, Menlo, Consolas, "Courier New", monospace; /* Chrome type at sizes other than 12px and its multiples (.display): an outline face, smoothed. */ --clio-font-display: Chicago, "ChicagoFLF", Charcoal, "Helvetica Neue", Arial, sans-serif; --clio-font-size: 12px; /* A bitmap face: no antialiasing, so a glyph on a half pixel stays 1-bit. */ --clio-font-smoothing: none; /* Geneva 9: the Finder info line and icon names. */ --clio-font-size-small: 9px; --clio-chrome-weight: 400; --clio-font-stretch-text: normal; --clio-font-stretch-title: normal; /* Geometry */ --clio-line: 1px; --clio-border: 1px solid var(--clio-ink); --clio-radius: 0; --clio-control-height: 20px; --clio-field-height: 20px; /* clio.js's insertion point: the font's line height, 16px for 12pt (System 7.5.3, Find File's 20px field: rows 2-17), whatever the field's line-height. */ --clio-caret-height: 16px; /* ...and its blink: CaretTime, 32 ticks lit and 32 dark (System 6.0.8 and 7.5.3 Find File; PRAM's factory value in the Mac IIx and Quadra 650 ROMs). */ --clio-caret-ticks: 32; --clio-row-height: 16px; --clio-gap: 8px; /* Focus: [A] the era had no keyboard focus ring for buttons. A dotted frame is how System 6 drew a dragged outline, so it reads as native and cannot be confused with the default button's solid ring. */ --clio-focus-outline: 1px dotted var(--clio-ink); --clio-focus-offset: 2px; /* Desktop */ --clio-desktop: var(--clio-art-s6-desktop) 0 0 / 2px 2px repeat, #808080; /* Window frame and title bar [M: measured at the emulator's exact 2x] */ --clio-window-bg: var(--clio-paper); --clio-pane-bg: var(--clio-paper); --clio-window-border: 1px solid var(--clio-ink); --clio-window-shadow: 1px 1px 0 var(--clio-ink); --clio-window-padding: 0; --clio-titlebar-height: 17px; --clio-titlebar-margin: 1px 0 0; --clio-titlebar-padding: 2px 1px; --clio-titlebar-border: 1px solid var(--clio-ink); --clio-titlebar-row: 12px; --clio-titlebar-stripe: 2px; --clio-titlebar-bg: linear-gradient(to bottom, var(--clio-ink) 0 1px, transparent 1px 2px) 0 0 / 100% var(--clio-titlebar-stripe) repeat-y content-box content-box, var(--clio-paper); --clio-titlebar-inactive-bg: var(--clio-paper); --clio-title-font-size: 12px; --clio-title-bg: var(--clio-paper); --clio-title-fg: var(--clio-ink); --clio-title-inactive-fg: var(--clio-ink); --clio-title-padding: 0 0.5em; --clio-titlebar-slot: 18px; --clio-titlebar-shade-slot: 0px; --clio-shade-display: none; --clio-box-size: 11px; --clio-box-inset: 7px; /* 1px of paper between a box and the stripes (HD window, 6.0.8). */ --clio-box-isolation: 1px; /* Menus */ --clio-menubar-height: 20px; --clio-menubar-bg: var(--clio-paper); --clio-menubar-border: 1px solid var(--clio-ink); --clio-menubar-shadow: none; --clio-menubar-padding: 0 8px; /* "File" highlight is 41px wide: about 9px each side of the word. */ --clio-menu-title-padding: 0 9px; /* The open title's highlight leaves the bar's top row white. */ --clio-menu-title-inset: 1px; --clio-menu-title-active-bg: var(--clio-ink); --clio-menu-title-active-fg: var(--clio-paper); --clio-menu-title-active-shadow: none; --clio-menu-bg: var(--clio-paper); --clio-menu-border: 1px solid var(--clio-ink); /* A menu hangs from the bar's own rule; it draws no top line. */ --clio-menu-border-top-width: 0; --clio-menu-shadow: 1px 1px 0 var(--clio-ink); --clio-menu-item-height: 16px; --clio-menu-item-padding: 0 12px 0 13px; --clio-menu-item-weight: 400; --clio-menu-item-active-bg: var(--clio-ink); --clio-menu-item-active-fg: var(--clio-paper); --clio-menu-item-active-shadow: none; /* A full 16px row with a 1-on 1-off dotted rule on its ninth line. */ --clio-menu-separator: repeating-linear-gradient(to right, var(--clio-ink) 0 1px, transparent 1px 2px) 0 8px / 100% 1px no-repeat; --clio-menu-separator-height: 16px; /* Push buttons */ --clio-button-bg: var(--clio-paper); --clio-button-fg: var(--clio-ink); --clio-button-border: 1px solid var(--clio-ink); /* 20px tall; the corner steps in 3, 1, 1 pixels on its first three rows (OK and Cancel, 6.0.8), which a 4.5px radius reproduces exactly. */ /* The frame and the default ring are the real pixel staircases, cut from System 6.0.8's Alert and Save dialog (tooling/frame-art.py) and drawn with border-image; border-radius would antialias an arc. */ --clio-button-radius: 0; --clio-button-frame: var(--clio-art-frame-s6-button); --clio-button-frame-held: var(--clio-art-frame-s6-button-held); --clio-button-frame-slice: 4; --clio-ring-frame: var(--clio-art-frame-s6-ring); --clio-ring-frame-slice: 7; --clio-popup-frame: none; --clio-popup-frame-slice: 3; --clio-button-shadow: 0 0 0 0 transparent; --clio-button-padding: 0 12px; --clio-button-min-width: 59px; --clio-button-weight: 400; --clio-button-active-bg: transparent; /* the held frame carries the ink face */ --clio-button-active-fg: var(--clio-paper); --clio-button-active-shadow: 0 0 0 0 transparent; /* Default button: Inside Macintosh's recipe is PenSize(3,3) around the button inset by -4, so a 1px gap then a 3px ring. */ --clio-button-default-gap: 1px; --clio-button-default-width: 3px; --clio-button-default-radius: 8px; --clio-button-disabled-fg: var(--clio-disabled); --clio-button-disabled-border: 1px solid var(--clio-ink); /* Check boxes and radio buttons */ --clio-check-size: 12px; --clio-check-bg: var(--clio-paper); --clio-check-border: 1px solid var(--clio-ink); --clio-check-shadow: none; --clio-check-mark: var(--clio-art-s6-check) 0 0 / 12px 12px no-repeat; --clio-check-mark-origin: border-box; --clio-check-pressed-border-width: 2px; --clio-radio-size: 12px; --clio-radio-off: var(--clio-art-s6-radio) 0 0 / 12px 12px no-repeat; --clio-radio-on: var(--clio-art-s6-radio-dot) 3px 3px / 6px 6px no-repeat, var(--clio-art-s6-radio) 0 0 / 12px 12px no-repeat; --clio-radio-pressed: var(--clio-art-s6-radio-focus) 0 0 / 12px 12px no-repeat; --clio-radio-pressed-on: var(--clio-art-s6-radio-dot) 3px 3px / 6px 6px no-repeat, var(--clio-art-s6-radio-focus) 0 0 / 12px 12px no-repeat; /* Text fields */ --clio-field-bg: var(--clio-paper); --clio-field-border: 1px solid var(--clio-ink); --clio-field-shadow: none; /* Edit text: 1px frame, text inset 3px (Control Panel RAM cache field). */ --clio-field-padding: 3px; --clio-field-focus-shadow: none; --clio-field-focus-outline: var(--clio-focus-outline); /* Pop-up menus */ --clio-popup-bg: var(--clio-paper); --clio-popup-border: 1px solid var(--clio-ink); --clio-popup-radius: 0; --clio-popup-shadow: 1px 1px 0 var(--clio-ink); /* System 6 pop-up (Standard File folder menu, 6.0.8): an 18px box, 1px frame, 1px shadow, no arrow; held, it inverts. */ --clio-popup-height: 18px; --clio-popup-padding: 0 8px; --clio-popup-arrow: none; --clio-popup-weight: 400; /* Scroll bars */ /* The lane line plus 14px; the window frame is the 16th line. The lane is QuickDraw's ltGray, one dot in four. */ --clio-scrollbar-size: 15px; --clio-scrollbar-track: var(--clio-art-s6-ltgray) 0 0 / 4px 2px repeat, #ffffff; /* clio.js scroll bars: System 6 and 7 drag an outline of the box and scroll on release; the box keeps one length, whatever the document's. */ --clio-scrollbar-thumb-length: 16px; --clio-scrollbar-thumb-tracking: outline; --clio-scrollbar-thumb-overlap: 0px; --clio-scrollbar-thumb-after: none; /* clio.js: a held arrow or lane repeats at once (System 6 and 7's TrackControl calls the action on every pass while the button is down) */ --clio-scrollbar-repeat-delay: 0ms; /* clio.js menus: System 6 and 7 menus stay open only while the button is held */ --clio-menu-sticky: 0; /* clio.js: the grey outline of a dragged window (System 6.0.8 and 7.5.3: 1px) */ --clio-drag-outline-width: 1px; /* ... around the window and its 1px shadow (both measured) */ --clio-drag-outline-extra: 1px; /* clio.zoomRects() (System 7.5.3, measured): 8 outlines at (1.6^k - 1) / (1.6^8 - 1) of the way, 4 on screen at once */ --clio-zoom-count: 8; --clio-zoom-steps: 8; --clio-zoom-ratio: 1.6; --clio-zoom-offset: 1; --clio-zoom-keep: 4; --clio-drag-outline-shadow-inset: 0px; /* System 6: the region is the whole rectangle, though the shadow is drawn from a pixel in */ /* clio.js: a dragged scroll box leaves its frame XORed with dkGray (System 6.0.8, measured): white where dkGray is set, in step with the lane's ltGray, inverting what is under it, so over the lane it comes out solid black. */ --clio-scrollbar-ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 0h3v1H1zM0 1h2v1H0zM3 1h1v1H3z'/%3E%3C/svg%3E") 0 0 / 4px 2px repeat; --clio-scrollbar-ghost-blend: difference; /* clio.js: the box sits inside the bar's line, 14px wide (System 6.0.8, System Folder list) */ --clio-scrollbar-thumb-inset: 1px; --clio-scrollbar-track-shadow: none; --clio-scrollbar-thumb-bg: var(--clio-paper); --clio-scrollbar-thumb-border: 1px solid var(--clio-ink); --clio-scrollbar-thumb-shadow: none; --clio-scrollbar-button-bg: var(--clio-paper); --clio-scrollbar-button-shadow: none; --clio-scrollbar-button-bevel: none; --clio-scrollbar-up: var(--clio-art-s6-up); --clio-scrollbar-up-on: var(--clio-art-s6-up-on); --clio-scrollbar-down: var(--clio-art-s6-down); --clio-scrollbar-down-on: var(--clio-art-s6-down-on); --clio-scrollbar-left: var(--clio-art-s6-left); --clio-scrollbar-left-on: var(--clio-art-s6-left-on); --clio-scrollbar-right: var(--clio-art-s6-right); --clio-scrollbar-right-on: var(--clio-art-s6-right-on); /* Dialogs */ --clio-dialog-bg: var(--clio-paper); /* Modal frame (stop alert, 6.0.8): 1px ink, 2px paper, 2px ink; no shadow. */ --clio-modal-border: 1px solid var(--clio-ink); --clio-modal-frame: inset 0 0 0 2px var(--clio-paper), inset 0 0 0 4px var(--clio-ink); --clio-modal-padding: 18px 20px; --clio-plain-dialog-border: 1px solid var(--clio-ink); --clio-plain-dialog-shadow: 2px 2px 0 var(--clio-ink); /* Bars, lists, groups, progress, tabs */ --clio-details-bg: var(--clio-paper); /* Finder's info line: 17 rows of Geneva 9, closed by 1px ink, 1px paper, 1px ink. */ --clio-details-border: 3px double var(--clio-ink); --clio-details-font-size: 9px; --clio-details-height: 17px; --clio-details-padding: 0 15px; --clio-scrollbar-corner: var(--clio-art-s6-grow) 0 0 / 14px 14px no-repeat, var(--clio-paper); --clio-list-bg: var(--clio-paper); --clio-list-border: 1px solid var(--clio-ink); --clio-list-shadow: none; --clio-list-row: 16px; --clio-group-border: 1px solid var(--clio-ink); --clio-group-shadow: none; --clio-group-bg: transparent; --clio-progress-height: 12px; --clio-progress-bg: var(--clio-paper); --clio-progress-border: 1px solid var(--clio-ink); --clio-progress-shadow: none; /* Finder copy progress (6.0.8): 12px, 1px frame, dkGray fill. */ --clio-progress-fill: var(--clio-art-s6-dkgray) 0 0 / 4px 2px repeat, var(--clio-ink); --clio-tab-height: 20px; --clio-tab-bg: var(--clio-paper); --clio-tab-active-bg: var(--clio-paper); --clio-tab-panel-bg: var(--clio-paper); --clio-tab-panel-border: 1px solid var(--clio-ink); --clio-label-bg: var(--clio-paper); --clio-label-fg: var(--clio-ink); --clio-label-selected-bg: var(--clio-ink); --clio-label-selected-fg: var(--clio-paper); /* Control Strip: System 6 had none; drawn here in its ink and paper, at the Mac OS 9 geometry (adapted). */ --clio-strip-height: 24px; --clio-strip-bg: var(--clio-paper); --clio-strip-line: 1px solid var(--clio-ink); --clio-strip-cell-shadow: none; --clio-strip-sunken-shadow: none; --clio-strip-sunken-lines: linear-gradient(transparent, transparent); --clio-strip-pressed-bg: var(--clio-ink); --clio-strip-pressed-shadow: inset 0 0 0 2px var(--clio-paper); --clio-strip-cap-width: 13px; --clio-strip-scroll-width: 13px; --clio-strip-module-width: 30px; --clio-strip-icon-inset: 2px; --clio-strip-menu-top: 7px; --clio-strip-menu-inset: 4px; --clio-strip-handle-width: 18px; --clio-strip-tab-width: 18px; --clio-strip-cap: var(--clio-art-s6-strip-cap); --clio-strip-back: var(--clio-art-s6-strip-back); --clio-strip-forward: var(--clio-art-s6-strip-forward); --clio-strip-menu: var(--clio-art-s6-strip-menu); --clio-strip-handle: var(--clio-art-s6-strip-handle); --clio-strip-tab: var(--clio-art-s6-strip-tab); } /* Inline art. Pixel-grid SVGs, never Apple bitmaps: the System 6 check, radio ring and dot come from system.css (MIT, Sakun Acharige); Platinum's art lives in 90-platinum.css; everything here is drawn for clio.css. See THIRD-PARTY.md. */ :root { --clio-art-s6-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1h-1zM1 1h1v1h-1zM2 2h1v1h-1zM3 3h1v1h-1zM4 4h1v1h-1zM5 5h1v1h-1zM6 6h1v1h-1zM7 7h1v1h-1zM8 8h1v1h-1zM9 9h1v1h-1zM10 10h1v1h-1zM11 11h1v1h-1zM11 0h1v1h-1zM10 1h1v1h-1zM9 2h1v1h-1zM8 3h1v1h-1zM7 4h1v1h-1zM6 5h1v1h-1zM5 6h1v1h-1zM4 7h1v1h-1zM3 8h1v1h-1zM2 9h1v1h-1zM1 10h1v1h-1zM0 11h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v1H4zM0 4h1v4H0zM11 4h1v4h-1zM2 1h2v1H2zM8 1h2v1H8zM10 2h1v2h-1zM1 2h1v2H1zM4 11h4v1H4zM2 10h2v1H2zM8 10h2v1H8zM10 8h1v2h-1zM1 8h1v2H1z'/%3E%3C/svg%3E"); --clio-art-s6-radio-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v2H4zM0 4h2v4H0zM10 4h2v4h-2zM2 1h2v2H2zM8 1h2v2H8zM9 2h2v2H9zM1 2h2v2H1zM4 10h4v2H4zM2 9h2v2H2zM8 9h2v2H8zM9 8h2v2H9zM1 8h2v2H1z'/%3E%3C/svg%3E"); --clio-art-s6-radio-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h4v1H1zM1 5h4v1H1zM0 1h6v4H0z'/%3E%3C/svg%3E"); --clio-art-s6-submenu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E"); --clio-art-s6-submenu-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='11'%3E%3Cpath fill='%23fff' d='m0 0 6 5.5L0 11Z'/%3E%3C/svg%3E"); --clio-art-s6-desktop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3Cpath fill='%23fff' d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E"); /* Measured from System 6.0.8 (tooling/s6-art.py). */ --clio-art-s6-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M6 2h1v1h-1zM5 3h3v1h-3zM4 4h5v1h-5zM3 5h7v1h-7zM2 6h9v1h-9zM4 7h5v1h-5zM4 8h5v1h-5zM4 9h5v1h-5zM4 10h5v1h-5z'/%3E%3Cpath fill='%23000' d='M6 1h1v1h-1zM5 2h1v1h-1zM7 2h1v1h-1zM4 3h1v1h-1zM8 3h1v1h-1zM3 4h1v1h-1zM9 4h1v1h-1zM2 5h1v1h-1zM10 5h1v1h-1zM1 6h1v1h-1zM11 6h1v1h-1zM0 7h4v1h-4zM9 7h4v1h-4zM3 8h1v1h-1zM9 8h1v1h-1zM3 9h1v1h-1zM9 9h1v1h-1zM3 10h1v1h-1zM9 10h1v1h-1zM3 11h7v1h-7z'/%3E%3C/svg%3E"); --clio-art-s6-up-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 2h3v1h-3zM4 3h5v1h-5zM3 4h7v1h-7zM2 5h9v1h-9zM1 6h11v1h-11zM0 7h13v1h-13zM3 8h7v1h-7zM3 9h7v1h-7zM3 10h7v1h-7zM3 11h7v1h-7z'/%3E%3C/svg%3E"); --clio-art-s6-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M4 3h5v1h-5zM4 4h5v1h-5zM4 5h5v1h-5zM4 6h5v1h-5zM2 7h9v1h-9zM3 8h7v1h-7zM4 9h5v1h-5zM5 10h3v1h-3zM6 11h1v1h-1z'/%3E%3Cpath fill='%23000' d='M3 2h7v1h-7zM3 3h1v1h-1zM9 3h1v1h-1zM3 4h1v1h-1zM9 4h1v1h-1zM3 5h1v1h-1zM9 5h1v1h-1zM0 6h4v1h-4zM9 6h4v1h-4zM1 7h1v1h-1zM11 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM9 9h1v1h-1zM4 10h1v1h-1zM8 10h1v1h-1zM5 11h1v1h-1zM7 11h1v1h-1zM6 12h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-down-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M3 2h7v1h-7zM3 3h7v1h-7zM3 4h7v1h-7zM3 5h7v1h-7zM0 6h13v1h-13zM1 7h11v1h-11zM2 8h9v1h-9zM3 9h7v1h-7zM4 10h5v1h-5zM5 11h3v1h-3z'/%3E%3C/svg%3E"); --clio-art-s6-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M5 2h1v1h-1zM4 3h2v1h-2zM3 4h7v1h-7zM2 5h8v1h-8zM1 6h9v1h-9zM2 7h8v1h-8zM3 8h7v1h-7zM4 9h2v1h-2zM5 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M6 0h1v1h-1zM5 1h2v1h-2zM4 2h1v1h-1zM6 2h1v1h-1zM3 3h1v1h-1zM6 3h5v1h-5zM2 4h1v1h-1zM10 4h1v1h-1zM1 5h1v1h-1zM10 5h1v1h-1zM0 6h1v1h-1zM10 6h1v1h-1zM1 7h1v1h-1zM10 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM6 9h5v1h-5zM4 10h1v1h-1zM6 10h1v1h-1zM5 11h2v1h-2zM6 12h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-left-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M6 0h1v1h-1zM5 1h2v1h-2zM4 2h3v1h-3zM3 3h8v1h-8zM2 4h9v1h-9zM1 5h10v1h-10zM1 6h10v1h-10zM1 7h10v1h-10zM2 8h9v1h-9zM3 9h8v1h-8zM4 10h3v1h-3zM5 11h2v1h-2zM6 12h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 2h1v1h-1zM8 3h2v1h-2zM4 4h7v1h-7zM4 5h8v1h-8zM4 6h9v1h-9zM4 7h8v1h-8zM4 8h7v1h-7zM8 9h2v1h-2zM8 10h1v1h-1z'/%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM7 1h2v1h-2zM7 2h1v1h-1zM9 2h1v1h-1zM3 3h5v1h-5zM10 3h1v1h-1zM3 4h1v1h-1zM11 4h1v1h-1zM3 5h1v1h-1zM12 5h1v1h-1zM3 6h1v1h-1zM13 6h1v1h-1zM3 7h1v1h-1zM12 7h1v1h-1zM3 8h1v1h-1zM11 8h1v1h-1zM3 9h5v1h-5zM10 9h1v1h-1zM7 10h1v1h-1zM9 10h1v1h-1zM7 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-right-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M7 0h1v1h-1zM7 1h2v1h-2zM7 2h3v1h-3zM3 3h8v1h-8zM3 4h9v1h-9zM3 5h10v1h-10zM3 6h10v1h-10zM3 7h10v1h-10zM3 8h9v1h-9zM3 9h8v1h-8zM7 10h3v1h-3zM7 11h2v1h-2zM7 12h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-burst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 1h1v1h-1zM2 2h1v1h-1zM5 2h1v1h-1zM8 2h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM1 5h3v1h-3zM5 5h1v1h-1zM7 5h3v1h-3zM3 7h1v1h-1zM5 7h1v1h-1zM7 7h1v1h-1zM2 8h1v1h-1zM5 8h1v1h-1zM8 8h1v1h-1zM5 9h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-ltgray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM2 1h1v1h-1z'/%3E%3Cpath fill='%23fff' d='M1 0h3v1h-3zM0 1h2v1h-2zM3 1h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-grow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M2 2h7v1h-7zM2 3h1v1h-1zM8 3h1v1h-1zM2 4h1v1h-1zM8 4h5v1h-5zM2 5h1v1h-1zM8 5h1v1h-1zM12 5h1v1h-1zM2 6h1v1h-1zM8 6h1v1h-1zM12 6h1v1h-1zM2 7h1v1h-1zM8 7h1v1h-1zM12 7h1v1h-1zM2 8h7v1h-7zM12 8h1v1h-1zM4 9h1v1h-1zM12 9h1v1h-1zM4 10h1v1h-1zM12 10h1v1h-1zM4 11h1v1h-1zM12 11h1v1h-1zM4 12h9v1h-9z'/%3E%3C/svg%3E"); --clio-art-s6-dkgray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='2' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM2 0h2v1h-2zM0 1h3v1h-3z'/%3E%3Cpath fill='%23fff' d='M1 0h1v1h-1zM3 1h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-menucheck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M8 0h1v1h-1zM7 1h2v1h-2zM6 2h2v1h-2zM5 3h2v1h-2zM0 4h1v1h-1zM4 4h2v1h-2zM0 5h2v1h-2zM3 5h2v1h-2zM1 6h3v1h-3zM2 7h1v1h-1z'/%3E%3C/svg%3E"); /* Disclosure triangle: System 6 had none; it takes System 7's (Finder list view, 11px, black with a blue and white checker). */ --clio-disclosure-size: 11px; --clio-disclosure-gap: 4px; --clio-art-disclosure: url("art/system7/disclosure.png"); --clio-art-disclosure-open: url("art/system7/disclosure-open.png"); /* List view (Finder, View by Name; System 7.5.3): headers on the window's white, the sorted one underlined, a double rule (black, white, black) below. */ --clio-list-view-bg: var(--clio-paper); --clio-list-view-row: 16px; --clio-list-view-header-height: 20px; --clio-list-view-header-padding: 0 4px 3px; --clio-list-view-header-bg: linear-gradient(var(--clio-ink), var(--clio-ink)) 0 calc(100% - 2px) / 100% 1px no-repeat, linear-gradient(var(--clio-ink), var(--clio-ink)) 0 100% / 100% 1px no-repeat; --clio-list-view-sorted-header-bg: var(--clio-list-view-header-bg); --clio-list-view-sorted-decoration: underline; --clio-list-view-sorted-bg: transparent; --clio-list-view-sort-width: 0; /* Slider: System 6 had none; it takes Platinum's (Mouse control panel, Mac OS 9.0) until an era draws its own. */ --clio-slider-height: 16px; --clio-slider-track-height: 7px; --clio-slider-track-top: 3px; --clio-slider-track-slice: 3px; --clio-slider-track-slice-n: 3; --clio-slider-thumb-width: 15px; --clio-slider-thumb-height: 16px; --clio-art-slider-track: url("art/platinum/slider-track.png"); --clio-art-slider-thumb: url("art/platinum/slider-thumb.png"); --clio-slider-tick-gap: 0px; --clio-slider-tick-count: 5; --clio-slider-tick-offset: 9px; --clio-slider-tick-run: 18px; --clio-slider-tick-light: #ffffff; --clio-slider-tick-ink: #000000; --clio-slider-tick-shade: #888888; /* Little arrows: System 6 had none; it takes System 7's (Memory control panel, Cache Size: 15x25). Held and dimmed states are not on System 7's screens and keep the normal picture. */ --clio-little-arrows-width: 15px; --clio-little-arrows-height: 25px; --clio-art-little-arrows: url("art/system7/little-arrows.png"); --clio-art-little-arrows-up: var(--clio-art-little-arrows); --clio-art-little-arrows-down: var(--clio-art-little-arrows); --clio-art-little-arrows-disabled: var(--clio-art-little-arrows); /* Bevel button: System 6 and 7 had none; they take Platinum's (Navigation Services, Mac OS 9.0). */ --clio-bevel-min: 20px; --clio-bevel-padding: 0 2px; --clio-bevel-slice: 3px; --clio-bevel-slice-n: 3; --clio-art-bevel: url("art/platinum/bevel.png"); --clio-art-bevel-held: url("art/platinum/bevel-held.png"); --clio-art-bevel-menu-arrow: url("art/platinum/bevel-menu-arrow.png"); --clio-bevel-arrow-right: 5px; --clio-bevel-arrow-bottom: 4px; --clio-bevel-arrow-width: 3px; --clio-bevel-arrow-height: 2px; /* Chasing arrows: Platinum's three frames (Network Browser, Mac OS 9.0). */ --clio-art-chasing-arrows: url("art/platinum/chasing-arrows.png"); --clio-chasing-arrows-frames: 3; /* Separator: a 1px ink line. */ --clio-separator-height: 1px; --clio-separator-margin: 8px 0; --clio-separator-bg: var(--clio-ink); /* Help button: Platinum's (Keyboard control panel, Mac OS 9.0). */ --clio-art-help-button: url("art/platinum/help-button.png"); --clio-image-well-bg: #ffffff; /* Utility window: the document window's parts at the size of System 7's floating windows (inferred: none was on the captured screens). */ --clio-utility-titlebar-height: 13px; --clio-utility-titlebar-row: 11px; --clio-utility-box-size: 9px; --clio-utility-slot: 13px; --clio-utility-title-size: 9px; /* Help balloon: Mac OS 9.0's (Balloon Help), the same in every era. */ --clio-art-balloon: url("art/platinum/balloon.png"); --clio-art-balloon-tail: url("art/platinum/balloon-tail.png"); /* Scrolling menu arrows: System 6 and 7 (Control Panels submenu, System 7.5.3), black, 5px in from the item's left (up arrow inferred, mirrored). */ --clio-art-menu-scroll-down: url("art/system7/menu-scroll-down.png"); --clio-art-menu-scroll-up: url("art/system7/menu-scroll-up.png"); --clio-menu-scroll-left: 5px; /* Frames cut from captures by tooling/frame-art.py. */ --clio-art-frame-s6-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAAAAAAD///+D3c/SAAAAAXRSTlMAQObYZgAAACpJREFUeJxjYAxgYBINZWBiYWFgCmB0YGJgYABhBqmVDEx//jAwMAYwAAA66QRtNyAoFwAAAABJRU5ErkJggg=="); --clio-art-frame-s6-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAQMAAADaX5RTAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjkGFgSmZgYmBg/N/IxABiMNSDSRkGACm1Aqb7EOVpAAAAAElFTkSuQmCC"); --clio-art-frame-s6-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAADRJREFUeJxjYD/AIP+BSYGDsYaB5csahg9yTB8+MDEwgJCAAFPDPyaeBAb7H0wPfjCwHwAAEpMM/gNXK+MAAAAASUVORK5CYII="); --clio-art-frame-p9-button: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAADxJREFUeJxjYEgUTGBgYnyk9JCBMUWYYa8O03qGPXIbmBj+MDAwMIERY8pFhbN2jIyOD/7fZ/ov/96eAQBghg8JraaOFgAAAABJRU5ErkJggg=="); --clio-art-frame-p9-button-held: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAAGFBMVEUAAAAAAAB3d3dVVVVmZmYiIiKIiIhEREQ39d/AAAAAAXRSTlMAQObYZgAAAD9JREFUeJxjYAgUDGBgYVRT+8XAGC5zgJ+PUVxG8NErJgZGBgYGJgaGfwwMLA6vH7i8YmRUdfg9n+m/9ur3DAAxwg5nPuolSwAAAABJRU5ErkJggg=="); --clio-art-frame-p9-ring: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANBAMAAACAxflPAAAAG1BMVEUAAAAAAAB3d3fd3d3MzMy7u7uqqqoiIiKIiIhznn7oAAAAAXRSTlMAQObYZgAAAFpJREFUeJxjZGDnYmB7ycDCwKPAwPjzAwujgjEDg+x6xuLDrx6oOXEwCCcxMDAlCTAx/GMAISYGCEDQTGAOUyKLAoOKQgIjY6gAA9PO+4wMElwMDO8+MELNBwCaGBDQEM8mggAAAABJRU5ErkJggg=="); --clio-art-frame-p9-button-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJAgMAAACd/+6DAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAACFJREFUeJxjYA1hYBINZWAKYHRgYmBgQMYMUisZGFhDGAAtsQJ9dgAT/gAAAABJRU5ErkJggg=="); --clio-art-frame-p9-popup: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAAB3d3fd3d27u7uqqqoiIiL///+EaqngAAAAAXRSTlMAQObYZgAAACtJREFUeJxjYEhMYGBi5H/IwJh+klWbQYCBQYAl/OQnOwbGAEUGpv+C9gwAea0HTcaLsPwAAAAASUVORK5CYII="); --clio-art-frame-p9-popup-open: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAGFBMVEUAAAAAAADd3d1mZmZEREQiIiKIiIj///+MKsksAAAAAXRSTlMAQObYZgAAACtJREFUeJxjEBQMYGBii//IwCjOKSbFIMDAIMAozun2iomB4fcGJgbG9wwAWK0GLJJZmp8AAAAASUVORK5CYII="); /* 7x7, slice 3 */ --clio-art-frame-p9-popup-disabled: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAgMAAAC5PL9AAAAACVBMVEUAAACIiIjd3d2RXqmqAAAAAXRSTlMAQObYZgAAAB1JREFUeJxjZLVmEg5gChBhcGBh0ljAtOENI6s1ACDmA/qjrWTUAAAAAElFTkSuQmCC"); --clio-art-s6-gray50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E"); --clio-art-s6-menucheck-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M8 0h1v1h-1zM7 1h2v1h-2zM6 2h2v1h-2zM5 3h2v1h-2zM0 4h1v1h-1zM4 4h2v1h-2zM0 5h2v1h-2zM3 5h2v1h-2zM1 6h3v1h-3zM2 7h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-s6-strip-cap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 1h13v22H1z'/%3E%3Cpath d='M0 0h15v1H0zM0 23h15v1H0zM0 1h1v22H0zM14 1h1v22h-1zM3 8h8v1H3zM3 15h8v1H3zM3 9h1v6H3zM10 9h1v6h-1z'/%3E%3C/svg%3E"); --clio-art-s6-strip-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M4 1h1v8H4zM3 2h1v6H3zM2 3h1v4H2zM1 4h1v2H1z'/%3E%3C/svg%3E"); --clio-art-s6-strip-forward: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h1v8H5zM6 2h1v6H6zM7 3h1v4H7zM8 4h1v2H8z'/%3E%3C/svg%3E"); --clio-art-s6-strip-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v7H0zM1 1h1v5H1zM2 2h1v3H2zM3 3h1v1H3z'/%3E%3C/svg%3E"); --clio-art-s6-strip-handle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 1h9l8 8v6l-8 8H0z'/%3E%3Cpath d='M0 0h10v1H0zM10 1h1v1h-1zM11 2h1v1h-1zM12 3h1v1h-1zM13 4h1v1h-1zM14 5h1v1h-1zM15 6h1v1h-1zM16 7h1v1h-1zM17 8h1v8h-1zM16 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM13 19h1v1h-1zM12 20h1v1h-1zM11 21h1v1h-1zM10 22h1v1h-1zM0 23h10v1H0zM5 6h1v1H5zM5 9h1v1H5zM5 12h1v1H5zM5 15h1v1H5zM5 18h1v1H5z'/%3E%3C/svg%3E"); --clio-art-s6-strip-tab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 1h9l8 8v6l-8 8H0z'/%3E%3Cpath d='M0 0h10v1H0zM10 1h1v1h-1zM11 2h1v1h-1zM12 3h1v1h-1zM13 4h1v1h-1zM14 5h1v1h-1zM15 6h1v1h-1zM16 7h1v1h-1zM17 8h1v8h-1zM16 16h1v1h-1zM15 17h1v1h-1zM14 18h1v1h-1zM13 19h1v1h-1zM12 20h1v1h-1zM11 21h1v1h-1zM10 22h1v1h-1zM0 23h10v1H0zM5 6h1v1H5zM5 9h1v1H5zM5 12h1v1H5zM5 15h1v1H5zM5 18h1v1H5z'/%3E%3C/svg%3E"); /* Rounded-corner window (rDocProc): corner masks and frame curves, tooling/rare-art.py. */ --clio-art-rdoc-mask-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 0h1v1h-1zM3 1h3v1h-3zM2 2h4v1h-4zM1 3h5v1h-5zM1 4h5v1h-5zM0 5h6v1h-6z'/%3E%3C/svg%3E"); --clio-art-rdoc-frame-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M5 0h1v1h-1zM3 1h3v1h-3zM2 2h2v1h-2zM1 3h2v1h-2zM1 4h1v1h-1zM0 5h2v1h-2z'/%3E%3C/svg%3E"); --clio-art-rdoc-mask-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h3v1h-3zM0 2h4v1h-4zM0 3h5v1h-5zM0 4h5v1h-5zM0 5h6v1h-6z'/%3E%3C/svg%3E"); --clio-art-rdoc-frame-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h1v1h-1zM0 1h3v1h-3zM2 2h2v1h-2zM3 3h2v1h-2zM4 4h1v1h-1zM4 5h2v1h-2z'/%3E%3C/svg%3E"); --clio-art-rdoc-mask-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h6v1h-6zM1 1h5v1h-5zM1 2h5v1h-5zM2 3h4v1h-4zM3 4h3v1h-3zM5 5h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-rdoc-frame-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h2v1h-2zM1 1h1v1h-1zM1 2h2v1h-2zM2 3h2v1h-2zM3 4h3v1h-3zM5 5h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-rdoc-mask-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M0 0h6v1h-6zM0 1h5v1h-5zM0 2h5v1h-5zM0 3h4v1h-4zM0 4h3v1h-3zM0 5h1v1h-1z'/%3E%3C/svg%3E"); --clio-art-rdoc-frame-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' d='M4 0h2v1h-2zM4 1h1v1h-1zM3 2h2v1h-2zM2 3h2v1h-2zM0 4h3v1h-3zM0 5h1v1h-1z'/%3E%3C/svg%3E"); } /* Base. clio.css styles elements only inside its own components, plus bare form controls through :where(), so every rule here has zero specificity and your own CSS always wins. It never restyles unless you ask with .desktop. */ :where(.desktop) { margin: 0; min-height: 100vh; background: var(--clio-desktop); color: var(--clio-ink); } :where(.window, .menu-bar, [role="menubar"], [role="menu-bar"], .menu, [role="menu"], .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .rounded-window, .clio) { box-sizing: border-box; color: var(--clio-ink); font-family: var(--clio-font-chrome); font-size: var(--clio-font-size); font-weight: var(--clio-chrome-weight); font-stretch: var(--clio-font-stretch-text); font-synthesis: none; line-height: 16px; -webkit-font-smoothing: var(--clio-font-smoothing); -moz-osx-font-smoothing: grayscale; /* Firefox on macOS otherwise thickens the pixel squares with a grey fringe */ } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *, :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *::before, :where(.window, .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .clio) *::after { box-sizing: border-box; } /* Application text (Geneva role) for content areas. */ :where(.window-pane, .modal-contents, .alert-contents, .text, .details-bar, .listbox, [role="listbox"], .status-bar, .icon, input, textarea) { font-family: var(--clio-font-text); font-stretch: var(--clio-font-stretch-text); -webkit-font-smoothing: var(--clio-text-smoothing); -moz-osx-font-smoothing: var(--clio-text-smoothing-moz); } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(h1, h2, h3, h4, .heading) { margin: 0 0 8px; font-family: var(--clio-font-chrome); font-size: var(--clio-font-size); font-weight: var(--clio-chrome-weight); line-height: 16px; } :where(.display) { font-family: var(--clio-font-display); -webkit-font-smoothing: auto; } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(p) { margin: 0 0 8px; } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(a) { color: inherit; } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(code, kbd, pre, samp) { font-family: var(--clio-font-mono); } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) :where(hr) { height: 0; margin: 8px 0; border: 0; border-top: var(--clio-border); } :where(.window, .modal-dialog, .alert-box, .standard-dialog, .clio) ::selection { background: var(--clio-selection-bg); color: var(--clio-selection-fg); } /* A row of controls with their label (system.css name kept). */ :where(.field-row, .field-row-stacked) { display: flex; align-items: center; gap: 6px; } :where(.field-row-stacked) { flex-direction: column; align-items: flex-start; gap: 4px; } :where(.field-row, .field-row-stacked) + :where(.field-row, .field-row-stacked) { margin-top: 6px; } /* Hidden, still read aloud. */ :where(.visually-hidden, .title-bar button > span) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* Cursors: the arrow, the I-beam and the watch redrawn pixel for pixel from System 7.5.3 and Mac OS 9.0 (tooling/cursor-art.py; the arrow is the same in both), at 1x, 2x and 3x. On by default; class="clio-system-cursors" on gives the system's own back. The Mac had no pointing hand: links and buttons inside clio.css's windows keep the arrow. aria-busy="true" shows the watch (hot spot 8,8); clio.js spins its seven frames four ticks a frame, as the System's 'acur' resource -6078 does. */ :where(:root) { --clio-cursor-arrow: image-set(url("art/cursors/arrow.png") 1x, url("art/cursors/arrow-2x.png") 2x, url("art/cursors/arrow-3x.png") 3x) 1 1, default; --clio-cursor-text: image-set(url("art/cursors/ibeam.png") 1x, url("art/cursors/ibeam-2x.png") 2x, url("art/cursors/ibeam-3x.png") 3x) 3 4, text; --clio-cursor-wait: image-set(url("art/cursors/watch.png") 1x, url("art/cursors/watch-2x.png") 2x, url("art/cursors/watch-3x.png") 3x) 8 8, wait; --clio-cursor-watch-count: 7; cursor: var(--clio-cursor-arrow); } /* System 6.0.8's watch is a different drawing: a square face on a band, six frames in the System file's 'CURS' 258-263 (tooling/s6-watch-art.py), not the round watch of System 7.5.3 and Mac OS 9.0 ('CURS' -20721..-20715). */ :where([data-era="system6"]) { --clio-cursor-wait: image-set(url("art/cursors/watch6.png") 1x, url("art/cursors/watch6-2x.png") 2x, url("art/cursors/watch6-3x.png") 3x) 8 8, wait; --clio-cursor-watch-count: 6; } :where(:root.clio-system-cursors) { --clio-cursor-arrow: default; --clio-cursor-text: text; --clio-cursor-wait: wait; } :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="button"], [type="submit"], [type="reset"], [type="color"], [type="file"], [type="image"]), textarea, [contenteditable]:not([contenteditable="false"])) { cursor: var(--clio-cursor-text); } :where(.window, .menu-bar, [role="menubar"], .menu, [role="menu"], .modal-dialog, .alert-box, .standard-dialog, .modeless-dialog, .control-strip, .clio, .desktop) :where(a:any-link, button, label, summary, select, [role="button"], [role="tab"]) { cursor: var(--clio-cursor-arrow); } :where([aria-busy="true"]), :where([aria-busy="true"]) * { cursor: var(--clio-cursor-wait); } /* Windows. Markup: .window > .title-bar (> .close, .title, .resize [, .shade]) > optional .details-bar > .window-pane. system.css markup (.title-bar button.close / button.resize, .inactive-title-bar) and AI System 6 markup (.close-box, .resize-box, .shade-box, h1/h2 as the title) also work. */ :where(.window) { position: relative; display: flex; flex-direction: column; min-width: 120px; padding: var(--clio-window-padding); border: var(--clio-window-border); background: var(--clio-window-bg); box-shadow: var(--clio-window-shadow); } /* ---- Title bar --------------------------------------------------------- System 6: a 17px box under a 1px inset: 2px of paper, six 1px ink stripes on a 2px period across a 12px row, 2px of paper, then the 1px rule. */ .title-bar, .inactive-title-bar { --clio-tb-close: var(--clio-titlebar-slot); --clio-tb-zoom: var(--clio-titlebar-slot); --clio-tb-shade: var(--clio-titlebar-shade-slot); --clio-tb-gutter: max(var(--clio-tb-close), calc(var(--clio-tb-zoom) + var(--clio-tb-shade))); position: relative; display: grid; flex: none; grid-template-columns: var(--clio-tb-gutter) minmax(0, 1fr) var(--clio-tb-zoom) calc(var(--clio-tb-gutter) - var(--clio-tb-zoom)); grid-template-rows: var(--clio-titlebar-row); align-items: start; box-sizing: border-box; height: var(--clio-titlebar-height); margin: var(--clio-titlebar-margin); padding: var(--clio-titlebar-padding); border-bottom: var(--clio-titlebar-border); background: var(--clio-titlebar-bg); font-family: var(--clio-font-chrome); user-select: none; -webkit-user-select: none; } /* A slot is reserved only for a control that is really there, so the title stays centred on the whole bar. */ .title-bar:not(:has(> :is(.resize, .resize-box, .zoom))) { --clio-tb-zoom: 0px; } .title-bar:not(:has(> :is(.shade, .shade-box, .collapse))) { --clio-tb-shade: 0px; } .title-bar > :is(.title, h1, h2, h3), .inactive-title-bar > :is(.title, h1, h2, h3) { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; height: var(--clio-titlebar-row); margin: 0; padding: var(--clio-title-padding); overflow: hidden; background: var(--clio-title-bg); color: var(--clio-title-fg); font-family: var(--clio-font-window-title, var(--clio-font-chrome)); font-size: var(--clio-title-font-size); font-stretch: var(--clio-font-stretch-title); font-weight: var(--clio-chrome-weight); line-height: var(--clio-titlebar-row); text-align: center; text-overflow: ellipsis; white-space: nowrap; } /* ---- Close, zoom and collapse boxes ------------------------------------ */ .title-bar > :is(button, .close, .close-box, .resize, .resize-box, .zoom, .shade, .shade-box, .collapse) { position: relative; grid-row: 1; width: var(--clio-box-size); min-width: 0; height: var(--clio-box-size); min-height: 0; margin: 0; padding: 0; border: 1px solid var(--clio-ink); border-radius: 0; background: var(--clio-paper); box-shadow: 0 0 0 var(--clio-box-isolation) var(--clio-paper); color: transparent; font-size: 0; appearance: none; -webkit-appearance: none; cursor: var(--clio-cursor-arrow); touch-action: manipulation; } .title-bar > :is(.close, .close-box) { grid-column: 1; justify-self: start; margin-left: var(--clio-box-inset); } .title-bar > :is(.resize, .resize-box, .zoom) { grid-column: 3; justify-self: end; margin-right: var(--clio-box-inset); } /* System 6 had no WindowShade box; only an era that opens the slot shows it. */ .title-bar > :is(.shade, .shade-box, .collapse) { display: var(--clio-shade-display); grid-column: 4; justify-self: end; } /* Held close or zoom box: System 6 draws the same starburst in both (measured, 6.0.8); the zoom box's inner square goes while it is held. */ .title-bar > :is(.close, .close-box, .resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active) { background: var(--clio-art-s6-burst) 0 0 / 11px 11px no-repeat border-box, var(--clio-paper); } /* Zoom box: an inner square sharing the outer frame's top-left corner, 7 of the frame's 11 pixels (System 6's 7:11 ratio). */ .title-bar > :is(.resize, .resize-box, .zoom)::before { content: ""; position: absolute; top: -1px; left: -1px; width: 7px; height: 7px; border-right: 1px solid var(--clio-ink); border-bottom: 1px solid var(--clio-ink); box-sizing: border-box; } .title-bar > :is(.resize, .resize-box, .zoom):is(:active:where(:not([data-clio-off])), .active)::before { opacity: 0; } .title-bar > button:focus-visible { outline: var(--clio-focus-outline); outline-offset: calc(var(--clio-box-isolation) - 1px); } /* ---- Inactive windows ---------------------------------------------------- System 6 draws a background window's title bar as a plain strip with its name: no stripes, no close box, no zoom box. */ .window.inactive > .title-bar, .inactive-title-bar { background: var(--clio-titlebar-inactive-bg); } .window.inactive > .title-bar > :is(.title, h1, h2, h3), .inactive-title-bar > :is(.title, h1, h2, h3) { color: var(--clio-title-inactive-fg); } .window.inactive > .title-bar > :not(.title, h1, h2, h3), .inactive-title-bar > :not(.title, h1, h2, h3) { visibility: hidden; } /* ---- Window body ------------------------------------------------------- */ :where(.window-pane) { flex: 1 1 auto; min-height: 0; padding: 8px; overflow: auto; background: var(--clio-pane-bg); font-size: var(--clio-font-size); line-height: 16px; } /* Finder's info line ("3 items 1,234K in disk"), ruled twice below. */ :where(.details-bar) { display: flex; flex: none; justify-content: space-between; gap: 16px; min-height: var(--clio-details-height); padding: var(--clio-details-padding); border-bottom: var(--clio-details-border); background: var(--clio-details-bg); box-shadow: var(--clio-details-shadow, none); font-family: var(--clio-font-small); font-size: var(--clio-details-font-size); line-height: var(--clio-details-height); white-space: nowrap; } /* A separator line between groups in a window or dialog (Mac OS 8 HIG: "Separator Lines"):
    or
    . */ :where(.separator) { flex: none; box-sizing: border-box; height: var(--clio-separator-height); margin: var(--clio-separator-margin); border: 0; background: var(--clio-separator-bg); } /* A status line under the pane. */ :where(.status-bar) { display: flex; flex: none; gap: 12px; padding: 1px 8px; border-top: var(--clio-border); background: var(--clio-details-bg); font-family: var(--clio-font-small); font-size: var(--clio-font-size-small); line-height: 14px; } /* Collapsed (WindowShade; clio.js toggles .collapsed from the collapse box): only the title bar stays. */ :where(.window.collapsed) { height: auto !important; min-height: 0 !important; } :where(.window.collapsed) > :not(.title-bar) { display: none !important; } /* Menu bar and menus. Markup: . A menu opens while its title has aria-expanded="true" or the class .open (your script toggles either), or while focus is inside it, so it works with the keyboard and no script. system.css's role="menu-bar" / role="menu-item" markup is accepted too. */ :where(.menu-bar, ul[role="menubar"], ul[role="menu-bar"]) { display: flex; align-items: stretch; box-sizing: border-box; height: var(--clio-menubar-height); margin: 0; padding: var(--clio-menubar-padding); list-style: none; border-bottom: var(--clio-menubar-border); background: var(--clio-menubar-bg); box-shadow: var(--clio-menubar-shadow); user-select: none; -webkit-user-select: none; /* A press dragged from a title to an item is the Mac's MenuDrag, not a scroll or a long-press callout: the bar and its menus keep the gesture (touch). */ touch-action: none; -webkit-touch-callout: none; } :where(.menu-bar, [role="menubar"], [role="menu-bar"]) > li { position: relative; display: flex; align-items: stretch; } /* Menu titles: a