File size: 1,288 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
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
// @flow
import theme from 'shared/theme';
import styled from 'styled-components';
import { HorizontalRule } from '../globals';
import { MEDIA_BREAK } from 'src/components/layout';

export const MessagesWrapper = styled.div`
  flex: 1 0 auto;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  background: ${theme.bg.default};

  @media (max-width: ${MEDIA_BREAK}px) {
    padding-bottom: 72px;
  }
`;

export const MessageGroupContainer = styled.div`
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  margin-top: 8px;
`;

export const Timestamp = styled(HorizontalRule)`
  margin: 24px 0;
  text-align: center;
  user-select: none;

  hr {
    border-color: ${theme.bg.divider};
  }
`;

export const Time = styled.span`
  text-align: center;
  color: ${theme.text.alt};
  font-size: 14px;
  font-weight: 500;
  margin: 0 24px;
`;

export const MessageLink = styled.a`
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 12px;
  top: 0;
  color: ${theme.text.alt};
  left: calc(100% + 4px);
`;

export const MessageNonLink = MessageLink.withComponent('span');