generated from edemaine/reveal-pug-talk
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yinyang.styl
67 lines (59 loc) · 1.05 KB
/
yinyang.styl
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
// These widths must match minorWidth and majorWidth in yinyang.coffee
minorWidth = 0.05
majorWidth = 0.15
@media print
.noprint
display: none
.w-100
width: 100%
.text-left
text-align: left
.text-right
text-align: right
.align-middle
vertical-align: middle
svg
width: 100%
height: 100%
touch-action: none
user-select: none
rect.background
fill: #ddd
stroke: none
.grid
line
stroke-width: minorWidth
stroke: #666
stroke-linecap: square
rect.border
fill: none
stroke-width: majorWidth
stroke: black
circle
stroke-width: 0.05 // 1/20
&.X
fill: black
stroke: white
&.O
fill: white
stroke: black
.user circle, .solution circle
&.X
stroke: black
&.O
stroke: white
.dash circle
fill: none
stroke-dasharray: 0.1 0.1;
.error
fill: hsl(0,100%,50%)
.target
fill: purple
cursor: pointer
/.font-solved &
cursor: default
opacity: 0
svg.solved
rect.border
transition: stroke 1s
stroke: purple