Skip to content
Snippets Groups Projects
Commit dd7c0768 authored by chris's avatar chris
Browse files

box css

parent 14ba3e26
No related branches found
No related tags found
1 merge request!160add track change plugin through service
...@@ -17,7 +17,8 @@ const CommentBoxStyled = styled.div` ...@@ -17,7 +17,8 @@ const CommentBoxStyled = styled.div`
position: relative; position: relative;
transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'}; transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'};
top: ${props => (props.top ? `${props.top}px` : 0)}; top: ${props => (props.top ? `${props.top}px` : 0)};
left: ${props => (props.active ? `${-2}%` : `0%`)}; left: ${props => (props.active ? `${-20}px` : `0%`)};
max-width: 250px;
opacity: ${({ state }) => { opacity: ${({ state }) => {
switch (state) { switch (state) {
case 'exited': case 'exited':
......
...@@ -13,7 +13,8 @@ const TrackChangeBoxStyled = styled.div` ...@@ -13,7 +13,8 @@ const TrackChangeBoxStyled = styled.div`
position: relative; position: relative;
transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'}; transition: ${({ state }) => 'top 1s, opacity 1.5s, left 1s'};
top: ${props => (props.top ? `${props.top}px` : 0)}; top: ${props => (props.top ? `${props.top}px` : 0)};
left: ${props => (props.active ? `${-2}%` : `0%`)}; left: ${props => (props.active ? `${-20}px` : `0%`)};
max-width: 250px;
opacity: ${({ state }) => { opacity: ${({ state }) => {
switch (state) { switch (state) {
case 'exited': case 'exited':
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment