File size: 907 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// @flow
import styled from 'styled-components';

export const ReactionWrapper = styled.span`
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 4px;
  background: ${props =>
    props.hasReacted ? props.theme.warn.wash : props.theme.bg.wash};
  border: 1px solid
    ${props =>
      props.hasReacted ? props.theme.warn.border : props.theme.bg.border};
  color: ${props =>
    props.hasReacted ? props.theme.warn.alt : props.theme.text.alt};
  align-self: flex-start;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;

  &:hover {
    color: ${props =>
      props.hasReacted ? props.theme.warn.alt : props.theme.text.secondary};
  }

  .icon {
    color: ${props =>
      props.hasReacted ? props.theme.warn.alt : props.theme.text.alt};
    margin-right: 4px;
    margin-top: -1px;
  }
`;