import styled from "styled-components";

const Action = styled.div`
  display: flex;
  width: 56px;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
`;

const Item = styled.div`
  display: flex;
  padding: ${(p) => `${p.theme.spacing.s} 0 ${p.theme.spacing.xs} 0`};
  border-bottom: 1px solid ${(p) => p.theme.color.uiLine};
  &:hover {
    ${Action} {
      opacity: 1;
    }
  }
`;

const PageInfo = styled.div`
  flex-grow: 1;
`;

const Title = styled.div`
  ${(p) => p.theme.textStyle.uiL};
  color: ${(p) => p.theme.color.textHighEmphasis};
  margin-bottom: ${(p) => p.theme.spacing.xxs};
`;

const SubTitle = styled.div`
  ${(p) => p.theme.textStyle.uiXS};
  color: ${(p) => p.theme.color.textMediumEmphasis};
`;

const Type = styled.div`
  position: relative;
  display: flex;
  width: 200px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
`;

const SiteInfo = styled.div`
  position: relative;
  display: flex;
  width: 200px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
`;

export { Item, PageInfo, Title, SubTitle, Type, SiteInfo, Action };
