Previews

Pages

No matching results.

x
1
2
3
4
<div class="group" style="max-inline-size: 320px" role="group" aria-label="Input example">
<input type="text" name="email" id="email" placeholder="Email" class="input" />
<button name="button" type="button" class="btn">Subscribe</button>
</div>
1
2
3
4
<div class="group" style="max-inline-size: 320px" role="group" aria-label="Input example">
<%= text_field_tag "email", nil, placeholder: "Email", class: "input" %>
<%= button_tag "Subscribe", class: "btn", type: "button" %>
</div>
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
.group {
display: flex;
flex-direction: row;
> :first-child {
border-end-end-radius: 0;
border-start-end-radius: 0;
}
> :last-child {
border-end-start-radius: 0;
border-start-start-radius: 0;
}
> :not(:first-child) {
border-inline-start: 0;
}
> :not(:first-child, :last-child) {
border-radius: 0;
}
> :focus-visible {
z-index: 1;
}
}
.group-vertical {
display: flex;
flex-direction: column;
> :first-child {
border-end-end-radius: 0;
border-end-start-radius: 0;
}
> :last-child {
border-start-end-radius: 0;
border-start-start-radius: 0;
}
> :not(:first-child) {
border-block-start: 0;
}
> :not(:first-child, :last-child) {
border-radius: 0;
}
> :focus-visible {
z-index: 1;
}
}
Java Script is not required or multiple files are needed, check the notes.