-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
99 lines (85 loc) · 1.65 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
94
95
96
97
98
99
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f9;
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.calculator {
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
background-color: #fff;
box-shadow: 0px 0px 10px 0px #0000001a;
max-width: 100%;
width: 400px;
box-sizing: border-box;
}
.calculator-screen {
width: 100%;
height: 40px;
border: none;
background-color: #252525;
color: #fff;
text-align: right;
padding-right: 10px;
padding-left: 10px;
font-size: 1.5rem;
border-radius: 5px;
margin-bottom: 10px;
box-sizing: border-box;
}
.calculator-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
button {
height: 50px;
border-radius: 5px;
border: none;
background-color: #f4f4f9;
font-size: 1.2rem;
transition: background-color 0.3s ease-in-out;
}
button:hover {
background-color: #e1e1e8;
}
.operator {
background-color: #f9a825;
color: #fff;
}
.operator:hover {
background-color: #f57f17;
}
.equal-sign {
background-color: #4caf50;
color: #fff;
grid-column: span 2;
}
.equal-sign:hover {
background-color: #388e3c;
}
.all-clear {
background-color: #e53935;
color: #fff;
}
.all-clear:hover {
background-color: #d32f2f;
}
@media (max-width: 600px) {
.calculator {
width: 100%;
padding: 10px;
}
.calculator-screen {
height: 50px;
font-size: 2rem;
}
button {
height: 60px;
font-size: 1.5rem;
}
}