mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 01:07:08 +08:00
fix: make ALT more visible
This commit is contained in:
@@ -38,6 +38,60 @@
|
||||
line-height: var(--mantine-line-height-md);
|
||||
}
|
||||
|
||||
.media-alt-badge {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
bottom: 8px;
|
||||
z-index: 1;
|
||||
padding: 2px 8px;
|
||||
border-radius: 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.03em;
|
||||
cursor: default;
|
||||
user-select: none;
|
||||
background-color: var(--mantine-color-body);
|
||||
|
||||
@mixin light {
|
||||
border: 1px solid var(--mantine-color-gray-3);
|
||||
color: var(--mantine-color-gray-7);
|
||||
}
|
||||
|
||||
@mixin dark {
|
||||
border: 1px solid var(--mantine-color-dark-4);
|
||||
color: var(--mantine-color-dark-1);
|
||||
}
|
||||
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: attr(data-alt);
|
||||
display: none;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: calc(100% + 6px);
|
||||
width: max-content;
|
||||
max-width: 320px;
|
||||
padding: 6px 10px;
|
||||
border-radius: var(--mantine-radius-default);
|
||||
font-size: var(--mantine-font-size-sm);
|
||||
font-weight: 400;
|
||||
letter-spacing: normal;
|
||||
line-height: var(--mantine-line-height-sm);
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: break-word;
|
||||
text-align: start;
|
||||
background-color: var(--mantine-color-gray-9);
|
||||
color: var(--mantine-color-white);
|
||||
}
|
||||
|
||||
&:hover::after {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.media-pulse {
|
||||
animation: media-pulse 1.2s ease-in-out infinite;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user