-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstyle.js
71 lines (64 loc) · 1.17 KB
/
style.js
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
/**
* Input Validator - Style
* @author Marco Cesarato <[email protected]>
*/
import {StyleSheet, Platform} from "react-native";
const inputStyle = {
flex: 1,
minHeight: 50,
borderColor: "#FFF",
borderBottomColor: "#CCC",
backgroundColor: "transparent",
justifyContent: "center",
borderWidth: 1,
color: "black",
fontSize: 20,
borderRadius: 4,
marginTop: 20,
...Platform.select({
web: {
outlineWidth: 0,
outline: "none",
},
}),
};
const inputWebStyle = {
...inputStyle,
};
export const Style = StyleSheet.create({
element: {
position: "relative",
flex: 1,
flexDirection: "row",
//alignSelf: 'stretch',
alignItems: "center",
justifyContent: "flex-start",
},
input: Platform.OS === "web" ? inputWebStyle : inputStyle,
label: {
marginTop: 21,
color: "#AAA",
position: "absolute",
},
valid: {
borderBottomWidth: 1,
borderBottomColor: "#25863f",
},
invalid: {
borderBottomWidth: 1,
borderBottomColor: "#f04048",
},
});
export const CleanStyle = {
fontSize: 20,
top: 7,
};
export const DirtyStyle = {
fontSize: 12,
top: -17,
};
export const Palette = {
danger: "#f04048",
success: "#25863f",
normal: "#AAAAAA",
};