Previews

No matching results.

Pages

No matching results.

x
1
2
3
4
5
6
7
<label class="item item--outline item--check flex items-start">
<input type="checkbox" name="toggle_2" id="toggle_2" value="1" class="input" checked="checked" />
<div class="flex flex-col gap-half mis-2">
<h5 class="text-sm leading-none font-medium">Enable notifications</h5>
<p class="text-sm text-subtle">You can enable or disable notifications at any time.</p>
</div>
</label>
1
2
3
4
5
6
7
<label class="item item--outline item--check flex items-start">
<%= check_box_tag :toggle_2, 1, true, class: "input" %>
<div class="flex flex-col gap-half mis-2">
<h5 class="text-sm leading-none font-medium">Enable notifications</h5>
<p class="text-sm text-subtle">You can enable or disable notifications at any time.</p>
</div>
</label>
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
.item {
background-color: var(--item-background, transparent);
border: 1px solid var(--item-border-color, var(--color-border));
border-radius: var(--rounded-md);
padding: var(--size-4);
}
.item--muted {
--item-background: rgb(from var(--color-border-light) r g b / .5);
}
.item--borderless {
--item-border-color: transparent;
}
.item--link:hover {
--item-background: rgb(from var(--color-border-light) r g b / .5);
}
.item--link:focus-visible {
outline: 2px solid var(--color-selected-dark);
}
.item--check:has(:checked) {
--item-background: rgb(from var(--color-border-light) r g b / .5);
--item-border-color: var(--color-primary);
}
Java Script is not required or multiple files are needed, check the notes.