-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbirds.css
More file actions
224 lines (192 loc) · 4.29 KB
/
Copy pathbirds.css
File metadata and controls
224 lines (192 loc) · 4.29 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/* birds.css - styles for combinator birds */
html, body, div, span, svg {
margin: 0;
border: 0;
padding:0;
box-sizing:border-box;
}
html, body, div {
line-height:0;
}
.text { line-height:initial; }
/* combinator body */
.combinator {
border-color:black;
border-width:1px;
border-style:dotted;
margin-left: 4px;
margin-right:4px; /* border adds an extra 1px */
background-color:white;
min-width:40px;
min-height:20px;
max-width: 400px;
position:relative;
display:inline-block;
vertical-align: bottom;
}
.combinator .betareduced { /* untested */
border-color: transparent; /* still take up space in box model and not mess up positioning */
margin-left:0px;
margin-right:0px;
}
.betareduced > .leftcircle, .betareduced > .rightcircle {
display:none;
}
.top > .combinator {
margin-top: 5px;
}
.bottom > .combinator {
margin-top:5px;
margin-bottom:5px;
bottom: auto;
}
.simple-combinator {
bottom:5px; /* equalize applycircle height with other combinators */
}
.top > .simple-combinator {
bottom:0px;
}
/* use margin-bottom? */
.rhyme {
min-width:10px;
/* width:15px; */
height:100%;
/* margin-right:10px; removed:use */
display:inline-block;
position:relative;
left:0px;
vertical-align:top;
}
.norhyme-container {
display:inline-block;
/*margin-top: 4px;*/
}
/* leftcircle and rightcircle -- use :before/:after instead? */
.leftcircle {
background-color:black;
border-bottom-left-radius:5px;
border-top-left-radius:5px;
width: 5px;
height: 10px;
position:absolute;
}
.rightcircle {
background-color:black;
border-bottom-right-radius:5px;
border-top-right-radius:5px;
width:5px;
height:10px;
position:absolute;
}
.combinator > .leftcircle{
right:100%;
bottom:10px;
}
.combinator > .rightcircle{
left:100%;
bottom:10px;
}
.apply > .leftcircle{
right:0%;
bottom:-5px;
}
.apply > .rightcircle{
left:100%;
bottom:-5px;
}
/* more special things for I etc */
.simple-combinator > .leftcircle , .simple-combinator > .rightcircle {
bottom:4px;
/* a combinator that does not contain any sub-combinator on the bottom */
}
/* turndown from top half to bottom half */
.turndown {
border-top: 1px;
border-left: 0px;
border-right: 1px;
border-bottom: 0px;
border-style: solid;
position:relative;
height:10px; /* up to combinator's rightcircle. */
min-width:20px;
/* width always the same as apply, eg
* .-----------.
* |___________| ---.
* ------------- ---O--- (no combinator on the bottom is a <continue>)
* OR
*
* -(-------)---. <-- turndown is same length, but apply is taller abc > `a`bc
* |
* -(------.) |
* -(------O)---O---
* (apply has min-width that matches with turndown minwidth)
* .apply must have 100% height of div.bottom
*/
}
/*.top > .turndown,*/
.combinator + .turndown, .continue + .turndown {
display:inline-block;
}
/* apply in bottom half */
.apply { /* may overlap with turndown ?? */
border-right: 1px;
border-bottom:1px;
border-left:0px;
border-top:0px;
border-style: solid;
min-width:20px;
min-height:20px;
height: 100% ;
position:relative;
margin-bottom:9px; /* match up with combinator rightcircle */
display:inline-block;
}
/* .bottom > .apply {} */
.combinator + .apply {
display:inline-block; /* the combinator too */
bottom:5px;
}
.simple-combinator > .norhyme-container > .bottom > .apply {
min-height:15px;
}
.continue {
border-top:1px solid;
position:relative;
min-width:20px;
margin-bottom:9px; /* up to apply's rightcircle = combinator's rightcircle. */
bottom:5px;
}
.norhyme-container + .continue {
display:inline-block;
top:auto;
}
.combinator > .continue:first-child { /* for I only (inconsistent, change?)*/
height:0px;
margin-top:9px;
}
.top > .continue, .bottom > .continue { /* most important, esp in basic combinators */
display:inline-block;
vertical-align:bottom;
margin-top:10px;
}
.simple-combinator > .continue , .simple-combinator > .norhyme-container > div > .continue {
bottom:auto;
}
/* rhyme */
line {
stroke:black;
stroke-width:1px; /* or .7px and no crispEdges (scales better) */
shape-rendering:crispEdges;
}
.rhyme > svg {
min-width:10px;
min-height:10px;
height: inherit;
max-width:30px;
}
div.combinator :focus :before {
/* on hover, show options/code/etc */
}
div.combinator :hover {
/* show which is selected (make sure only one, not parents/children?) */
}