105 lines
1.6 KiB
CSS
105 lines
1.6 KiB
CSS
body {
|
|
background: #222;
|
|
color: #fff;
|
|
}
|
|
|
|
html,
|
|
#preview {
|
|
scrollbar-width: none;
|
|
scrollbar-color: grey #282828;
|
|
}
|
|
|
|
#preview {
|
|
position: fixed;
|
|
display: none;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
justify-content: left;
|
|
align-items: start;
|
|
overflow: hidden;
|
|
scrollbar-width: none;
|
|
z-index: 5;
|
|
}
|
|
|
|
#preview-view {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100vh;
|
|
cursor: grab;
|
|
}
|
|
|
|
#preview-header {
|
|
position: absolute;
|
|
z-index: 10;
|
|
top: 0;
|
|
gap: 2em;
|
|
height: 3em;
|
|
width: 100%;
|
|
color: white;
|
|
fill: white;
|
|
box-sizing: border-box;
|
|
padding: .7em;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
background-color: #333;
|
|
align-items: center;
|
|
}
|
|
|
|
#convert-action select,
|
|
#convert-action button {
|
|
color: white;
|
|
background-color: #444;
|
|
border-radius: .2em;
|
|
border: none;
|
|
padding: .2em .5em;
|
|
height: 100%;
|
|
}
|
|
|
|
#convert-action button:hover {
|
|
background-color: rgb(40, 40, 40);
|
|
}
|
|
|
|
#convert-action button:active {
|
|
background-color: rgb(50, 50, 50);
|
|
}
|
|
|
|
#preview-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1em;
|
|
}
|
|
|
|
#image-wrapper {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
|
|
transform-origin: center center;
|
|
transition: transform 0.1s ease-out;
|
|
|
|
cursor: grab;
|
|
}
|
|
|
|
#preview-img,
|
|
#original-img {
|
|
position: absolute;
|
|
width: min(90%, 90svw);
|
|
height: min(90%, 90svh);
|
|
object-fit: contain;
|
|
|
|
cursor: grab;
|
|
|
|
pointer-events: none;
|
|
}
|
|
|
|
#image-wrapper:active #preview-img,
|
|
#image-wrapper.dragging #preview-img,
|
|
#image-wrapper.dragging {
|
|
cursor: grabbing;
|
|
}
|