-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
103 lines (88 loc) · 1.8 KB
/
Copy pathindex.css
File metadata and controls
103 lines (88 loc) · 1.8 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
.app{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.calculator{
background-color: var(--background-primary);
width: 100%;
max-width: 375px;
min-height: 640px;
flex-direction: column;
border-radius: 1.5rem;
overflow: hidden;
}
.display{
min-height: 200px;
padding: 1.5rem;
display: flex;
justify-content: flex-end;
align-items: flex-end;
color: var(--text-primary);
text-align: right;
flex: 1 1 0%;
}
.display .input{
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.display .output{
font-size: 3rem;
font-weight: 700;
width: 100%;
max-width: 100%;
overflow: auto;
}
.display .operator{
color: var(--claude-orange);
}
.display .brackets,
.display .percent{
color: var(--claude-orange-light);
}
.keys{
background-color: var(--background-primary);
padding: 1.5rem;
border-radius: 1.5rem 1.5rem 0 0;
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: repeat(5,1fr);
grid-gap: 1rem;
box-shadow: 0px -2px 16px rgba(0, 0, 0, 0.2);
}
.keys .key{
position: relative;
cursor: pointer;
display: block;
height: 0;
padding-top: 100%;
background-color: var(--background-secondary);
border-radius: 1rem;
transition: 0.2s;
user-select: none;
}
.keys .key span{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
font-weight: 500;
color: var(--text-primary);
}
.keys .key:hover{
box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.2);
}
.keys .key.operator span{
color: var(--operator-btn);
}
.keys .key.action span{
color: var(--action-btn);
}