-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (85 loc) · 1.8 KB
/
style.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
* {
margin: 0;
padding: 0;
font-family: 'Poppins', 'sans-serif';
box-sizing: border-box;
}
.container {
width: 100%;
height: 100vh;
background: #e3f9ff;
display: flex;
align-items: center;
justify-content: center;
background-image: url("https://img.freepik.com/premium-vector/pi-day-seamless-pattern-with-mathematical-constants-baked-pie-template-hand-drawn-illustration_2175-12164.jpg");
background-size: cover;
}
.calculator {
background: #3a4452;
padding: 20px;
border-radius: 20px;
width: 420px;
box-sizing: border-box;
}
.display {
display: flex;
flex-direction: column;
border: 2px solid #00A86B;
border-radius: 10px;
justify-content: flex-end;
padding: 10px;
margin: 20px 0;
background: #fff;
color: #333;
overflow: hidden;
height: 100px;
box-sizing: border-box;
}
.previous-content {
font-size: 16px;
opacity: 0.7;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.current-content {
font-size: 24px;
margin-top: 10px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.calculator input[type="button"] {
border: none;
outline: none;
width: 60px;
height: 60px;
border-radius: 10px;
box-shadow: -8px 8px 10px lightblue;
background: transparent;
font-size: 20px;
color: #fff;
cursor: pointer;
margin: 10px;
transition: background 0.3s;
box-sizing: border-box;
resize: none;
}
.calculator input[type="button"]:hover {
background: #00A86B;
}
input.equal {
width: 130px;
background: #00A86B;
color: #fff;
}
input.operator {
color: #00A86B;
}