-
Notifications
You must be signed in to change notification settings - Fork 0
/
calcu.css
90 lines (79 loc) · 1.61 KB
/
calcu.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
user-select: none;
}
body {
font-family: "Helvetica Neue", sans-serif;
margin: 25px;
}
.calculator {
background: black;
border-radius: 50px;
color: white;
height: 1218px;
padding: 20px;
position: relative;
width: 563px;
}
.top-container {
display: flex;
height: 250px;
justify-content: space-between;
padding: 0 20px;
}
.value {
font-size: 130px;
font-weight: 300;
height: 158px;
margin-bottom: 20px;
margin-right: 20px;
text-align: right;
}
.buttons-container {
display: grid;
grid-gap: 20px;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
}
.button {
align-items: center;
background: #333;
border-radius: 50%;
cursor: pointer;
display: flex;
font-size: 45px;
height: 110px;
justify-content: center;
transition: filter .3s;
width: 110px;
}
.button.function {
color: black;
background: #a5a5a5;
}
.button.operator {
background: #f1a33c;
}
.button.number-0 {
border-radius: 55px;
grid-column: 1 / span 2;
justify-content: flex-start;
padding-left: 43px;
width: 250px;
}
.button:active,
.button:focus {
filter: brightness(120%);
}
.bottom {
width: 200px;
height: 5px;
background: white;
border-radius: 4px;
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}