-
Notifications
You must be signed in to change notification settings - Fork 1
/
fieldset.css
65 lines (54 loc) · 1.42 KB
/
fieldset.css
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
/**
<h1><menu> groupping</h1>
<h2>menu button</h2>
<menu>
<button>Left</button>
<button>Center</button>
<button>Right</button>
</menu>
<h2>menu radio</h2>
<menu>
<label><input type=radio name=x value=1><div>𝐁</div></label>
<label><input type=radio name=x value=2><div>𝐼</div></label>
<label><input type=radio name=x value=3 checked><div>u͢</div></label>
</menu>
<menu>
<label><input type=radio name=a value=1><div>⇤</div></label>
<label><input type=radio name=a value=2 checked><div>☰</div></label>
<label><input type=radio name=a value=3><div>↦</div></label>
</menu>
<h2>menu a</h2>
<menu>
<a type=button href=#>1</a>
<a type=button href=#>2</a>
<a type=button href=#>3</a>
<a type=button href=#>4</a>
<a type=button href=#>5</a>
<a type=button href=#>6</a>
</menu>
**/
menu {
padding: 0;
margin: 0;
display: inline-flex;
}
menu>label:not(:first-child):not(:last-child)>input[type=radio]+*,
menu>*:not(:first-child):not(:last-child) {
border-radius: 0 0 0 0;
}
menu>*:not(:first-child){
margin-left: calc(var(--border-size)*-1);
}
menu>label:first-child>input[type=radio]+*,
menu>*:first-child {
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
menu>label:last-child>input[type=radio]+*,
menu>*:last-child {
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
}
menu>label>input[type=radio] {
display: none;
}