-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
115 lines (95 loc) · 1.78 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
body {
background-color: #4D4D4D;
user-select: none;
display: flex;
justify-content: center;
margin-top: 50px;
}
#calculator {
width: 309px;
height: 526px;
background-color: #F8F8F8;
font-family: 'Inter';
font-size: 24px;
border: 5px solid black;
}
#calculator,
.display {
border-radius: 10px;
}
.display {
width: 309px;
height: 186px;
background-color: #D9D9D9;
display: flex;
flex-direction: column;
align-items: flex-end; /* horizontal - main axis */
justify-content: flex-end; /* vertical - cross axis */
row-gap: 20px;
border-end-start-radius: 0px;
border-end-end-radius: 0px;
}
.result {
height: 45px;
font-size: 32px;
font-weight: 600;
}
.operation,
.result {
margin: 0px 22px 14px 0px;
}
.buttons {
height: 340px; /* calculator height - display height */
display: flex;
justify-content: space-evenly;
align-items: center;
}
.btn {
width: 50px;
height: 50px;
border-radius: 100%;
background-color: #D9D9D9;
display: flex;
justify-content: center;
align-items: center;
}
.container {
display: flex;
row-gap: 14px;
}
.left {
width: 194px;
height: 306px;
justify-content: center;
flex-wrap: wrap;
column-gap: 22px;
}
.right {
flex-direction: column;
}
.btn.clear {
background-color: #FF3002;
}
.operator {
background-color: #02A4FF;
color: white;
}
.btn.github {
background-color: transparent;
}
.github img {
width: 50px;
height: 50px;
}
.num:hover {
background-color: #B8B8B8;
box-shadow: 1px -1px 30px rgb(0, 0, 0);
transition-duration: 700ms;
}
.operator:hover {
background-color: #1F7CB0;
transition-duration: 700ms;
}
.clear:hover {
background-color: #C72704;
}