-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.css
100 lines (89 loc) · 1.76 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.calculator {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #fff;
font-family: 'Roboto', sans-serif;
}
.screen {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
height: 100px;
margin-bottom: 30px;
background-color: #f0f0f0;
color: #333;
font-size: 60px;
padding: 0 20px;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
border-radius: 10px;
}
.row {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 15px;
}
.button {
display: flex;
justify-content: center;
align-items: center;
height: 80px;
width: 80px;
border: none;
background-color: #f0f0f0;
color: #333;
font-size: 36px;
cursor: pointer;
transition: background-color 0.2s, color 0.2s;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
border-radius: 50%;
margin-right: 15px;
}
.button:last-child {
margin-right: 0;
}
.button:hover {
background-color: #333;
color: #fff;
}
.clear {
background-color: #ff3333;
}
.number {
background-color: #eee;
}
.operator {
background-color: #b3b3b3;
}
.equals {
background-color: #4caf50;
color: #fff;
}
@media screen and (max-width: 600px) {
.calculator {
width: 100%;
height: 100%;
}
.screen {
font-size: 48px;
height: 80px;
margin-bottom: 15px;
}
.row {
margin-bottom: 10px;
}
.button {
height: 60px;
width: 60px;
font-size: 24px;
border-radius: 50%;
margin-right: 10px;
}
.button:last-child {
margin-right: 0;
}
}