-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
90 lines (70 loc) · 1.6 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
header {
margin: 1em auto;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
h1 {
color: #333;
font-family: tahoma;
font-size: 3rem;
font-weight: 900;
line-height: 1.5;
text-transform: uppercase;
white-space: nowrap;
overflow: hidden;
position: relative;
width: 550px;
}
body {
background-color: #DBF9FC;
}
.calculator {
width: 400px;
background-color: #a933df;
padding: 50px 30px;
position: absolute;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
border-radius: 8px;
box-shadow: © 20px 50px rgb(40,113,85,04);
}
.display {
width: 100%;
}
.display input {
width: 100%;
padding: 15px 10px;
text-align: right;
border: none;
background-color: transparent;
color: #ffffff;
font-size: 35px;
}
.display input::placeholder {
color: #eae9f1;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 20px;
margin-top: 40px;
}
.buttons input[type="button"] {
font-size: 20px;
padding: 17px;
border: none;
background-color: transparent;
color: #ffffff;
cursor: pointer;
border-radius: 5px;
}
input[type="button" ]#equal {
grid-row: span 2;
background-color: #FA726B;
}
input[type="button"][value="0"] {
grid-column: span 2;
}