-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
62 lines (53 loc) · 1.29 KB
/
styles.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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
font-family: 'Arial', sans-serif;
margin: 0;
}
.calculator {
border-radius: 15px;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.display {
background: #333;
color: #fff;
font-size: 2em;
text-align: right;
padding: 20px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
.btn {
border: none;
padding: 20px;
font-size: 1.5em;
cursor: pointer;
transition: all 0.3s ease;
background: linear-gradient(145deg, #e6e6e6, #ffffff);
box-shadow: 5px 5px 10px #bebebe, -5px -5px 10px #ffffff;
margin: 5px;
border-radius: 10px;
}
.btn:active {
background: linear-gradient(145deg, #ffffff, #e6e6e6);
box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
}
.btn.operator {
background: linear-gradient(145deg, #f6d365, #fda085);
}
.btn.operator:active {
background: linear-gradient(145deg, #fda085, #f6d365);
}
.btn.clear {
grid-column: span 4;
background: linear-gradient(145deg, #ff4b2b, #ff416c);
}
.btn.clear:active {
background: linear-gradient(145deg, #ff416c, #ff4b2b);
}