-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathcombinators-page.css
More file actions
59 lines (47 loc) · 1.11 KB
/
combinators-page.css
File metadata and controls
59 lines (47 loc) · 1.11 KB
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
.direct-child--type>Button {
background-color: red;
color: white;
}
.direct-child--class>.test-child {
background-color: blue;
color: white;
}
.direct-sibling--type Button+Label {
background-color: green;
color: white;
}
.direct-sibling--id #test-child+#test-child-2 {
background-color: pink;
}
.direct-sibling--class .test-child+.test-child-2 {
background-color: yellow;
}
.direct-sibling--attribute Button[data="test-child"]+Button[data="test-child-2"] {
background-color: blueviolet;
color: white;
}
.direct-sibling--pseudo-selector Button+Button:disabled {
background-color: black;
color: white;
}
.general-sibling--type Button ~ Label {
background-color: green;
color: white;
}
.general-sibling--class .test-child ~ .test-child-2 {
background-color: yellow;
}
.general-sibling--attribute Button[data="test-child"] ~ Button[data="test-child-2"] {
background-color: blueviolet;
color: white;
}
.general-sibling--pseudo-selector Button.ref ~ Button:disabled {
background-color: black;
color: white;
}
.sibling-test-label {
text-align: center;
}
.sibling-test-label {
margin-top: 8;
}