x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<fieldset class="flex flex-col gap"> <legend class="i-fit text-sm font-medium leading-none mbe-1">Show these items on the desktop:</legend> <p class="text-sm text-subtle">Select the items you want to show on the desktop.</p> <div class="flex flex-col gap-half"> <div class="flex items-center gap"> <input type="checkbox" name="hard_disks" id="hard_disks" value="1" class="input" checked="checked" /> <label class="text-sm font-normal" for="hard_disks">Hard disks</label> </div> <div class="flex items-center gap"> <input type="checkbox" name="external_disks" id="external_disks" value="1" class="input" checked="checked" /> <label class="text-sm font-normal" for="external_disks">External disks</label> </div> <div class="flex items-center gap"> <input type="checkbox" name="cds_dvds" id="cds_dvds" value="1" class="input" /> <label class="text-sm font-normal" for="cds_dvds">CDs, DVDs, and iPods</label> </div> <div class="flex items-center gap"> <input type="checkbox" name="connected_servers" id="connected_servers" value="1" class="input" /> <label class="text-sm font-normal" for="connected_servers">Connected servers</label> </div> </div></fieldset>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
<fieldset class="flex flex-col gap"> <legend class="i-fit text-sm font-medium leading-none mbe-1">Show these items on the desktop:</legend> <p class="text-sm text-subtle">Select the items you want to show on the desktop.</p> <div class="flex flex-col gap-half"> <div class="flex items-center gap"> <%= check_box_tag :hard_disks, 1, true, class: "input" %> <%= label_tag :hard_disks, "Hard disks", class: "text-sm font-normal" %> </div> <div class="flex items-center gap"> <%= check_box_tag :external_disks, 1, true, class: "input" %> <%= label_tag :external_disks, "External disks", class: "text-sm font-normal" %> </div> <div class="flex items-center gap"> <%= check_box_tag :cds_dvds, 1, false, class: "input" %> <%= label_tag :cds_dvds, "CDs, DVDs, and iPods", class: "text-sm font-normal" %> </div> <div class="flex items-center gap"> <%= check_box_tag :connected_servers, 1, false, class: "input" %> <%= label_tag :connected_servers, "Connected servers", class: "text-sm font-normal" %> </div> </div></fieldset>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
:where(.input) { &:not([type="checkbox"], [type="radio"], [type="range"]) { appearance: none; background-color: var(--input-background, var(--color-surface)); block-size: var(--input-block-size, auto); border: 1px solid var(--input-border-color, var(--color-border)); border-radius: var(--input-radius, var(--rounded-md)); box-shadow: var(--input-box-shadow, var(--shadow-xs)); font-size: var(--input-font-size, var(--text-sm)); inline-size: var(--input-inline-size, var(--size-full)); padding: var(--input-padding, .25rem .625rem); } &:is([type="checkbox"], [type="radio"]) { accent-color: var(--input-accent-color, var(--color-primary)); block-size: var(--input-check-size, var(--size-4)); inline-size: var(--input-check-size, var(--size-4)); } &:is([type="range"]) { accent-color: var(--input-accent-color, var(--color-primary)); } &:is(textarea[rows="auto"]) { field-sizing: content; max-block-size: calc(.875rem + var(--input-max-rows, 10lh)); min-block-size: calc(.875rem + var(--input-rows, 2lh)); } &:is(select):not([multiple], [size]) { background-image: url("chevron-down-zinc-500.svg"); background-position: center right var(--size-2); background-repeat: no-repeat; background-size: var(--size-4) auto; } > option { padding: revert; } &::file-selector-button { font-weight: var(--font-medium); } &:user-invalid { border-color: var(--color-text-negative); } &:user-invalid + [feedback] { display: unset; } &:focus-visible { outline: var(--input-outline-size, 2px) solid var(--color-selected-dark); } &:disabled { cursor: not-allowed; opacity: var(--opacity-50); } .field_with_errors & { border-color: var(--color-text-negative); }}.input--actor { > input { inline-size: 100%; outline: 0; } &:focus-within { outline: var(--input-outline-size, 2px) solid var(--color-selected-dark); }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.