|
19 | 19 | title={tooltip} |
20 | 20 | tabindex="-1" |
21 | 21 | > |
22 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"> |
23 | | - <path class="interior" d="M0,7.882c0,1.832,1.325,2.63,2.945,1.772L8.785,6.56c1.62-.858,1.62-2.262,0-3.12L2.945.345C1.325-.512,0,.285,0,2.118Z" /> |
24 | | - <path |
25 | | - class="outline" |
26 | | - d="M 1.705180287361145 9.999852180480957 L 1.705180287361145 8.999852180480957 C 1.9275803565979 8.999852180480957 2.194530248641968 8.920772552490234 2.476730346679688 |
27 | | - 8.771392822265625 L 8.31682014465332 5.67636251449585 C 8.788760185241699 5.426312446594238 9 5.156492233276367 9 5.000002384185791 C 9 4.843512535095215 8.788760185241699 |
28 | | - 4.573692321777344 8.316730499267578 4.323602199554443 L 2.477190256118774 1.228852391242981 C 2.194520235061646 1.079232335090637 1.927510380744934 1.000152349472046 1.70503032207489 |
29 | | - 1.000152349472046 C 1.091590285301208 1.000152349472046 1.000000357627869 1.700212359428406 1.000000357627869 2.117512464523315 L 1.000000357627869 7.882492542266846 C |
30 | | - 1.000000357627869 8.299762725830078 1.091610312461853 8.999792098999023 1.705130338668823 8.999852180480957 L 1.705180287361145 9.999852180480957 M 1.705027341842651 9.999849319458008 |
31 | | - C 0.7003514766693115 9.999751091003418 0 9.214582443237305 0 7.882492542266846 L 0 2.117512464523315 C 0 0.2850223779678345 1.325000405311584 -0.512467622756958 2.945000410079956 |
32 | | - 0.3450223803520203 L 8.785000801086426 3.440012454986572 C 10.40500068664551 4.298342227935791 10.40500068664551 5.701662540435791 8.785000801086426 6.55999231338501 L |
33 | | - 2.945000410079956 9.654982566833496 C 2.502624750137329 9.889138221740723 2.082434415817261 9.999885559082031 1.705027341842651 9.999849319458008 Z" |
34 | | - /> |
35 | | - </svg> |
| 22 | + {#if !exposed} |
| 23 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"> |
| 24 | + <circle class="interior" r="3" cx="4" cy="4" /> |
| 25 | + <path |
| 26 | + class="outline" |
| 27 | + d="M4,1C5.656,1 7,2.344 7,4C7,5.656 5.656,7 4,7C2.344,7 1,5.656 1,4C1,2.344 2.344,1 4,1ZM4,2C2.896,2 2,2.896 2,4C2,5.104 2.896,6 4,6C5.104,6 6,5.104 6,4C6,2.896 5.104,2 4,2z" |
| 28 | + /> |
| 29 | + </svg> |
| 30 | + {:else} |
| 31 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"> |
| 32 | + <path class="interior" d="M0,6.306L0,1.694C0,0.228 1.06,-0.41 2.356,0.276L7.028,2.752C8.324,3.438 8.324,4.562 7.028,5.248L2.356,7.723C1.06,8.41 0,7.771 0,6.306z" /> |
| 33 | + <path |
| 34 | + class="outline" |
| 35 | + d="M1.364,8C0.56,8 0,7.372 0,6.306L0,1.694C0,0.228 1.06,-0.41 2.356,0.276L7.028,2.752C8.324,3.439 8.324,4.561 7.028,5.248L2.356,7.724C2.002,7.911 1.666,8 1.364,8ZM1.364,7.2C1.542,7.2 1.756,7.137 1.981,7.017L6.653,4.541C7.031,4.341 7.2,4.125 7.2,4C7.2,3.875 7.031,3.659 6.653,3.459L1.982,0.983C1.756,0.863 1.542,0.8 1.364,0.8C0.873,0.8 0.8,1.36 0.8,1.694L0.8,6.306C0.8,6.64 0.873,7.2 1.364,7.2z" |
| 36 | + /> |
| 37 | + </svg> |
| 38 | + {/if} |
36 | 39 | </button> |
37 | 40 | </LayoutRow> |
38 | 41 |
|
|
54 | 57 | fill: none; |
55 | 58 | stroke: none; |
56 | 59 |
|
57 | | - svg { |
58 | | - width: 10px; |
59 | | - height: 10px; |
60 | | - margin-top: -1px; |
61 | | - margin-left: -1px; |
| 60 | + .outline { |
| 61 | + fill: none; |
62 | 62 | } |
63 | 63 |
|
64 | | - &:not(.exposed) { |
65 | | - &:not(:hover) { |
66 | | - .outline { |
67 | | - fill: var(--data-type-color-dim); |
68 | | - } |
69 | | - } |
70 | | -
|
71 | | - &:hover { |
72 | | - .outline { |
73 | | - fill: var(--data-type-color); |
74 | | - } |
75 | | - } |
| 64 | + .interior { |
| 65 | + fill: var(--data-type-color); |
76 | 66 | } |
77 | 67 |
|
78 | | - &.exposed { |
79 | | - &:not(:hover) { |
80 | | - .interior { |
81 | | - fill: var(--data-type-color); |
82 | | - } |
| 68 | + &:hover { |
| 69 | + .outline { |
| 70 | + fill: var(--data-type-color); |
83 | 71 | } |
84 | 72 |
|
85 | | - &:hover { |
86 | | - .outline { |
87 | | - fill: var(--data-type-color); |
88 | | - } |
89 | | -
|
90 | | - .interior { |
91 | | - fill: var(--data-type-color-dim); |
92 | | - } |
| 73 | + .interior { |
| 74 | + fill: var(--data-type-color-dim); |
93 | 75 | } |
94 | 76 | } |
95 | 77 | } |
|
0 commit comments