-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcal.css
More file actions
66 lines (58 loc) · 1.18 KB
/
cal.css
File metadata and controls
66 lines (58 loc) · 1.18 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
font-family: 'Arial', sans-serif;
}
.calculator {
border: 1px solid #ccc;
padding: 20px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.calculator-screen {
width: 100%;
height: 40px;
text-align: right;
padding-right: 10px;
padding-left: 10px;
border: none;
background-color: #252525;
color: #fff;
font-size: 1.5em;
border-radius: 5px;
margin-bottom: 10px;
}
.calculator-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
button {
height: 40px;
font-size: 1.2em;
border: none;
border-radius: 5px;
background-color: #f1f1f1;
color: #333;
cursor: pointer;
}
button.operator {
background-color: #f39c12;
color: #fff;
}
button.equal-sign {
background-color: #27ae60;
color: #fff;
grid-column: span 2;
}
button.all-clear {
background-color: #e74c3c;
color: #fff;
}
button:active {
transform: scale(0.98);
}