Skip to content

Commit 1b9c1b4

Browse files
committed
Change cursor to pointer, change crosshair color
1 parent 383fcd2 commit 1b9c1b4

File tree

2 files changed

+36
-31
lines changed

2 files changed

+36
-31
lines changed

webapp/javascript/components/PyroscopeApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const flotOptions = {
2626
},
2727
crosshair: {
2828
mode: "x",
29-
color: "blue",
29+
color: "#C3170D",
3030
lineWidth: "1",
3131
},
3232
grid: {

webapp/sass/profile.scss

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,34 @@
33
@use "components/daterangepicker";
44
@use "components/labels";
55

6-
@import '~sanitize.css';
7-
@import '~sanitize.css/forms.css';
8-
@import '~sanitize.css/typography.css';
6+
@import "~sanitize.css";
7+
@import "~sanitize.css/forms.css";
8+
@import "~sanitize.css/typography.css";
99

10-
11-
@import 'flamebearer.scss';
10+
@import "flamebearer.scss";
1211

1312
body {
14-
font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
13+
font: 400 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
14+
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1515

1616
background-color: $bg-color;
1717
color: white;
1818
}
1919

20-
pre, code, tt {
21-
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
20+
pre,
21+
code,
22+
tt {
23+
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
2224
font-size: 14px;
2325
}
2426

2527
tt {
2628
border-radius: 3px;
2729
border: 1px solid #aaa;
2830
padding: 2px 4px;
29-
background-color: rgba(255,255,255,0.3);
31+
background-color: rgba(255, 255, 255, 0.3);
3032
}
3133

32-
3334
.navbar-2 {
3435
display: flex;
3536
padding: 0 0 10px 0;
@@ -58,14 +59,14 @@ tt {
5859
margin: 0;
5960
padding: 0;
6061
font-weight: 400;
61-
background-image: url('../images/logo-v3-small.png');
62+
background-image: url("../images/logo-v3-small.png");
6263
background-size: 40px 40px;
6364
background-position: 0px 8px;
6465
background-repeat: no-repeat;
6566
}
6667

6768
.logo::after {
68-
content: 'Pyroscope';
69+
content: "Pyroscope";
6970
font-weight: 400;
7071
padding-left: 44px;
7172
font-size: 25px;
@@ -126,7 +127,7 @@ input {
126127
border-radius: 4px 0 0 4px;
127128
}
128129

129-
.followed-by-btn+.btn {
130+
.followed-by-btn + .btn {
130131
border-left: none;
131132
border-radius: 0 4px 4px 0;
132133
}
@@ -171,7 +172,7 @@ body {
171172
}
172173
@media only screen and (max-width: 1023px) {
173174
.logo::after {
174-
content: '';
175+
content: "";
175176
}
176177
.labels {
177178
margin-left: 5px;
@@ -196,6 +197,7 @@ body {
196197

197198
#timeline-chart {
198199
overflow: hidden;
200+
cursor: crosshair;
199201
}
200202

201203
.flot-tick-label.tickLabel {
@@ -218,15 +220,15 @@ $pane-width: 6px;
218220
}
219221
}
220222

221-
222223
.flamegraph-table,
223224
.flamegraph-canvas {
224225
width: 100%;
225226
}
226227

227228
.flamegraph-table {
228229
font-size: 14px;
229-
th, td {
230+
th,
231+
td {
230232
text-align: right;
231233
padding: 0px 10px;
232234

@@ -243,7 +245,7 @@ $pane-width: 6px;
243245
.sort-arrow {
244246
display: inline-block;
245247
border: 5px solid transparent;
246-
border-top-color: rgba(255,255,255,0.1);
248+
border-top-color: rgba(255, 255, 255, 0.1);
247249
top: 3px;
248250
position: relative;
249251
margin-left: 7px;
@@ -260,14 +262,13 @@ $pane-width: 6px;
260262

261263
span {
262264
// mix-blend-mode: exclusion;
263-
text-shadow: 0 0 2px rgba(0,0,0,0.33);
265+
text-shadow: 0 0 2px rgba(0, 0, 0, 0.33);
264266
}
265267

266268
&:first-child {
267269
border-left: none;
268270
text-align: left;
269271

270-
271272
width: auto;
272273
min-width: auto;
273274
max-width: auto;
@@ -282,7 +283,7 @@ $pane-width: 6px;
282283
}
283284
tr th,
284285
tr:nth-child(2n) td {
285-
background: rgba(255,255,255,0.05)
286+
background: rgba(255, 255, 255, 0.05);
286287
}
287288
}
288289

@@ -295,11 +296,11 @@ $pane-width: 6px;
295296
}
296297

297298
.flamegraph-search {
298-
background: rgba(255,255,255,0.8);
299+
background: rgba(255, 255, 255, 0.8);
299300
color: #333;
300301
transition: background-color ease-out 0.1s;
301302
&:focus {
302-
background: rgba(255,255,255,1);
303+
background: rgba(255, 255, 255, 1);
303304
}
304305
}
305306

@@ -310,7 +311,7 @@ $pane-width: 6px;
310311
right: 20px;
311312
cursor: pointer;
312313
&:after {
313-
content: '';
314+
content: "";
314315
position: absolute;
315316
top: 0;
316317
right: 0;
@@ -322,7 +323,7 @@ $pane-width: 6px;
322323
}
323324
// hit-area
324325
&:before {
325-
content: '';
326+
content: "";
326327
cursor: pointer;
327328
top: -20px;
328329
right: -20px;
@@ -345,13 +346,14 @@ $pane-width: 6px;
345346
}
346347
}
347348

348-
.navbar, .footer {
349+
.navbar,
350+
.footer {
349351
.navbar-link {
350352
a {
351353
color: white;
352354
text-decoration: none;
353355
font-weight: 500;
354-
&:hover{
356+
&:hover {
355357
color: #fff;
356358
cursor: pointer;
357359
}
@@ -360,7 +362,10 @@ $pane-width: 6px;
360362
}
361363
}
362364

363-
html, body, #root, .pyroscope-app {
365+
html,
366+
body,
367+
#root,
368+
.pyroscope-app {
364369
height: 100%;
365370
min-height: 100%;
366371
}
@@ -385,11 +390,11 @@ html, body, #root, .pyroscope-app {
385390

386391
// used to generate gifs with no scrollbars
387392
.demo-mode {
388-
body{
393+
body {
389394
overflow: hidden;
390395
}
391396

392-
.root{
397+
.root {
393398
width: 100%;
394399
height: 100%;
395400
overflow-y: scroll;
@@ -418,7 +423,7 @@ html, body, #root, .pyroscope-app {
418423
.btn {
419424
padding-left: 12px;
420425
padding-right: 12px;
421-
$active-color: #2ECC40;
426+
$active-color: #2ecc40;
422427
&.active {
423428
background-color: $active-color;
424429
color: #222;

0 commit comments

Comments
 (0)