-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot.styl
More file actions
156 lines (133 loc) · 3.49 KB
/
root.styl
File metadata and controls
156 lines (133 loc) · 3.49 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
@require '../node_modules/normalize-styl/normalize.styl'
@require './vars'
$breakPointSmall = 340px
$breakPointMedium = 768px
$breakPointLarge = 840px
@keyframes z-overlay-fade-in
0%
// transform: translateY(25%)
opacity: 0.25
// 25%
// prevent transform from sticking around for good (pixelated/blurry)
// transform: translateY(0.001px)
// opacity: 0.4375
100%
// transform: none
// transform: translateY(0)
opacity: 1
html, body
width: 100%
height: 100%
body
font-body1()
-webkit-tap-highlight-color: transparent
background: getColor('$bgColor')
padding-top: constant(safe-area-inset-top)
padding-top: env(safe-area-inset-top)
#zorium-root
// if this page is in a frame on iOS, iOS tries to auto-expand
// the frame to fit the page.
// position absolute here messes up some older android devices
&.is-ios
// absolute causes rubberbanding, specifically for conversations on iOS
// where it uses iScroll with preventDefault: false
// (for text-selection to work)
position: fixed
width: 100%
height: 100%
top: 0
left: 0
overflow: auto
// http://stackoverflow.com/questions/9807620/ipad-safari-scrolling-causes-html-elements-to-disappear-and-reappear-with-a-dela
// -webkit-overflow-scrolling: touch
&.has-overlay-page
.z-nav-drawer
display: none
> .z-root
display: flex
> .content
flex1()
min-width: 0
display: flex
flex-direction: column
> .page
flex1()
display: flex
flex-direction: column
> .overlay-page
position: fixed
z-index: 100
width: 100%
height: 100%
top: 0
left: 0
background: getColor('$bgColor')
display: flex
flex-direction: column
animation: z-overlay-fade-in 0.2s
> #server-loading
position: fixed
top: 0
left: 0
width: 100%
height: 100%
background: getColor('$black54')
z-index: 999999
opacity: 0
padding: 16px
box-sizing: border-box
display: flex
align-items: center
text-align: center
&.is-clicked
opacity: 1
a
color: inherit
text-decoration: inherit
canvas
outline: none
input::placeholder
font-body1()
color: getColor('$bgText54')
// hack for chrome yellow input for autocomplete
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active
transition: background-color 5000s ease-in-out 0s
-webkit-text-fill-color: getColor('$bgText87') !important
@media (min-width: $breakPointMedium)
&::-webkit-scrollbar
width: 5px
height: 5px
&::-webkit-scrollbar-thumb
background: getColor('$bgText54')
// border: 1px solid
border-radius: 20px
&::-webkit-scrollbar-track
background: getColor('$bgText12')
border-radius: 20px
@keyframes z-ripple-bottom-bar-animation-css-only
// w/ from/to instead of 0 50 100, sometimes a second ripple shows once animation is done (bottom bar)
0%
transform: scale(1) // 80% width
opacity: 0.12
60%
transform: scale(1.4) // 125% width
opacity: 0.12
// 70%
// transform: scale(24) // 120% width
// opacity: 0.12
100%
transform: scale(1.7) // 120% width
opacity: 0
@keyframes z-ripple-animation-css-only
// w/ from/to instead of 0 50 100, sometimes a second ripple shows once animation is done (bottom bar)
0%
transform: scale(0.5)
opacity: 0.25
50%
transform: scale(1.4)
opacity: 0
100%
opacity: 0