import styled from "styled-components"; export const SidebarStyle = styled.div` --sidebarWidth: 360px; position: fixed; top: 0; bottom: 0; left: calc(var(--sidebarWidth) * -1); width: var(--sidebarWidth); background-color: #E2E8F0; border-right: 1px solid #CBD5E0; padding: 0 0.75rem 0.75rem; box-sizing: border-box; overflow: hidden; transition: left .2s ease-in-out, visibility .2s ease-in-out; visibility: hidden; color: #333; display: flex; flex-direction: column; align-items: flex-start; &.active { left: 0; visibility: visible; } pre, textarea { height: 100%; //min-height: 480px; resize: vertical; overflow-x: auto; padding: 0.5rem; background-color: #EDF2F7; border-radius: 4px; color: #333; border: 1px solid #cbd5e0; width: 100%; box-sizing: border-box; margin: 0.5rem 0; display: block; white-space: pre; } .actions { display: flex; width: 100%; justify-content: space-between; } .alert--error { color: red; } `; export const SidebarHeaderStyle = styled.header` width: 100%; min-height: 34px; padding: 0.5rem 0; display: flex; align-items: center; justify-content: flex-end; `; export const SidebarButtonToggleStyle = styled.button` --size: 1.5rem; cursor: pointer; border: 0; background-image: url("/scripts/dist/toolbar/images/icon-json.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; `; export const SidebarCloseButtonStyle = styled.button` --size: 1.5rem; cursor: pointer; border: 0; background-image: url("/scripts/dist/toolbar/images/icon-close.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; `; export const SidebarDataOptionsStyle = styled.div` margin-top: 0.5rem; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; box-sizing: border-box; select { flex: 1 1; display: block; appearance: none; border: 1px solid #cbd5e0; padding: 0.5rem; color: #333; border-radius: 4px; background-color: #edf2f7; background-image: url("/scripts/dist/toolbar/images/icon-dropdown-arrow.svg"); background-position: right 0.75rem center; background-repeat: no-repeat; background-size: 0.5rem; } label { display: block; } `;