redux-saga-devtools
Version:
Monitor and UI for redux-saga
67 lines (59 loc) • 1.1 kB
JavaScript
import styled, { css } from 'styled-components'
export const cssResize = css`
position: absolute;
opacity: 0;
left: -5px;
width: 10px;
top: 0;
height: 100%;
cursor: col-resize;
`
export const DockContainer = styled.div`
position: fixed;
width: 0px;
height: 0px;
top: 0px;
left: 0px;
z-index: 99999999;
`
export const DockOverlay = styled.div`
position: fixed;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
z-index: 0;
background: rgba(0, 0, 0, 0);
opacity: 1;
pointer-events: none;
`
export const DockToggle = styled.button`
position: fixed;
top: 0;
right: 0;
z-index: 1;
margin: 2px;
`
export const DockPanel = styled.div`
position: fixed;
z-index: 1;
box-shadow: rgba(0, 0, 0, 0.298039) 0px 0px 4px;
background: white;
right: 0;
top: 0px;
width: 40%;
height: 100%;
${p => p.resizing ?
css`
border-left: 1px solid rgb(200,200,200);
` :
css`
transition: width 0.1s ease-out;
`
}
`
export const DockPanelBody = styled.div`
width: 100%;
height: 100%;
overflow: hidden;
`