This commit is contained in:
@@ -126,37 +126,55 @@
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 2147483647;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
place-items: center;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding: clamp(16px, 4vmin, 42px);
|
||||
padding: clamp(16px, 4vmin, 42px) clamp(16px, 4vmin, 42px) clamp(86px, 12vmin, 112px);
|
||||
overflow: hidden;
|
||||
overscroll-behavior: contain;
|
||||
background: rgba(0, 0, 0, .92);
|
||||
}
|
||||
|
||||
.easy-image-lightbox-preview {
|
||||
display: block;
|
||||
place-self: center;
|
||||
.easy-image-lightbox-viewport {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
max-inline-size: 100%;
|
||||
max-block-size: 100%;
|
||||
overflow: hidden;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.easy-image-lightbox-viewport.easy-image-lightbox-pannable {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.easy-image-lightbox-viewport.easy-image-lightbox-dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.easy-image-lightbox-preview {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
display: block;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
max-inline-size: none;
|
||||
max-block-size: none;
|
||||
margin: 0;
|
||||
transform-origin: 0 0;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
|
||||
.easy-image-lightbox-close {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 18px;
|
||||
right: 22px;
|
||||
display: grid;
|
||||
@@ -179,6 +197,59 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.easy-image-scale-toolbar {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
left: 50%;
|
||||
bottom: max(18px, env(safe-area-inset-bottom));
|
||||
display: grid;
|
||||
grid-template-columns: 52px minmax(76px, auto) 52px;
|
||||
align-items: center;
|
||||
padding: 6px;
|
||||
border: 1px solid rgba(255, 255, 255, .72);
|
||||
border-radius: 999px;
|
||||
background: rgba(250, 250, 250, .96);
|
||||
box-shadow: 0 12px 36px rgba(0, 0, 0, .32);
|
||||
color: #202124;
|
||||
transform: translateX(-50%);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.easy-image-scale-button {
|
||||
display: grid;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: #e4e5e7;
|
||||
color: #202124;
|
||||
padding: 0 0 3px;
|
||||
font: 300 34px/1 Arial, sans-serif;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.easy-image-scale-button:hover,
|
||||
.easy-image-scale-button:focus-visible {
|
||||
background: var(--easy-accent);
|
||||
color: #fff;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.easy-image-scale-button:disabled {
|
||||
color: #9aa0a6;
|
||||
cursor: not-allowed;
|
||||
opacity: .55;
|
||||
}
|
||||
|
||||
.easy-image-scale-value {
|
||||
min-width: 76px;
|
||||
padding: 0 10px;
|
||||
text-align: center;
|
||||
font: 500 20px/1 Lato, "Noto Sans SC", sans-serif;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.easy-content-scale-toolbar {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
@@ -275,6 +346,35 @@ body.easy-slide-scroll-fallback .slidev-layout {
|
||||
.easy-content-scale-toolbar { opacity: .78; }
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.easy-image-lightbox {
|
||||
padding: 14px 14px calc(84px + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.easy-image-lightbox-close {
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
.easy-image-scale-toolbar {
|
||||
bottom: max(12px, env(safe-area-inset-bottom));
|
||||
grid-template-columns: 48px minmax(68px, auto) 48px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.easy-image-scale-button {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
.easy-image-scale-value {
|
||||
min-width: 68px;
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
.easy-content-scale-toolbar,
|
||||
.easy-image-lightbox { display: none !important; }
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
.slidev-icon-btn[title="Presenter Mode"],
|
||||
.slidev-icon-btn[title="演示者模式"],
|
||||
.slidev-icon-btn[aria-label="Presenter Mode"],
|
||||
.slidev-icon-btn[aria-label="演示者模式"],
|
||||
[class~="w-1px"]:has(+ .slidev-icon-btn[title="Presenter Mode"]),
|
||||
[class~="w-1px"]:has(+ .slidev-icon-btn[title="演示者模式"]) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.easy-presenter-gate {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
@@ -65,8 +74,7 @@ body.easy-presenter-locked {
|
||||
}
|
||||
|
||||
.easy-presenter-dialog button,
|
||||
.easy-presenter-tools button,
|
||||
.easy-presenter-launcher {
|
||||
.easy-presenter-tools button {
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: var(--easy-accent);
|
||||
@@ -81,20 +89,6 @@ body.easy-presenter-locked {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.easy-presenter-launcher {
|
||||
position: fixed;
|
||||
right: 18px;
|
||||
bottom: 18px;
|
||||
z-index: 60;
|
||||
opacity: .22;
|
||||
transition: opacity .16s ease;
|
||||
}
|
||||
|
||||
.easy-presenter-launcher:hover,
|
||||
.easy-presenter-launcher:focus-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.easy-presenter-tools {
|
||||
position: fixed;
|
||||
top: 12px;
|
||||
|
||||
Reference in New Issue
Block a user