-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Expand file tree
/
Copy pathstyle.css
More file actions
76 lines (64 loc) · 1.01 KB
/
style.css
File metadata and controls
76 lines (64 loc) · 1.01 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Verdana, Tahoma, sans-serif;
}
body {
height: 100vh;
background: linear-gradient(135deg, #764ba2, #667eea);
display: flex;
justify-content: center;
align-items: center;
}
.calculator {
width: 320px;
background: #222;
border-radius: 10px;
padding: 15px;
}
#display {
width: 100%;
height: 60px;
background: #000;
color: #0f0;
font-size: 2rem;
text-align: right;
padding: 10px;
border: none;
margin-bottom: 10px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
button {
padding: 15px;
font-size: 1.2rem;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
opacity: 0.8;
}
.operator {
background: #ff9f43;
}
.equal {
background: #1dd1a1;
grid-row: span 2;
}
.clear {
background: #ee5253;
}
.delete {
background: #576574;
}
.zero {
grid-column: span 2;
}
button:not(.operator):not(.equal):not(.clear):not(.delete) {
background: #c8d6e5;
}