File size: 2,459 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// @flow
import theme from 'shared/theme';
import styled from 'styled-components';
import { hexa } from 'src/components/globals';
import { OutlineButton } from 'src/components/button';
import { MEDIA_BREAK } from 'src/components/layout';

export const Container = styled.div`
  display: flex;
  flex: none;
  flex-direction: column;
  align-self: stretch;
  align-items: stretch;
  position: relative;

  > div {
    display: flex;
    flex: none;
    flex-direction: column;
    align-self: stretch;
    align-items: stretch;
  }
`;

export const FetchMoreButton = styled(OutlineButton)`
  width: 100%;
  padding: 16px 0;

  @media (max-width: ${MEDIA_BREAK}px) {
    padding: 32px 0;
    border-radius: 0;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: ${theme.brand.default};
    border: none;
    box-shadow: none;
    border-top: 2px solid ${theme.bg.border};

    &:hover {
      background: ${theme.bg.wash};
      border-radius: 0;
      box-shadow: none;
    }
  }
`;

export const Divider = styled.div`
  border-bottom: 2px solid ${theme.bg.border};
  width: 100%;
  display: block;
  padding-top: 24px;
  margin-bottom: 24px;
`;

export const NullColumn = styled.div`
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  text-align: center;
  flex-direction: column;
  padding: 24px;
  background: ${theme.bg.default};
  flex: 1;

  button {
    flex: 1;
  }

  @media (max-width: ${MEDIA_BREAK}px) {
    border-bottom: 1px solid ${theme.bg.border};
  }
`;

export const NullColumnHeading = styled.h3`
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: ${theme.text.default};
  max-width: 540px;
`;
export const NullColumnSubheading = styled.p`
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: ${theme.text.secondary};
  margin-bottom: 24px;
  max-width: 360px;
`;

export const LoadingPill = styled.span`
  position: absolute;
  left: 50%;
  transform: translateX(-50%)
    translateY(${props => (props.isVisible ? '12px' : '0px')});
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  padding: 2px 44px;
  min-height: 24px;
  border-radius: 48px;
  background: ${theme.brand.alt};
  border: 1px solid ${theme.brand.default};
  opacity: ${props => (props.isVisible ? '1' : '0')};
  pointer-events: none;
  z-index: 11;
  box-shadow: 0 2px 4px rgba(${hexa(theme.brand.alt, 0.12)});
`;