// @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');