mirror of
https://github.com/docmost/docmost.git
synced 2026-08-27 08:47:06 +08:00
* fix: close on click outside; smaller icon size * fix: make ALT more visible
119 lines
2.6 KiB
CSS
119 lines
2.6 KiB
CSS
.ProseMirror {
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
|
|
@media print {
|
|
break-inside: avoid;
|
|
}
|
|
}
|
|
|
|
.node-image, .node-video, .node-pdf, .node-excalidraw, .node-drawio {
|
|
&.ProseMirror-selectednode {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.attachment-placeholder {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: var(--mantine-color-body);
|
|
border-radius: var(--mantine-radius-default);
|
|
cursor: pointer;
|
|
padding: 15px;
|
|
height: 25px;
|
|
|
|
@mixin light {
|
|
border: 1px solid var(--mantine-color-gray-3);
|
|
}
|
|
|
|
@mixin dark {
|
|
border: 1px solid var(--mantine-color-dark-4);
|
|
}
|
|
}
|
|
|
|
.uploading-text {
|
|
font-size: var(--mantine-font-size-md);
|
|
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;
|
|
|
|
@mixin light {
|
|
background: linear-gradient(-90deg, var(--mantine-color-gray-3) 0%, var(--mantine-color-gray-1) 50%, var(--mantine-color-gray-3) 100%);
|
|
background-size: 400% 400%;
|
|
}
|
|
|
|
@mixin dark {
|
|
background: linear-gradient(-90deg, var(--mantine-color-dark-6) 0%, var(--mantine-color-dark-5) 50%, var(--mantine-color-dark-6) 100%);
|
|
background-size: 400% 400%;
|
|
}
|
|
|
|
@keyframes media-pulse {
|
|
0% {
|
|
background-position: 0% 0%;
|
|
}
|
|
100% {
|
|
background-position: -135% 0%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|