-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
124 lines (111 loc) · 2.81 KB
/
Copy pathstyles.css
File metadata and controls
124 lines (111 loc) · 2.81 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
:root {
color-scheme: light dark;
--bg: #f2f2f7;
--card-bg: rgba(255, 255, 255, 0.8);
--separator: rgba(60, 60, 67, 0.29);
--label: #000000;
--secondary-label: rgba(60, 60, 67, 0.6);
--tertiary-label: rgba(60, 60, 67, 0.35);
--accent: #007AFF;
--input-bg: rgba(118, 118, 128, 0.12);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #000000;
--card-bg: rgba(28, 28, 30, 0.8);
--separator: rgba(84, 84, 88, 0.65);
--label: #ffffff;
--secondary-label: rgba(235, 235, 245, 0.6);
--tertiary-label: rgba(235, 235, 245, 0.35);
--accent: #0A84FF;
--input-bg: rgba(118, 118, 128, 0.24);
}
}
* {
-webkit-tap-highlight-color: transparent;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
background-color: var(--bg);
color: var(--label);
margin: 0;
min-height: 100vh;
display: flex;
align-items: flex-start;
justify-content: center;
padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
.container {
max-width: 420px;
width: 100%;
margin: 30px auto;
box-sizing: border-box;
}
h1 {
text-align: center;
color: var(--label);
font-size: 1.7rem;
font-weight: 700;
letter-spacing: -0.02em;
margin: 8px 0 28px 0;
}
.field {
background: var(--card-bg);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
border-radius: 14px;
padding: 10px 14px;
margin-bottom: 14px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
label {
display: block;
color: var(--secondary-label);
font-size: 0.8rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.02em;
margin-bottom: 2px;
}
input[type="number"] {
width: 100%;
background: transparent;
border: none;
outline: none;
color: var(--label);
font-size: 1.25rem;
font-weight: 500;
padding: 4px 0;
box-sizing: border-box;
font-family: inherit;
-moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"]::placeholder {
color: var(--tertiary-label);
}
.resultado {
text-align: center;
margin: 26px 4px 4px 4px;
color: var(--accent);
font-size: 1.3rem;
font-weight: 700;
letter-spacing: -0.01em;
line-height: 1.4;
min-height: 1.4em;
transition: opacity 0.2s ease;
}
@media (max-width: 380px) {
h1 {
font-size: 1.5rem;
}
.resultado {
font-size: 1.15rem;
}
}