-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.styl
133 lines (116 loc) · 2.02 KB
/
index.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
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
@require "./node_modules/normalize.css/normalize.css"
$background = #272730
$elevated = #41414C
$subtle = #898992
$primary = #5666F3
$highlight = #00F5FF
body
margin 0
padding 0
background $background
color white
font-size 16px
.wrapper
margin 0 auto
width 400px
.box
position absolute
border 1px solid $highlight
// border-right 2px solid $highlight
top 0px
height 10px
pointer-events none
&.selected
background-color transparent
h1
color $primary
font-family monospace
font-size 18px
margin-top 2rem
.start,
.end,
.hover
position absolute
top: 12px
font-size 10px
font-family monospace
padding 2px
width 50px
color $highlight
.start
text-align right
margin-left -53px
.hover
text-align center
margin-left -27px
path.selection,
rect.selection
fill transparent
stroke $highlight
stroke-width 1
path.segment
fill transparent
stroke $highlight
stroke-width 1
&.normal
fill $primary
stroke none
&.outside
fill $elevated
stroke none
path.line
fill transparent
stroke-width 1
&.normal
stroke $primary
&.outside
stroke $elevated
text.label,
text.axis
font-size 10px
font-family monospace
text.label
fill $highlight
text.axis
fill $primary
text-anchor middle
alignment-baseline middle
text.axis.x
text-anchor end
transform rotate(-90deg)
text.axis.y
text-anchor end
.radial text.axis.x
transform none
text-anchor middle
alignment-baseline alphabetic
transform translate(0, -5px)
.radial text.axis.y
font-size 8px
text-anchor middle
.radial .background text.axis.y
stroke $background
stroke-width 4
line.grid.x,
line.grid.y,
circle.grid.y
fill none
stroke $primary
stroke-width 0.5
stroke-dasharray 5
.axis_major line.grid.x,
.axis_major line.grid.y,
.axis_major circle.grid.y
stroke-width 1
stroke-dasharray none
.grid_inv line.grid
stroke $background
stroke-width 0.5
stroke-dasharray 5
path.grid.x
fill $primary
circle.scatter
fill $primary
path.histogram,
rect.histogram
fill $primary