Skip to content

Commit

Permalink
refactor: #2520 remove unused styles + refactor app revision styles (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vu Nguyen authored Sep 3, 2020
1 parent ad58b57 commit 1412699
Show file tree
Hide file tree
Showing 70 changed files with 531 additions and 749 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { useHistory } from 'react-router'
import ErrorBoundary from '@/components/hocs/error-boundary'
import { UnsupportBrowserPopUp } from '@/components/ui/unsupport-browser-pop-up'
import { UnsupportBrowserPopUp } from '@/components/ui/popup/unsupport-browser-pop-up'
import { isIE } from '@/utils/browser'
import Routes from '@/constants/routes'
import { IFRAME_URLS } from '@/constants/iframe-urls'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
import { css } from 'linaria'
import { grey, black, greyLight, greenLighter, redLighter, reapitMidblue } from '@/core/__styles__/colors'

export const container = css`
background-color: ${greyLight};
border: 1px solid ${greyLight};
border-radius: 3px;
padding: 10px;
color: ${black};
display: flex;
align-items: center;
justify-content: space-between;
`

export const checkbox = css`
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
pointer-events: none;
`

export const green = css`
background-color: ${greenLighter};
`

export const red = css`
background-color: ${redLighter};
`

export const arrow = css`
font-size: 18px;
color: ${grey};
`

export const image = css`
background-size: contain;
background-repeat: no-repeat;
background-position: center;
`

export const block = css`
border-radius: 4px;
width: 88px;
height: 88px;
display: flex;
align-items: center;
justify-content: center;
`

export const iconBlock = css`
width: 90px;
height: 90px;
`

export const iconImage = css`
width: 80px;
height: 80px;
`

export const mediaBlock = css`
width: 150px;
height: 210px;
`

export const mediaImage = css`
width: 140px;
height: 200px;
`

export const diffRenderHtmlContainer = css`
background-color: ${greyLight};
border: 1px solid ${greyLight};
border-radius: 3px;
padding: 10px;
color: ${black};
display: flex;
align-items: center;
& a {
color: ${reapitMidblue};
font-weight: bold;
}
& ul,
& ol {
margin-top: 0;
margin-left: 0;
list-style-position: inside;
& li div {
display: inline-block;
}
}
& p {
margin: 1rem 0;
}
`

export const diffRenderBlock = css`
overflow-wrap: break-word;
border-radius: 4px;
// 4% space for arrow
width: 48%;
`

export const diffViewerContainer = css`
background-color: ${greyLight};
border: 1px solid ${greyLight};
border-radius: 3px;
padding: 10px;
color: ${black};
span {
overflow-wrap: break-word;
}
`
Loading

0 comments on commit 1412699

Please sign in to comment.