mirror of
https://github.com/hiforrest/source-mode-inline-images.git
synced 2026-07-22 07:32:19 +00:00
- Update manifest.json: improve description, use HTTPS for authorUrl - Add versions.json for version compatibility mapping - Refactor main.ts: use getActiveViewOfType instead of workspace.activeLeaf - Move inline styles to CSS with CSS custom properties - Translate error messages to English - Clean up styles.css: remove unused styles, add custom width support - Add English README.md - Add Chinese README.zh-CN.md - Add MIT LICENSE - Add GitHub Actions release workflow
31 lines
684 B
CSS
31 lines
684 B
CSS
.source-mode-inline-image-wrapper {
|
|
display: block;
|
|
max-width: 100%;
|
|
margin: 6px 0 12px 0;
|
|
padding: 0;
|
|
line-height: normal;
|
|
}
|
|
|
|
.source-mode-inline-image {
|
|
display: block;
|
|
max-width: min(480px, 100%);
|
|
height: auto;
|
|
object-fit: contain;
|
|
border-radius: 4px;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.source-mode-inline-image-wrapper--custom-width .source-mode-inline-image {
|
|
width: var(--source-mode-inline-image-width);
|
|
max-width: min(var(--source-mode-inline-image-width), 100%);
|
|
}
|
|
|
|
.source-mode-inline-image-error {
|
|
display: block;
|
|
color: var(--text-error);
|
|
font-size: 12px;
|
|
padding: 2px 6px;
|
|
border: 1px solid var(--text-error);
|
|
border-radius: 4px;
|
|
margin: 4px 0;
|
|
}
|