-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
130 lines (116 loc) · 2.82 KB
/
Copy pathstyles.css
File metadata and controls
130 lines (116 loc) · 2.82 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
:root {
--bg: #0e0f12;
--panel: #15171c;
--border: #2a2e36;
--text: #e6e9ef;
--muted: #98a2b3;
--primary: #5b9cff;
--accent: #22c55e;
--danger: #ef4444;
--shadow: 0 6px 24px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.2);
}
:root.light {
--bg: #f7f7fb;
--panel: #ffffff;
--border: #e6e8ee;
--text: #0d1321;
--muted: #4b5563;
--primary: #2563eb;
--accent: #16a34a;
--danger: #dc2626;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
background: radial-gradient(1200px 800px at 20% -10%, rgba(91,156,255,.15), transparent 40%),
radial-gradient(900px 600px at 120% 20%, rgba(34,197,94,.12), transparent 40%),
var(--bg);
color: var(--text);
display: grid;
place-items: center;
padding: 24px;
}
.app { width: min(420px, 100%); }
.title {
text-align: center;
margin: 0 0 16px;
font-size: 24px;
font-weight: 600;
}
.calculator {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: var(--shadow);
overflow: hidden;
}
.display {
padding: 16px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.history {
min-height: 20px;
color: var(--muted);
font-size: 12px;
text-align: right;
letter-spacing: .2px;
}
.current {
width: 100%;
border: none;
background: transparent;
color: var(--text);
font-size: clamp(28px, 6vw, 40px);
text-align: right;
padding: 8px 0 0;
outline: none;
}
.keypad {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 12px;
}
.btn {
background: #1c1f26;
color: var(--text);
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px 12px;
font-size: 18px;
cursor: pointer;
transition: transform .06s ease, background .2s ease, border-color .2s ease;
user-select: none;
}
.btn:hover { background: #20242d; }
.btn:active { transform: translateY(1px) scale(.99); }
.op { background: #172133; border-color: #1f2b3f; }
.op:hover { background: #1a2741; }
.equals { background: var(--primary); border-color: transparent; color: white; }
.equals:hover { filter: brightness(.95); }
.span-2 { grid-column: span 2; }
.footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 12px;
color: var(--muted);
font-size: 12px;
}
.theme-toggle {
border: 1px solid var(--border);
background: var(--panel);
color: var(--text);
border-radius: 20px;
padding: 8px 12px;
cursor: pointer;
}
/* Pequenas melhorias de acessibilidade para foco via teclado */
.btn:focus, .theme-toggle:focus {
outline: 2px solid color-mix(in oklab, var(--primary), white 20%);
outline-offset: 2px;
}