merge: use misskey shadow for the sharkey ticker, prevent clipping (#291)

Closes #290
This commit is contained in:
Marie 2024-01-01 01:52:09 +01:00
commit 9f5b404a70

View file

@ -50,7 +50,19 @@ const bg = {
padding: 4px;
overflow: clip;
color: #fff;
text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
text-shadow: /* .866 ≈ sin(60deg) */
1px 0 1px #000,
.866px .5px 1px #000,
.5px .866px 1px #000,
0 1px 1px #000,
-.5px .866px 1px #000,
-.866px .5px 1px #000,
-1px 0 1px #000,
-.866px -.5px 1px #000,
-.5px -.866px 1px #000,
0 -1px 1px #000,
.5px -.866px 1px #000,
.866px -.5px 1px #000;
}
.icon {
@ -59,7 +71,9 @@ const bg = {
}
.name {
margin-left: 4px;
padding: 0.5ex;
margin: -0.5ex;
margin-left: calc(4px - 0.5ex);
line-height: 1;
font-size: 0.8em;
font-weight: bold;