feat(post): add "time ago" tooltip to dates

This commit is contained in:
Tom (plebeius.eth)
2024-06-08 13:39:35 +02:00
parent 019972a7ff
commit 19222a66fe
9 changed files with 81 additions and 11 deletions
+28
View File
@@ -34,6 +34,34 @@ hr {
text-transform: capitalize;
}
.tooltip {
position: absolute;
background-color: #181f24;
font-size: 11px;
line-height: 13px;
padding: 3px 6px;
z-index: 100000;
word-wrap: break-word;
white-space: pre-line;
max-width: 400px;
color: #fff;
text-align: center;
}
.tooltip::before {
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #181f24;
margin-left: -4px;
bottom: -4px;
left: 50%;
}
@media (max-width: 640px) {
.button {
font-size: var(--button-font-size-mobile);