-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathbasic.css
130 lines (98 loc) · 1.76 KB
/
basic.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@custom-selector :--foo .bar, .baz;
.foo:--foo {
margin-top: 16px;
}
@custom-selector :--any-heading h1, h2, h3, h4, h5, h6;
:--any-heading + p {}
@custom-selector :--foobar .foo, .bar;
@custom-selector :--baz .baz;
@custom-selector :--fizzbuzz .fizz, .buzz;
@custom-selector :--button-types
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger;
:--foobar > :--baz {}
:--fizzbuzz > :--foobar {}
:--button-types, :--button-types:active {}
@custom-selector :--commented-foo
/* comment */
.foo,
.bar > .baz;
:--commented-foo + p {
display: block;
}
@custom-selector :--pseudo ::before, ::after;
.foo > a:--pseudo img {
display: block;
}
@custom-selector :--foo .foo;
:--foo, :--foo.bar {
color: white;
}
:--foo :--foo:hover {
color: white;
}
@custom-selector :--fo-----o h1, h2, h3;
@custom-selector :--ba-----r h4, h5, h6;
.fo--oo > :--fo-----o {
margin: auto;
}
:--ba-----r:hover .ba--z {
display: block;
}
/* comment */
article :--heading + p {
margin-top: 0;
}
@custom-selector :--multiline
.foo,
.bar > .baz;
:--multiline {
display: block;
}
/* should works with collapsed custom selectors */
@custom-selector :--button button, .button;
@custom-selector :--enter :hover, :focus;
:--button:--enter {}
@custom-selector :--any-foobar .foo, .bar;
:--any-foobar h1 {
margin-top: 16px;
}
main :--foo + p {
margin-top: 16px;
}
@custom-selector :--foobar .foo;
:--foobar {
order: 1000;
}
a, :--foobar {
order: 1001;
}
b,:--foobar {
order: 1002;
}
@custom-selector :--foobaz .foo.baz;
:--foobaz {
order: 1010;
}
a, :--foobaz {
order: 1011;
}
b,:--foobaz {
order: 1012;
}
@custom-selector :--foobazz .foo .baz;
:--foobazz {
order: 1020;
}
a, :--foobazz {
order: 1021;
}
b,:--foobazz {
order: 1022;
}
b, :--foobazz {
to-clone: 1;
}