Previews

Pages

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<fieldset class="flex flex-col gap">
<div class="flex items-center gap">
<input type="checkbox" name="terms" id="terms" value="1" class="input" />
<label class="text-sm font-medium" for="terms">Accept terms and conditions</label>
</div>
<div class="flex items-start gap">
<input type="checkbox" name="terms_2" id="terms_2" value="1" class="input" checked="checked" />
<div class="flex flex-col gap-half">
<label class="text-sm leading-none font-medium" for="terms_2">Accept terms and conditions</label>
<p class="text-sm text-subtle ">By clicking this checkbox, you agree to the terms and conditions.</p>
</div>
</div>
<div class="flex items-center gap">
<input type="checkbox" name="toggle" id="toggle" value="1" disabled="disabled" class="input" />
<label class="text-sm font-medium" for="toggle">Enable notifications</label>
</div>
<label class="card-check flex items-start gap" style="max-inline-size: 400px">
<input type="checkbox" name="toggle_2" id="toggle_2" value="1" class="input" checked="checked" />
<div class="flex flex-col gap-half">
<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>
</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
<fieldset class="flex flex-col gap">
<div class="flex items-center gap">
<%= check_box_tag :terms, class: "input" %>
<%= label_tag :terms, "Accept terms and conditions", class: "text-sm font-medium" %>
</div>
<div class="flex items-start gap">
<%= check_box_tag :terms_2, 1, true, class: "input" %>
<div class="flex flex-col gap-half">
<%= label_tag :terms_2, "Accept terms and conditions", class: "text-sm leading-none font-medium" %>
<p class="text-sm text-subtle ">By clicking this checkbox, you agree to the terms and conditions.</p>
</div>
</div>
<div class="flex items-center gap">
<%= check_box_tag :toggle, disabled: true, class: "input" %>
<%= label_tag :toggle, "Enable notifications", class: "text-sm font-medium" %>
</div>
<label class="card-check flex items-start gap" style="max-inline-size: 400px">
<%= check_box_tag :toggle_2, 1, true, class: "input" %>
<div class="flex flex-col gap-half">
<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>
</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
: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, .375rem .75rem);
}
&: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-negative);
}
&:user-invalid + .invalid-feedback {
display: block;
}
&: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-negative);
}
}
.input--actor > input {
border: 0; inline-size: 100%; outline: 0;
}
.input--actor: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.