-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
70 lines (62 loc) · 1.36 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #4E709D;
font-family: 'Arial', sans-serif;
}
.calculator {
background-color: #f5b27be3;
padding: 20px;
border-radius: 20px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
max-width: 400px;
text-align: center;
}
.calculator-screen {
background-color: #fff;
padding: 10px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
#display {
width: 100%;
height: 50px;
font-size: 24px;
border: none;
background-color: transparent;
outline: none;
text-align: right;
font-weight: bold;
}
.calculator-buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
button {
width: 100%;
height: 60px;
font-size: 24px;
cursor: pointer;
border: none;
background-color: #f1f1f1;
color: #333;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
button:hover {
background-color: #d1d1d1;
color: #000;
transform: scale(1.05);
}
button:active {
background-color: #ccc;
}
.double-width {
grid-column: span 2;
}