styles.js 1007 Bytes
Newer Older
Dan Abramov's avatar
Dan Abramov committed
1
2
3
/**
 * Copyright (c) 2015-present, Facebook, Inc.
 *
Sophie Alpert's avatar
Sophie Alpert committed
4
5
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
Dan Abramov's avatar
Dan Abramov committed
6
7
 */

8
9
10
11
/* @flow */
const black = '#293238',
  darkGray = '#878e91',
  red = '#ce1126',
12
  redTransparent = 'rgba(206, 17, 38, 0.05)',
13
  lightRed = '#fccfcf',
14
  yellow = '#fbf5b4',
15
  yellowTransparent = 'rgba(251, 245, 180, 0.3)',
16
  white = '#ffffff';
17
18
19

const iframeStyle = {
  position: 'fixed',
20
21
22
23
  top: '0',
  left: '0',
  width: '100%',
  height: '100%',
24
  border: 'none',
25
  'z-index': 2147483647,
26
27
28
};

const overlayStyle = {
29
30
  width: '100%',
  height: '100%',
31
  'box-sizing': 'border-box',
32
33
34
35
  'text-align': 'center',
  'background-color': white,
};

36
37
38
39
40
41
42
43
44
45
46
47
48
const primaryErrorStyle = {
  'background-color': lightRed,
};

const secondaryErrorStyle = {
  'background-color': yellow,
};

export {
  iframeStyle,
  overlayStyle,
  primaryErrorStyle,
  secondaryErrorStyle,
49
50
51
52
53
  black,
  darkGray,
  red,
  redTransparent,
  yellowTransparent,
54
};