You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
import styled from "styled-components";
|
|
|
|
export const PreviewButtonStyle = styled.button`
|
|
--size: 1.5rem;
|
|
cursor: pointer;
|
|
border: 0;
|
|
background-image: url("/scripts/dist/toolbar/images/icon-preview.svg");
|
|
background-repeat: no-repeat;
|
|
background-size: calc(var(--size) - 0.15rem);
|
|
background-position: center center;
|
|
background-color: initial;
|
|
font-size: 1px;
|
|
color: rgba(0, 0, 0, 0);
|
|
line-height: 1;
|
|
display: block;
|
|
width: var(--size);
|
|
height: var(--size);
|
|
border-radius: 0.25rem;
|
|
outline: none;
|
|
|
|
&.active {
|
|
background-image: url("/scripts/dist/toolbar/images/icon-preview-disabled.svg");
|
|
}
|
|
|
|
&.disabled {
|
|
opacity: 0.25;
|
|
cursor: default;
|
|
}
|
|
`;
|
|
|
|
export const PreviewStyle = styled.div`
|
|
position: fixed;
|
|
top: calc(var(--top_panel_height) - 2px);
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 14px; // Scrollbars
|
|
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
align-items: baseline;
|
|
|
|
img {
|
|
width: auto;
|
|
height: auto;
|
|
display: block;
|
|
cursor: move;
|
|
position: absolute;
|
|
}
|
|
`;
|
|
|
|
export const PreviewImageStyle = styled.div`
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
background-repeat: no-repeat;
|
|
background-position: top;
|
|
cursor: move;
|
|
`;
|
|
|