import { css } from "@emotion/react"
import { Theme } from "@mui/material"

export const restapiPanelContainerStyle = css`
  display: flex;
  flex-direction: column;
`

export const actionItemContainer = css`
  padding: 8px 0;
  border-top:1px solid #ebeae8;
  overflow:auto;
`

export const urlStyle =(theme:Theme)=> css`
  width: 850px;
  box-sizing: border-box;
  color: ${theme.palette.text.secondary};
  font-weight: 400;
  margin-left: 24px;
  margin-right: 8px;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
`

export const restapiItemStyle = css`
  display: flex;
  justify-content:flex-start;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
  padding: none;
`

export const restapiItemLabelStyle = (theme:Theme)=>css`
  min-width: 124px;
  font-size: 14px;
  font-weight: 500;
  padding-left:16px;
  text-align: left;
  color: ${theme.palette.text.secondary};
`

export const restapiItemInputStyle = css`
  flex-grow: 1;
  width: 0;
`
