-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
93 lines (80 loc) · 1.71 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
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
body {
font-family: 'Roboto', Arial, sans-serif;
background: linear-gradient(135deg, #0073e6, #004080);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
color: #ffffff;
}
.calculator {
background: #ffffff;
width: 360px;
border-radius: 15px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.display input {
width: 100%;
height: 60px;
border: none;
background: #f3f3f3;
font-size: 2em;
text-align: right;
padding: 10px;
border-radius: 10px;
margin-bottom: 20px;
color: #333;
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}
button {
background: #0073e6;
color: white;
border: none;
padding: 20px;
font-size: 1.5em;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
button:hover {
background: #005bb5;
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
button:active {
transform: translateY(0);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
button.equal {
background: #00b300;
grid-column: span 2;
}
button.equal:hover {
background: #008f00;
}
button.zero {
grid-column: span 2;
}
button:nth-child(1) {
background: #ff4d4d;
}
button:nth-child(1):hover {
background: #e60000;
}
button:nth-child(2) {
background: #ffaa00;
}
button:nth-child(2):hover {
background: #e69500;
}