-
Notifications
You must be signed in to change notification settings - Fork 97
/
CalendarStyle.js
110 lines (109 loc) · 1.94 KB
/
CalendarStyle.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
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
import {
StyleSheet,
Dimensions
} from 'react-native';
const {scale, width} = Dimensions.get('window');
let iconSize = 22;
let resultFontSize = 24;
let weekTextFontSize = 16;
let slashLength = 80;
if (width < 350) {
resultFontSize = 20;
weekTextFontSize = 14;
iconSize = 20;
slashLength = 70;
}
export default StyleSheet.create({
container: {
flex: 1
},
ctrl: {
flex: 1.5,
justifyContent: 'space-between',
flexDirection: 'row',
alignItems: 'flex-end',
paddingHorizontal: 15
},
result: {
flex: 2.5,
paddingHorizontal: 15,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between'
},
resultSlash: {
width: slashLength,
height: 1 / scale,
transform: [
{
rotateZ: '-45deg'
}
]
},
resultPart: {
flex: 1
},
resultText: {
fontSize: resultFontSize,
marginVertical: 4,
fontWeight: '200'
},
clearText: {
fontSize: 18,
fontWeight: '400'
},
startText: {
textAlign: 'left'
},
endText: {
textAlign: 'right'
},
week: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center'
},
weekText: {
flex: 1,
fontSize: weekTextFontSize,
textAlign: 'center'
},
scroll: {
flex: 9,
borderTopWidth: 1,
borderBottomWidth: 1
},
scrollArea: {
flex: 1
},
btn: {
flex: 1.5,
justifyContent: 'center',
alignItems: 'center'
},
confirmContainer: {
overflow: 'hidden',
backgroundColor: 'rgba(255, 255, 255, 0.40)',
borderRadius: 4,
margin: 14,
flex: 1,
alignSelf: 'stretch',
justifyContent: 'center'
},
confirmContainerDisabled: {
backgroundColor: 'rgba(255, 255, 255, 0.20)'
},
confirmText: {
fontSize: 16,
fontWeight: 'bold',
textAlign: 'center'
},
confirmTextDisabled: {
color: 'rgba(255, 255, 255, 0.40)'
},
closeIcon: {
width: iconSize,
height: iconSize
}
});