summaryrefslogtreecommitdiffhomepage
path: root/app/components/PreferencesStyles.js
blob: c2d41c4ecb9da5bd7c81578bc387132a689dda4a (plain)
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
// @flow
import { createViewStyles, createTextStyles } from '../lib/styles';
import { colors } from '../config';

export default {
  ...createViewStyles({
    preferences: {
      backgroundColor: colors.darkBlue,
      flex: 1,
    },
    preferences__container: {
      display: 'flex',
      flexDirection: 'column',
      flex: 1,
    },
    preferences__header: {
      flexGrow: 0,
      flexShrink: 0,
      flexBasis: 'auto',
      paddingTop: 40,
      paddingRight: 24,
      paddingLeft: 24,
      paddingBottom: 24,
    },
    preferences__close: {
      position: 'absolute',
      top: 0,
      left: 12,
      borderWidth: 0,
      padding: 0,
      margin: 0,
      zIndex: 1 /* part of .preferences__container covers the button */,
      cursor: 'default',
    },
    preferences__close_content: {
      flexDirection: 'row',
      alignItems: 'center',
    },
    preferences__close_icon: {
      opacity: 0.6,
      marginRight: 8,
    },
    preferences__content: {
      flexDirection: 'column',
      flexGrow: 1,
      flexShrink: 1,
      flexBasis: 'auto',
    },
    preferences__cell: {
      backgroundColor: colors.blue,
      flexDirection: 'row',
      alignItems: 'center',
    },
    preferences__cell_accessory: {
      marginRight: 12,
    },
    preferences__cell_footer: {
      paddingTop: 8,
      paddingRight: 24,
      paddingBottom: 24,
      paddingLeft: 24,
    },
    preferences__cell_label_container: {
      paddingTop: 15,
      paddingRight: 12,
      paddingBottom: 15,
      paddingLeft: 24,
      flexGrow: 1,
    },
  }),
  ...createTextStyles({
    preferences__close_title: {
      fontFamily: 'Open Sans',
      fontSize: 13,
      fontWeight: '600',
      color: colors.white60,
    },
    preferences__title: {
      fontFamily: 'DINPro',
      fontSize: 32,
      fontWeight: '900',
      lineHeight: 40,
      color: colors.white,
    },
    preferences__cell_label: {
      fontFamily: 'DINPro',
      fontSize: 20,
      fontWeight: '900',
      lineHeight: 26,
      letterSpacing: -0.2,
      color: colors.white,
    },
    preferences__cell_footer_label: {
      fontFamily: 'Open Sans',
      fontSize: 13,
      fontWeight: '600',
      lineHeight: 20,
      letterSpacing: -0.2,
      color: colors.white80,
    },
  }),
};