upd: use misskey shadow for the sharkey ticker, prevent clipping

This commit is contained in:
Alice Mikhaylenko 2024-01-01 04:25:14 +04:00
parent 1805150533
commit 499b2b03aa

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;