All files / components/modals/ImageUploadModal styled.tsx

88.23% Statements 15/17
100% Branches 4/4
60% Functions 3/5
88.23% Lines 15/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67    2x   2x 2x   2x           2x           2x         2x                       2x       2x   4x 4x   4x         2x         2x           2x          
/* eslint-disable no-ternary */
 
import Paragraph from "components/Typography/Paragraph"
import { Theme } from "styles/theme"
import colors from "styles/colors"
import styled from "styled-components"
 
export const Content = styled.div`
  display: grid;
  justify-items: center;
  row-gap: 16px;
`
 
export const Buttons = styled.div`
  column-gap: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
`
 
export const Message = styled(Paragraph)`
  margin: 0;
  text-align: center;
`
 
export const UploadArea = styled.div`
  align-items: center;
  border: 2px dashed ${colors.wildSand};
  cursor: pointer;
  display: grid;
  justify-items: center;
  margin: 20px 0;
  padding: 16px;
  row-gap: 16px;
  text-align: center;
`
 
export const FileInput = styled.input<{ disabled: boolean }>`
  display: none;
`
 
export const FileInputLabel = styled.label<{ disabled: boolean }>`
  background: ${({ disabled, theme }: { disabled: boolean; theme: Theme }) =>
    disabled ? theme.palette.disabled.main : theme.palette.primary.main};
  color: ${({ theme }: { theme: Theme }) => theme.palette.primary.contrast};
  cursor: ${({ disabled }: { disabled: boolean }) =>
    disabled ? "not-allowed" : "pointer"};
  font-size: 16px;
  padding: 8px 16px;
`
 
export const Messages = styled.div`
  display: grid;
  row-gap: 6px;
`
 
export const AdditionalMessage = styled(Paragraph)`
  color: ${({ theme }: { theme: Theme }) => theme.palette.subtitle.main};
  font-size: 14px;
  margin: 0;
`
 
export const ErrorMessage = styled(Paragraph)`
  color: ${({ theme }: { theme: Theme }) => theme.palette.error.main};
  font-size: 14px;
  margin: 0;
`