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: 3rem; bottom: 0; left: 0; right: 0; 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; `;