Skip to content

Commit a23ce70

Browse files
author
Adam Argyle
committed
measurements can be slightly seen through
1 parent 5cb564e commit a23ce70

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

app/components/selection/distance.element.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
color: white;
3838
text-shadow: 0 0.5px 0 hsla(0, 0%, 0%, 0.4);
3939
box-shadow: 0 0.5px 0 hsla(0, 0%, 0%, 0.4);
40-
background: var(--line-color);
40+
background: hsl(var(--line-color) / 75%);
41+
border: 1px solid hsl(var(--line-color));
4142
border-radius: 1em;
4243
font-size: 0.7em;
4344
font-weight: bold;
@@ -47,19 +48,19 @@
4748
}
4849

4950
:host > figure span {
50-
background: var(--line-color);
51+
background: hsl(var(--line-color));
5152
height: var(--line-h);
5253
width: var(--line-w);
5354
}
5455

5556
:host > figure div {
5657
flex: 2;
57-
background: var(--line-color);
58+
background: hsl(var(--line-color));
5859
width: var(--line-w);
5960
height: var(--line-h);
6061
}
6162

6263
:host figure:matches([quadrant="bottom"], [quadrant="right"]) > div:first-of-type,
6364
:host figure:matches([quadrant="top"], [quadrant="left"]) > div:last-of-type {
64-
background: linear-gradient(to var(--quadrant), hotpink 0%, var(--line-color) 100%);
65+
background: linear-gradient(to var(--quadrant), hotpink 0%, hsl(var(--line-color)) 100%);
6566
}

app/components/selection/distance.element.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ export class Distance extends HTMLElement {
3636
? this.style.setProperty('--line-h', `var(--line-w)`)
3737
: this.style.setProperty('--line-w', `var(--line-w)`)
3838

39-
if (color) {
40-
this.style.setProperty('--line-color', color === 'pink'
41-
? 'hotpink'
42-
: 'hsl(267, 100%, 58%)')
43-
this.style.setProperty('--line-base', color === 'pink'
44-
? 'hotpink'
45-
: 'hsl(267, 100%, 58%)')
46-
}
39+
this.style.setProperty('--line-color', color === 'pink'
40+
? '330 100% 71%'
41+
: '267 100% 58%')
42+
this.style.setProperty('--line-base', color === 'pink'
43+
? '330 100% 71%'
44+
: '267 100% 58%')
4745
}
4846

4947
render({q,d}, node_label_id) {

0 commit comments

Comments
 (0)