import { globalColor } from "@/utils/colorBuilder"
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;
  overflow:auto;
`

export const urlStyle = css`
  width: 600px;
  box-sizing: border-box;
  color: ${globalColor("grayBlue-02")};
  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;
  flex-direction: row;
  width:50%;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
`

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

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