-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.css
78 lines (66 loc) · 1.32 KB
/
calculator.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(to right, #ff4e50, #f9d423);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.calculator {
background-color: #2c3e50;
padding: 20px;
border-radius: 20px;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
.display {
background-color: #34495e;
border-radius: 10px;
padding: 20px;
font-size: 2em;
color: #ecf0f1;
text-align: right;
margin-bottom: 20px;
height: 60px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 80px);
grid-gap: 15px;
}
.buttons button {
background-color: #1abc9c;
border: none;
border-radius: 10px;
font-size: 1.5em;
padding: 20px;
color: #ecf0f1;
cursor: pointer;
transition: 0.3s ease;
}
.buttons button:hover {
background-color: #16a085;
}
.buttons .equal {
background-color: #e74c3c;
grid-column: span 2;
}
.buttons .equal:hover {
background-color: #c0392b;
}
.buttons .clear {
background-color: #f39c12;
}
.buttons .clear:hover {
background-color: #e67e22;
}
.buttons .operator {
background-color: #3498db;
}
.buttons .operator:hover {
background-color: #2980b9;
}