feat(카페24): 상세 소스의 img 태그 hover 시 오른쪽에 이미지 미리보기
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -467,6 +467,28 @@
|
||||
.cf24-t-com { color: #6e7781; font-style: italic; } /* 주석 */
|
||||
.cf24-t-doc { color: #6639ba; } /* DOCTYPE 등 선언 */
|
||||
|
||||
/* 색칠 층 안에서 <img> 태그만 마우스 판정을 받는다(미리보기용). 평소에는 위의 textarea 가 가린다. */
|
||||
.cf24-t-img { pointer-events: auto; }
|
||||
|
||||
/* 마우스를 통과시킨다 — 미리보기가 소스를 덮어도 hover 가 끊기지 않게. */
|
||||
.cf24-img-preview {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 1100;
|
||||
border-left: 1px solid var(--color-subtle-ash, #e5e5e5);
|
||||
background: var(--color-canvas-white, #fff);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.cf24-img-preview img {
|
||||
display: block;
|
||||
height: 100vh;
|
||||
width: auto;
|
||||
max-width: 100vw;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.cf24-code-hint {
|
||||
font-size: var(--text-caption, 12px);
|
||||
color: var(--color-midtone-gray, #737373);
|
||||
|
||||
Reference in New Issue
Block a user