clio.css窗口控件列表Menu

Check box
Chinese text garbled? Show it as pictures

画在原生 <input type=checkbox> 上的复选框,不需要额外的 label 标记。

示例:checkbox

<div class="field-row-stacked">
  <label><input type="checkbox" checked> Show warnings</label>
  <label><input type="checkbox"> Use small icons</label>
  <label><input type="checkbox" checked disabled> Locked</label>
</div>

Check box 简介

选择器
input[type=checkbox] label > input[type=checkbox] .field-row
Token
--clio-check-size --clio-check-bg --clio-check-border --clio-check-shadow --clio-check-mark
无障碍
它是原生 input,所以键盘、表单和屏幕阅读器的行为都由浏览器负责。在强制颜色模式下,控件改回系统自己的画法。

证据(8)

每个数值的来源(英文)
年代数值状态来源
System 7Identical to System 6: 12px, X when checked实测clio.css capture, System 7.5.3 in Infinite Mac (npm run capture:system7), frame general-controls
100% identical, on and off
System 6A 12px box with a 1px frame; held, the frame thickens to 2px实测clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame get-info (Locked)
AI System 6 uses 13px
System 6Checked draws an X from corner to corner of the box实测clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame get-info-checked (Locked)
the art is system.css's checkmark.svg (MIT), which matches
System 6X art第三方apps/desktop/assets/themes/classic/controls/checkmark.svg
system.css icon/checkmark.svg (MIT, Sakun Acharige)
Platinum12px #ddd well, 1px black frame, white top-left and #888 bottom-right bevel实测apps/desktop/styles/65-appearance-themes.css:897 (P18)
GUIdebook Mac OS 9.0 Appearance Options tab (checkbox specimens)
PlatinumCheck mark: Mac OS 9's grey-shaded mark inside the frame, overhanging its right edge by two pixels实测clio.css capture, Mac OS 9.0 in Infinite Mac (npm run capture:platinum), frame general-controls; redrawn by tooling/p9-art.py
Show Desktop when in background; 96.4% identical (the frame 98.6%)
Drawing BoardCheck box: the theme's 14x11 pictures; image 0 off, 1 on, 3 mixed, 4/5 pressed, 8/9 disabled实测clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frames general-controls and date-time; the theme file's pxm# pixmaps, decoded by tooling/theme-resources.py and redrawn by tooling/db-art.py
off, on and disabled found 1:1 (Show Desktop, Show Launcher, Daylight-Saving Time is in effect)
NeXTSTEPSwitch: a 15x15 raised square (white top and left, #555555 then black bottom and right); on, an embossed check实测clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs-dock (Workspace Manager Preferences, Dock), the Dock list's switches); tooling/nx-art.py check
fidelity nx-switch-on, nx-switch-off; AI System 6's 12px switch corrected